New files.
[chise/concord.git] / configure.in
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.57)
5 AC_INIT(concord, 0.0.0, chise-en@m17n.org)
6 AC_CONFIG_SRCDIR(concord.c)
7 AC_CONFIG_HEADER(config.h)
8
9 AC_CANONICAL_TARGET
10
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_LIBTOOL
14 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
15 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
16
17 # Checks for libraries.
18 if test -f /sw/include/db3/db.h; then
19         CFLAGS="-I/sw/include/db3 $CFLAGS"
20         LIBS="-L/sw/lib -ldb-3 $LIBS"
21 elif test -f /sw/include/db4/db.h; then
22         CFLAGS="-I/sw/include/db4 $CFLAGS"
23         LIBS="-L/sw/lib -ldb-4 $LIBS"
24 else
25         LIBS="-ldb $LIBS"
26 fi
27
28 # Checks for header files.
29
30 # Checks for typedefs, structures, and compiler characteristics.
31 AC_C_CONST
32 AC_C_INLINE
33
34 # Checks for library functions.
35 AC_FUNC_ALLOCA
36 AC_FUNC_STRNLEN
37
38 AC_CHECK_FUNCS(strnlen)
39
40 AC_CONFIG_FILES([Makefile])
41 AC_OUTPUT