]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Test strtoumax() and strtoimax() by linking instead of just compiling...
authorTimo Sirainen <tss@iki.fi>
Thu, 8 Jan 2009 17:22:11 +0000 (12:22 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 Jan 2009 17:22:11 +0000 (12:22 -0500)
--HG--
branch : HEAD

configure.in

index 38795f09e7300b13b247da01dd57ded375062842..e1ea98a140a447c534c660927584fbc55a64689b 100644 (file)
@@ -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 <inttypes.h>
 ], [
   strtoimax(0, 0, 0);
@@ -388,7 +389,7 @@ AC_TRY_COMPILE([
 ])
 
 AC_MSG_CHECKING([for strtoumax])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #include <inttypes.h>
 ], [
   strtoumax(0, 0, 0);