remove a bunch of explicit uses of '/' as a directory separator; use Glib::build_file...
[ardour2.git] / libs / glibmm2 / autogen.sh
blob563cdad3a3fae20deed4d405294a47c7c89ea213
1 #! /bin/sh
3 # check all tools first
5 LIBTOOLIZE=libtoolize
7 if /usr/bin/which libtoolize >/dev/null 2>&1 ; then
8 :
9 else
10 if /usr/bin/which glibtoolize >/dev/null 2>&1 ; then
11 LIBTOOLIZE=glibtoolize
12 else
13 echo "You do not have libtool installed, which is very sadly required to build part of Ardour"
14 exit 1
17 if /usr/bin/which automake >/dev/null 2>&1 ; then
19 else
20 echo "You do not have automake installed, which is very sadly required to build part of Ardour"
21 exit 1
23 if /usr/bin/which autoconf >/dev/null 2>&1 ; then
25 else
26 echo "You do not have autoconf installed, which is very sadly required to build part of Ardour"
27 exit 1
31 srcdir=`dirname $0`
32 test -z "$srcdir" && srcdir=.
34 echo "Adding libtools."
35 $LIBTOOLIZE --automake --copy --force
37 echo "Building macros."
38 aclocal -I "$srcdir/scripts" $ACLOCAL_FLAGS
40 echo "Building makefiles."
41 automake --add-missing --copy
43 echo "Building configure."
44 autoconf
46 rm -f config.cache