forked from wifidog/wifidog-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·65 lines (54 loc) · 1.15 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
57
58
59
60
61
62
63
64
65
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
#
# $Id$
if [ -r Makefile ]
then
echo "Doing distclean"
make distclean
fi
if [ "X$1" != "X" ]
then
BUILDROOT=`echo "$1" | sed 's/^[^=]*[=]//'`
OLDCC=${CC}
OLDRANLIB=${RANLIB}
OLDAR=${AR}
CC=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc
RANLIB=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ranlib
AR=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ar
POSTCONF=--host=mipsel
export CC
export RANLIB
export AR
else
OLDCC=${CC}
OLDRANLIB=${RANLIB}
OLDAR=${AR}
POSTCONF=
fi
echo "Running mkdir -p config"
mkdir -p config
if [ "X"`uname` = "XDarwin" ]
then
echo "Running glibtoolize --force"
glibtoolize --force
else
echo "Running libtoolize --force"
libtoolize --force
fi
echo "Running aclocal"
aclocal
echo "Running autoheader"
autoheader
echo "Running automake -a"
automake -a
echo "Running autoconf"
autoconf
echo "Running ./configure ${POSTCONF} --enable-maintainer-mode $conf_flags $@"
./configure ${POSTCONF} --enable-maintainer-mode $conf_flags "$@"
CC=${OLDCC}
RANLIB=${OLDRANLIB}
AR=${OLDAR}
export CC
export RANLIB
export AR