Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

expand configure check for epeg

git-svn-id: http://svn.kfish.org/fastphoto/trunk@154 9c49b5d1-7df3-0310-bce2-b7278e68f44c
  • Loading branch information...
commit 0bee6f0414d1cacb31ba77dad5a6059a3eb60bcc 1 parent 2c05d79
conrad authored
Showing with 19 additions and 8 deletions.
  1. +19 −8 configure.ac
View
27 configure.ac
@@ -116,17 +116,28 @@ esac
# Checks for library functions.
+#
+# Detect Epeg
+#
+
PKG_CONFIG_PATH=$PWD/epeg:$PKG_CONFIG_PATH
-PKG_CHECK_MODULES(EPEG, epeg, HAVE_EPEG=yes,
- AC_MSG_ERROR([
+PKG_CHECK_MODULES(EPEG, epeg >= 0.9.0,
+ HAVE_EPEG="yes", HAVE_EPEG="no")
-could not find Epeg. please update PKG_CONFIG_PATH to point to Epeg's source
-folder or run ./get_epeg_cvs.sh
+if test "$HAVE_EPEG" = "yes" ; then
+ AC_DEFINE([HAVE_EPEG], [], [Define if epeg is found])
+ AC_SUBST(EPEG_CFLAGS)
+ AC_SUBST(EPEG_LIBS)
+else
+ AC_MSG_ERROR([
+***
+*** Epeg 1.0 development library is not installed
+***
+*** Please update PKG_CONFIG_PATH to point to Epeg's source folder
+*** or run ./get_epeg_cvs.sh
+***
])
-)
-AC_SUBST(EPEG_CFLAGS)
-AC_SUBST(EPEG_LIBS)
-
+fi
dnl
dnl Configuration tests complete -- provide summary of results.
Please sign in to comment.
Something went wrong with that request. Please try again.