From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8093 invoked from network); 14 Aug 2000 15:32:20 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Aug 2000 15:32:20 -0000 Received: (qmail 25644 invoked by alias); 14 Aug 2000 15:32:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12617 Received: (qmail 25626 invoked from network); 14 Aug 2000 15:32:08 -0000 From: "Bart Schaefer" Message-Id: <1000814153141.ZM27121@candle.brasslantern.com> Date: Mon, 14 Aug 2000 15:31:41 +0000 In-Reply-To: <000801c005e5$52f03ee0$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "mmap test" (Aug 14, 3:46pm) References: <000801c005e5$52f03ee0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH workers mailing list" Subject: Re: mmap test MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 14, 3:46pm, Andrej Borsenkow wrote: } Subject: mmap test } } I noted, that configure for libiberty has a bit better test for mmap() that } also tests for usability of it. Can we simply include it? No, it's probably GPL'd. We should just use the autoconf AC_FUNC_MMAP test. Index: configure.in =================================================================== @@ -859,7 +859,6 @@ initgroups nis_list \ setuid seteuid setreuid setresuid setsid \ memcpy memmove strstr strerror \ - mmap munmap msync \ cap_get_proc \ getrlimit \ setlocale \ @@ -869,6 +868,11 @@ brk sbrk \ pathconf sysconf) AC_FUNC_STRCOLL + +AC_FUNC_MMAP +if test $ac_cv_func_mmap = yes; then + AC_CHECK_FUNCS(munmap msync) +fi if test $ac_cv_func_setpgrp = yes; then AC_FUNC_GETPGRP -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net