Commit 103594c6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

if available use pkg-config to determine compiler and linker flags at

2006-01-06  Sven Neumann  <sven@gimp.org>

	* gimptool-2.0.in: if available use pkg-config to determine
	compiler and linker flags at runtime. Fixes bug #324761.
parent f77a5a90
2006-01-06 Sven Neumann <sven@gimp.org>
* gimptool-2.0.in: if available use pkg-config to determine
compiler and linker flags at runtime. Fixes bug #324761.
2006-01-06 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-save.c (save_image): give more feedback by
......
......@@ -92,15 +92,20 @@ if test $# -eq 0; then
fi
if test x${PKG_CONFIG+set} != xset ; then
gtk_cflags='@GTK_CFLAGS@'
gtk_libs='@GTK_LIBS@'
glib_cflags='@GLIB_CFLAGS@'
glib_libs='@GLIB_LIBS@'
else
PKG_CONFIG=pkg-config
fi
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
gtk_cflags=`$PKG_CONFIG --cflags gtk+-2.0`
gtk_libs=`$PKG_CONFIG --libs gtk+-2.0`
glib_cflags=`$PKG_CONFIG --cflags glib-2.0`
glib_libs=`$PKG_CONFIG --libs glib-2.0`
else
echo "*** pkg-config not found or too old; using paths from gimp compilation." 1>&2
gtk_cflags='@GTK_CFLAGS@'
gtk_libs='@GTK_LIBS@'
glib_cflags='@GLIB_CFLAGS@'
glib_libs='@GLIB_LIBS@'
fi
if test x${INSTALL+set} != xset ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment