#!/bin/sh # # Configure options script for re-calling ImageMagick compilation # options required to use the ImageMagick library. # # Concept derived from gtk-config in the Gtk package except that Autoconf-style # configuration information is presented instead so that it may be used more # effictively in configure scripts. # usage="\ Usage: Magick-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--cppflags] [--ldflags] [--libs]" if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --version) echo @MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@ ;; --cflags) echo '@CFLAGS@' ;; --cppflags) echo "-DHAVE_CONFIG_H @CPPFLAGS@" ;; --ldflags) echo '@LDFLAGS@' ;; --libs) LIBS=`echo @MAGICKLIB@ @LIB_JBIG@ @LIB_HDF@ @LIB_LCMS@ @LIB_TIFF@ @LIB_TTF@ @LIB_JP2@ @LIB_JPEG@ @LIB_XML@ @LIB_PNG@ @LIB_FPX@ @LIB_DPS@ @LIB_XEXT@ @LIB_XT@ @LIB_X11@ @LIB_BZLIB@ @LIB_ZLIB@ @LIB_THREAD@ @LIB_LF@ @LIB_MATH@ | sed -e 's/ */ /g'` echo "$LIBS" ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done