OSDN Git Service

chasen-2.4.3-preview3
[chasen-legacy/chasen.git] / configure.in
index a313213..a3c366a 100644 (file)
@@ -1,6 +1,6 @@
 AC_INIT(README)
 AC_PREREQ(2.59)
-AM_INIT_AUTOMAKE(chasen, 2.4.2)
+AM_INIT_AUTOMAKE(chasen, 2.4.3-preview3)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
 
@@ -23,7 +23,6 @@ AC_PROG_MAKE_SET
 LTVERSION="2:4:0"
 AC_SUBST(LTVERSION)
 
-
 dnl Checks for programs.
 AC_ISC_POSIX
 AC_PROG_INSTALL
@@ -35,7 +34,6 @@ AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/param.h unistd.h])
 AC_CHECK_HEADERS([sys/param.h sys/types.h netinet/in.h])
 AC_CHECK_HEADERS([io.h windows.h])
 
-
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_TYPE_OFF_T
@@ -64,8 +62,12 @@ AC_LANG_CPLUSPLUS
 
 AC_CACHE_VAL(cl_cv_header_darts, [
 AC_TRY_COMPILE([#include <darts.h>],[;], [cl_cv_header_darts=yes], [
-    AC_MSG_ERROR(no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/.)])])
+    AC_MSG_ERROR(no header of Darts. You need to get darts-0.32 or higher from http://chasen.org/~taku/software/darts/.)])])
 AC_MSG_RESULT($cl_cv_header_darts)
+AC_CACHE_VAL(cl_cv_header_darts_version, [
+    AC_EGREP_HEADER([DARTS_VERSION \"0.3[23456789]\"],darts.h,cl_cv_header_darts_version=yes,[AC_MSG_ERROR(an old version of darts.h is found. You need to get darts-0.32 or higher from http://chasen.org/~taku/software/darts/.)])])
+
+AC_MSG_RESULT(checking for darts.h version >= 0.32... $cl_cv_header_darts_version)
 AC_LANG_C
 
 AC_ARG_WITH(libiconv,