added some package names to message
[yaz-moved-to-github.git] / buildconf.sh
1 #!/bin/sh
2 # $Id: buildconf.sh,v 1.21 2005-07-18 10:06:36 marc Exp $
3 set -x
4 aclocal -I .
5 libtoolize --automake --force 
6 automake --add-missing 
7 automake --add-missing 
8 autoconf
9 set -
10 if [ -f config.cache ]; then
11         rm config.cache
12 fi
13
14 enable_configure=false
15 enable_help=true
16 sh_flags=""
17 conf_flags=""
18 case $1 in
19     -d)
20         sh_flags="-g -Wall"
21         enable_configure=true
22         enable_help=false
23         shift
24         ;;
25     -c)
26         sh_flags=""
27         enable_configure=true
28         enable_help=false
29         shift
30         ;;
31 esac
32
33 if $enable_configure; then
34     if test -n "$sh_flags"; then
35         CFLAGS="$sh_flags" ./configure $*
36     else
37         ./configure $*
38     fi
39 fi
40 if $enable_help; then
41     cat <<EOF
42
43 Build the Makefiles with the configure command.
44   ./configure [--someoption=somevalue ...]
45
46 For help on options or configuring run
47   ./configure --help
48
49 Build and install binaries with the usual
50   make
51   make check
52   make install
53
54 Build distribution tarball with
55   make dist
56
57 Verify distribution tarball with
58   make distcheck
59
60 Or just build the Debian packages without configuring
61   dpkg-buildpackage -rfakeroot
62
63 When building from a CVS checkout, you need these Debian tools:
64   autoconf, automake, bison, gcc, libtools,
65   docbook-utils, docbook, docbook-xml, docbook-dsssl, jade, jadetex,
66   libxml2-dev, libssl-dev, libreadline4-dev, libwrap0-dev, any tcl
67 EOF
68 fi