]> granicus.if.org Git - curl/commitdiff
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 d90d70b0c5f941d4f25a841d7ad002436462b5b9..12b61514fe56893d177cc2ccbed2e58b699e8467 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 ad25bde6e10c467772335c9ffdb4f03a258ce749..09fccedfea9373a8fade2d451d9e88ab6c56c947 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"