From 01b18c161f2ab2cb85c6e2caedc622a938407660 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Mon, 16 Mar 2009 10:27:51 +0100 Subject: 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. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1