#!/bin/csh
#
# Usage:     include-config  [-local local_libpath] glib_ver gtk_ver
#
#
# Use either the pkg-config on the path or the one
# specified by the "-local" flag.
#
# In either case pkg-config is passed the glib and gtk versions.
#

set pkg_config = 'pkg-config'

if ("$1" == '-local') then				    # quotes protect the "-" in -local
  set local_path = $2
  shift ; shift
  set pkg_config = $local_path/bin/$pkg_config
  setenv PKG_CONFIG_PATH $local_path/lib/pkgconfig
endif


echo -n "-DGTK2 "

$pkg_config --cflags $1 $2
shift; shift;
echo -n $*
echo -n " "

