s/c++ g++/g++ c++/.
* doc/autoconf.texi (Compilers and Preprocessors): Adjust.
+2000-05-26 Ossama Othman <ossama@ece.uci.edu>
+
+ * 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 <akim@epita.fr>
No library nor special privilege is needed to run `getloadavg'
# 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
@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
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
@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
# 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
# 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
# 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