forked from silmerusse/gst-fsl-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·36 lines (29 loc) · 1022 Bytes
/
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
#!/bin/sh
# you can either set the environment variables AUTOCONF and AUTOMAKE
# to the right versions, or leave them unset and get the RedHat 7.3 defaults
export PATH="/bin:/usr/bin:$PATH"
if test -z $AUTOMAKE; then
export AUTOMAKE=automake
export ACLOCAL=aclocal
fi
# if you would want to be running autoheader as well, you will have to do
# something similar as above for it
if test -z $AUTOCONF; then export AUTOCONF=autoconf; fi
echo "#!/bin/sh" > autoregen.sh
echo "./autogen.sh $@ \$@" >> autoregen.sh
chmod +x autoregen.sh
set -x
# if any of these steps fails, the others will not execute, which is good
# we want to treat errors as soon as possible
$ACLOCAL
libtoolize --force || exit 1
# autoheader || exit 1
$AUTOMAKE -a || exit 1
$AUTOCONF || exit 1
conf_flags="--enable-maintainer-mode"
if test x$NOCONFIGURE = x; then
echo Running ./configure $conf_flags "$@" ...
./configure $conf_flags "$@" && echo Now type \`make\' to compile. || exit 1
else
echo Skipping configure process.
fi