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
33 if [ X"$@" = X -a "X`uname -s`" = "XDarwin" -a -d /opt/local ]; then
34 export myprefix=/opt/local
35 export CPPFLAGS="-I${myprefix}/include"
39 (echo "--- popt"; cd popt; ./autogen.sh --noconfigure "$@")
42 (echo "--- zlib"; cd zlib; ./autogen.sh --noconfigure "$@")
44 if [ -d beecrypt ]; then
45 (echo "--- beecrypt"; cd beecrypt; ./autogen.sh --noconfigure "$@")
47 if [ -d elfutils ]; then
48 (echo "--- elfutils"; cd elfutils; ./autogen.sh --noconfigure "$@")
51 (echo "--- file"; cd file; ./autogen.sh --noconfigure "$@")
54 (echo "--- neon"; cd neon; ./autogen.sh "$@")
58 $libtoolize --copy --force
64 if [ "$1" = "--noconfigure" ]; then
68 if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
69 if [ -d /usr/share/man ]; then
71 infodir=/usr/share/info
76 if [ -d /usr/lib/nptl ]; then
77 enable_posixmutexes="--enable-posixmutexes"
81 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} ${enable_posixmutexes} "$@"
83 ./configure --prefix=${myprefix} "$@"