]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jul 2006 22:38:47 +0000 (22:38 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jul 2006 22:38:47 +0000 (22:38 +0000)
compiler complains about it, even if things works after the
complaint.  Problem reported by Peter O'Gorman.

ChangeLog
lib/autoconf/libs.m4

index 8a2a96b8263167e86eef95d3fe63a7d9c7cca70f..e9109072020131ae518c102f475726c833f6d435 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
+       compiler complains about it, even if things works after the
+       complaint.  Problem reported by Peter O'Gorman.
+
        * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
        CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
        Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
index a3249bad30db5559530ef5e5799bcf1966ff811c..dd279bf5a51a1a1afc58785fd1bd3084a15a2940 100644 (file)
@@ -399,6 +399,8 @@ else
     # others require no space.  Words are not sufficient . . . .
     AC_MSG_CHECKING([whether -R must be followed by a space])
     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+    ac_xsave_[]_AC_LANG_ABBREV[]_werror_flag=$ac_[]_AC_LANG_ABBREV[]_werror_flag
+    ac_[]_AC_LANG_ABBREV[]_werror_flag=yes
     AC_LINK_IFELSE([AC_LANG_PROGRAM()],
       [AC_MSG_RESULT([no])
        X_LIBS="$X_LIBS -R$x_libraries"],
@@ -407,6 +409,7 @@ else
         [AC_MSG_RESULT([yes])
          X_LIBS="$X_LIBS -R $x_libraries"],
         [AC_MSG_RESULT([neither works])])])
+    ac_[]_AC_LANG_ABBREV[]_werror_flag=ac_xsave_[]_AC_LANG_ABBREV[]_werror_flag
     LIBS=$ac_xsave_LIBS
   fi