X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.in;h=74f7c1ac4c4f0ec9cc3679cf9add5f1204aea0f2;hb=HEAD;hp=ad7175f17730bb4c7cfb36d8c879c7f359252726;hpb=cbb97a9b1ae66ba13c62d4265f814091131d1a09;p=chise%2Flibchise.git diff --git a/configure.in b/configure.in index ad7175f..74f7c1a 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(libchise, 0.2.0, chise-en@m17n.org) +AC_INIT(libchise, 0.5.0, chise-en@lists.chise.org) AC_CONFIG_SRCDIR(chise.c) AC_CONFIG_HEADER(config.h) @@ -14,16 +14,36 @@ AC_PROG_LIBTOOL # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \ # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin) -# Checks for libraries. +# Settings for optional paths +AC_ARG_WITH(site_includes, + --with-site-includes=PATH List of directories to search first for header files +, +for dir in `echo "$with_site_includes"|sed 's/:/ /'` +do + SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir" +done +CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'` +, if test -f /sw/include/db3/db.h; then CFLAGS="-I/sw/include/db3 $CFLAGS" - LIBS="-L/sw/lib -ldb-3 $LIBS" elif test -f /sw/include/db4/db.h; then CFLAGS="-I/sw/include/db4 $CFLAGS" - LIBS="-L/sw/lib -ldb-4 $LIBS" -else - LIBS="-ldb $LIBS" fi +) + +AC_ARG_WITH(site_libraries, + --with-site-libraries=PATH List of directories to search first for libraries +, +for dir in `echo "$with_site_libraries"|sed 's/:/ /'` +do + SITE_LIBS="$SITE_LIBS -L$dir" +done +LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'` +) + +# Checks for libraries. +AC_CHECK_LIB(concord,concord_open_env, + , AC_MSG_ERROR(Please install Concord Ver.0.9 or later.)) # Checks for header files.