libtool/tests/mdemo2-make.test
Greg Eisenhauer 40462e712c 2003-07-31 Greg Eisenhauer <eisen@cc.gatech.edu>
* ltmain.in: Provide absolute paths for dlopen and dlpreopen
	files in generating uninstalled libtool libraries.
	* mdemo2/main.c, mdemo2/Makefile.am, mdemo2/README,
	mdemo2/configure.ac, mdemo2/.cvsignore, mdemo/mlib.c,
	tests/mdemo2-conf.test, tests/mdemo2-exec.test,
	tests/mdemo2-make.test: New files for testing above feature.
	* configure.ac, bootstrap, tests/Makefile.am: Accomodate new
	test directory.
	* mdemo/Makefile.am: Build libmlib.la for mdemo2 tests.
2003-07-31 20:44:29 +00:00

32 lines
662 B
Bash
Executable File

#! /bin/sh
# mdemo2-make.test - try building in the ../mdemo2 subdirectory
# Test script header.
need_prefix=no
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
if test -f ../mdemo2/Makefile; then :
else
echo "You must run mdemo2-conf.test before running $0" 1>&2
exit 77
fi
if test -f ../mdemo/libmlib.la; then :
else
echo "You must run mdemo-make.test before running $0" 1>&2
exit 77
fi
# Change to our build directory.
cd ../mdemo2 || exit 1
# Do the actual build.
echo "Making in ../mdemo2"
$make || exit 1
exit 0