{Changes to enable non-local build}

Add autoconf test for subdir Tools.
Rewrite autoconf tests to use subshell.

Don't run ltconfig from here; use Tools/configure for that.

Add Tools to `AC_CONFIG_SUBDIRS' call.

Create subdir Source if not present.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-02-26 04:58:19 +00:00
commit 110ec0e2d9

View file

@ -470,23 +470,26 @@ AC_SUBST(PERL5EXT)
AC_SUBST(ROOT_DIR)ROOT_DIR=`pwd`
if test ! -r Source/DOH/configure; then
cd Source/DOH
autoconf
cd ../..
# FIXME: Calling autoconf manually like this is wrong. --ttn, 2000/02/25
if test ! -r $srcdir/Source/DOH/configure; then
(cd $srcdir/Source/DOH ; autoconf)
fi
if test -d Source/SWILL/SWILL; then
if test ! -r Source/SWILL/configure; then
cd Source/SWILL
autoconf
cd ../..
if test -d $srcdir/Source/SWILL/SWILL; then
if test ! -r $srcdir/Source/SWILL/configure; then
(cd $srcdir/Source/SWILL ; autoconf)
fi
fi
cd Tools; ./ltconfig --enable-dlopen ltmain.sh; cd ..
if test ! -r $srcdir/Tools/configure ; then
(cd $srcdir/Tools ; autoconf)
fi
AC_CONFIG_SUBDIRS(Source/SWILL Source/DOH)
AC_CONFIG_SUBDIRS(Source/SWILL Source/DOH Tools)
# NOTE: The following ref to `Source' should NOT be prefixed w/ `$srcdir/'.
# We can remove it if `Source' ever has a generated file but not before.
test -d Source || mkdir Source
AC_OUTPUT(
Examples/Makefile