diff --git a/configure.ac b/configure.ac index 8367b54870d080399a03701daebf8a6e890fdeab..dbc59bae0c8041441f976900eff3d91250a4c7e2 100644 --- a/configure.ac +++ b/configure.ac @@ -115,6 +115,20 @@ esac AC_MSG_RESULT($mimpure) AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes) +AC_MSG_CHECKING([if we need _XOPEN_SOURCE defined to 500]) +case $host in + mips-sgi-irix*) + if test "$GCC" != "yes"; then + xopen="yes" + CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500" + fi + ;; + *) + xopen=no + ;; +esac +AC_MSG_RESULT($xopen) + dnl The install stuff has already been taken care of by the automake stuff dnl AC_PROG_INSTALL AC_PROG_MAKE_SET