cristy | 6f24258 | 2012-12-01 01:40:29 +0000 | [diff] [blame] | 1 | #!/bin/sh |
cristy | 45ef08f | 2012-12-07 13:13:34 +0000 | [diff] [blame] | 2 | # Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3 | # dedicated to making software imaging solutions freely available. |
| 4 | # |
| 5 | # You may not use this file except in compliance with the License. You may |
| 6 | # obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.imagemagick.org/script/license.php |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # Copyright (C) 2003 - 2009 GraphicsMagick Group |
| 17 | # |
| 18 | # Check script for building PerlMagick. |
| 19 | |
| 20 | echo "LD_LIBRARY_PATH='${LD_LIBRARY_PATH}'" |
| 21 | echo "MAGICK_CODER_MODULE_PATH='${MAGICK_CODER_MODULE_PATH}'" |
| 22 | echo "MAGICK_CONFIGURE_PATH='${MAGICK_CONFIGURE_PATH}'" |
| 23 | echo "MAGICK_FILTER_MODULE_PATH='${MAGICK_FILTER_MODULE_PATH}'" |
| 24 | echo "MAKE='${MAKE}'" |
| 25 | echo "MAKEFLAGS='${MAKEFLAGS}'" |
| 26 | echo "MEMCHECK='${MEMCHECK}'" |
| 27 | echo "PATH='${PATH}'" |
| 28 | echo "SRCDIR='${SRCDIR}'" |
| 29 | echo "srcdir='${srcdir}'" |
| 30 | |
| 31 | set -x |
| 32 | |
| 33 | SRCDIR=`dirname $0` |
| 34 | SRCDIR=`cd $SRCDIR && pwd` |
| 35 | TOPSRCDIR=`cd $srcdir && pwd` |
| 36 | |
| 37 | cd PerlMagick || exit 1 |
| 38 | |
| 39 | if test -z "${MAKE}" ; then |
| 40 | MAKE=make |
| 41 | fi |
| 42 | |
| 43 | if test -x PerlMagick -a -f Makefile.aperl ; then |
| 44 | # Static build test incantation |
cristy | a7cb431 | 2010-06-26 00:47:03 +0000 | [diff] [blame] | 45 | ${MAKE} -f Makefile.aperl CC='@CC@' TEST_VERBOSE=1 test |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 46 | elif test -f Makefile -a -f Magick.o; then |
| 47 | # Shared build test incantation |
cristy | a7cb431 | 2010-06-26 00:47:03 +0000 | [diff] [blame] | 48 | ${MAKE} CC='@CC@' TEST_VERBOSE=1 test |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 49 | else |
| 50 | echo 'PerlMagick has not been built!' |
| 51 | exit 1 |
| 52 | fi |