2 # $Id: buildconf.sh,v 1.31 2006-05-22 15:15:26 mike Exp $
8 if [ "`uname -s`" = FreeBSD ]; then
9 # FreeBSD intalls the various auto* tools with version numbers
10 echo "Using special configuation for FreeBSD ..."
12 aclocal="aclocal19 -I /usr/local/share/aclocal"
14 echo "Remember to use gmake (GNU make) instead of vanilla make"
17 if $automake --version|head -1 |grep '1\.[4-7]'; then
18 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
19 if test -f /etc/debian_version; then
20 echo " sudo apt-get install automake1.9"
21 echo " sudo update-alternatives --config automake"
27 # I am tired of underquoted warnings for Tcl macros
28 $aclocal -I m4 2>&1 | grep -v "warning: underquoted definition"
29 libtoolize --automake --force
30 $automake --add-missing
33 if [ -f config.cache ]; then
37 enable_configure=false
43 sh_flags="-g -Wall -Wdeclaration-after-statement"
56 if $enable_configure; then
57 if test -n "$sh_flags"; then
58 CFLAGS="$sh_flags" ./configure $*
66 Build the Makefiles with the configure command.
67 ./configure [--someoption=somevalue ...]
69 For help on options or configuring run
72 Build and install binaries with the usual
77 Build distribution tarball with
80 Verify distribution tarball with
83 Or just build the Debian packages without configuring
84 dpkg-buildpackage -rfakeroot
86 When building from a CVS checkout, you need these Debian tools:
87 autoconf, automake, bison, gcc, libtool,
88 docbook-utils, docbook, docbook-xml, docbook-dsssl, jade, jadetex,
89 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev, any tcl