IBM C/C++ compiler predefined macro check
authorYang Tse <yangsita@gmail.com>
Tue, 1 Jul 2008 10:29:25 +0000 (10:29 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 1 Jul 2008 10:29:25 +0000 (10:29 +0000)
ares/configure.ac
configure.ac

index d90d70b..12b6151 100644 (file)
@@ -162,7 +162,9 @@ esac
 
 AC_MSG_CHECKING([whether we are using the IBM C compiler])
 CURL_CHECK_DEF([__IBMC__], [], [silent])
-if test "$curl_cv_have_def___IBMC__" = "yes"; then
+CURL_CHECK_DEF([__IBMCPP__], [], [silent])
+if test "$curl_cv_have_def___IBMC__" = "yes" ||
+  test "$curl_cv_have_def___IBMCPP__" = "yes"; then
   AC_MSG_RESULT([yes])
   dnl Ensure that compiler optimizations are always thread-safe.
   CFLAGS="$CFLAGS -qthreaded"
index ad25bde..09fcced 100644 (file)
@@ -251,7 +251,9 @@ esac
 
 AC_MSG_CHECKING([whether we are using the IBM C compiler])
 CURL_CHECK_DEF([__IBMC__], [], [silent])
-if test "$curl_cv_have_def___IBMC__" = "yes"; then
+CURL_CHECK_DEF([__IBMCPP__], [], [silent])
+if test "$curl_cv_have_def___IBMC__" = "yes" ||
+  test "$curl_cv_have_def___IBMCPP__" = "yes"; then
   AC_MSG_RESULT([yes])
   dnl Ensure that compiler optimizations are always thread-safe.
   CFLAGS="$CFLAGS -qthreaded"