1997-04-02 03:18:28 +08:00
|
|
|
#! /bin/sh
|
|
|
|
# demo-conf.test - try configuring the ../demo subdirectory
|
|
|
|
|
|
|
|
# Test script header.
|
|
|
|
need_prefix=yes
|
|
|
|
if test -z "$srcdir"; then
|
1997-04-02 03:19:30 +08:00
|
|
|
srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
|
|
|
|
test "$srcdir" = "$0" && srcdir=.
|
1997-04-02 03:18:28 +08:00
|
|
|
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 ../demo || mkdir ../demo
|
|
|
|
|
|
|
|
# Change to our build directory.
|
|
|
|
cd ../demo || exit 1
|
|
|
|
|
|
|
|
# Possibly clean up the distribution.
|
1997-06-20 04:37:00 +08:00
|
|
|
if test -f Makefile; then
|
1997-04-02 03:21:43 +08:00
|
|
|
echo "= Running $make distclean in ../demo"
|
1997-06-20 04:37:00 +08:00
|
|
|
$make distclean
|
1997-04-02 03:18:28 +08:00
|
|
|
fi
|
1997-06-20 04:37:00 +08:00
|
|
|
rm -f config.cache
|
1997-04-02 03:18:28 +08:00
|
|
|
|
|
|
|
# Configure the demonstration.
|
|
|
|
echo "= Configuring in ../demo (prefix=$prefix)"
|
1997-06-20 12:20:39 +08:00
|
|
|
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo --prefix=$prefix || exit 1
|
1997-04-02 03:18:28 +08:00
|
|
|
|
|
|
|
exit 0
|