>   Oops. Luckily pango isn't used, it's just a dependency of GtkGlExt. 
> It's supposed to be just pango.h, but I missed the extra "gl" part when 
> cloning an existing configure test. I just checked in a fix with the 
> correct spelling.

It's better now, but still not quite there. Indeed, if I do a simple 
./configure
the right pango version is found (1.0), but it cannot find pango/pango.h
as it is in /usr/include/pango-1.0, and it searches in /usr/include.
If I use --with-pango-incl the header is found but the version used is
2.0, so the the link fails because -lpango-2.0 isn't found.

After I applied the attached patch the right version is found, the library
too, but the function used to test the pango link doesn't seems to be in 
pango anymore.

I tried with another function, pango_engine_get_type and ./configure 
worked (this is in the attached patch, too).

I haven't really looked at the issue, but it seems to ùe that pango 
isn't used directly by gnash. So shouldn't pango flags be set by 
pkgconfig, on platforms with pkgconfig support?

--
Pat
Index: pango.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/pango.m4,v
retrieving revision 1.4
diff -u -3 -p -r1.4 pango.m4
--- pango.m4    31 Mar 2006 19:55:37 -0000      1.4
+++ pango.m4    31 Mar 2006 21:58:53 -0000
@@ -65,6 +65,9 @@ AC_DEFUN([GNASH_PATH_PANGO],
            if test -f $j/pango/pango.h; then
              topdir=`basename $j`
              version=`echo ${topdir} | sed -e 's:pango-::'`
+              if test x"${ac_cv_path_pango_incl}" = x; then
+                ac_cv_path_pango_incl=$j
+              fi
              break
            fi
          done
@@ -125,7 +128,7 @@ AC_DEFUN([GNASH_PATH_PANGO],
       dnl If the header doesn't exist, there is no point looking for
       dnl the library. 
       if test x"${ac_cv_path_pango_incl}" != x; then
-        AC_CHECK_LIB(pango-${version}, pango_engine_shape_class_init, 
[ac_cv_path_pango_lib="-lpango-${version}"],[
+        AC_CHECK_LIB(pango-${version}, pango_engine_get_type, 
[ac_cv_path_pango_lib="-lpango-${version}"],[
           AC_MSG_CHECKING([for libpango library])
           libslist="/usr/lib64 /usr/lib /sw/lib /usr/local/lib 
/home/latest/lib /opt/lib /usr/pkg/lib .. ../.."
           for i in $libslist; do
_______________________________________________
Gnash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash

Reply via email to