#! /bin/sh # depdemo-chprefix.test - try installing from the ../depdemo subdirectory # with a prefix different from the prefix used at configure time. # 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 # Check that things are built. if test -f ../depdemo/depdemo; then : else echo "You must run depdemo-make.test before $0" 1>&2 exit 77 fi # Change to our build directory. cd ../depdemo || exit 1 echo "= Running $make install in ../depdemo" rm -rf _staging mkdir _staging || exit 1 if $make install prefix=`pwd`/_staging/$prefix; then : else rm -rf _staging exit 1 fi status=0 echo "= Checking for installed libraries" for l in libl1.la libl2.la libl3.la libl4.la; do if test -f _staging/$prefix/lib/$l; then : else echo "$0: cannot find library _staging/$prefix/lib/$l" 1>&2 status=1 fi done rm -rf _staging exit $status