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 -Wmissing-declarations -Wmissing-prototypes \
46 -Wnested-externs -Wpointer-arith \
47 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
48 -Wstrict-prototypes -Wshadow"
50 if test -z "$1" -o "$1" = "install"; then
51 args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux"
52 args="$args --with-libdir-name=$(basename $(gcc -print-multi-os-directory))"
54 elif test "$1" = "devel" ; then
55 args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux --enable-debug"
56 args="$args --with-libdir-name=$(basename $(gcc -print-multi-os-directory))"
61 echo " configure: $args"