8 test -d config || mkdir config
10 if test -d m4/.git -a -d doc/common/.git; then
18 if [ "`uname -s`" = FreeBSD ]; then
19 # FreeBSD intalls the various auto* tools with version numbers
20 echo "Using special configuration for FreeBSD ..."
22 aclocal="aclocal19 -I /usr/local/share/aclocal"
24 libtoolize=libtoolize15
27 if $automake --version|head -1 |grep '1\.[4-7]'; then
28 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
29 if test -f /etc/debian_version; then
30 echo " sudo apt-get install automake1.9"
31 echo " sudo update-alternatives --config automake"
37 # I am tired of underquoted warnings for Tcl macros
38 $aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
39 $libtoolize --automake --force
43 if [ -f config.cache ]; then
47 enable_configure=false
53 sh_flags="-g -Wall -O0 -Wdeclaration-after-statement -Wstrict-prototypes"
59 sh_flags="-g -pg -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
65 sh_flags="-g -Wall -O3 -Wdeclaration-after-statement -Wstrict-prototypes"
78 if $enable_configure; then
79 if test -n "$sh_flags"; then
80 CFLAGS="$sh_flags" ./configure --disable-shared $*
88 Build the Makefiles with the configure command.
89 ./configure [--someoption=somevalue ...]
91 For help on options or configuring run
94 Build and install binaries with the usual
99 Build distribution tarball with
102 Verify distribution tarball with
105 Or just build the Debian packages without configuring
106 dpkg-buildpackage -rfakeroot
108 When building from a CVS checkout, you need these Debian packages:
109 docbook, docbook-xml, docbook-xsl, xsltproc,
110 libyaz-dev, libexpat1-dev, tcl8.4-dev, libbz2-dev
111 and if you want the Alvis/XSLT filter, you also need: