2 # $Id: buildconf.sh,v 1.17 2006-07-07 06:21:29 adam Exp $
4 test -d config || mkdir config
5 if test -d m4/.git -a -d doc/common/.git; then
12 if automake --version|head -1 |grep '1\.[4-7]'; then
13 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
14 if test -f /etc/debian_version; then
15 echo " sudo apt-get install automake1.9"
16 echo " sudo update-alternatives --config automake"
22 # I am tired of underquoted warnings for Tcl macros
23 aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
24 libtoolize --automake --force
25 automake --add-missing
28 if [ -f config.cache ]; then
32 enable_configure=false
51 if $enable_configure; then
52 if test -n "$sh_flags"; then
53 CFLAGS="$sh_flags" CXXFLAGS="$sh_flags" ./configure --disable-shared --enable-static $*
61 Build the Makefiles with the configure command.
62 ./configure [--someoption=somevalue ...]
64 For help on options or configuring run
67 Build and install binaries with the usual
72 Build distribution tarball with
75 Verify distribution tarball with
78 Or just build the Debian packages without configuring
79 dpkg-buildpackage -rfakeroot
81 When building from a CVS checkout, you need these Debian tools:
82 autoconf, automake, libtool, gcc, g++, libyaz-dev,
83 xsltproc, docbook, docbook-xml, docbook-xsl, make,
84 libssl-dev, libreadline5-dev, g++