X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=1d53a51763f27b8597de3fd19e2d9b1e2c78b539;hb=905200e7c7288464a3951f6eeb4c9b420aa27997;hp=f6d105fac2eb5c08d4c9fdb5da0da824bce7f24a;hpb=9977ff5ba57bf5646f06d94dad206d0596fe7e38;p=yaz-moved-to-github.git diff --git a/configure.in b/configure.in index f6d105f..1d53a51 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ dnl YAZ Toolkit, Index Data 1994-2004 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.149 2004-08-11 09:05:56 adam Exp $ +dnl $Id: configure.in,v 1.155 2004-10-01 23:01:26 adam Exp $ AC_INIT(include/yaz/yaz-version.h) -AM_INIT_AUTOMAKE(yaz, 2.0.23) +AM_INIT_AUTOMAKE(yaz, 2.0.26) AM_MAINTAINER_MODE dnl AC_SUBST(READLINE_LIBS) @@ -34,7 +34,7 @@ AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) dnl dnl ------ OpenSSL openssl=no -AC_ARG_WITH(openssl, [ --with-openssl[=PREFIX] OpenSSL library in PREFIX], [openssl=$withval]) +AC_ARG_WITH(openssl, [ --with-openssl[=PREFIX] OpenSSL library in PREFIX], [openssl=$withval]) USE_SSL=0 SSL_CFLAGS="" SSL_LIBPATH="" @@ -103,24 +103,18 @@ if test "$ac_cv_lib_readline_readline" = "yes"; then #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)) + ],[AC_DEFINE(HAVE_READLINE_RL_COMPLETION_MATCHES)]) LIBS=$xLIBS fi dnl ------ iconv -AC_ARG_WITH(iconv, [ --with-iconv[=PREFIX] iconv library in PREFIX]) +AC_ARG_WITH(iconv, [ --with-iconv[=PREFIX] iconv library in PREFIX]) if test "$with_iconv" != "no"; then AC_MSG_CHECKING(for iconv) oldLIBS="$LIBS" @@ -132,7 +126,7 @@ if test "$with_iconv" != "no"; then AC_TRY_LINK([ #include ],[ - static void f() {iconv_t t = iconv_open("", ""); } + iconv_t t = iconv_open("", ""); ],[ AC_DEFINE(HAVE_ICONV_H) AC_MSG_RESULT(yes) @@ -141,7 +135,7 @@ if test "$with_iconv" != "no"; then AC_TRY_LINK([ #include ],[ - static void f() {iconv_t t = iconv_open("", ""); } + iconv_t t = iconv_open("", ""); ],[ AC_DEFINE(HAVE_ICONV_H) AC_MSG_RESULT(yes) @@ -209,7 +203,7 @@ AC_DEFINE_UNQUOTED(YAZ_SOCKLEN_T,$ac_cv_check_socklen_t) dnl dnl ------ tcpd AC_ARG_ENABLE(tcpd,[ --enable-tcpd[=PREFIX] enable TCP wrapper for server if available]) -if test "$enable_tcpd" != "" && test "$enable_tcpd" != "no"; then +if test "$enable_tcpd" -a "$enable_tcpd" != "no"; then oldLibs=$LIBS oldCPPFLAGS=$CPPFLAGS if test "$enable_tcpd" != "yes"; then @@ -227,6 +221,7 @@ if test "$enable_tcpd" != "" && test "$enable_tcpd" != "no"; then tcpd_ok=1, tcpd_ok=0) if test "$tcpd_ok" = "0"; then AC_MSG_RESULT(no) + AC_MSG_ERROR([tcpd development libraries missing]) LIBS=$oldLibs CPPFLAGS=$oldCPPFLAGS else @@ -309,9 +304,9 @@ dnl dnl ----- libXML2 AC_SUBST(XML2_LIBS) AC_SUBST(XML2_CFLAGS) -xml2dir=yes -AC_ARG_WITH(xml2, [ --with-xml2[=PREFIX] use libxml2 in PREFIX],[xml2dir=$withval]) -if test "$xml2dir" = "yes"; then +xml2dir=default +AC_ARG_WITH(xml2, [ --with-xml2[=PREFIX] use libxml2 in PREFIX],[xml2dir=$withval]) +if test "$xml2dir" = "yes" -o "$xml2dir" = "default"; then for d in /usr /usr/local; do if test -x $d/bin/xml2-config; then xml2dir=$d @@ -328,7 +323,10 @@ if test "$xml2dir" != "no"; then AC_MSG_RESULT($XML2_VER) AC_DEFINE(HAVE_XML2) else - AC_MSG_RESULT(Not found) + AC_MSG_RESULT([Not found]) + if test "$xml2dir" != "default"; then + AC_MSG_ERROR([libXML2 development libraries missing]) + fi fi fi dnl