mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Fix the accidental nukage of PNG_LIBS.
Kind of silly setting PNG_LIBS to -lpng after going to the effort of using pkg-config now, isn't it :P
This commit is contained in:
parent
f75b0a611b
commit
7e5d654f3d
1 changed files with 1 additions and 2 deletions
|
@ -80,12 +80,11 @@ if test "x$enable_png" != "xno"; then
|
|||
else
|
||||
AC_CHECK_LIB(png, png_set_read_fn, HAVE_PNG=yes, HAVE_PNG=no, [$LIBS])
|
||||
if test "x$HAVE_PNG" = "xyes"; then
|
||||
AC_CHECK_HEADER(png.h, HAVE_PNG=yes, HAVE_PNG=no)
|
||||
AC_CHECK_HEADER(png.h, HAVE_PNG=yes PNG_LIBS="-lpng", HAVE_PNG=no)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(PNG_LIBS)
|
||||
if test "x$HAVE_PNG" = "xyes"; then
|
||||
PNG_LIBS="-lpng"
|
||||
AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng])
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue