This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

autoconf 2.50 fixes - gcc subdirectory only


I've gotten tangled up in all these macros and need to flush something
out.  This patch is the fixes for just the gcc subdirectory, entirely
quoting problems, should be uncontroversial.  The script generated by
both 2.13 and 2.50 has been tested on i686-linux.  OK to install?
(Until further notice I will continue to use 2.13 for checked-in
scripts.)

-- 
zw      ...It's not easy for cognitive scientists to get grants if they
        are working on questions of any theoretical interest.  (To ensure
        this is a main function of the institution of peer review.)
        	-- Jerry Fodor, _The Mind Doesn't Work That Way_

	* aclocal.m4: Quote final argument of patsubst.  Use
	3-argument form of AC_DEFINE.  Restore quotes to [] while
	using AC_FD_CC.
	* configure.in: Remove unnecessary changequote calls.
	* configure, config.in: Regenerate.

===================================================================
Index: aclocal.m4
--- aclocal.m4	2001/05/25 19:30:10	1.48
+++ aclocal.m4	2001/05/26 01:34:05
@@ -70,8 +70,8 @@ done
 dnl Automatically generate config.h entries via autoheader.
 if test x = y ; then
   patsubst(translit([$1], [a-z], [A-Z]), [\w+],
-    AC_DEFINE([HAVE_DECL_\&], 1,
-      [Define to 1 if we found this declaration otherwise define to 0.]))dnl
+    [AC_DEFINE([HAVE_DECL_\&], 1,
+      [Define to 1 if we found this declaration otherwise define to 0.])])dnl
 fi
 ])
 
@@ -206,7 +206,8 @@ switch (0) case 0: case (sizeof(long dou
 gcc_cv_c_long_double=yes, gcc_cv_c_long_double=no)
 fi])
 if test $gcc_cv_c_long_double = yes; then
-  AC_DEFINE(HAVE_LONG_DOUBLE)
+  AC_DEFINE(HAVE_LONG_DOUBLE, 1, 
+      [Define if your compiler supports the \`long double' type.])
 fi
 ])
 
@@ -1135,7 +1136,9 @@ if test -n "[$]$1"; then
 [changequote(<<,>>)dnl
   ac_prog_version=`<<$>>$1 $3 2>&1 |
                    sed -n 's/^.*patsubst(<<$4>>,/,\/).*$/\1/p'`
+changequote([,])dnl
   echo "configure:__oline__: version of $2 is $ac_prog_version" >&AC_FD_CC
+changequote(<<,>>)dnl
   case $ac_prog_version in
     '')     gcc_cv_prog_$2_modern=no;;
     <<$5>>)
===================================================================
Index: configure.in
--- configure.in	2001/05/25 19:30:11	1.525
+++ configure.in	2001/05/26 01:34:06
@@ -743,7 +743,6 @@ echo "Using \`$srcdir/config/$md_file' a
 # If any of the xm_file variables contain nonexistent files, warn
 # about them and drop them.
 
-changequote(,)dnl
 bx=
 for x in $build_xm_file; do
   if    test -f $srcdir/config/$x
@@ -770,7 +769,6 @@ for x in $xm_file; do
   fi
 done
 xm_file="$tx"
-changequote([,])dnl
 
 count=a
 for f in $tm_file; do


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]