2 # $Id: buildconf.sh,v 1.26 2007-04-03 15:26:14 adam Exp $
9 test -d config || mkdir config
11 if [ "`uname -s`" = FreeBSD ]; then
12 # FreeBSD intalls the various auto* tools with version numbers
13 echo "Using special configuration for FreeBSD ..."
15 aclocal="aclocal19 -I /usr/local/share/aclocal"
17 libtoolize=libtoolize15
20 if $automake --version|head -1 |grep '1\.[4-7]'; then
21 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
22 if test -f /etc/debian_version; then
23 echo " sudo apt-get install automake1.9"
24 echo " sudo update-alternatives --config automake"
30 # I am tired of underquoted warnings for Tcl macros
31 $aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
32 $libtoolize --automake --force
36 if [ -f config.cache ]; then
40 enable_configure=false
46 sh_flags="-g -Wall -O0 -Wdeclaration-after-statement -Wstrict-prototypes"
52 sh_flags="-g -pg -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
58 sh_flags="-g -Wall -O3 -Wdeclaration-after-statement -Wstrict-prototypes"
71 if $enable_configure; then
72 if test -n "$sh_flags"; then
73 CFLAGS="$sh_flags" ./configure --disable-shared $*
81 Build the Makefiles with the configure command.
82 ./configure [--someoption=somevalue ...]
84 For help on options or configuring run
87 Build and install binaries with the usual
92 Build distribution tarball with
95 Verify distribution tarball with
98 Or just build the Debian packages without configuring
99 dpkg-buildpackage -rfakeroot
101 When building from a CVS checkout, you need these Debian packages:
102 docbook, docbook-xml, docbook-xsl, xsltproc,
103 libyaz-dev, libexpat1-dev, tcl8.4-dev, libbz2-dev
104 and if you want the Alvis/XSLT filter, you also need: