Adding explicitely the new test
[openjpeg.git] / configure.ac
index f1e68b3110c24702a36b9c13f8df96c6cf63ea61..cef24a518d6cf7f17a7e19408b899db357fe9634 100644 (file)
@@ -351,6 +351,21 @@ if test "x${want_jpip}" = "xyes" ; then
 
 fi
 
+# libcurl
+
+if test "x${want_jpip}" = "xyes" ; then
+
+   PKG_CHECK_MODULES([LIBCURL], [libcurl],
+      [have_libcurl="yes"],
+      [have_libcurl="no"])
+
+   if ! test "x${have_libcurl}" = "xyes" ; then
+      AC_MSG_WARN([libcurl library not found. OpenJPIP will not be compiled.])
+      want_jpip="no"
+   fi
+
+fi
+
 if test "x${want_jpip}" = "xyes" ; then
    AC_DEFINE(USE_JPIP, [1], [define to 1 if you use jpip])
 fi
@@ -411,11 +426,7 @@ applications/codec/Makefile
 applications/mj2/Makefile
 applications/jpip/Makefile
 applications/jpip/libopenjpip/Makefile
-applications/jpip/opj_server/Makefile
-applications/jpip/opj_client/Makefile
-applications/jpip/opj_client/opj_dec_server/Makefile
-applications/jpip/tools/Makefile
-applications/jpip/tools/indexer/Makefile
+applications/jpip/util/Makefile
 doc/Makefile
 ])