3 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
5 echo "You must have autoconf installed to generate the build system."
9 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
11 echo "You must have libtool installed to generate the build system."
15 (autoheader --version) < /dev/null > /dev/null 2>&1 || {
17 echo "You must have autoheader installed to generate the build system."
21 (automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo "You must have automake installed to generate the build system."
28 test -f udev/udevd.c || {
29 echo "You must run this script in the top-level source directory"
33 echo " aclocal: $(aclocal --version | head -1)"
35 echo " autoconf: $(autoconf --version | head -1)"
37 echo " libtool: $(automake --version | head -1)"
39 echo " autoheader: $(autoheader --version | head -1)"
41 echo " automake: $(automake --version | head -1)"
42 automake --add-missing
45 args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux --enable-debug"
46 args="$args --with-libdir-name=$(basename $(gcc -print-multi-os-directory))"
47 export CFLAGS="-g -Wall \
48 -Wmissing-declarations -Wmissing-prototypes \
49 -Wnested-externs -Wpointer-arith \
50 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
51 -Wstrict-prototypes -Wshadow"
55 echo " configure: $args"