#!/bin/sh WCFLAGS="-I/usr/pkg/include -I/usr/openwin/include" WLFLAGS="-L/usr/pkg/lib -L/usr/openwin/lib -R/usr/openwin/lib" WLIBS="-lwraster -ltiff -lXpm -lHermes -lpng -lz -ljpeg -lungif -lXext -lX11 -lsocket -lnsl -lm" usage="Usage: get-wraster-flags [--cflags] [--ldflags] [--libs]" if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case $1 in --cflags) echo $WCFLAGS ;; --ldflags|--lflags) echo $WLFLAGS ;; --libs) echo $WLIBS ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done