-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathautogen.sh
executable file
·41 lines (35 loc) · 1.06 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
#!/bin/sh
echo "*** Recreating libtool files"
if [ "$LIBTOOLIZE" = "" ] && [ "`uname`" = "Darwin" ]; then
if command -v "glibtoolize" > /dev/null; then
LIBTOOLIZE=glibtoolize
$LIBTOOLIZE -f -c;
elif command -v "libtoolize" > /dev/null; then
LIBTOOLIZE=libtoolize
$LIBTOOLIZE -f -c;
else
echo "DIST: line $LINENO: command libtoolize or glibtoolize not found"
exit 1
fi
fi
if [ "$LIBTOOLIZE" = "" ] && [ "`uname`" = "Linux" ]; then
if command -v "libtoolize" > /dev/null; then
LIBTOOLIZE=libtoolize
$LIBTOOLIZE -f -c;
else
echo "DIST: line $LINENO: command libtoolize not found"
exit 1
fi
fi
echo "*** Recreating aclocal.m4"
ACLOCAL="$AUTODIR""aclocal"
echo "$ACLOCAL"
$ACLOCAL -I .;
echo "*** Recreating configure"
AUTOCONF="$AUTODIR""autoconf"
AUTOHEAD="$AUTODIR""autoheader"
$AUTOHEAD ;
$AUTOCONF;
echo "*** Recreating the Makefile.in files"
AUTOMAKE="$AUTODIR""automake"
$AUTOMAKE --foreign -a -c;