openbsd-ports/net/mldonkey/stable/patches/patch-config_configure_in
dcoppa 842da8d68a Bugfix update to mldonkey-3.0.5.
Switch to new-style LIB_DEPENDS/WANTLIB.
Minor style cleanups.
2010-10-11 06:45:10 +00:00

22 lines
926 B
Plaintext

$OpenBSD: patch-config_configure_in,v 1.13 2010/10/11 06:45:10 dcoppa Exp $
--- config/configure.in.orig Sun Sep 26 16:20:30 2010
+++ config/configure.in Sun Oct 10 22:36:37 2010
@@ -871,7 +871,7 @@ if test "$GD" != "no"; then
PNG_LDFLAGS=`$PNGLIBCONFIG --ldflags`
LDFLAGS="$LDFLAGS $PNG_LDFLAGS"
fi
- AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes])
+ AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes],, -lz -lm)
# restore variables
LIBS=$SAVE_LIBS_PNG
CFLAGS=$SAVE_CFLAGS_PNG
@@ -899,7 +899,7 @@ if test "$GD" != "no"; then
GD=yes
GD_PNG=yes
AC_MSG_RESULT(yes)
- AC_CHECK_LIB(png, png_access_version_number,[AC_DEFINE(HAVE_PNGVERSION, 1,)])
+ AC_CHECK_LIB(png, png_access_version_number,[AC_DEFINE(HAVE_PNGVERSION, 1,)],, -lz -lm)
AC_DEFINE(HAVE_GD_PNG, 1, [Define to 1 if you have png support in libgd.])
else
AC_MSG_RESULT(no)