* aclang.m4 (_AC_PROG_CXX_GNU, _AC_PROG_CC_GNU, _AC_PROG_F77_GNU):

Use grep instead of egrep, don't redirect stderr.
This commit is contained in:
Akim Demaille 2000-08-01 10:03:41 +00:00
parent f6065212ac
commit 17bf2a2a33
6 changed files with 22 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2000-08-01 Akim Demaille <akim@epita.fr>
* aclang.m4 (_AC_PROG_CXX_GNU, _AC_PROG_CC_GNU, _AC_PROG_F77_GNU):
Use grep instead of egrep, don't redirect stderr.
2000-08-01 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_INIT_NOTICE): Adjust so that there are no

View File

@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
yes
#endif
_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_g77=yes
else
ac_cv_prog_g77=no

View File

@ -3985,15 +3985,16 @@ AC_PROG_CXX(cl KCC CC cxx cc++ xlC aCC c++ g++ egcs gcc)
If using the @sc{gnu} C++ compiler, set shell variable @code{GXX} to
@samp{yes}. If output variable @code{CXXFLAGS} was not already set, set
it to @option{-g -O2} for the @sc{gnu} C++ compiler (@option{-O2} on systems
where G++ does not accept @option{-g}), or @option{-g} for other compilers.
it to @option{-g -O2} for the @sc{gnu} C++ compiler (@option{-O2} on
systems where G++ does not accept @option{-g}), or @option{-g} for other
compilers.
@end defmac
@defmac AC_PROG_CXXCPP
@maindex PROG_CXXCPP
@ovindex CXXCPP
Set output variable @code{CXXCPP} to a command that runs the
C++ preprocessor. If @samp{$CXX -E} doesn't work, it uses @file{/lib/cpp}.
Set output variable @code{CXXCPP} to a command that runs the C++
preprocessor. If @samp{$CXX -E} doesn't work, it uses @file{/lib/cpp}.
It is only portable to run @code{CXXCPP} on files with a @file{.c},
@file{.C}, or @file{.cc} extension.

View File

@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
yes
#endif
_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_g77=yes
else
ac_cv_prog_g77=no

View File

@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
yes
#endif
_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_g77=yes
else
ac_cv_prog_g77=no

View File

@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
yes;
#endif
_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
yes
#endif
_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
ac_cv_prog_g77=yes
else
ac_cv_prog_g77=no