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 if grep AM_PROG_LIBTOOL configure.ac >/dev/null; then
49 $libtoolize --automake --force
50 $automake --add-missing
53 if [ -f config.cache ]; then
57 enable_configure=false
63 sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
64 sh_cxxflags="-g -Wall"
78 if $enable_configure; then
79 if [ -n "$sh_cflags" ]; then
81 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure --disable-shared --enable-static $*
83 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure $*
92 Build the Makefiles with the configure command.
93 ./configure [--someoption=somevalue ...]
95 For help on options or configuring run
98 Build and install binaries with the usual
103 Build distribution tarball with
106 Verify distribution tarball with
110 if [ -f /etc/debian_version ]; then
112 Or just build the Debian packages without configuring
113 dpkg-buildpackage -rfakeroot
115 When building from Git, you need these Debian packages:
116 autoconf, automake, libtool, gcc, bison, any tcl,
117 xsltproc, docbook, docbook-xml, docbook-xsl,
118 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
119 libpcap0.8-dev, pkg-config
121 Also perhaps: libgnutls-dev libicu-dev
123 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
124 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
128 if [ "`uname -s`" = FreeBSD ]; then
130 When building from a Git, you need these FreeBSD Ports:
131 autoconf259, automake19, libtool15, bison, tcl84,
132 docbook-xsl, libxml2, libxslt, g++-4.0, make