diff options
author | Thomas White <taw@physics.org> | 2011-03-09 16:34:52 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:19 +0100 |
commit | c57e0ce86d79401b73b8395431c433b7a2d56bad (patch) | |
tree | 7abb5608ec2bf35cc6dbc32fa5a68260938bfad7 | |
parent | 119608ac2a339aca282812e9cbdc3bb015c1040c (diff) |
Fix TIFF test
-rw-r--r-- | config.h.in | 3 | ||||
-rwxr-xr-x | configure | 8 | ||||
-rw-r--r-- | configure.ac | 5 |
3 files changed, 6 insertions, 10 deletions
diff --git a/config.h.in b/config.h.in index 165d8766..1393c5a6 100644 --- a/config.h.in +++ b/config.h.in @@ -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 diff --git a/configure.ac b/configure.ac index c9f410da..e89dd096 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) |