#!/bin/sh
#
# Configure options script for re-calling  compilation
# options required to use the  Wand 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: Wand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]

 For example, "demo.c" may be compiled to produce "example" as follows:

  "gcc -o demo demo.c `Wand-config --cppflags --cflags --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
      ;;
    --exec-prefix)
      echo /usr
      ;;
    --version)
      echo 6.0.4
      ;;
    --cflags)
      echo "`Magick-config --cflags`"
      ;;
    --cppflags)
      echo "`Magick-config --cppflags`"
      ;;
    --ldflags)
      echo "`Magick-config --ldflags`"
      ;;
    --libs)
      LIBS="-lWand `Magick-config --libs`"
      echo "$LIBS"
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

