6 LTV="libtoolize (GNU libtool) 1.5.10"
7 ACV="autoconf (GNU Autoconf) 2.59"
8 AMV="automake (GNU automake) 1.9.3"
10 This script documents the versions of the tools I'm using to build rpm:
14 Simply edit this script to change the libtool/autoconf/automake versions
15 checked if you need to, as rpm should build (and has built) with all
16 recent versions of libtool/autoconf/automake.
19 libtoolize=`which glibtoolize 2>/dev/null`
22 *) libtoolize=`which libtoolize 2>/dev/null`
25 *) libtoolize=libtoolize
29 [ "`$libtoolize --version | head -1`" != "$LTV" ] && echo "$USAGE" && exit 1
30 [ "`autoconf --version | head -1`" != "$ACV" ] && echo "$USAGE" && exit 1
31 [ "`automake --version | head -1 | sed -e 's/1\.4[a-z]/1.4/'`" != "$AMV" ] && echo "$USAGE" # && exit 1
34 if [ X"$@" = X -a "X`uname -s`" = "XDarwin" -a -d /opt/local ]; then
35 export myopts="--prefix=/usr --disable-nls"
36 export CPPFLAGS="-I${myprefix}/include"
40 (echo "--- popt"; cd popt; ./autogen.sh --noconfigure "$@")
43 (echo "--- zlib"; cd zlib; ./autogen.sh --noconfigure "$@")
45 if [ -d beecrypt ]; then
46 (echo "--- beecrypt"; cd beecrypt; ./autogen.sh --noconfigure "$@")
48 if [ -d elfutils ]; then
49 (echo "--- elfutils"; cd elfutils; ./autogen.sh --noconfigure "$@")
52 (echo "--- file"; cd file; ./autogen.sh --noconfigure "$@")
55 (echo "--- neon"; cd neon; ./autogen.sh "$@")
59 $libtoolize --copy --force
65 if [ "$1" = "--noconfigure" ]; then
69 if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
70 if [ -d /usr/share/man ]; then
72 infodir=/usr/share/info
77 if [ -d /usr/lib/nptl ]; then
78 enable_posixmutexes="--enable-posixmutexes"
82 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} ${enable_posixmutexes} "$@"
84 ./configure ${myopts} "$@"