Dear Andreas,

Andreas Tille <andr...@an3as.eu> writes:

...

I was checking this as well - seems here is something broken:


# checks for libraries
AC_SEARCH_LIBS([zlibVersion],[z])
AC_SEARCH_LIBS([sqrt],[m])
PKG_CHECK_MODULES([PNG], [libpng >= 1.2.0])


PKG_CHECK_MODULES macro defines set of [lib]png_* variables,
specially [lib]png_CFLAGS and [lib]png_LIBS, which can be used
in Makefile[.am] by this way:

pngnq_CFLAGS = ... $(png_CFLAGS) ..
pngnq_LDADD = ... $(png_LIBS) ..

(I'm unsure if ones are png_* or libpng_*, please
consult `config.log').

As an alternative, the command:

 $ libpng-config --libs
   -lpng16

can be added to the command line; linked libraries should
be the last argument.

I believe it makes a sense,
FH
--
F. Hroch <hr...@physics.muni.cz>, Masaryk University,
Dept. of theor. physics and astrophysics, Brno, Moravia, CZ

Reply via email to