-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·56 lines (48 loc) · 1.17 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
52
53
54
55
56
#!/bin/sh
ECHO_C=
ECHO_N=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ;;
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
esac
# some terminal codes ...
boldface="`tput bold 2>/dev/null`"
normal="`tput sgr0 2>/dev/null`"
printbold() {
echo $ECHO_N "$boldface" $ECHO_C
echo "$@"
echo $ECHO_N "$normal" $ECHO_C
}
printbold Running libtoolize...
libtoolize --force --copy
printbold Running aclocal...
aclocal -I m4
printbold Running autoconf...
autoconf
printbold Running autoheader...
autoheader
if [ -f COPYING ]; then
cp -pf COPYING COPYING.autogen_bak
fi
if [ -f INSTALL ]; then
cp -pf INSTALL INSTALL.autogen_bak
fi
printbold Running automake...
automake --gnu --add-missing --force --copy
if [ -f COPYING.autogen_bak ]; then
cmp COPYING COPYING.autogen_bak > /dev/null || cp -pf COPYING.autogen_bak COPYING
rm -f COPYING.autogen_bak
fi
if [ -f INSTALL.autogen_bak ]; then
cmp INSTALL INSTALL.autogen_bak > /dev/null || cp -pf INSTALL.autogen_bak INSTALL
rm -f INSTALL.autogen_bak
fi
conf_flags="--enable-maintainer-mode"
printbold Running ./configure $conf_flags "$@" ...
./configure $conf_flags "$@" \
&& echo Now type \`make\' to compile libKeyFrame