summaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: aed444046e1ea8def24740b1f64e93ee8d00daed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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