Improve pos of rset_create_or
[idzebra-moved-to-github.git] / buildconf.sh
1 #!/bin/sh
2
3 if [ -d .git ]; then
4     git submodule init
5     git submodule update
6 fi
7
8 . m4/id-config.sh
9
10 if $enable_help; then
11     cat <<EOF
12
13 Build the Makefiles with the configure command.
14   ./configure [--someoption=somevalue ...]
15
16 For help on options or configuring run
17   ./configure --help
18
19 Build and install binaries with the usual
20   make
21   make check
22   make install
23
24 Build distribution tarball with
25   make dist
26
27 Verify distribution tarball with
28   make distcheck
29
30 EOF
31     if [ -f /etc/debian_version ]; then
32         cat <<EOF
33 Or just build the Debian packages without configuring
34   dpkg-buildpackage -rfakeroot
35
36 When building from Git, you need these Debian packages:
37   autoconf automake libtool gcc tcl8.4
38   xsltproc docbook docbook-xml docbook-xsl inkscape
39   libxslt1-dev libgnutls-dev libreadline5-dev libexpat1-dev
40   pkg-config libexpat1-dev
41
42 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
43 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
44
45 EOF
46     fi
47     if [ "`uname -s`" = FreeBSD ]; then
48         cat <<EOF
49 When building from a Git, you need these FreeBSD Ports:
50   pkg_add -r autoconf268 automake111 libtool tcl84 \\
51              docbook-xsl libxml2 libxslt g++-4.0 make
52 EOF
53     fi
54 fi