forked from mlj/castget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·52 lines (41 loc) · 1.24 KB
/
autogen.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#! /bin/sh
srcdir=`dirname "$0"`
test -z $srcdir && srcdir=.
origdir=`pwd`
cd "$srcdir"
if test -z "$AUTOGEN_SUBDIR_MODE" && test -z "$*"
then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi
# Use the versioned executables if available.
aclocal=aclocal-1.7
automake=automake-1.7
$aclocal --version </dev/null >/dev/null 2>&1 || aclocal=aclocal
$automake --version </dev/null >/dev/null 2>&1 || automake=automake
rm -f config.guess config.sub depcomp install-sh missing mkinstalldirs
rm -f config.cache acconfig.h
rm -rf autom4te.cache
set_option=':'
test -n "${BASH_VERSION+set}" && set_option='set'
$set_option -x
$aclocal $ACLOCAL_FLAGS || exit 1
glib-gettextize --force --copy || exit 1
case `uname` in
Darwin*)
glibtoolize --force --copy || exit 1
;;
*)
libtoolize --force --copy || exit 1
;;
esac
autoheader || exit 1
$automake --foreign --add-missing --copy || exit 1
autoconf || exit 1
cd "$origdir" || exit 1
if test -z "$AUTOGEN_SUBDIR_MODE"
then
"$srcdir/configure" "$@" || exit 1
$set_option +x
fi
exit 0