afb511f773
Tested on i386 and amd64. OK benoit@ (maintainer), aja@
13 lines
529 B
Plaintext
13 lines
529 B
Plaintext
$OpenBSD: patch-configure,v 1.2 2012/04/27 14:33:23 gonzalo Exp $
|
|
--- configure.orig Sun Feb 26 17:11:59 2012
|
|
+++ configure Thu Apr 26 10:57:00 2012
|
|
@@ -587,7 +587,7 @@ if test "$_libpng" = auto ; then
|
|
#include <png.h>
|
|
int main(void) { return printf("%s\n", PNG_HEADER_VERSION_STRING); }
|
|
EOF
|
|
- cc_check $LDFLAGS $CXXFLAGS $LIBPNG_CFLAGS $LIBPNG_LIBS -lpng && _libpng=yes
|
|
+ cc_check $LDFLAGS $CXXFLAGS $LIBPNG_CFLAGS $LIBPNG_LIBS `pkg-config --libs libpng` && _libpng=yes
|
|
fi
|
|
if test "$_libpng" = yes ; then
|
|
echo "$_libpng"
|