aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-05 16:33:49 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:52 +0100
commit7135bb83dacf088e6613149453a9e51dd005a730 (patch)
treea588a7146cb0ba7dd637a1ee4e990cea9e682ffa /configure
parentd12550ca258bc9c7dbe7d887ed81949e406d5aef (diff)
Test for libPNG
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 4b07d22c..aa57f823 100755
--- a/configure
+++ b/configure
@@ -5710,14 +5710,14 @@ if $PKG_CONFIG --atleast-version 1.2.0 libpng ; then
$as_echo "$LIBPNG_VERSION" >&6; }
LIBPNG_CFLAGS=`$PKG_CONFIG --cflags libpng`
LIBPNG_LIBS=`$PKG_CONFIG --libs libpng`
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBPNG 1
+_ACEOF
+
else
{ $as_echo "$as_me:$LINENO: result: Lower than 1.2.0 or not found" >&5
$as_echo "Lower than 1.2.0 or not found" >&6; }
- { { $as_echo "$as_me:$LINENO: error:
-*** libPNG is required to build CrystFEL" >&5
-$as_echo "$as_me: error:
-*** libPNG is required to build CrystFEL" >&2;}
- { (exit 1); exit 1; }; }
fi