libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pass --build option to tests


From: Albert Chin
Subject: Pass --build option to tests
Date: Sun, 1 Jun 2003 14:56:40 -0500
User-agent: Mutt/1.4i

Pass in host system when testing. This makes it possible to test for
64-bit HP-UX 11.x where the default system type doesn't match the
triplet for the 64-bit type.

-- 
albert chin (address@hidden)

-- snip snip
2003-06-01  Albert Chin-A-Young  <address@hidden>

        * tests/defs, tests/demo-conf.test, tests/demo-nofast.test,
        tests/demo-nopic.test, tests/demo-pic.test,
        tests/demo-shared.test, tests/demo-static.test,
        tests/depdemo-conf.test, tests/depdemo-nofast.test,
        tests/depdemo-shared.test, tests/depdemo-static.test:
        Pass build system type to tests to support environment
        where default system type not equal to build system type
        (eg. 64-bit HP-UX).

--- tests/defs.orig     2003-05-29 09:52:45.255486000 -0500
+++ tests/defs  2003-05-29 09:53:13.743272000 -0500
@@ -38,6 +38,9 @@
 # Extract CC from the libtool configuration
 eval `$libtool --config | grep '^CC='`
 
+# Extract host from the libtool configuration
+eval `$libtool --config | grep '^host='`
+
 # 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
--- tests/demo-conf.test.orig   2003-05-29 09:53:24.345218000 -0500
+++ tests/demo-conf.test        2003-05-29 09:53:44.165085000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../demo (prefix=$prefix)"
-${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --build=$host || exit 1
 
 if grep '^build_old_libs=yes' libtool > /dev/null &&
    grep '^build_libtool_libs=yes' libtool > /dev/null; then :
--- tests/demo-nofast.test.orig 2003-03-28 23:06:46.000000000 -0600
+++ tests/demo-nofast.test      2003-05-29 09:59:44.845461000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../demo (prefix=$prefix)"
-${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --enable-fast-install=no || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --build=$host --enable-fast-install=no || exit 1
 
 if grep '^hardcode_action=relink' libtool > /dev/null; then
   rm -f Makefile && exit 77
--- tests/demo-nopic.test.orig  2003-03-28 23:06:46.000000000 -0600
+++ tests/demo-nopic.test       2003-05-29 09:59:44.856896000 -0500
@@ -25,6 +25,6 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../demo (prefix=$prefix) with --without-pic"
-${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --with-pic=no || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --build=$host --with-pic=no || exit 1
 
 exit 0
--- tests/demo-pic.test.orig    2003-03-28 23:06:46.000000000 -0600
+++ tests/demo-pic.test 2003-05-29 09:59:44.880630000 -0500
@@ -25,6 +25,6 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../demo (prefix=$prefix) with --with-pic"
-${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --with-pic=yes || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --build=$host --with-pic=yes || exit 1
 
 exit 0
--- tests/demo-shared.test.orig 2003-03-28 23:06:46.000000000 -0600
+++ tests/demo-shared.test      2003-05-31 12:07:50.726482000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../demo (prefix=$prefix) with --disable-static"
-${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --disable-static || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --build=$host --disable-static || exit 1
 
 if grep '^build_old_libs=no' libtool > /dev/null &&
    grep '^build_libtool_libs=yes' libtool > /dev/null; then :
--- tests/demo-static.test.orig 2003-03-28 23:06:46.000000000 -0600
+++ tests/demo-static.test      2003-05-29 09:59:44.910031000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../demo (prefix=$prefix) with --disable-shared"
-${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --disable-shared || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo 
--prefix=$prefix --build=$host --disable-shared || exit 1
 
 if grep '^build_old_libs=yes' libtool > /dev/null &&
    grep '^build_libtool_libs=no' libtool > /dev/null; then :
--- tests/depdemo-conf.test.orig        2003-03-28 23:06:46.000000000 -0600
+++ tests/depdemo-conf.test     2003-05-29 09:59:44.928715000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../depdemo (prefix=$prefix)"
-${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --build=$host || exit 1
 
 if grep '^build_old_libs=yes' libtool > /dev/null &&
    grep '^build_libtool_libs=yes' libtool > /dev/null; then :
--- tests/depdemo-nofast.test.orig      2003-03-28 23:06:46.000000000 -0600
+++ tests/depdemo-nofast.test   2003-05-29 09:59:44.952371000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../depdemo (prefix=$prefix)"
-${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --enable-fast-install=no || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --build=$host 
--enable-fast-install=no || exit 1
 
 if grep '^hardcode_action=relink' libtool > /dev/null; then
   rm -f Makefile && exit 77
--- tests/depdemo-shared.test.orig      2003-03-28 23:06:46.000000000 -0600
+++ tests/depdemo-shared.test   2003-05-29 09:59:44.970667000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../depdemo (prefix=$prefix) with --disable-static"
-${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --disable-static || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --build=$host --disable-static || 
exit 1
 
 if grep '^build_old_libs=no' libtool > /dev/null &&
    grep '^build_libtool_libs=yes' libtool > /dev/null; then :
--- tests/depdemo-static.test.orig      2003-03-28 23:06:46.000000000 -0600
+++ tests/depdemo-static.test   2003-05-29 09:59:44.988291000 -0500
@@ -25,7 +25,7 @@
 
 # Configure the demonstration.
 echo "= Configuring in ../depdemo (prefix=$prefix) with --disable-shared"
-${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --disable-shared || exit 1
+${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure 
--srcdir=$srcdir/../depdemo --prefix=$prefix --build=$host --disable-shared || 
exit 1
 
 if grep '^build_old_libs=yes' libtool > /dev/null &&
    grep '^build_libtool_libs=no' libtool > /dev/null; then :




reply via email to

[Prev in Thread] Current Thread [Next in Thread]