2 # $Id: buildconf.sh,v 1.38 2006-05-26 15:09:03 adam Exp $
9 if [ "`uname -s`" = FreeBSD ]; then
10 # FreeBSD intalls the various auto* tools with version numbers
11 echo "Using special configuation for FreeBSD ..."
13 aclocal="aclocal19 -I /usr/local/share/aclocal"
15 libtoolize=libtoolize15
18 if $automake --version|head -1 |grep '1\.[4-7]'; then
19 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
20 if test -f /etc/debian_version; then
21 echo " sudo apt-get install automake1.9"
22 echo " sudo update-alternatives --config automake"
28 # I am tired of underquoted warnings for Tcl macros
29 $aclocal -I m4 2>&1 | grep -v "warning: underquoted definition"
30 $libtoolize --automake --force
31 $automake --add-missing
34 if [ -f config.cache ]; then
38 enable_configure=false
44 sh_flags="-g -Wall -Wdeclaration-after-statement"
57 if $enable_configure; then
58 if test -n "$sh_flags"; then
59 CFLAGS="$sh_flags" ./configure $*
67 Build the Makefiles with the configure command.
68 ./configure [--someoption=somevalue ...]
70 For help on options or configuring run
73 Build and install binaries with the usual
78 Build distribution tarball with
81 Verify distribution tarball with
85 if [ -f /etc/debian_version ]; then
87 Or just build the Debian packages without configuring
88 dpkg-buildpackage -rfakeroot
90 When building from a CVS checkout, you need these Debian packages:
91 autoconf, automake, libtool, gcc, bison, any tcl,
92 xsltproc, docbook, docbook-xml, docbook-xsl,
93 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev
96 if [ "`uname -s`" = FreeBSD ]; then
98 When building from a CVS checkout, you need these FreeBSD Ports:
99 autoconf259, automake19, libtool15, bison, tcl84,
100 docbook-xsl, libxml2, libxslt, g++-4.0, make