Permalink
Browse files

Reset gdk_pixbuf_include_dir when gdk-pixbuf headers are not in their…

… own dir
  • Loading branch information...
nox authored and jlouis committed Feb 14, 2011
1 parent 84e329e commit 2986867a8f4563cbca3177ac6ce739e87dbc17e1
Showing with 3 additions and 0 deletions.
  1. +3 −0 configure.ac
View
@@ -31,6 +31,9 @@ dnl Get the directory that contains the GTK+ include files.
gtk_include_dir=`echo "$GTK_CFLAGS" | sed -n -e 's/^.*-I\([[^ ]]*include\/gtk-2.0\).*$/\1/p'`
AC_SUBST([GTKINC], [$gtk_include_dir])
gdk_pixbuf_include_dir=`echo "$GTK_CFLAGS" | sed -n -e 's/^.*-I\([[^ ]]*include\/gdk-pixbuf-2.0\).*$/\1/p'`
+if [[ -z "$gdk_pixbuf_include_dir" ]]; then
+ gdk_pixbuf_include_dir="$gtk_include_dir"
+fi
AC_SUBST([GDKPIXBUFINC], [$gdk_pixbuf_include_dir])
glib_include_dir=`echo "$GTK_CFLAGS" | sed -n -e 's/^.*-I\([[^ ]]*include\/glib-2.0\).*$/\1/p'`
AC_SUBST([GINC], [$glib_include_dir])

0 comments on commit 2986867

Please sign in to comment.