Make the zoom lable a bit bigger
[geeqie.git] / configure.ac
index 7e20158..caf56fa 100644 (file)
@@ -529,8 +529,15 @@ if test "x${liblua}" != "xno"; then
       AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
     ],
     [
-      HAVE_LUA=no
-      AC_MSG_WARN([$LUA_PKG_ERRORS])
+      PKG_CHECK_MODULES(LUA, lua >= 5.1,
+        [
+          HAVE_LUA=yes
+          AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
+        ],
+        [
+           HAVE_LUA=no
+           AC_MSG_WARN([$LUA_PKG_ERRORS])
+        ])
     ])
 else
   HAVE_LUA=disabled
@@ -569,6 +576,81 @@ AM_CONDITIONAL(HAVE_PDF, [test "x$HAVE_PDF" = xyes])
 AC_SUBST(PDF_CFLAGS)
 AC_SUBST(PDF_LIBS)
 
+#  Heif support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([heif],
+  AC_HELP_STRING([--disable-heif], [disable heif support]),
+    [libheif=$enableval], [libheif=auto])
+
+if test "x${libheif}" != "xno"; then
+  PKG_CHECK_MODULES(HEIF, libheif >= 1.3.2,
+    [
+      HAVE_HEIF=yes
+      AC_DEFINE(HAVE_HEIF, 1, [define to enable heif support])
+    ],
+    [
+      HAVE_HEIF=no
+      AC_MSG_WARN([$HEIF_PKG_ERRORS])
+    ])
+else
+    HAVE_HEIF=disabled
+fi
+
+AM_CONDITIONAL(HAVE_HEIF, [test "x$HAVE_HEIF" = xyes])
+AC_SUBST(HEIF_CFLAGS)
+AC_SUBST(HEIF_LIBS)
+
+#  WebP support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([webp],
+  AC_HELP_STRING([--disable-webp], [disable webp support]),
+    [libwebp=$enableval], [libwebp=auto])
+
+if test "x${libwebp}" != "xno"; then
+  PKG_CHECK_MODULES(WEBP, libwebp >= 0.6.1,
+    [
+      HAVE_WEBP=yes
+      AC_DEFINE(HAVE_WEBP, 1, [define to enable webp support])
+    ],
+    [
+      HAVE_WEBP=no
+      AC_MSG_WARN([$WEBP_PKG_ERRORS])
+    ])
+else
+    HAVE_WEBP=disabled
+fi
+
+AM_CONDITIONAL(HAVE_WEBP, [test "x$HAVE_WEBP" = xyes])
+AC_SUBST(WEBP_CFLAGS)
+AC_SUBST(WEBP_LIBS)
+
+#  DjVu support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([djvu],
+  AC_HELP_STRING([--disable-djvu], [disable djvu support]),
+    [libdjvulibre=$enableval], [libdjvulibre=auto])
+
+if test "x${libdjvulibre}" != "xno"; then
+  PKG_CHECK_MODULES(DJVU, ddjvuapi >= 3.5.27,
+    [
+      HAVE_DJVU=yes
+      AC_DEFINE(HAVE_DJVU, 1, [define to enable DjVu support])
+    ],
+    [
+      HAVE_DJVU=no
+      AC_MSG_WARN([$DJVU_PKG_ERRORS])
+    ])
+else
+    HAVE_DJVU=disabled
+fi
+
+AM_CONDITIONAL(HAVE_DJVU, [test "x$HAVE_DJVU" = xyes])
+AC_SUBST(DJVU_CFLAGS)
+AC_SUBST(DJVU_LIBS)
+
 #  Markdown support
 # ----------------------------------------------------------------------
 
@@ -617,7 +699,6 @@ AC_CONFIG_FILES([
     plugins/symlink/Makefile
     plugins/rotate/Makefile
     plugins/ufraw/Makefile
-    plugins/import/Makefile
     plugins/geocode-parameters/Makefile
     plugins/export-jpeg/Makefile
     plugins/tethered-photography/Makefile
@@ -675,6 +756,9 @@ Support:
   Lua:          $HAVE_LUA
   FFmpegthumbnailer:   $HAVE_FFMPEGTHUMBNAILER
   Pdf:          $HAVE_PDF
+  HEIF:                 $HAVE_HEIF
+  WebP:                 $HAVE_WEBP
+  DjVu:                 $HAVE_DJVU
 
 Documentation:
   Doxygen:       $DX_DOXYGEN