From 0c7f7519f51c7e8e3f0d1f81451149b0749ac44d Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 1 Sep 2008 13:11:49 +0000 Subject: [PATCH] Warn at install time about local lib path not in /etc/ld.so.conf. git-svn-id: http://yate.null.ro/svn/yate/trunk@2174 acf43c95-373e-0410-b603-e72c3f656dc1 --- Makefile.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 92695714..d917a09d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -96,6 +96,11 @@ check-topdir: check-root: @test `id -u` = '0' || (echo "You must run this command as root"; exit 1) +check-ldconfig: + @test "x/usr/@ARCHLIB@" = "x$(libdir)" || \ + grep -l -R "^$(libdir)$$" /etc/ld.so.conf* >/dev/null 2>&1 || \ + echo "Add manually $(libdir) to /etc/ld.so.conf and run ldconfig (as root)" + clean-config-files: check-topdir -rm -rf auto*.cache -rm -f @CONFIGURE_FILES@ @@ -112,7 +117,7 @@ distclean: check-topdir clean clean-config-files cvsclean: check-topdir clean clean-tables clean-apidocs clean-config-files -rm -f configure -.PHONY: engine libs modules clients test apidocs-build apidocs-kdoc apidocs-doxygen apidocs-everything check-topdir windows +.PHONY: engine libs modules clients test apidocs-build apidocs-kdoc apidocs-doxygen apidocs-everything check-topdir check-ldconfig windows engine: tables library libyate.so $(PROGS) apidocs-kdoc: check-topdir @@ -183,7 +188,7 @@ windows: check-topdir @cmp -s yateiss.inc $@/yateiss.inc || cp -p yateiss.inc $@/yateiss.inc .PHONY: install install-root install-noapi install-api uninstall uninstall-root -install install-root: all apidocs install-noapi install-api +install install-root: all apidocs install-noapi install-api check-ldconfig install-noapi: all @mkdir -p "$(DESTDIR)$(libdir)/" && \