From c34c065fbba4ef2b9023e6a5e76a2960ffb95a3b Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 27 Feb 2008 14:09:10 +0000 Subject: [PATCH] Process graphviz dependencies in *.la files of SALOME modules. --- config_files/common.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config_files/common.sh b/config_files/common.sh index 5694d98..c8d9a8a 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -807,13 +807,13 @@ if [ "$l" != "X" ] ; then sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_" mv -f $l"_" $l - # 3. process scotch dependencies + # 17. process scotch dependencies scotchdir=`printenv SCOTCHDIR`/bin if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_" mv -f $l"_" $l - # 4. process libGL.la dependencies + # 18. process libGL.la dependencies if test `uname -m` = "x86_64" ; then libGLpath=/usr/lib64/libGL.la else @@ -822,6 +822,13 @@ if [ "$l" != "X" ] ; then sed -e "s%$libGLpath%""%g" $l > $l"_" mv -f $l"_" $l + # 19. process graphviz dependencies + graphvizdir=`printenv GRAPHVIZHOME` + if [ -n "${graphvizdir}" ] && [ -d "${graphvizdir}" ] ; then + sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz-[0-9]\+\.[0-9]\+\.[0-9]\+% \1${graphvizdir}%g" $l > $l"_" + chmod -f --reference=$l $l"_" + mv -f $l"_" $l + fi fi done -- 2.39.2