changeset 2181:7d4e10c5bd93 HEAD

Use AC_TRY_LINK() for sendfile() checks so it works right with Solaris. Did the same for mremap() too just in case.
author Timo Sirainen <tss@iki.fi>
date Sat, 19 Jun 2004 23:22:00 +0300
parents 2cc1951d6de3
children 4e559fad61fb
files configure.in
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Jun 19 23:15:25 2004 +0300
+++ b/configure.in	Sat Jun 19 23:22:00 2004 +0300
@@ -700,7 +700,7 @@
 
 dnl * Linux compatible mremap()
 AC_MSG_CHECKING([Linux compatible mremap()])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #include <unistd.h>
   #define __USE_GNU
   #include <sys/mman.h>
@@ -761,7 +761,7 @@
   dnl * Linux compatible sendfile() - don't check if Solaris one was found.
   dnl * This seems to pass with Solaris for some reason..
   AC_MSG_CHECKING([Linux compatible sendfile()])
-  AC_TRY_COMPILE([
+  AC_TRY_LINK([
     #undef _FILE_OFFSET_BITS
     #include <sys/types.h>
     #include <sys/socket.h>
@@ -777,7 +777,7 @@
 
   dnl * FreeBSD compatible sendfile()
   AC_MSG_CHECKING([FreeBSD compatible sendfile()])
-  AC_TRY_COMPILE([
+  AC_TRY_LINK([
     #include <sys/types.h>
     #include <sys/socket.h>
     #include <sys/uio.h>