zfs/include
Brian Behlendorf 16b719f006 Allow spl_config.h to be included by dependant packages (updated)
We need dependent packages to be able to include spl_config.h to
build properly.  This was partially solved in commit 0cbaeb1 by using
AH_BOTTOM to #undef common #defines (PACKAGE, VERSION, etc) which
autoconf always adds and cannot be easily removed.  This solution
works as long as the spl_config.h is included before your projects
config.h.  That turns out to be easier said than done.  In particular,
this is a problem when your package includes its config.h using the
-include gcc option which ensures the first thing included is your
config.h.

To handle all cases cleanly I have removed the AH_BOTTOM hack and
replaced it with an AC_CONFIG_HEADERS command.  This command runs
immediately after spl_config.h is written and with a little awk-foo
it strips the offending #defines from the file.  This eliminates
the problem entirely and makes header safe for inclusion.

Also in this change I have removed the few places in the code where
spl_config.h is included.  It is now added to the gcc compile line
to ensure the config results are always available.

Finally, I have also disabled the verbose kernel builds.  If you
want them back you can always build with 'make V=1'.  Since things
are working now they don't need to be on by default.
2010-03-22 14:45:33 -07:00
..
fs Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
linux Linux 2.6.32 compat, proc_handler() API change 2010-03-04 12:14:56 -08:00
rpc Minor bug fix in XDR code introduced in last minute change before landing. 2009-03-11 16:27:35 -07:00
sharefs Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
sys Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
util Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
vm Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
.gitignore sun-misc-gitignore 2010-01-08 09:37:54 -08:00
Makefile.am Atomic64 compatibility for 32-bit systems without kernel support. 2009-12-04 15:54:12 -08:00
Makefile.in Atomic64 compatibility for 32-bit systems without kernel support. 2009-12-04 15:54:12 -08:00
spl-ctl.h Go through and add a header with the proper UCRL number. 2008-05-26 04:38:26 +00:00
spl-device.h SLES10 Fixes (part 5): 2009-05-20 11:54:40 -07:00
splat-ctl.h Add basic credential support and splat tests. 2009-07-27 17:18:59 -07:00
strings.h More stub headers, 2008-03-04 18:22:31 +00:00
unistd.h More stub headers, 2008-03-04 18:22:31 +00:00