blob: 6257e46df98f3a4064f12a4b2099ae639447f761 [file] [log] [blame]
cristy01ff9f32012-12-01 18:15:29 +00001#!/bin/sh
cristyb56bb242014-11-25 17:12:48 +00002# Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization
cristybd1c7bf2010-04-07 23:50:41 +00003# 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
20echo "LD_LIBRARY_PATH='${LD_LIBRARY_PATH}'"
21echo "MAGICK_CODER_MODULE_PATH='${MAGICK_CODER_MODULE_PATH}'"
22echo "MAGICK_CONFIGURE_PATH='${MAGICK_CONFIGURE_PATH}'"
23echo "MAGICK_FILTER_MODULE_PATH='${MAGICK_FILTER_MODULE_PATH}'"
24echo "MAKE='${MAKE}'"
25echo "MAKEFLAGS='${MAKEFLAGS}'"
26echo "MEMCHECK='${MEMCHECK}'"
27echo "PATH='${PATH}'"
28echo "SRCDIR='${SRCDIR}'"
29echo "srcdir='${srcdir}'"
30
31set -x
32
33SRCDIR=`dirname $0`
34SRCDIR=`cd $SRCDIR && pwd`
35TOPSRCDIR=`cd $srcdir && pwd`
36
37cd PerlMagick || exit 1
38
39if test -z "${MAKE}" ; then
40 MAKE=make
41fi
42
43if test -x PerlMagick -a -f Makefile.aperl ; then
44 # Static build test incantation
cristy02bcb982014-10-05 19:22:25 +000045 ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
cristybd1c7bf2010-04-07 23:50:41 +000046elif test -f Makefile -a -f Magick.o; then
47 # Shared build test incantation
cristy02bcb982014-10-05 19:22:25 +000048 ${MAKE} CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
cristybd1c7bf2010-04-07 23:50:41 +000049else
50 echo 'PerlMagick has not been built!'
51 exit 1
52fi