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