Version 1.3.50.
[idzebra-moved-to-github.git] / buildconf.sh
1 #!/bin/sh
2 # $Id: buildconf.sh,v 1.10.2.2 2006-11-22 09:41:47 adam Exp $
3 set -x
4 dir=`aclocal --print-ac-dir`
5 aclocal -I .
6 libtoolize --automake --force 
7 automake -a 
8 automake -a 
9 autoconf
10 set -
11 if [ -f config.cache ]; then
12         rm config.cache
13 fi
14
15 enable_configure=false
16 enable_help=true
17 sh_flags=""
18 conf_flags=""
19 case $1 in
20     -d)
21         sh_flags="-g -Wall -Wdeclaration-after-statement"
22         enable_configure=true
23         enable_help=false
24         shift
25         ;;
26     -o)
27         sh_flags="-g -Wall -O2 -Wdeclaration-after-statement"
28         enable_configure=true
29         enable_help=false
30         shift
31         ;;
32     -p)
33         sh_flags="-g -pg -Wall -Wdeclaration-after-statement"
34         enable_configure=true
35         enable_help=false
36         shift
37         ;;
38     -c)
39         sh_flags=""
40         enable_configure=true
41         enable_help=false
42         shift
43         ;;
44 esac
45
46 if $enable_configure; then
47     if test -n "$sh_flags"; then
48         CFLAGS="$sh_flags" ./configure $*
49     else
50         ./configure $*
51     fi
52 fi
53 if $enable_help; then
54     cat <<EOF
55
56 Build the Makefiles with the configure command.
57   ./configure [--someoption=somevalue ...]
58
59 For help on options or configuring run
60   ./configure --help
61
62 Build and install binaries with the usual
63   make
64   make check
65   make install
66
67 Build distribution tarball with
68   make dist
69
70 Verify distribution tarball with
71   make distcheck
72
73 Or just build the Debian packages without configuring
74   dpkg-buildpackage -rfakeroot
75
76 When building from a CVS checkout, you need these Debian tools:
77   docbook-utils, docbook, docbook-xml, docbook-dsssl, jade, jadetex,
78   libyaz-dev, libexpat1-dev, libtcl8.3-dev, libbz2-dev
79 EOF
80 fi