From: Yang Tse Date: Tue, 1 Jul 2008 10:29:25 +0000 (+0000) Subject: IBM C/C++ compiler predefined macro check X-Git-Tag: curl-7_19_0~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513c22df3bbc319104901c32a71c4d4487628839;p=thirdparty%2Fcurl.git IBM C/C++ compiler predefined macro check --- diff --git a/ares/configure.ac b/ares/configure.ac index d90d70b0c5..12b61514fe 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -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" diff --git a/configure.ac b/configure.ac index ad25bde6e1..09fccedfea 100644 --- a/configure.ac +++ b/configure.ac @@ -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"