aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbmundim <bmundim@ba58616d-3abc-4c77-8745-3ba8ad4a582f>2013-03-28 18:12:43 +0000
committerbmundim <bmundim@ba58616d-3abc-4c77-8745-3ba8ad4a582f>2013-03-28 18:12:43 +0000
commitc143ba754370b2f8e0a46e0cf73e790fca16ce64 (patch)
tree6c500ddaeb75697bd71f188d2b97b14fce758a05
parent23e1a9ebebc58fd50584ceae8136d13f5fa1e609 (diff)
Add NO_BUILD option
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/libjpeg/trunk@26 ba58616d-3abc-4c77-8745-3ba8ad4a582f
-rwxr-xr-xconfigure.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.sh b/configure.sh
index d014575..703f3c7 100755
--- a/configure.sh
+++ b/configure.sh
@@ -10,7 +10,9 @@ if [ "$(echo ${VERBOSE} | tr '[:upper:]' '[:lower:]')" = 'yes' ]; then
fi
set -e # Abort on errors
-if [ -z "${LIBJPEG_DIR}" ]; then
+if [ -z "${LIBJPEG_DIR}" \
+ -o "$(echo "${LIBJPEG_DIR}" | tr '[a-z]' '[A-Z]')" = 'NO_BUILD' ]
+then
echo "BEGIN MESSAGE"
echo "LIBJPEG selected, but LIBJPEG_DIR not set. Checking some places..."
echo "END MESSAGE"