From: Amos Jeffries Date: Wed, 21 Jul 2010 07:22:55 +0000 (-0600) Subject: Author: Karl Benoit X-Git-Tag: SQUID_3_1_5_1~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=930b4fc3b0e894aaa0d2027e033b9f227b0429bb;p=thirdparty%2Fsquid.git Author: Karl Benoit Bug 2885: AIX support: c only c++ style comments test case --- diff --git a/configure.in b/configure.in index e5ee37ef31..11f60b3536 100644 --- a/configure.in +++ b/configure.in @@ -2917,6 +2917,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_"