From: Karel Zak Date: Tue, 17 Mar 2009 13:54:22 +0000 (+0100) Subject: build-sys: add $usrlibexecdir and fix paths for [/usr]/lib64 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0a0d7d58f397f45a27ee3e876800989992096d1;p=util-linux build-sys: add $usrlibexecdir and fix paths for [/usr]/lib64 Signed-off-by: Karel Zak --- diff --git a/config/include-Makefile.am b/config/include-Makefile.am index 70494abc..9a0497ea 100644 --- a/config/include-Makefile.am +++ b/config/include-Makefile.am @@ -1,6 +1,7 @@ # The original default vaues of bindir and sbindir: usrbinexecdir = ${exec_prefix}/bin usrsbinexecdir = ${exec_prefix}/sbin +usrlibexecdir = ${exec_prefix}/$(libdirname) AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(top_srcdir)/include \ -DLOCALEDIR=\"$(localedir)\" diff --git a/configure.ac b/configure.ac index a4f13d06..5612f4b4 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,6 @@ BLKID_DATE="10-Feb-2009" BLKID_VERSION=$BLKID_VERSION_MAJOR.$BLKID_VERSION_MINOR.$BLKID_VERSION_RELEASE BLKID_VERSION_INFO=`expr $BLKID_VERSION_MAJOR + $BLKID_VERSION_MINOR`:$BLKID_VERSION_RELEASE:$BLKID_VERSION_MINOR - # Check whether exec_prefix=/usr: case $exec_prefix:$prefix in NONE:NONE | NONE:/usr | /usr:*) @@ -41,6 +40,13 @@ NONE:NONE | NONE:/usr | /usr:*) esac ;; esac +# lib64 +case ${libdir} in + *lib64) libdirname=lib64 ;; + *) libdirname=lib +esac +AC_SUBST([libdirname]) + AC_PROG_CC_STDC AC_GNU_SOURCE AC_CANONICAL_HOST