On Sun, 21 Oct 2007, Ralf Wildenhues wrote:

This sort of problem may be avoided by setting CONFIG_SITE to point at some
empty file while the tests are run.  This seems to be common for tests and
I believe that it is already done for the 'old' tests.  Long ago,
CONFIG_SITE was set to /dev/null but this caused issues for a few targets.

Please try this patch, thanks.

This patch had no positive influence at all on the outcome of the tests. Results were the same. Perhaps the test suite inherits configuration options from the top level configure?

Bob


Cheers,
Ralf

2007-10-21  Ralf Wildenhues  <[EMAIL PROTECTED]>

        * tests/defs.m4sh (CONFIG_SITE): Set to `/nonexistent', to
        avoid config.site files.
        * tests/testsuite.at (CONFIG_SITE): Be sure to reexport it.
        Report by Bob Friesenhahn.

Index: tests/defs.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/defs.m4sh,v
retrieving revision 1.18
diff -u -r1.18 defs.m4sh
--- tests/defs.m4sh     25 Mar 2007 12:12:43 -0000      1.18
+++ tests/defs.m4sh     21 Oct 2007 16:15:44 -0000
@@ -2,7 +2,7 @@
m4_divert_push([SCRIPT])# @configure_input@
# defs -- Defines for Libtool testing environment.
#
-#   Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+#   Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
#   Written by Gord Matzigkeit, 1996
#   Rewritten by Gary V. Vaughan, 2003
#
@@ -42,6 +42,7 @@
# The DJGPP port of autoconf requires config.site, to work correctly.
if test -z "$DJGPP"; then
    CONFIG_SITE=/nonexistent
+    export CONFIG_SITE
fi

# How verbose should we be?  Default is no test output.
Index: tests/testsuite.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/testsuite.at,v
retrieving revision 1.50
diff -u -r1.50 testsuite.at
--- tests/testsuite.at  25 Mar 2007 12:12:43 -0000      1.50
+++ tests/testsuite.at  21 Oct 2007 16:15:44 -0000
@@ -33,6 +33,14 @@
  if eval \$$tool --version >/dev/null 2>&1; then :; else eval $tool=no; fi
done
export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF
+
+# Disable usage of config.site for autoconf, unless DJGPP is present.
+# The DJGPP port of autoconf requires config.site, to work correctly.
+if test -z "$DJGPP"; then
+    CONFIG_SITE=/nonexistent
+    export CONFIG_SITE
+fi
+
eval `$LIBTOOL --config | grep '^EGREP='`
eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|ECHO)='`
configure_options=


======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



Reply via email to