From afdf3145b245976a7591db3de3583425099e60a8 Mon Sep 17 00:00:00 2001 From: Roland Lutz Date: Sun, 1 Mar 2015 14:27:17 +0100 Subject: [PATCH] Add missing check for PNG library As Peter Stuge pointed out, it works anyway if fltk is built with png support because solvespace uses the flags returned by fltk-config. If fltk was built with png support enabled, these include -lpng. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 0813f79..d323c1e 100644 --- a/configure.ac +++ b/configure.ac @@ -95,6 +95,13 @@ AH_VERBATIM([MSVC_FLAGS], [#if defined(_MSC_VER) && defined(_WIN32) # define WIN32_LEAN_AND_MEAN 1 #endif]) +AC_CHECK_LIB( + [png], [png_set_sig_bytes], [], + [AC_MSG_ERROR([Cannot find -lpng])]) +AC_CHECK_HEADERS( + [png.h], [], + [AC_MSG_ERROR([Cannot find png.h])]) + ## ## FLTK ##