Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7889:ef8af0eb161a HEAD
Check strtoimax() and strtoumax() with inttypes.h included. They won't be
detected otherwise with HP-UX.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Jun 2008 05:57:23 +0300 |
parents | 3ffac3f6173f |
children | 51a56b173df7 |
files | configure.in |
diffstat | 1 files changed, 26 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Wed Jun 18 04:59:20 2008 +0300 +++ b/configure.in Wed Jun 18 05:57:23 2008 +0300 @@ -429,10 +429,35 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_aton sigaction getpagesize madvise \ strcasecmp stricmp vsyslog writev pread \ setrlimit setproctitle seteuid setreuid setegid setresgid \ - strtoull strtoll strtoumax strtoimax strtouq strtoq \ + strtoull strtoll strtouq strtoq \ setpriority quotactl getmntent kqueue kevent backtrace_symbols \ walkcontext dirfd clearenv malloc_usable_size) +dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included +AC_MSG_CHECKING([for strtoimax]) +AC_TRY_COMPILE([ + #include <inttypes.h> +], [ + strtoimax(0, 0, 0); +], [ + AC_DEFINE(HAVE_STRTOIMAX,, Define if you have strtoimax function) + AC_MSG_RESULT(yes) +], [ + AC_MSG_RESULT(no) +]) + +AC_MSG_CHECKING([for strtoumax]) +AC_TRY_COMPILE([ + #include <inttypes.h> +], [ + strtoumax(0, 0, 0); +], [ + AC_DEFINE(HAVE_STRTOUMAX,, Define if you have strtoumax function) + AC_MSG_RESULT(yes) +], [ + AC_MSG_RESULT(no) +]) + dnl * I/O loop function have_ioloop=no