1998-03-05 00:53:54 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-01-27 03:55:43 +08:00
|
|
|
LTV="libtoolize (GNU libtool) 1.2d"
|
|
|
|
ACV="Autoconf version 2.13"
|
|
|
|
AMV="automake (GNU automake) 1.4"
|
|
|
|
USAGE="
|
|
|
|
You need to install:
|
1999-03-20 06:38:40 +08:00
|
|
|
libtool-1.2f
|
1999-01-27 03:55:43 +08:00
|
|
|
autoconf-2.13
|
1999-03-18 02:11:01 +08:00
|
|
|
automake-1.4
|
1999-01-27 03:55:43 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
[ "`libtoolize --version`" != "$LTV" ] && echo "$USAGE" && exit 1
|
|
|
|
[ "`autoconf --version`" != "$ACV" ] && echo "$USAGE" && exit 1
|
1999-02-16 11:07:24 +08:00
|
|
|
[ "`automake --version | head -1 | sed -e 's/1\.4[a-z]/1.4/'`" != "$AMV" ] && echo "$USAGE" && exit 1
|
1999-01-27 03:55:43 +08:00
|
|
|
|
1999-01-26 03:46:40 +08:00
|
|
|
(cd popt; ./autogen.sh --noconfigure "$@")
|
|
|
|
libtoolize --copy --force
|
|
|
|
aclocal
|
1998-03-05 00:53:54 +08:00
|
|
|
autoheader
|
1999-01-26 03:46:40 +08:00
|
|
|
automake
|
1998-03-05 00:53:54 +08:00
|
|
|
autoconf
|
|
|
|
|
|
|
|
if [ "$1" = "--noconfigure" ]; then
|
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
1998-09-06 04:02:08 +08:00
|
|
|
if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
|
1999-01-26 03:46:40 +08:00
|
|
|
./configure --disable-shared --prefix=/usr
|
1998-03-05 00:53:54 +08:00
|
|
|
else
|
1999-01-26 03:46:40 +08:00
|
|
|
./configure --disable-shared "$@"
|
1998-03-05 00:53:54 +08:00
|
|
|
fi
|