From: Timo Sirainen Date: Thu, 8 Jan 2009 17:22:11 +0000 (-0500) Subject: configure: Test strtoumax() and strtoimax() by linking instead of just compiling... X-Git-Tag: 1.2.beta1~142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4ff8c6f7a866e6f976cbcc57960dafaaa0b18fa;p=thirdparty%2Fdovecot%2Fcore.git configure: Test strtoumax() and strtoimax() by linking instead of just compiling (Tru64 fix). --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 38795f09e7..e1ea98a140 100644 --- a/configure.in +++ b/configure.in @@ -375,8 +375,9 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_aton sigaction getpagesize madvise \ walkcontext dirfd clearenv malloc_usable_size clock_gettime) dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included +dnl Link instead of just compiling since there's something wrong with Tru64 AC_MSG_CHECKING([for strtoimax]) -AC_TRY_COMPILE([ +AC_TRY_LINK([ #include ], [ strtoimax(0, 0, 0); @@ -388,7 +389,7 @@ AC_TRY_COMPILE([ ]) AC_MSG_CHECKING([for strtoumax]) -AC_TRY_COMPILE([ +AC_TRY_LINK([ #include ], [ strtoumax(0, 0, 0);