]> git.sur5r.net Git - openldap/blobdiff - configure.in
Suck in all changes made on HEAD branch since branching.
[openldap] / configure.in
index ba4020e4adefcfbca2416973770a4e9299e8fd28..8aab05ff84a988f271ee47cc6e09050baa2f8e4b 100644 (file)
@@ -334,19 +334,22 @@ case "$target" in
 ;;
 esac
 
-if test -z "${CC}" -a $ol_aix_threads = yes ; then
-       AC_CHECK_PROGS(CC,cc_r xlc_r cc)
-
-       if test "$CC" = cc ; then
-               dnl no CC! don't allow --with-threads
-               if test $ol_with_threads != auto ; then
-                       AC_MSG_ERROR([--with-threads requires cc_r (or other suitable compiler) on AIX])
-               else
-                       AC_MSG_WARN([disabling threads, no cc_r on AIX])
-               fi
-               ol_with_threads=no
+if test $ol_aix_threads = yes ; then
+       if test -z "${CC}" ; then
+               AC_CHECK_PROGS(CC,cc_r xlc_r cc)
+
+               if test "$CC" = cc ; then
+                       dnl no CC! don't allow --with-threads
+                       if test $ol_with_threads != auto ; then
+                               AC_MSG_ERROR([--with-threads requires cc_r (or other suitable compiler) on AIX])
+                       else
+                               AC_MSG_WARN([disabling threads, no cc_r on AIX])
+                       fi
+                       ol_with_threads=no
+               fi
+       fi
 
-       elif test "$CC" ; then
+       if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
                ol_with_threads=posix
                ol_cv_pthread_create=yes
        fi