2 # $Id: buildconf.sh,v 1.3 2007-01-12 23:34:15 adam Exp $
10 if [ "`uname -s`" = FreeBSD ]; then
11 # FreeBSD intalls the various auto* tools with version numbers
12 echo "Using special configuration for FreeBSD ..."
14 aclocal="aclocal19 -I /usr/local/share/aclocal"
16 libtoolize=libtoolize15
17 autoheader=autoheader259
19 if $automake --version|head -1 |grep '1\.[4-7]'; then
20 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
21 if test -f /etc/debian_version; then
22 echo " sudo apt-get install automake1.9"
23 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
33 $automake --add-missing
36 if [ -f config.cache ]; then
40 enable_configure=false
46 #sh_flags="-g -Wall -Wdeclaration-after-statement"
60 if $enable_configure; then
61 if test -n "$sh_flags"; then
62 CFLAGS="$sh_flags" ./configure $*
70 Build the Makefiles with the configure command.
71 ./configure [--someoption=somevalue ...]
73 For help on options or configuring run
76 Build and install binaries with the usual
81 Build distribution tarball with
84 Verify distribution tarball with
87 Or just build the Debian packages without configuring
88 dpkg-buildpackage -rfakeroot
90 When building from a CVS checkout, you need these Debian tools: