On Thu, Jan 08, 2009 at 10:43:13PM +0100, Kay Sievers wrote: > Maybe we should drop that exec_prefix use und invent --slibdir (s like > in --(s)bindir), which other projects think about to introduce, and we > would require: --prefix, --libdir=, --slibdir=, --sbindir= > --sysconf-dir to be specified at configure time? Maybe that's easier > to handle, I was just waiting what the glib guys plan to use, because > they have similar problems with configure specifying the rootfs as > install location. My $0.02... util-linux-ng installs files "everywhere" (/sbin, /bin, /usr/bin, /usr/sbin, /etc, ...) The build system differentiate between $bindir and $usrbinexec, ... etc. The important is that the default $exec_prefix (/usr) means "default locations" -- so /{bin,sbin,etc} for rootfs stuff and /usr/bin for /usr stuff. I think you can use the same logic for /lib and /usr/lib. We follow autotools and we don't modify the default $prefix and $exec_prefix (by default both is /usr). Everything what you need is to check for non-default $exec_prefix in configure script, in such case you have to follow the prefix at all. configure.ac: AC_PREFIX_DEFAULT([/usr]) # Check whether exec_prefix=/usr: case $exec_prefix:$prefix in NONE:NONE | NONE:/usr | /usr:*) AC_MSG_NOTICE([Default --exec-prefix detected.]) case $bindir in '${exec_prefix}/bin') bindir=/bin AC_MSG_NOTICE([ --bindir defaults to /bin]) ;; esac case $sbindir in '${exec_prefix}/sbin') sbindir=/sbin AC_MSG_NOTICE([ --sbindir defaults to /sbin]) ;; esac ;; esac config/include-Makefile.am (included in all Makefiles): # The original default values of bindir and sbindir: usrbinexecdir = ${exec_prefix}/bin usrsbinexecdir = ${exec_prefix}/sbin Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html