2 # $Id: buildconf.sh,v 1.14 2008-02-27 11:08:48 adam Exp $
10 test -d config || mkdir config
11 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
25 autoheader=autoheader259
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"
38 # I am tired of underquoted warnings for Tcl macros
39 $aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
41 $libtoolize --automake --force
42 $automake --add-missing
45 if [ -f config.cache ]; then
49 enable_configure=false
68 if $enable_configure; then
69 if test -n "$sh_flags"; then
70 CXXFLAGS="$sh_flags" ./configure --disable-shared --enable-static $*
78 Build the Makefiles with the configure command.
79 ./configure [--someoption=somevalue ...]
81 For help on options or configuring run
84 Build and install binaries with the usual
89 Build distribution tarball with
92 Verify distribution tarball with
95 Or just build the Debian packages without configuring
96 dpkg-buildpackage -rfakeroot
98 When building from a CVS checkout, you need these Debian tools:
99 autoconf, automake, libtool, gcc, g++, make,
100 xsltproc, docbook, docbook-xml, docbook-xsl, trang,
101 libxslt1-dev, libyazpp-dev,
102 libboost-thread-dev, libboost-test-dev
103 and for the image-processing needed to build the documentation: