OSDN Git Service

print annotations correctly
[chasen-legacy/chasen.git] / configure.in
index 7077405..1cfe880 100644 (file)
@@ -1,12 +1,18 @@
 AC_INIT(README)
-AC_PREREQ(2.13)
-AM_INIT_AUTOMAKE(chasen, 2.4.0-preview2)
+AC_PREREQ(2.61)
+AM_INIT_AUTOMAKE(chasen, 2.4.0-preview6)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
 
 AC_PROG_CC
 AC_PROG_CXX
 AM_PROG_LIBTOOL
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LEX
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
 # Before making a release, the LTVERSION string should be modified.
 # The string is of the form C:R:A.
 # - If interfaces have been changed or added, but binary compatibility has
@@ -14,9 +20,10 @@ AM_PROG_LIBTOOL
 # - If binary compatibility has been broken (eg removed or changed interfaces)
 #   change to C+1:0:0
 # - If the interface is the same as the previous version, change to C:R+1:A
-LTVERSION="0:1:0"
+LTVERSION="2:4:0"
 AC_SUBST(LTVERSION)
 
+
 dnl Checks for programs.
 AC_ISC_POSIX
 AC_PROG_INSTALL
@@ -24,9 +31,23 @@ AC_PROG_MAKE_SET
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/stat.h unistd.h)
-AC_CHECK_HEADERS(sys/param.h sys/types.h netinet/in.h)
-AC_CHECK_HEADERS(io.h windows.h)
+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
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_MEMCMP
+AC_FUNC_MMAP
+AC_FUNC_REALLOC
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([mblen memset munmap strchr strpbrk strrchr])
 
 AC_MSG_CHECKING([for darts.h])
 AC_ARG_WITH(darts,
@@ -102,6 +123,7 @@ if test -n "${GCC}"; then
        CFLAGS="${CFLAGS} -Wall"
 fi
 
+
 AC_OUTPUT([ 
            Makefile 
            chasen-config