chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: fix parsing of LoadError property for systemctl show
[elogind.git]
/
autogen.sh
diff --git
a/autogen.sh
b/autogen.sh
index 55a115d4e3b3d3fa814301908dc11855cbc6ca0f..b2b680a85c98ccf28d00de545bc62afa006fa883 100755
(executable)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-52,6
+52,10
@@
if type -p colorgcc > /dev/null ; then
export CC=colorgcc
fi
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
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
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
make clean
fi
fi