9 test -d autom4te.cache && rm -r autom4te.cache
10 test -d config || mkdir config
15 if [ "`uname -s`" = FreeBSD ]; then
16 # FreeBSD intalls the various auto* tools with version numbers
17 echo "Using special configuration for FreeBSD ..."
19 aclocal="aclocal -I /usr/local/share/aclocal"
25 if [ "`uname -s`" = Darwin ]; then
26 echo "Using special configuration for Darwin/MacOS ..."
27 libtoolize=glibtoolize
30 if $automake --version|head -1 |grep '1\.[4-7]'; then
31 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
32 if [ -f /etc/debian_version ]; then
33 echo " sudo apt-get install automake1.9"
34 echo " sudo update-alternatives --config automake"
41 if grep AC_CONFIG_HEADERS configure.ac >/dev/null; then
44 if grep AM_PROG_LIBTOOL configure.ac >/dev/null; then
50 $libtoolize --automake --force
51 $automake --add-missing
54 if [ -f config.cache ]; then
58 enable_configure=false
64 sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
65 sh_cxxflags="-g -Wall"
71 sh_cflags="-g -Wall -Werror -Wdeclaration-after-statement"
72 sh_cxxflags="-g -Wall -Werror"
86 if $enable_configure; then
87 if [ -n "$sh_cflags" ]; then
89 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure \
90 --disable-shared --enable-static --with-pic $*
92 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure $*
101 Build the Makefiles with the configure command.
102 ./configure [--someoption=somevalue ...]
104 For help on options or configuring run
107 Build and install binaries with the usual
112 Build distribution tarball with
115 Verify distribution tarball with
119 if [ -f /etc/debian_version ]; then
121 Or just build the Debian packages without configuring
122 dpkg-buildpackage -rfakeroot
124 When building from Git, you need these Debian packages:
125 autoconf automake libtool gcc bison tcl8.4
126 xsltproc docbook docbook-xml docbook-xsl
127 libxslt1-dev libgnutls-dev libreadline5-dev libwrap0-dev
128 pkg-config libicu-dev
130 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
131 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
135 if [ "`uname -s`" = FreeBSD ]; then
137 When building from a Git, you need these FreeBSD Ports:
138 pkg_add -r autoconf268 automake111 libtool bison tcl84 \\
139 docbook-xsl libxml2 libxslt