aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-17 02:25:07 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-17 02:25:07 +0200
commit6133f3432fe86bc140cc9ba74794826f75c915fa (patch)
tree1199e3d6f005b66ea7b0d8b34d5ef323d7ee3cc0 /autogen.sh
parent29cf5b58be1a783157edc37d7151d86acbdd5732 (diff)
downloadudev-6133f3432fe86bc140cc9ba74794826f75c915fa.tar.gz
cleanup ./configure installation directory options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 5c5903e0..d35e9459 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,10 +18,18 @@ case "$CFLAGS" in
;;
esac
-libdirname=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
-args="--prefix=/usr --exec-prefix= --sysconfdir=/etc \
---libdir=/usr/$libdirname --with-libdir-name=$libdirname \
---with-selinux --enable-gtk-doc"
+libdir() {
+ echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
+}
+
+args="--prefix=/usr \
+--sysconfdir=/etc \
+--sbindir=/sbin \
+--libdir=$(libdir /usr/lib) \
+--with-rootlibdir=$(libdir /lib) \
+--libexecdir=/lib/udev \
+--with-selinux \
+--enable-gtk-doc"
export CFLAGS="$CFLAGS $MYCFLAGS"
./configure $args $@