Imported Upstream version 0.2.7
[platform/upstream/libdatrie.git] / configure.ac
index 11cb008..36a844e 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(libdatrie, 0.2.6, thep@linux.thai.net)
+AC_INIT(libdatrie, 0.2.7, thep@linux.thai.net)
 AC_CONFIG_SRCDIR([datrie/trie.h])
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([m4])
@@ -20,6 +20,8 @@ AC_SUBST(LT_CURRENT)
 AC_SUBST(LT_REVISION)
 AC_SUBST(LT_AGE)
 
+DOXYGEN_REQ_VER=1.8.4
+
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_INSTALL
@@ -107,6 +109,15 @@ if test "x$enable_doxygen_doc" = "xyes"; then
   AC_CHECK_PROG(DOXYGEN,doxygen,doxygen,no)
   if test "x$DOXYGEN" = "xno"; then
     enable_doxygen_doc="no"
+  else
+    AC_MSG_CHECKING([doxygen >= $DOXYGEN_REQ_VER])
+    DOXYGEN_VER=$($DOXYGEN --version)
+    if expr $DOXYGEN_VER \< $DOXYGEN_REQ_VER > /dev/null; then
+      AC_MSG_RESULT([$DOXYGEN_VER, no, documentation disabled])
+      enable_doxygen_doc="no"
+    else
+      AC_MSG_RESULT([$DOXYGEN_VER, yes])
+    fi
   fi
 fi
 
@@ -128,5 +139,6 @@ AC_CONFIG_FILES([Makefile
                  tools/Makefile
                  man/Makefile
                  doc/Makefile
-                 doc/Doxyfile])
+                 doc/Doxyfile
+                 tests/Makefile])
 AC_OUTPUT