summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-11-15 21:17:48 +0000
committerNick Mathewson <nickm@torproject.org>2006-11-15 21:17:48 +0000
commit942597bc4eede8dda1c4462100027095d1013229 (patch)
treebe0d0704246285242b61835c00e47a79c8b3a461
parent992a738c780c1bab58df9d2ba49c37c906da8511 (diff)
downloadtor-942597bc4eede8dda1c4462100027095d1013229.tar.gz
tor-942597bc4eede8dda1c4462100027095d1013229.zip
r9326@totoro: nickm | 2006-11-15 16:17:35 -0500
Try to detect mipspro compiler. Add -c99 to cflags if we find it. svn:r8955
-rw-r--r--configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index b289a64367..29d25ea28c 100644
--- a/configure.in
+++ b/configure.in
@@ -157,6 +157,21 @@ if test $bwin32 = true; then
AC_DEFINE(MS_WINDOWS, 1, [Define to 1 if we are building for Windows.])
fi
+dnl Enable C99 when compiling with MIPSpro
+AC_MSG_CHECKING([for MIPSpro compiler])
+AC_TRY_COMPILE([], [
+#if (defined(__sgi) && defined(_COMPILER_VERSION))
+#error
+ return x(y);
+#endif
+],
+bmipspro=false; AC_MSG_RESULT([no]),
+bmipspro=true; AC_MSG_RESULT([yes]))
+
+if test $bmipspro = true; then
+ CFLAGS="$CFLAGS -c99"
+fi
+
AC_SEARCH_LIBS(socket, [socket])
AC_SEARCH_LIBS(gethostbyname, [nsl])
AC_SEARCH_LIBS(dlopen, [dl])