]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix response file test for unreliable exit status of IRIX ar.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 28 Aug 2010 10:22:36 +0000 (12:22 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 28 Aug 2010 10:22:36 +0000 (12:22 +0200)
* libltdl/m4/libtool.m4 (_LT_PROG_AR): IRIX ar will not fail
over a command-line argument specifying a nonexistent file (such
as `@FILE'), so ensure failure with a reponse file containing
a nonexistent file.  Also, use lt_* variable prefix for
temporary variables.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index 8e07775e5e6065d7f04eb9573914b08f829bccd0..4b77602ad02c8d18dfe680b96c18a89f7ee4f1f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Fix response file test for unreliable exit status of IRIX ar.
+       * libltdl/m4/libtool.m4 (_LT_PROG_AR): IRIX ar will not fail
+       over a command-line argument specifying a nonexistent file (such
+       as `@FILE'), so ensure failure with a reponse file containing
+       a nonexistent file.  Also, use lt_* variable prefix for
+       temporary variables.
+
        Fix AC_LANG_PROGRAM warnings from git Autoconf.
        * libltdl/m4/libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Fix
        underquoted AC_LANG_PROGRAM call.
index efb20de29567bac6cc4d3e1d307860f31ebbc4c0..305e2d84c70feb7c8d907d8fa89d1297f35a0a1e 100644 (file)
@@ -1359,10 +1359,15 @@ AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   [lt_cv_ar_at_file=no
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
      [echo conftest.$ac_objext > conftest.lst
-      am_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst'
-      AC_TRY_EVAL([am_ar_try])
+      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst'
+      AC_TRY_EVAL([lt_ar_try])
       if test "$ac_status" -eq 0; then
-        lt_cv_ar_at_file=@
+       # Ensure the archiver fails upon bogus file names.
+       rm -f conftest.$ac_objext libconftest.a
+       AC_TRY_EVAL([lt_ar_try])
+       if test "$ac_status" -ne 0; then
+          lt_cv_ar_at_file=@
+        fi
       fi
       rm -f conftest.* libconftest.a
      ])