> Looking at compiling xawtv for the first time in quite a while (3.21 was > the last), and noticed the following in config.log: > > configure:2407: checking for png_read_info in -lpng > configure:2426: gcc -o conftest -g -O2 conftest.c -lpng 1>&5 > /usr/lib/libpng.so: undefined reference to `deflate' > /usr/lib/libpng.so: undefined reference to `inflate' ... > So, looks like two issues exist here: > > First, a check for -lz and using that with -lpng seems prudent. I disagree, if libpng depends on libz it should have a DT_NEEDED entry in it. And for me, it does: % ldd /usr/lib/libpng.so.2.1.0.5 libz.so.1 => /usr/lib/libz.so.1 (0x4002b000) libm.so.6 => /lib/libm.so.6 (0x4003b000) libc.so.6 => /lib/libc.so.6 (0x40058000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > Second, if the user supplies LIBS=, they should be honored in the Makefile, > correct? Hmm, I don't know whether there is a standard for this, it could be EXTRA_LIBS or X11_EXTRA_LIBS too.. Regards, Wolfram.