8 test -d config || mkdir config
13 if [ "`uname -s`" = FreeBSD ]; then
14 # FreeBSD intalls the various auto* tools with version numbers
15 echo "Using special configuration for FreeBSD ..."
17 aclocal="aclocal19 -I /usr/local/share/aclocal"
19 libtoolize=libtoolize15
22 if [ "`uname -s`" = Darwin ]; then
23 echo "Using special configuration for Darwin/MacOS ..."
24 libtoolize=glibtoolize
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 [ -f /etc/debian_version ]; then
30 echo " sudo apt-get install automake1.9"
31 echo " sudo update-alternatives --config automake"
38 $libtoolize --automake --force
39 $automake --add-missing
42 if [ -f config.cache ]; then
46 enable_configure=false
52 sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
53 sh_cxxflags="-g -Wall"
67 if $enable_configure; then
68 if [ -n "$sh_cflags" ]; then
69 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure --disable-shared --enable-static $*
77 Build the Makefiles with the configure command.
78 ./configure [--someoption=somevalue ...]
80 For help on options or configuring run
83 Build and install binaries with the usual
88 Build distribution tarball with
91 Verify distribution tarball with
95 if [ -f /etc/debian_version ]; then
97 Or just build the Debian packages without configuring
98 dpkg-buildpackage -rfakeroot
100 When building from Git, you need these Debian packages:
101 autoconf, automake, libtool, gcc, bison, any tcl,
102 xsltproc, docbook, docbook-xml, docbook-xsl,
103 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
106 Also perhaps: libgnutls-dev libicu-dev
108 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
109 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
113 if [ "`uname -s`" = FreeBSD ]; then
115 When building from a Git, you need these FreeBSD Ports:
116 autoconf259, automake19, libtool15, bison, tcl84,
117 docbook-xsl, libxml2, libxslt, g++-4.0, make