Commit c57e0ce8 authored by Thomas White's avatar Thomas White
Browse files

Fix TIFF test

parent 119608ac
......@@ -53,9 +53,6 @@
/* Define to 1 if libPNG is available */
#undef HAVE_LIBPNG
/* Define to 1 if you have the `tiff' library (-ltiff). */
#undef HAVE_LIBTIFF
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */
#undef HAVE_MALLOC
......
......@@ -7043,14 +7043,10 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBTIFF 1
_ACEOF
LIBS="-ltiff $LIBS"
have_libtiff=true
LIBTIFF_LIBS="-ltiff"
else
have_libtiff=true
fi
......
......@@ -159,7 +159,10 @@ AS_IF([test "x$enable_tiff" != "xno"],
LIBTIFF_LIBS="-L$withval/lib -ltiff"
have_libtiff=true
], [
AC_CHECK_LIB([tiff], [TIFFOpen], [], [have_libtiff=true])
AC_CHECK_LIB([tiff], [TIFFOpen], [
have_libtiff=true
LIBTIFF_LIBS="-ltiff"
])
])
], [
AC_MSG_RESULT([no])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment