dovecot-1.1: Check strtoimax() and strtoumax() with inttypes.h i...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 18 05:57:31 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/2e400a79c8b6
changeset: 7678:2e400a79c8b6
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 18 05:57:23 2008 +0300
description:
Check strtoimax() and strtoumax() with inttypes.h included. They won't be
detected otherwise with HP-UX.
diffstat:
1 file changed, 26 insertions(+), 1 deletion(-)
configure.in | 27 ++++++++++++++++++++++++++-
diffs (39 lines):
diff -r dbdb33bf8893 -r 2e400a79c8b6 configure.in
--- a/configure.in Wed Jun 18 03:18:56 2008 +0300
+++ b/configure.in Wed Jun 18 05:57:23 2008 +0300
@@ -429,9 +429,34 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_at
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
More information about the dovecot-cvs
mailing list