dnl YAZ Toolkit, Index Data 1994-2005
dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.169 2005-01-17 10:10:00 adam Exp $
+dnl $Id: configure.in,v 1.186 2005-09-16 21:44:23 adam Exp $
AC_INIT(include/yaz/yaz-version.h)
-AM_INIT_AUTOMAKE(yaz, 2.0.33)
+AM_INIT_AUTOMAKE(yaz, 2.1.9)
AM_MAINTAINER_MODE
dnl
AC_SUBST(READLINE_LIBS)
LIBS="$LIBS -lsocket -lnsl"
AC_CHECK_FUNC(accept, , [LIBS=$oldLibs])
fi
-AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
+AC_CHECK_FUNC(gethostbyname, ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
dnl
dnl ------ OpenSSL
AC_SUBST(SSL_CFLAGS)
])
fi
dnl ------ various functions
-AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r)
+AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r localtime_r usleep fopen64)
if test "$ac_cv_func_poll" = "yes"; then
AC_CHECK_HEADERS(sys/poll.h)
fi
fi
fi
dnl
-AC_SUBST(LIBTHREAD)
-AC_SUBST(CFLAGSTHREADS)
+AC_SUBST(THREAD_CFLAGS)
HAVETHREADS=0
-CFLAGSTHREADS=""
+THREAD_CFLAGS=""
LIBTHREAD=""
dnl
dnl ------ GNU threads
AC_CHECK_HEADERS(pth.h)
if test "$ac_cv_header_pth_h" = "yes"; then
LIBTHREAD="-lpth"
- CFLAGSTHREADS="-DYAZ_GNU_THREADS=1"
+ THREAD_CFLAGS="-DYAZ_GNU_THREADS=1"
HAVETHREADS=1
fi
fi
- LIBS=$OLIBS
+ LIBS="$OLIBS $LIBTHREAD"
fi
dnl
dnl ------ POSIX Threads
if test "$thread_ok" = "yes"; then
AC_MSG_RESULT(yes)
LIBTHREAD="-lpthread"
- CFLAGSTHREADS="-DYAZ_POSIX_THREADS=1 -D_REENTRANT"
+ THREAD_CFLAGS="-DYAZ_POSIX_THREADS=1 -D_REENTRANT"
HAVETHREADS=1
else
CC="$CC -pthread"
thread_ok=yes,thread_ok=no)
if test "$thread_ok" = "yes"; then
AC_MSG_RESULT([yes,BSD])
- CFLAGSTHREADS="-pthread -DYAZ_POSIX_THREADS=1 -D_REENTRANT"
+ THREAD_CFLAGS="-pthread -DYAZ_POSIX_THREADS=1 -D_REENTRANT"
LIBTHREAD="-pthread"
HAVETHREADS=1
fi
AC_MSG_RESULT(no)
fi
CC=$OCC
- LIBS=$OLIBS
+ LIBS="$OLIBS $LIBTHREAD"
fi
-AM_CONDITIONAL(ISTHR, test $HAVETHREADS = "1")
dnl
dnl ----- libXML2
AC_SUBST(XML2_LIBS)
AC_DEFINE(HAVE_XML2)
else
AC_MSG_RESULT([Not found])
- if test "$xml2dir" != "default"; then
- AC_MSG_ERROR([libXML2 development libraries missing])
+ if test "$xml2dir" = "default"; then
+ AC_MSG_WARN([Libxml2 development libraries not found.])
+ AC_MSG_WARN([YAZ will NOT support SRW/SRU.])
+ else
+ AC_MSG_ERROR([libXML2 development libraries not found.])
fi
fi
fi
doc/Makefile
doc/yaz.xml
doc/yazhtml.dsl
-doc/yazphp.dsl
doc/yazprint.dsl
doc/tkl.xsl
doc/yazhtml.xsl