configure: add libpng to client libs
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 1 Feb 2012 09:31:31 +0000 (11:31 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Wed, 1 Feb 2012 10:12:19 +0000 (12:12 +0200)
commit0e4452e02a1036e7c85059762cd7b5f5aede1eaa
treeb40ba6e0bdcaa24d80343b3da68e7419a91bf346
parent0452abc8203e2c037f074c059b9952b9410ccbdd
configure: add libpng to client libs

http://lists.freedesktop.org/archives/wayland-devel/2012-January/001975.html
reports a linking problem:

/usr/bin/ld: libtoytoolkit.a(cairo-util.o): undefined reference to
symbol 'png_set_filler@@PNG12_0'
/usr/bin/ld: note: 'png_set_filler@@PNG12_0' is defined in DSO
/usr/lib/i386-linux-gnu/libpng12.so.0 so try adding it to the linker command line
/usr/lib/i386-linux-gnu/libpng12.so.0: could not read symbols: Invalid
operation
collect2: ld returned 1 exit status
make[3]: [weston-terminal] Error 1 (ignored)

A similar problem is diagnosed here:
http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html

As some distros are shipping linkers, that do not resolve symbols from
implicitly linked libraries, check and link libpng explicitly.

Cc: nerdopolis <bluescreen_avenger@verizon.net>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
configure.ac