[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Autoconf problems
From: |
Philippe Michel |
Subject: |
[Bug-gnubg] Autoconf problems |
Date: |
Tue, 19 Dec 2006 22:14:34 +0100 (CET) |
I have problems with autoconf (this is on freebsd 6.1) that seem related
to the changes from Dec 6th (configure.in rel.1.155).
First, configure doesn't find libpng. It looks for "libpng" with
pkg-config, but there is only "libpng12". The patch below suppress the
problem for me. This may not be the right way to fix it though. For
instance, cairo (original dist., without freebsd patches), that depends on
libpng as well, has something like :
# libpng13 is GnuWin32's libpng-1.2.8 :-(
for l in libpng12 libpng13 libpng10 ; do
if $PKG_CONFIG --exists $l ; then
etc...
*** configure.in.dist Tue Dec 19 20:22:54 2006
--- configure.in Tue Dec 19 21:43:36 2006
***************
*** 102,108 ****
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0], , [AC_MSG_ERROR("You need to have
glib2 to compile GNU backgammon")])
PKG_CHECK_MODULES(LIBXML2, libxml-2.0, AC_DEFINE(HAVE_LIBXML2,1,Define if you
want to use libxml2 to parse XML.), [])
PKG_CHECK_MODULES(FREETYPE2, [freetype2], AC_DEFINE(HAVE_FREETYPE, 1, Define
if you have freetype2), [])
! PKG_CHECK_MODULES(LIBPNG, [libpng], AC_DEFINE(HAVE_LIBPNG, 1, Define if you
have libpng), [])
dnl
dnl Checks for libraries.
--- 102,114 ----
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0], , [AC_MSG_ERROR("You need to have
glib2 to compile GNU backgammon")])
PKG_CHECK_MODULES(LIBXML2, libxml-2.0, AC_DEFINE(HAVE_LIBXML2,1,Define if you
want to use libxml2 to parse XML.), [])
PKG_CHECK_MODULES(FREETYPE2, [freetype2], AC_DEFINE(HAVE_FREETYPE, 1, Define
if you have freetype2), [])
! for l in libpng libpng12; do
! if pkg-config --exists $l ; then
! png_rel=$l
! break
! fi
! done
! PKG_CHECK_MODULES(LIBPNG, [$png_rel], AC_DEFINE(HAVE_LIBPNG, 1, Define if you
have libpng), [])
dnl
dnl Checks for libraries.
Another problem is that ./configure --without-python fails with :
configure: error: conditional "PYTHON_USE" was never defined.
Usually this means the macro was only invoked conditionally.
- [Bug-gnubg] Autoconf problems,
Philippe Michel <=