chiark / gitweb /
release 126
[elogind.git] / autogen.sh
1 #!/bin/sh -e
2
3 (autopoint --version) < /dev/null > /dev/null 2>&1 || {
4         echo
5         echo "You must have autopoint installed to generate the build system.."
6         echo
7         exit 1
8 }
9 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
10         echo
11         echo "You must have autoconf installed to generate the build system."
12         echo
13         exit 1
14 }
15 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
16         echo
17         echo "You must have libtool installed to generate the build system."
18         echo
19         exit 1
20 }
21 (autoheader --version) < /dev/null > /dev/null 2>&1 || {
22         echo
23         echo "You must have autoheader installed to generate the build system."
24         echo
25         exit 1
26 }
27 (automake --version) < /dev/null > /dev/null 2>&1 || {
28         echo
29         echo "You must have automake installed to generate the build system."
30         echo
31         exit 1
32 }
33
34 test -f udev/udevd.c || {
35         echo "You must run this script in the top-level source directory"
36         exit 1
37 }
38
39 echo "   aclocal:    $(aclocal --version | head -1)"
40 aclocal
41 echo "   autoconf:   $(autoconf --version | head -1)"
42 autoconf
43 echo "   libtool:   $(automake --version | head -1)"
44 libtoolize --force
45 echo "   autoheader: $(autoheader --version | head -1)"
46 autoheader
47 echo "   automake:   $(automake --version | head -1)"
48 automake --add-missing
49
50 if test -z "$@"; then
51         args="--prefix=/usr --exec-prefix= --sysconfdir=/etc"
52 else
53         args=$@
54 fi
55 echo "   configure:  $args"
56 echo
57 ./configure $args