From: Akim Demaille Date: Fri, 26 May 2000 09:42:13 +0000 (+0000) Subject: * aclang.m4 (AC_PROG_CXX): Look for aCC KCC RCC xlC_r xlC. X-Git-Tag: autoconf-2.50~861 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bfdd156e9b2591f9dadde97b6ee520dbc14167f;p=thirdparty%2Fautoconf.git * aclang.m4 (AC_PROG_CXX): Look for aCC KCC RCC xlC_r xlC. s/c++ g++/g++ c++/. * doc/autoconf.texi (Compilers and Preprocessors): Adjust. --- diff --git a/ChangeLog b/ChangeLog index abdb39ae5..5a87d3870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-05-26 Ossama Othman + + * aclang.m4 (AC_PROG_CXX): Look for aCC KCC RCC xlC_r xlC. + s/c++ g++/g++ c++/. + * doc/autoconf.texi (Compilers and Preprocessors): Adjust. + 2000-05-26 Akim Demaille No library nor special privilege is needed to run `getloadavg' diff --git a/aclang.m4 b/aclang.m4 index fb4703b7f..de463ecc0 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -678,10 +678,18 @@ AC_SUBST(CXXCPP)dnl # for (if not specified, a default list is used). This just gives the # user an opportunity to specify an alternative search list for the C++ # compiler. +# aCC HP-UX C++ compiler +# KCC KAI C++ compiler +# RCC Rational C++ +# xlC_r AIX C Set++ (with support for reentrant code) +# xlC AIX C Set++ AC_DEFUN([AC_PROG_CXX], [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl AC_LANG_PUSH(C++) -AC_CHECK_TOOLS(CXX, $CCC m4_default([$1], [c++ g++ gpp CC cxx cc++ cl]), g++) +AC_CHECK_TOOLS(CXX, + $CCC m4_default([$1], + [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]), + g++) _AC_LANG_COMPILER_WORKS _AC_PROG_CXX_GNU diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 9cbf82f8b..4ad30e08d 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -3618,8 +3618,9 @@ compiling. @ovindex CC @ovindex CFLAGS Determine a C compiler to use. If @code{CC} is not already set in the -environment, check for @code{gcc}, and use @code{cc} if that's not found. -Set output variable @code{CC} to the name of the compiler found. +environment, check for @code{gcc} and @code{cc}, then for other C +compilers. Set output variable @code{CC} to the name of the compiler +found. This macro may, however, be invoked with an optional first argument which, if specified, must be a space separated list of C compilers to @@ -3689,10 +3690,9 @@ Determine a C++ compiler to use. Check if the environment variable variable @code{CXX} to its value. Otherwise, if the macro is invoked without an argument, then search for -a C++ compiler under the likely names @code{c++}, @code{g++}, -@code{gcc}, @code{CC}, @code{cxx}, @code{cc++} and @code{cl} (in that -order). If none of those checks succeed, then as a last resort set -@code{CXX} to @code{gcc}. +a C++ compiler under the likely names (first @code{g++} and @code{c++} +then other names). If none of those checks succeed, then as a last +resort set @code{CXX} to @code{gcc}. This macro may, however, be invoked with an optional first argument which, if specified, must be a space separated list of C++ compilers to @@ -3730,9 +3730,8 @@ calling @code{AC_TRY_CPP}, @code{AC_CHECK_HEADER}, @ovindex F77 @ovindex FFLAGS Determine a Fortran 77 compiler to use. If @code{F77} is not already -set in the environment, then check for @code{g77}, @code{f77}, -@code{xlf}, @code{cf77}, @code{fl32}, @code{fort77}, @code{f90}, -@code{xlf90} and @code{f2c}, in that order. Set the output variable +set in the environment, then check for @code{g77} and @code{f77}, and +then some other names, and finally @code{f2c}. Set the output variable @code{F77} to the name of the compiler found. This macro may, however, be invoked with an optional first argument diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index fb4703b7f..de463ecc0 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -678,10 +678,18 @@ AC_SUBST(CXXCPP)dnl # for (if not specified, a default list is used). This just gives the # user an opportunity to specify an alternative search list for the C++ # compiler. +# aCC HP-UX C++ compiler +# KCC KAI C++ compiler +# RCC Rational C++ +# xlC_r AIX C Set++ (with support for reentrant code) +# xlC AIX C Set++ AC_DEFUN([AC_PROG_CXX], [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl AC_LANG_PUSH(C++) -AC_CHECK_TOOLS(CXX, $CCC m4_default([$1], [c++ g++ gpp CC cxx cc++ cl]), g++) +AC_CHECK_TOOLS(CXX, + $CCC m4_default([$1], + [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]), + g++) _AC_LANG_COMPILER_WORKS _AC_PROG_CXX_GNU diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index fb4703b7f..de463ecc0 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -678,10 +678,18 @@ AC_SUBST(CXXCPP)dnl # for (if not specified, a default list is used). This just gives the # user an opportunity to specify an alternative search list for the C++ # compiler. +# aCC HP-UX C++ compiler +# KCC KAI C++ compiler +# RCC Rational C++ +# xlC_r AIX C Set++ (with support for reentrant code) +# xlC AIX C Set++ AC_DEFUN([AC_PROG_CXX], [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl AC_LANG_PUSH(C++) -AC_CHECK_TOOLS(CXX, $CCC m4_default([$1], [c++ g++ gpp CC cxx cc++ cl]), g++) +AC_CHECK_TOOLS(CXX, + $CCC m4_default([$1], + [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]), + g++) _AC_LANG_COMPILER_WORKS _AC_PROG_CXX_GNU diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index fb4703b7f..de463ecc0 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -678,10 +678,18 @@ AC_SUBST(CXXCPP)dnl # for (if not specified, a default list is used). This just gives the # user an opportunity to specify an alternative search list for the C++ # compiler. +# aCC HP-UX C++ compiler +# KCC KAI C++ compiler +# RCC Rational C++ +# xlC_r AIX C Set++ (with support for reentrant code) +# xlC AIX C Set++ AC_DEFUN([AC_PROG_CXX], [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl AC_LANG_PUSH(C++) -AC_CHECK_TOOLS(CXX, $CCC m4_default([$1], [c++ g++ gpp CC cxx cc++ cl]), g++) +AC_CHECK_TOOLS(CXX, + $CCC m4_default([$1], + [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]), + g++) _AC_LANG_COMPILER_WORKS _AC_PROG_CXX_GNU