X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=configure.in;h=a3c366a5999eb651253c0707186712acd227110f;hb=dd1429e9285ff43aac38e84510ca5ba2f5691255;hp=619bdd1dd6f3f6bc2a749c8a45442d22c5db42a7;hpb=ee47005358832c3e0ecf42b32bc4b699c684950a;p=chasen-legacy%2Fchasen.git diff --git a/configure.in b/configure.in index 619bdd1..a3c366a 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ AC_INIT(README) -AC_PREREQ(2.61) -AM_INIT_AUTOMAKE(chasen, 2.4.0-preview5) +AC_PREREQ(2.59) +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 ],[;], [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,