mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
b9f8f1036e
* tests/defs: Set CONFIG_SITE to /nonexistent, except on DJGPP, which requires its config.site, to work correctly. * tests/cdemo-conf.test, tests/cdemo-shared.test, tests/cdemo-static.test, 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, tests/f77demo-conf.test, tests/f77demo-shared.test, tests/f77demo-static.test, tests/mdemo-conf.test, tests/mdemo-shared.test, tests/mdemo-static.test, tests/pdemo-conf.test, tests/tagdemo-conf.test, tests/tagdemo-shared.test, tests/tagdemo-static.test: Don't set CONFIG_SITE, now that tests/defs sets it. * tests/cdemo-exec.test, tests/demo-exec.test, tests/demo-inst.test, tests/depdemo-exec.test, tests/depdemo-inst.test, tests/f77demo-exec.test, tests/mdemo-exec.test, tests/mdemo-inst.test, tests/pdemo-exec.test, tests/pdemo-inst.test, tests/tagdemo-exec.test: When checking for the existence of executables, use the executable file extension from $EXEEXT.
36 lines
985 B
Bash
Executable File
36 lines
985 B
Bash
Executable File
#! /bin/sh
|
|
# mdemo-conf.test - try configuring the ../mdemo subdirectory
|
|
|
|
# Test script header.
|
|
need_prefix=yes
|
|
if test -z "$srcdir"; then
|
|
srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
|
|
test "$srcdir" = "$0" && srcdir=.
|
|
test "${VERBOSE+set}" != "set" && VERBOSE=yes
|
|
fi
|
|
. $srcdir/defs || exit 1
|
|
|
|
# Maybe we have a VPATH build, in which case, create a new subdir.
|
|
test -d ../mdemo || mkdir ../mdemo
|
|
|
|
# Change to our build directory.
|
|
cd ../mdemo || exit 1
|
|
|
|
# Possibly clean up the distribution.
|
|
if test -f Makefile; then
|
|
echo "= Running $make distclean in ../mdemo"
|
|
$make distclean
|
|
fi
|
|
rm -f config.cache
|
|
|
|
# Configure the demonstration.
|
|
echo "= Configuring in ../mdemo (prefix=$prefix) with --disable-shared"
|
|
${CONFIG_SHELL-/bin/sh} $srcdir/../mdemo/configure --srcdir=$srcdir/../mdemo --prefix=$prefix --disable-shared || exit 1
|
|
|
|
if grep '^build_old_libs=yes' libtool > /dev/null &&
|
|
grep '^build_libtool_libs=no' libtool > /dev/null; then :
|
|
else rm -f Makefile && exit 77
|
|
fi
|
|
|
|
exit 0
|