From: Bruno Haible Date: Mon, 7 Apr 2003 10:50:09 +0000 (+0000) Subject: Don't install libintl.la if the package shall be relocatable. X-Git-Tag: v0.12~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a337a1dd2d06dbafc98e983e33f31fb6d342c7a;p=thirdparty%2Fgettext.git Don't install libintl.la if the package shall be relocatable. --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index ea811b85f..4c4a407c6 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,9 @@ +2003-04-06 Bruno Haible + + * Makefile.in (install-exec): Remove the installed libintl.la if it + has hardwired pathnames in dependency_libs and the installed package + shall be relocatable. + 2003-04-05 Bruno Haible * relocatable.c: Rely on DEPENDS_ON_LIBCHARSET, DEPENDS_ON_LIBICONV, diff --git a/gettext-runtime/intl/Makefile.in b/gettext-runtime/intl/Makefile.in index 90321e86a..26bfdc840 100644 --- a/gettext-runtime/intl/Makefile.in +++ b/gettext-runtime/intl/Makefile.in @@ -246,6 +246,12 @@ install-exec: all $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ + if test "@RELOCATABLE@" = yes; then \ + dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ + if test -n "$dependencies"; then \ + rm -f $(DESTDIR)$(libdir)/libintl.la; \ + fi; \ + fi; \ else \ : ; \ fi