]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acfunctions.m4 (_AC_LIBOBJ_ALLOCA, AC_REPLACE_FUNCS): Simplify
authorAkim Demaille <akim@epita.fr>
Mon, 7 Aug 2000 12:33:17 +0000 (12:33 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 7 Aug 2000 12:33:17 +0000 (12:33 +0000)
${foo} into $foo.
* aclang.m4 (AC_LANG(C), AC_LANG(C++)): Move some internal
comments into the header comment.
* acgeneral.m4 (AC_TRY_CPP): Likewise.

ChangeLog
acfunctions.m4
acgeneral.m4
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/functions.m4
lib/autoconf/general.m4
lib/autoconf/lang.m4

index 30b3d79b19f8e9ec471a653e660c6c3ba6b3fd79..885d01d5d27398810f590f61351e1067c622a85d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-08-07  Akim Demaille  <akim@epita.fr>
+
+       * acfunctions.m4 (_AC_LIBOBJ_ALLOCA, AC_REPLACE_FUNCS): Simplify
+       ${foo} into $foo.
+       * aclang.m4 (AC_LANG(C), AC_LANG(C++)): Move some internal
+       comments into the header comment.
+       * acgeneral.m4 (AC_TRY_CPP): Likewise.
+
 2000-08-07  Akim Demaille  <akim@epita.fr>
 
        * tests/tools.m4 (undefined macros): New test.
index 7b7b93299c2b9bec168c9fb055ece5736c5e5d1c..a67a1b338e2a5216edd281be4332ab453ff13044 100644 (file)
@@ -94,7 +94,7 @@ done
 # -----------------------------
 AC_DEFUN([AC_REPLACE_FUNCS],
 [AC_FOREACH([AC_Func], [$1], [AC_LIBOBJ_DECL(AC_Func)])dnl
-AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ(${ac_func})])
+AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ($ac_func)])
 ])
 
 
@@ -137,7 +137,7 @@ define([_AC_LIBOBJ_ALLOCA],
 # contain a buggy version.  If you still want to use their alloca,
 # use ar to extract alloca.o from them instead of compiling alloca.c.
 AC_LIBOBJ_DECL(alloca)
-AC_SUBST(ALLOCA, alloca.${ac_objext})dnl
+AC_SUBST(ALLOCA, alloca.$ac_objext)dnl
 AC_DEFINE(C_ALLOCA, 1, [Define if using `alloca.c'.])
 
 AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,
index ae63f2dcfba57b8152d7a0d701d960929fa8912e..b703d65ee78d352aee342720a90b51250aff81d3 100644 (file)
@@ -3238,17 +3238,18 @@ popdef([AC_Lib_Name])dnl
 
 # AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 # ---------------------------------------------------------
-# INCLUDES are not defaulted.
-AC_DEFUN([AC_TRY_CPP],
-[AC_REQUIRE_CPP()dnl
-AC_LANG_CONFTEST([AC_LANG_SOURCE([[$1]])])
 # Capture the stderr of cpp.  eval is necessary to expand ac_cpp.  We
 # used to copy stderr to stdout and capture it in a variable, but that
 # breaks under sh -x, which writes compile commands starting with ` +'
 # to stderr in eval and subshells.
+#
+# INCLUDES are not defaulted.
+AC_DEFUN([AC_TRY_CPP],
+[AC_REQUIRE_CPP()dnl
+AC_LANG_CONFTEST([AC_LANG_SOURCE([[$1]])])
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 AC_TRY_EVAL(ac_try)
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.$ac_ext\$"`
 if test -z "$ac_err"; then
   m4_default([$2], :)
 else
@@ -3380,7 +3381,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])
 AC_DEFUN([AC_RUN_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) &&
-   test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
+   test -s conftest$ac_exeext && (./conftest; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
index 980f628d2d950ea8ee723ff499913bafc13a2652..6435eefe690c8b29f69eadebeddb85119913d18e 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -163,9 +163,9 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
 
 # AC_LANG(C)
 # ----------
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C)],
 [ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
@@ -186,9 +186,9 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 
 # AC_LANG(C++)
 # ------------
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C++)],
 [ac_ext=cc
-# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CXX-g++} -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
index 980f628d2d950ea8ee723ff499913bafc13a2652..6435eefe690c8b29f69eadebeddb85119913d18e 100644 (file)
@@ -163,9 +163,9 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
 
 # AC_LANG(C)
 # ----------
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C)],
 [ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
@@ -186,9 +186,9 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 
 # AC_LANG(C++)
 # ------------
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C++)],
 [ac_ext=cc
-# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CXX-g++} -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
index 980f628d2d950ea8ee723ff499913bafc13a2652..6435eefe690c8b29f69eadebeddb85119913d18e 100644 (file)
@@ -163,9 +163,9 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
 
 # AC_LANG(C)
 # ----------
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C)],
 [ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
@@ -186,9 +186,9 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 
 # AC_LANG(C++)
 # ------------
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C++)],
 [ac_ext=cc
-# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CXX-g++} -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
index 7b7b93299c2b9bec168c9fb055ece5736c5e5d1c..a67a1b338e2a5216edd281be4332ab453ff13044 100644 (file)
@@ -94,7 +94,7 @@ done
 # -----------------------------
 AC_DEFUN([AC_REPLACE_FUNCS],
 [AC_FOREACH([AC_Func], [$1], [AC_LIBOBJ_DECL(AC_Func)])dnl
-AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ(${ac_func})])
+AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ($ac_func)])
 ])
 
 
@@ -137,7 +137,7 @@ define([_AC_LIBOBJ_ALLOCA],
 # contain a buggy version.  If you still want to use their alloca,
 # use ar to extract alloca.o from them instead of compiling alloca.c.
 AC_LIBOBJ_DECL(alloca)
-AC_SUBST(ALLOCA, alloca.${ac_objext})dnl
+AC_SUBST(ALLOCA, alloca.$ac_objext)dnl
 AC_DEFINE(C_ALLOCA, 1, [Define if using `alloca.c'.])
 
 AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,
index ae63f2dcfba57b8152d7a0d701d960929fa8912e..b703d65ee78d352aee342720a90b51250aff81d3 100644 (file)
@@ -3238,17 +3238,18 @@ popdef([AC_Lib_Name])dnl
 
 # AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 # ---------------------------------------------------------
-# INCLUDES are not defaulted.
-AC_DEFUN([AC_TRY_CPP],
-[AC_REQUIRE_CPP()dnl
-AC_LANG_CONFTEST([AC_LANG_SOURCE([[$1]])])
 # Capture the stderr of cpp.  eval is necessary to expand ac_cpp.  We
 # used to copy stderr to stdout and capture it in a variable, but that
 # breaks under sh -x, which writes compile commands starting with ` +'
 # to stderr in eval and subshells.
+#
+# INCLUDES are not defaulted.
+AC_DEFUN([AC_TRY_CPP],
+[AC_REQUIRE_CPP()dnl
+AC_LANG_CONFTEST([AC_LANG_SOURCE([[$1]])])
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 AC_TRY_EVAL(ac_try)
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.$ac_ext\$"`
 if test -z "$ac_err"; then
   m4_default([$2], :)
 else
@@ -3380,7 +3381,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])
 AC_DEFUN([AC_RUN_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) &&
-   test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
+   test -s conftest$ac_exeext && (./conftest; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
index 980f628d2d950ea8ee723ff499913bafc13a2652..6435eefe690c8b29f69eadebeddb85119913d18e 100644 (file)
@@ -163,9 +163,9 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
 
 # AC_LANG(C)
 # ----------
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C)],
 [ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
@@ -186,9 +186,9 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 
 # AC_LANG(C++)
 # ------------
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C++)],
 [ac_ext=cc
-# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CXX-g++} -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'