From: ellson Date: Sun, 18 Mar 2007 14:46:17 +0000 (+0000) Subject: only run /sbin/ldconfig if it exists and is exxecutable X-Git-Tag: LAST_LIBGRAPH~32^2~5618 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c85b0d8be5ef501f5d96174214860a5a224217db;p=graphviz only run /sbin/ldconfig if it exists and is exxecutable --- diff --git a/cmd/dot/Makefile.am b/cmd/dot/Makefile.am index d58baf70b..c73c6bfa8 100644 --- a/cmd/dot/Makefile.am +++ b/cmd/dot/Makefile.am @@ -37,7 +37,7 @@ install-data-hook: # run "dot -c", if possible, to create plugin config install-exec-hook: (cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot $$i; done;) - if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot; then /sbin/ldconfig; $(bindir)/dot -c; else $(bindir)/dot_static -c; fi; fi + if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot; then if test -x /sbin/ldconfig; then /sbin/ldconfig; fi; $(bindir)/dot -c; else $(bindir)/dot_static -c; fi; fi uninstall-hook: (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)