aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-27 18:01:25 +0200
committerThomas White <taw@physics.org>2010-04-27 18:01:47 +0200
commit206c163522a4d3e5ffc8ab6817dce1675196344f (patch)
tree42785276b4b4b33a86fb84ae200f82dfb60cba8a /configure
parent409fd287a1c29a661b138a90b8b4334d502a1847 (diff)
hdfsee: Add ability to save image as PNG
Also moves the "Image" menu to "View", where it belongs.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 8b36eee3..b85ee57e 100755
--- a/configure
+++ b/configure
@@ -5700,6 +5700,25 @@ done
+{ $as_echo "$as_me:$LINENO: checking libpng" >&5
+$as_echo_n "checking libpng... " >&6; }
+if $PKG_CONFIG --atleast-version 1.2.0 libpng ; then
+ LIBPNG_VERSION=`$PKG_CONFIG --modversion libpng`
+ { $as_echo "$as_me:$LINENO: result: $LIBPNG_VERSION" >&5
+$as_echo "$LIBPNG_VERSION" >&6; }
+ LIBPNG_CFLAGS=`$PKG_CONFIG --cflags libpng`
+ LIBPNG_LIBS=`$PKG_CONFIG --libs libpng`
+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
+
+
CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS $GSL_CFLAGS $OPENCL_CFLAGS -pthread"
LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS $OPENCL_LIBS -pthread"