2010-09-04 20:26:23 +00:00
|
|
|
DEFAULT_INCLUDES = -include ${top_builddir}/zfs_config.h
|
2010-08-26 18:22:58 +00:00
|
|
|
|
|
|
|
AM_LIBTOOLFLAGS = --silent
|
2014-01-14 17:39:13 +00:00
|
|
|
AM_CFLAGS = ${DEBUG_CFLAGS} -Wall -Wstrict-prototypes
|
|
|
|
AM_CFLAGS += ${NO_UNUSED_BUT_SET_VARIABLE}
|
2015-07-13 19:30:02 +00:00
|
|
|
AM_CFLAGS += ${NO_BOOL_COMPARE}
|
2014-01-14 17:39:13 +00:00
|
|
|
AM_CFLAGS += -fno-strict-aliasing
|
2013-03-30 02:30:25 +00:00
|
|
|
AM_CPPFLAGS = -D_GNU_SOURCE -D__EXTENSIONS__ -D_REENTRANT
|
|
|
|
AM_CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64
|
|
|
|
AM_CPPFLAGS += -D_LARGEFILE64_SOURCE -DTEXT_DOMAIN=\"zfs-linux-user\"
|
Add defs for makefile installation dir vars
Add macro definitions to AM_CPPFLAGS to propagate makefile installation
directory variables for libexecdir, runstatedir, sbindir, and
sysconfdir.
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html
A corollary is that you should not use these variables except
in makefiles. For instance, instead of trying to evaluate
datadir in configure and hard-coding it in makefiles using e.g.,
'AC_DEFINE_UNQUOTED([DATADIR], ["$datadir"], [Data directory.])',
you should add -DDATADIR='$(datadir)' to your makefile's definition
of CPPFLAGS (AM_CPPFLAGS if you are also using Automake).
The runstatedir directory is for "installing data files which the
programs modify while they run, that pertain to one specific machine,
and which need not persist longer than the execution of the program".
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
It will be defined by autoconf 2.70 or later, and default to
"$(localstatedir)/run".
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=a197431414088a417b407b9b20583b2e8f7363bd
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2
2014-01-07 00:15:45 +00:00
|
|
|
AM_CPPFLAGS += -DLIBEXECDIR=\"$(libexecdir)\"
|
|
|
|
AM_CPPFLAGS += -DRUNSTATEDIR=\"$(runstatedir)\"
|
|
|
|
AM_CPPFLAGS += -DSBINDIR=\"$(sbindir)\"
|
|
|
|
AM_CPPFLAGS += -DSYSCONFDIR=\"$(sysconfdir)\"
|