diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-15 01:31:06 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-15 01:31:06 +0200 |
commit | ae446765eb0605d2451bb4dd7c336672bcc7ab0c (patch) | |
tree | 3de40da1b0faa1855c8309200c4e57272da49696 /autogen.sh | |
parent | 673eab9bf0d2d79a72f3d7c430807b8786de7ee3 (diff) |
libsystemd-daemon: support installation in --with-rootlibdir
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 55a115d4e3..b2b680a85c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -52,6 +52,10 @@ if type -p colorgcc > /dev/null ; then export CC=colorgcc fi +libdir() { + echo $(cd $1/$(gcc -print-multi-os-directory); pwd) +} + if [ "x$1" = "xam" ] ; then run_versioned automake "$AM_VERSION" -a -c --foreign ./config.status @@ -67,7 +71,13 @@ else run_versioned automake "$AM_VERSION" --copy --foreign --add-missing if [ "x$1" != "xac" ]; then - CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --with-rootdir= --libexecdir=/usr/lib "$@" + CFLAGS="$CFLAGS -g -O0" ./configure \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --libdir=$(libdir /usr/local/lib) \ + --with-rootdir= \ + "$@" make clean fi fi |