summaryrefslogtreecommitdiff
path: root/libnet/autogen.sh
blob: ae10d6b89a3258cbffe8e5c8e22be6d514e8124d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# A bootstrapping script that can be used to generate the autoconf,
# automake and libtool-related scripts of the build process.
#

trap "/bin/rm -fr autom4te.cache ; \
    echo 'Failed to regenerate autoconf/automake stuff.'" 0 1 2 15

set -x
set -e

rm -fr autom4te.cache
libtoolize --copy --force
aclocal -I .
autoconf
autoheader
automake --add-missing -a -c --foreign

set +e
trap "echo $0 ok" 0 1 2 15