From: Timo Sirainen Date: Wed, 18 Jun 2008 02:57:23 +0000 (+0300) Subject: Check strtoimax() and strtoumax() with inttypes.h included. They won't be X-Git-Tag: 1.2.alpha1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=012615b3a15fd4dd93c4386a907c57026fafb58c;p=thirdparty%2Fdovecot%2Fcore.git Check strtoimax() and strtoumax() with inttypes.h included. They won't be detected otherwise with HP-UX. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 41b1147e90..0e27de4833 100644 --- a/configure.in +++ b/configure.in @@ -429,10 +429,35 @@ dnl * after -lsocket and -lnsl tests, inet_aton() may be in them 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 +], [ + 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 +], [ + 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