9 test -d config || mkdir config
14 if [ "`uname -s`" = FreeBSD ]; then
15 # FreeBSD intalls the various auto* tools with version numbers
16 echo "Using special configuration for FreeBSD ..."
18 aclocal="aclocal19 -I /usr/local/share/aclocal"
20 libtoolize=libtoolize15
21 autoheader=autoheader259
24 if [ "`uname -s`" = Darwin ]; then
25 echo "Using special configuration for Darwin/MacOS ..."
26 libtoolize=glibtoolize
29 if $automake --version|head -1 |grep '1\.[4-7]'; then
30 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
31 if [ -f /etc/debian_version ]; then
32 echo " sudo apt-get install automake1.9"
33 echo " sudo update-alternatives --config automake"
40 if grep AC_CONFIG_HEADERS configure.ac >/dev/null; then
43 $libtoolize --automake --force
44 $automake --add-missing
47 if [ -f config.cache ]; then
51 enable_configure=false
57 sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
58 sh_cxxflags="-g -Wall"
72 if $enable_configure; then
73 if [ -n "$sh_cflags" ]; then
74 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure --disable-shared --enable-static $*
82 Build the Makefiles with the configure command.
83 ./configure [--someoption=somevalue ...]
85 For help on options or configuring run
88 Build and install binaries with the usual
93 Build distribution tarball with
96 Verify distribution tarball with
100 if [ -f /etc/debian_version ]; then
102 Or just build the Debian packages without configuring
103 dpkg-buildpackage -rfakeroot
105 When building from Git, you need these Debian packages:
106 autoconf, automake, libtool, gcc, bison, any tcl,
107 xsltproc, docbook, docbook-xml, docbook-xsl,
108 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
111 Also perhaps: libgnutls-dev libicu-dev
113 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
114 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
118 if [ "`uname -s`" = FreeBSD ]; then
120 When building from a Git, you need these FreeBSD Ports:
121 autoconf259, automake19, libtool15, bison, tcl84,
122 docbook-xsl, libxml2, libxslt, g++-4.0, make