spice/autogen.sh
Uri Lublin 236b692a78 spice: autogen.sh: call autogen.sh.shared separately from subdirs (subdir config)
Move original autogen.sh to autogen.sh.shared
Create links in each subdir (subdir/autogen.sh --> ../autogem.sh.shared)
Make new autogen.sh which simply
  1. cd subdir && ./autogen.sh
  2. run autogen.sh.shared for the current dir (spice)
Update all Makefile.am accordingly (dist-hook).

Signed-off-by: Yaniv Kamay <ykamay@rehdat.com>
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:45 +02:00

32 lines
657 B
Bash
Executable File

#!/bin/sh
set -e # exit on errors
ARGV0=$0
# Allow invocation from a separate build directory; in that case, we change
# to the source directory to run the auto*, then change back before running configure
srcdir=`dirname $ARGV0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
subdirs=$(grep '^AC_CONFIG_SUBDIRS' configure.ac | \
sed 's/AC_CONFIG_SUBDIRS(\[\(.*\)\]) *$/\1/')
echo "subdirs are $subdirs"
for d in $subdirs; do
echo "START configuring $d"
cd $d
./autogen.sh
cd ..
echo "FINISH configuring $d"
done
echo "configuring SPICE top dir"
./autogen.sh.shared
cd $ORIGDIR || exit $?
rm -f config.cache