configure: On Solaris, libpng requires libm.

This commit is contained in:
Jeremy White 2008-06-27 13:28:45 -05:00 committed by Alexandre Julliard
parent 659542aafc
commit 082e39f951
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -16044,7 +16044,7 @@ if test "${ac_cv_lib_soname_png+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_soname_save_LIBS=$LIBS ac_check_soname_save_LIBS=$LIBS
LIBS="-lpng $LIBS" LIBS="-lpng -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ /* confdefs.h. */
_ACEOF _ACEOF

View File

@ -1201,7 +1201,7 @@ WINE_WARNING_WITH(jpeg,[test "x$ac_cv_lib_soname_jpeg" = "x"],
dnl **** Check for libpng **** dnl **** Check for libpng ****
if test "$ac_cv_header_png_h" = "yes" if test "$ac_cv_header_png_h" = "yes"
then then
WINE_CHECK_SONAME(png,png_create_read_struct,,,,[[libpng[[0-9]]*]]) WINE_CHECK_SONAME(png,png_create_read_struct,,,-lm,[[libpng[[0-9]]*]])
fi fi
WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"], WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
[libpng development files not found, PNG won't be supported.]) [libpng development files not found, PNG won't be supported.])