]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Karl Benoit <karl.isatwork@gmail.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 15 Jul 2010 01:35:14 +0000 (19:35 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 15 Jul 2010 01:35:14 +0000 (19:35 -0600)
Bug 2885: AIX support: c only c++ style comments test case

configure.in

index f6a83e410d22de62e687f7e308d41e13ea000610..f7da7fa06fc3cb82d9f7e3995a0cb437ec316699 100644 (file)
@@ -2924,6 +2924,17 @@ dnl Please change your configure script.  AIX doesn't need -lbsd.
        *-ibm-aix*)
                AC_MSG_NOTICE([Removing -lbsd for AIX...])
                LIBS=`echo $LIBS | sed -e s/-lbsd//`
+               AC_MSG_CHECKING(for aix xlc c++ comments support)
+               AC_LANG_PUSH([C])
+               AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[//c++ cmt]])],[AIX_CPPCMT_SUPPORT=yes],[AIX_CPPCMT_SUPPORT=no])      
+               AC_MSG_RESULT($AIX_CPPCMT_SUPPORT)
+               if test -n `echo $CC | grep cc` 2>/dev/null && \
+                   test -n `cc -qversion 2>/dev/null | grep "IBM XL C/C++ for AIX"` 2>/dev/null;then
+                       if test "$AIX_CPPCMT_SUPPORT"="no";then
+                               SQUID_CFLAGS="-qcpluscmt $SQUID_CFLAGS"
+                       fi
+               fi
+               AC_LANG_POP([C])
                ;;
        *m88k*)
                SQUID_CFLAGS="$SQUID_CFLAGS -D_SQUID_MOTOROLA_"