X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=3d6193b5a7f3e86b58c7c12ff2084cafdc77f307;hb=4c01004f98083cefbe51cfa53676e2e0900db491;hp=317ef3f6898eef75d163fda77cd72d4b1a89b853;hpb=f4bb896e485ca3ce8f3b14d5199f79ba90f6b2f0;p=idzebra-moved-to-github.git diff --git a/configure.in b/configure.in index 317ef3f..3d6193b 100644 --- a/configure.in +++ b/configure.in @@ -1,11 +1,12 @@ -dnl Zebra, Index Data Aps, 1995-2002 -dnl $Id: configure.in,v 1.61 2002-12-30 10:25:24 adam Exp $ +dnl Zebra, Index Data Aps, 1995-2003 +dnl $Id: configure.in,v 1.73 2003-04-01 07:48:20 adam Exp $ dnl AC_INIT(include/zebraver.h) -AM_INIT_AUTOMAKE(idzebra,1.3.4) +AM_INIT_AUTOMAKE(idzebra,1.3.10) dnl ------ Substitutions AC_SUBST(TCL_INCLUDE) AC_SUBST(TCL_LIB) +AC_SUBST(READLINE_LIBS) dnl ------ Perl substitutions AC_SUBST(PERL_BINARY) AC_SUBST(PERL_XS_INIT) @@ -128,6 +129,39 @@ dnl dnl ------ mkstemp AC_CHECK_FUNCS(mkstemp) dnl +dnl ------ GNU Readline +READLINE_SHARED_LIBADD="" +AC_CHECK_LIB(ncurses, tgetent, [READLINE_SHARED_LIBADD="-lncurses"], + AC_CHECK_LIB(termcap, tgetent, [READLINE_SHARED_LIBADD="-ltermcap"]) +) +READLINE_LIBS="" +AC_CHECK_LIB(readline, readline, [READLINE_LIBS="$READLINE_LIBS -lreadline $READLINE_SHARED_LIBADD"],,$READLINE_SHARED_LIBADD) +AC_CHECK_LIB(history, add_history, [READLINE_LIBS="$READLINE_LIBS -lhistory"]) +if test "$ac_cv_lib_readline_readline" = "yes"; then + AC_CHECK_HEADERS(readline/readline.h readline/history.h) + xLIBS=$LIBS + LIBS="$LIBS $READLINE_LIBS" + AC_TRY_LINK([ + #include + #include + ],[ + static void f() + { + rl_attempted_completion_over = 0; + } + ],AC_DEFINE(HAVE_READLINE_COMPLETION_OVER)) + AC_TRY_LINK([ + #include + #include + ],[ + static void f() + { + rl_completion_matches (0, 0); + } + ],AC_DEFINE(HAVE_READLINE_RL_COMPLETION_MATCHES)) + LIBS=$xLIBS +fi +dnl dnl ------ iconv AC_ARG_WITH(iconv, [ --with-iconv[=DIR] iconv library in DIR]) if test "$with_iconv" != "no"; then @@ -173,6 +207,9 @@ else fi fi dnl +dnl ------ -lm +AC_CHECK_LIB(m,sqrt) +dnl dnl ------ EXPAT expat=yes AC_ARG_WITH(expat, [ --with-expat[=DIR] EXPAT library in DIR],[expat=$withval]) @@ -333,9 +370,11 @@ AC_OUTPUT([ doc/zebraphp.dsl doc/tkl.xsl test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile - perl/Makefile.PL + test/rusmarc/Makefile test/cddb/Makefile + perl/Makefile.PL test/xelm/Makefile test/dmoz/Makefile test/xpath/Makefile test/sort/Makefile examples/Makefile examples/gils/Makefile examples/zthes/Makefile + idzebra.spec ]) if test -x "$perlbin"; then