X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=e05f27ac5663bb1404ea2f9f10b50672929e73a4;hb=728cddf6dff34fdfbee2d6f7562f8e4499f05878;hp=14db112e9740599c78e38d403c2c427d68dc0cdf;hpb=b3a9a74111d4f1f1e14dac4a245cd01b5fa5a9b5;p=yaz-moved-to-github.git diff --git a/configure.in b/configure.in index 14db112..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.187 2005-11-29 20:26:05 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.10) +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) @@ -161,7 +161,16 @@ if test "$with_iconv" != "no"; then fi dnl ------ various functions AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r localtime_r usleep fopen64) -if test "$ac_cv_func_poll" = "yes"; then +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