gtk2/gtk-config.in
Owen Taylor c8e5c809ed Added a new mechanism for GTK-dependent programs to find out about the
Thu Mar 12 18:01:03 1998  Owen Taylor  <owt1@cornell.edu>

	* gtk.m4 gtk-config.in Makefile.am configure.in:
	  Added a new mechanism for GTK-dependent programs to
	  find out about the installed GTK. (Does not remove
	  any current functionality)

	* gtk+-xconfig.in: Was no longer used for anything.
1998-03-12 23:23:43 +00:00

28 lines
419 B
Bash

#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
usage="\
Usage: gtk-config [--version] [--libs] [--cflags]"
if test $# -ne 1 ; then
echo "${usage}" 1>&2
exit 1
fi
case $1 in
--version)
echo @GTK_VERSION@
;;
--cflags)
echo -I@includedir@ @x_cflags@
;;
--libs)
echo -L@libdir@ @x_ldflags@ -lgtk -lgdk -lglib @x_libs@ -lm
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac