summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-03-16 10:27:51 +0100
committerAndreas Gruenbacher <agruen@suse.de>2009-03-16 10:44:37 +0100
commit01b18c161f2ab2cb85c6e2caedc622a938407660 (patch)
tree80fc8d971656b7899c5c5983cd5d636c9108fab1
parent12362192c9a55b946a16930054d14536767f748d (diff)
downloadattr-01b18c161f2ab2cb85c6e2caedc622a938407660.tar.gz
Libtool compatibility fix for version 1
Recent versions of libtool require the -i option for copying auxiliary files (config.sub, config.guess, install-sh, ltmain.sh), while older versions will copy those files anyway, and don't understand -i.
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ecef980..8fba820 100644
--- a/Makefile
+++ b/Makefile
@@ -60,8 +60,13 @@ else
clean: # if configure hasn't run, nothing to clean
endif
+# Recent versions of libtool require the -i option for copying auxiliary
+# files (config.sub, config.guess, install-sh, ltmain.sh), while older
+# versions will copy those files anyway, and don't understand -i.
+LIBTOOLIZE_INSTALL = `libtoolize -n -i >/dev/null 2>/dev/null && echo -i`
+
configure include/builddefs:
- libtoolize -c -i -f
+ libtoolize -c $(LIBTOOLIZE_INSTALL) -f
cp include/install-sh .
aclocal -I m4
autoconf