aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-08-11 07:11:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-08-11 07:11:35 +0000
commit6060e7ed961ab6af1845389075ddfce011adfe54 (patch)
treea1ba9862b10107c4f442f8b91b90970846b924db /configure.ac
parent7ca7f7a72572dc9187e150e483d78d6aa857fc65 (diff)
experimental code to detect mips-sgi-irix systems that build without gcc
and if so, define _XOPEN_SOURCE to 500 in an attempt to build with less warnings (on the 64bit versions)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8367b5487..dbc59bae0 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