6 LTV="libtoolize (GNU libtool) 1.5.22"
7 ACV="autoconf (GNU Autoconf) 2.61"
8 AMV="automake (GNU automake) 1.10"
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"
39 # XXX add missing config.rpath, kludgery around what's apparently
40 # gettext related stuff...
41 for d in . popt file; do
46 (echo "--- popt"; cd popt; ./autogen.sh --noconfigure "$@")
49 (echo "--- zlib"; cd zlib; ./autogen.sh --noconfigure "$@")
51 if [ -d beecrypt ]; then
52 (echo "--- beecrypt"; cd beecrypt; ./autogen.sh --noconfigure "$@")
54 if [ -d elfutils ]; then
55 (echo "--- elfutils"; cd elfutils; ./autogen.sh --noconfigure "$@")
58 (echo "--- file"; cd file; ./autogen.sh --noconfigure "$@")
61 (echo "--- neon"; cd neon; ./autogen.sh "$@")
65 $libtoolize --copy --force
71 if [ "$1" = "--noconfigure" ]; then
75 if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
76 if [ -d /usr/share/man ]; then
78 infodir=/usr/share/info
83 if [ -d /usr/lib/nptl ]; then
84 enable_posixmutexes="--enable-posixmutexes"
88 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} ${enable_posixmutexes} "$@"
90 ./configure ${myopts} "$@"