summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5be3e35)
raw | patch | inline | side by side (parent: 5be3e35)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 13 Jun 2010 13:51:15 +0000 (15:51 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 13 Jun 2010 13:51:15 +0000 (15:51 +0200) |
When using --enable-standards, request the newest edition of POSIX and
X/Open.
X/Open.
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 9cc96de84106126e7f129e07843fcceafc2f193a..1af4eff9986e84fe26e69c15ddaa869305fcf62a 100644 (file)
--- a/configure.in
+++ b/configure.in
if test "x$enable_standards" = "xyes"
then
AC_DEFINE(_ISOC99_SOURCE, 1, [Define to enforce ISO C99 compliance.])
- AC_DEFINE(_POSIX_C_SOURCE, 200112L, [Define to enforce POSIX.1-2001 compliance.])
- AC_DEFINE(_XOPEN_SOURCE, 600, [Define to enforce X/Open 6 (XSI) compliance.])
+ AC_DEFINE(_POSIX_C_SOURCE, 200809L, [Define to enforce POSIX.1-2008 compliance.])
+ AC_DEFINE(_XOPEN_SOURCE, 700, [Define to enforce X/Open 7 (XSI) compliance.])
AC_DEFINE(_REENTRANT, 1, [Define to enable reentrancy interfaces.])
+ if test "x$GCC" = "xyes"
+ then
+ CFLAGS="$CFLAGS -std=c99"
+ fi
fi
AM_CONDITIONAL(BUILD_FEATURE_STANDARDS, test "x$enable_standards" = "xyes")