X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=configure.in;h=e05f27ac5663bb1404ea2f9f10b50672929e73a4;hp=4745ad3e1442562f338f995766397895de556efd;hb=28f52a57a140e602427fe10c3cc4309d23433e2c;hpb=455798a3154b5c08c872ca0fb90607ddea575038 diff --git a/configure.in b/configure.in index 4745ad3..e05f27a 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ dnl YAZ Toolkit, Index Data 1994-2005 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.185 2005-09-09 10:34:09 adam Exp $ +dnl $Id: configure.in,v 1.189 2005-12-17 20:20:55 adam Exp $ AC_INIT(include/yaz/yaz-version.h) -AM_INIT_AUTOMAKE(yaz, 2.1.9) +AM_INIT_AUTOMAKE(yaz, 2.1.11) AM_MAINTAINER_MODE dnl AC_SUBST(READLINE_LIBS) @@ -21,7 +21,7 @@ YAZ_DOC dnl dnl dnl ------ Headers -AC_CHECK_HEADERS(dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h sys/poll.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/un.h sys/wait.h unistd.h) +AC_CHECK_HEADERS(dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/un.h sys/wait.h unistd.h) AC_HEADER_STDC if test "$ac_cv_header_stdc" = "no"; then AC_MSG_WARN(Your system doesn't seem to support ANSI C) @@ -160,8 +160,17 @@ if test "$with_iconv" != "no"; then ]) fi dnl ------ various functions -AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r usleep fopen64) -if test "$ac_cv_func_poll" = "yes"; then +AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r localtime_r usleep fopen64) +case $host in +*-*-darwin*) + trypoll="no"; + ;; +*) + trypoll="yes"; + ;; +esac + +if test "$ac_cv_func_poll" = "yes" -a "$trypoll" = "yes"; then AC_CHECK_HEADERS(sys/poll.h) fi dnl ------ socklen_t