diff --git a/configure.ac b/configure.ac index 00633e24250448ce3fdf69042f14e66325d9e5ce..9bd061a1e21dda5f31c025ae28b12d59eedb02ea 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,17 @@ case $host in mips-sgi-irix*) if test "$GCC" != "yes"; then xopen="yes" - CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500" + + # "Applications should ensure that the feature test macro _XOPEN_SOURCE + # is defined with the value 500 before inclusion of any header. This is + # needed to enable the functionality described in this specification, + # and possibly to enable functionality defined elsewhere in the Common + # Applications Environment." + + # So far, we've only detected this to be strictly necessary if not using + # gcc on SGI IRIX. And this only to avoid warnings. + + AC_DEFINE(_XOPEN_SOURCE, 500, [ensure SUSV2 compatibility]) fi ;; *)