summaryrefslogtreecommitdiff
path: root/scripts/check-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-12-21 22:44:45 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-12-21 22:45:43 (GMT)
commitcdc408319e9474e9a4ffbfc080ced23c5ad4f23e (patch)
tree5f65b7d19f64697b3c9315b7f33367d63b7cdf2d /scripts/check-dependencies.sh
parente3ea506d06ae012cac3a724bcc97b3f1ba8187b8 (diff)
NetBSD deps. also detect stray copies of libraries under /usr/local on linux
Diffstat (limited to 'scripts/check-dependencies.sh')
-rwxr-xr-xscripts/check-dependencies.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh
index 4254ee9..29ed100 100755
--- a/scripts/check-dependencies.sh
+++ b/scripts/check-dependencies.sh
@@ -580,7 +580,27 @@ find_installed_version()
}
-
+check_old_local()
+{
+ warnon=
+ if [ "`uname | grep -i linux`" ]; then
+ header_list="opencsg.h CGAL boost GL/glew.h"
+ liblist="libboost libopencsg libCGAL libglew"
+ for i in $header_list $liblist; do
+ if [ -e /usr/local/include/$i ]; then
+ echo "Warning: you have a copy of " $i " under /usr/local/include"
+ warnon=1
+ fi
+ if [ -e /usr/local/lib/$i ]; then
+ echo "Warning: you have a copy of " $i " under /usr/local/lib"
+ warnon=1
+ fi
+ done
+ fi
+ if [ $warnon ]; then
+ echo "Please verify your local copies don't conflict with the system"
+ fi
+}
@@ -609,6 +629,7 @@ main()
dep_compare=$compare_version_result
pretty_print $dep $dep_minver $dep_sysver $dep_compare
done
+ check_old_local
}
checkargs $*
contact: Jan Huwald // Impressum