X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=ede963bd7bb582553c0ae5f0a3ac1807e171279b;hb=27e62e0de75ef36a4198171d56d7982b7cfd00cc;hp=5cae366f0e47b6d16ee649b491ae17d34a8e7d2c;hpb=c3cfa4bb8d3c986b4c6744d73defa8eba08fcb72;p=sysdb.git diff --git a/configure.ac b/configure.ac index 5cae366..ede963b 100644 --- a/configure.ac +++ b/configure.ac @@ -94,13 +94,18 @@ if test "x$enable_standards" = "xyes"; then [Define to enforce ISO/IEC 9899:1999 (C99) compliance.]) AC_DEFINE([_POSIX_C_SOURCE], 200112L, [Define to enforce IEEE 1003.1-2001 (POSIX:2001) compliance.]) - AC_DEFINE([_XOPEN_SOURCE], 600, - [Define to enforce X/Open 6 (XSI) compliance.]) + AC_DEFINE([_XOPEN_SOURCE], 700, + [Define to enforce X/Open 7 (XSI) compliance.]) AC_DEFINE([_REENTRANT], 1, [Define to enable reentrant interfaces.]) AC_DEFINE([_THREAD_SAFE], 1, [Define to enable reentrant interfaces.]) + dnl GNU libc defines strcasecmp() only when using _BSD_SOURCE even though + dnl the function is conforming to POSIX.1-2001 as well. Let's weaken + dnl strict standards compliance a bit to work around this. + AC_DEFINE([_BSD_SOURCE], 1, [Define to enable 4.3BSD support.]) + for flag in -std=c99 -pedantic; do AC_MSG_CHECKING([whether $CC accepts $flag])