#!/bin/sh
#
# Configure options script for re-calling Magick+ compilation options
# required to use the Magick++ library.
#
#
usage='Usage: Magick++-config [--cppflags] [--cxxflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]

 For example, "magick.cpp" may be compiled to produce "magick" as follows:

  "c++ -o magick magick.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`"'

if test $# -eq 0; then
      echo "${usage}" 1>&2
      exit 1
fi

while test $# -gt 0; do
  case $1 in
    --prefix)
      echo /usr/local
      ;;
    --exec-prefix)
      echo /usr/local
      ;;
    --version)
      echo 6.3.2
      ;;
    --cflags)
      echo '-O2 -pipe -Wall -W'
      ;;
    --cxxflags)
      echo '-O2 -pipe -Wall -W'
      ;;
    --cppflags)
      echo '-I/usr/local/include'
      ;;
    --ldflags)
      echo '-L/usr/local/lib -L/usr/obj/ports/ImageMagick-6.3.2.1/build-amd64/magick/.libs -L/usr/obj/ports/ImageMagick-6.3.2.1/build-amd64/wand/.libs -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lfreetype -L/usr/local/lib'
      ;;
    --libs)
      echo '-lMagick++ -lMagick -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lWand -lMagick'
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

