[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/macros gtk2.m4
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/macros gtk2.m4 |
Date: |
Tue, 16 May 2006 22:22:45 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Branch:
Changes by: Rob Savoye <address@hidden> 06/05/16 22:22:45
Modified files:
macros : gtk2.m4
Log message:
Fix so the defaut behaviour works again.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/macros/gtk2.m4.diff?tr1=1.19&tr2=1.20&r1=text&r2=text
Patches:
Index: gnash/macros/gtk2.m4
diff -u gnash/macros/gtk2.m4:1.19 gnash/macros/gtk2.m4:1.20
--- gnash/macros/gtk2.m4:1.19 Tue May 16 17:06:01 2006
+++ gnash/macros/gtk2.m4 Tue May 16 22:22:45 2006
@@ -37,6 +37,8 @@
AC_DEFUN([GNASH_PATH_GTK2],
[
+ version=""
+ topdir=""
dnl Look for the header
AC_ARG_WITH(gtk2_incl, [ --with-gtk2-incl directory where libgtk2
header is], with_gtk2_incl=${withval})
AC_CACHE_VAL(ac_cv_path_gtk2_incl,[
@@ -61,7 +63,7 @@
topdir=""
version=""
for i in $pathlist; do
- for j in `ls -dr $i/gtk-[[0-9]].[[0-9]] 2>/dev/null`; do
+ for j in `ls -dr $i/gtk-[[2-9]].[[0-9]] 2>/dev/null`; do
if test -f $j/gtk/gtk.h; then
topdir=`basename $j`
version=`echo ${topdir} | sed -e 's:gtk-::'`
@@ -88,6 +90,7 @@
for i in $incllist; do
if test -f $i/${topdir}/gtk/gtk.h; then
ac_cv_path_gtk2_incl="-I$i/${topdir}"
+ break
else
if test -f $i/gtk/gtk.h; then
ac_cv_path_gtk2_incl="-I$i"
@@ -146,17 +149,17 @@
fi
if test x"${ac_cv_path_gtk2_incl}" != x; then
+ libslist="${prefix}/lib64 ${prefix}/lib /usr/X11R6/lib64 /usr/X11R6/lib
/usr/lib64 /usr/lib /sw/lib /usr/local/lib /home/latest/lib /opt/lib
/usr/pkg/lib .. ../.."
+ for i in $libslist; do
+ if test -f $i/gtk-${version}/include/gdkconfig.h; then
+ GTK2_CFLAGS="-I${i}/gtk-${version}/include"
+ break
+ fi
+ done
if test x"${ac_cv_path_gtk2_incl}" = x"yes"; then
- GTK2_CFLAGS=""
+ GTK2_CFLAGS="$GTK2_CFLAGS"
else
- libslist="${prefix}/lib64 ${prefix}/lib /usr/X11R6/lib64 /usr/X11R6/lib
/usr/lib64 /usr/lib /sw/lib /usr/local/lib /home/latest/lib /opt/lib
/usr/pkg/lib .. ../.."
- for i in $libslist; do
- if test -f $i/gtk-${version}/include/gdkconfig.h; then
- ac_cv_path_gtk2_incl="${ac_cv_path_gtk2_incl}
-I${i}/gtk-${version}/include"
-
- fi
- done
- GTK2_CFLAGS="${ac_cv_path_gtk2_incl}"
+ GTK2_CFLAGS="${ac_cv_path_gtk2_incl} $GTK2_CFLAGS"
fi
AC_DEFINE([HAVE_GTK2], [1], [Use GTK2 for windowing])
else