aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-08-01 11:31:23 +1000
committerGravatar axel <axel@liljencrantz.se>2006-08-01 11:31:23 +1000
commitdc3634dc9410cfdd4c3e4a98e807b0f03d61388b (patch)
tree6e579f56fe75f8a5303867227c0bd2bd387f03a2
parent696b4df1c6cb0360b77515717a3e7cbdcf74337a (diff)
Add posix macros in configure.ac, not in Makefile, so that they will be honored by the configure tests
darcs-hash:20060801013123-ac50b-0c561ad5afd6e71230e29a25d467ed63c47b9f17.gz
-rw-r--r--Makefile.in2
-rw-r--r--configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index a2a4b20c..c7441e9a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -49,7 +49,7 @@ prefix = @prefix@
optbindirs = @optbindirs@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
-MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\" -D_POSIX_C_SOURCE=200112L
+MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\"
CFLAGS=@CFLAGS@ $(MACROS)
CPPFLAGS=@CPPFLAGS@
LDFLAGS= @LIBS@ @LDFLAGS@
diff --git a/configure.ac b/configure.ac
index 0fdc27d3..2e8d4cce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,8 @@ for i in /usr/pkg /sw /opt /opt/local; do
done
+CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L"
+
AC_SUBST( optbindirs, $optbindirs )
# Tell autoconf to create config.h header