X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=d5f70f47f4e6a8c5603c4d7b66b1e195a5f33326;hb=886253fb90810e512cacf4f02694645ead7a22e0;hp=1a387733b69d07d1b1402c4238861add03fbbda4;hpb=f1a9ed95b17effaee3cb8a3e8117d94030ea3b21;p=idzebra-moved-to-github.git diff --git a/configure.in b/configure.in index 1a38773..d5f70f4 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ -dnl Zebra, Index Data Aps, 1994-2000 -dnl $Id: configure.in,v 1.26 2001-02-21 09:52:39 adam Exp $ +dnl Zebra, Index Data Aps, 1994-2002 +dnl $Id: configure.in,v 1.32 2002-03-15 20:11:36 adam Exp $ dnl AC_INIT(include/zebraver.h) AC_MSG_CHECKING(for package) @@ -7,24 +7,24 @@ if test -r ${srcdir}/LICENSE.zmbol; then AC_MSG_RESULT([Z'mbol]) PROGPREFIX=zmbol AC_DEFINE(ZMBOL,1) - AM_INIT_AUTOMAKE(zmbol,1.1) + AM_INIT_AUTOMAKE(zmbol,1.1.1) else AC_MSG_RESULT([Zebra]) PROGPREFIX=zebra AC_DEFINE(ZMBOL,0) - AM_INIT_AUTOMAKE(zebra,1.1) + AM_INIT_AUTOMAKE(zebra,1.1.1) if test ! -r ${srcdir}/isam; then mkdir ${srcdir}/isam - touch ${srcdir}/isam/Makefile.in fi + touch ${srcdir}/isam/Makefile.in if test ! -r ${srcdir}/isamc; then mkdir ${srcdir}/isamc - touch ${srcdir}/isamc/Makefile.in fi + touch ${srcdir}/isamc/Makefile.in if test ! -r ${srcdir}/isamb; then mkdir ${srcdir}/isamb - touch ${srcdir}/isamb/Makefile.in fi + touch ${srcdir}/isamb/Makefile.in fi AM_CONDITIONAL(ISZMBOL,test $PACKAGE = zmbol) dnl ------ Substitutions @@ -77,12 +77,19 @@ else fi dnl dnl ------ times -AC_CHECK_HEADERS(sys/times.h pthread.h) +AC_CHECK_HEADERS(sys/times.h) +dnl ------ mkstemp +AC_CHECK_FUNCS(mkstemp) dnl dnl ------- BZIP2 AC_CHECK_LIB(bz2,bzCompressInit) if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then AC_CHECK_HEADERS(bzlib.h) +else + AC_CHECK_LIB(bz2,BZ2_bzCompressInit) + if test "$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yes"; then + AC_CHECK_HEADERS(bzlib.h) + fi fi dnl ------- 64 bit files AC_MSG_CHECKING(for LFS) @@ -91,17 +98,31 @@ AC_TRY_RUN([#define _FILE_OFFSET_BITS 64 #include #include #include +#include +#include int main(int argc, char **argv) { off_t o; char tmp_str[32]; - if (sizeof(off_t) == 8) { - o = 2000000000; - sprintf (tmp_str, "%Ld", o+o+o); - if (!strcmp (tmp_str, "6000000000")) - exit (0); - } - exit (1); + int fd; + struct flock area; + if (sizeof(off_t) != 8) + exit (1); + o = 2000000000; + sprintf (tmp_str, "%Ld", o+o+o); + if (strcmp (tmp_str, "6000000000")) + exit (1); + fd = creat ("config.tmp", 0644); + if (fd < 0) + exit (1); + area.l_type = F_WRLCK; + area.l_whence = SEEK_SET; + area.l_len = area.l_start = 0L; + if (fcntl(fd, F_SETLKW, &area)) + exit (1); + close (fd); + unlink ("config.tmp"); + exit (0); } ],bits=64,bits=32,bits=32) if test "$bits" = "64"; then @@ -133,5 +154,5 @@ AC_OUTPUT([ include/Makefile tab/Makefile doc/Makefile - test/Makefile test/gils/Makefile test/usmarc/Makefile + test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile ])