From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8762 invoked from network); 14 Aug 2000 16:38:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Aug 2000 16:38:42 -0000 Received: (qmail 6995 invoked by alias); 14 Aug 2000 16:38:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12620 Received: (qmail 6983 invoked from network); 14 Aug 2000 16:38:07 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "ZSH workers mailing list" Subject: PATCH: RE: mmap test Date: Mon, 14 Aug 2000 20:38:05 +0400 Message-ID: <000d01c0060e$052da480$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1000814153141.ZM27121@candle.brasslantern.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > We should just use the autoconf AC_FUNC_MMAP test. > > +if test $ac_cv_func_mmap = yes; then It used wrong cache variable. I also removed CYGWIN cludge from system.h now when test for mmap works. (Line numbers in configure.in may be a bit off) -andrej Index: Src/system.h =================================================================== RCS file: /cvsroot/zsh/zsh/Src/system.h,v retrieving revision 1.6 diff -u -r1.6 system.h --- Src/system.h 2000/08/14 07:30:28 1.6 +++ Src/system.h 2000/08/14 16:35:33 @@ -647,7 +647,3 @@ #if defined(CONFIG_LOCALE) && defined(HAVE_SETLOCALE) && defined(LC_ALL) # define USE_LOCALE 1 #endif /* CONFIG_LOCALE && HAVE_SETLOCALE && LC_ALL */ - -#ifdef __CYGWIN__ -# undef HAVE_MMAP -#endif Index: configure.in =================================================================== RCS file: /cvsroot/zsh/zsh/configure.in,v retrieving revision 1.23 diff -u -r1.23 configure.in --- configure.in 2000/08/14 15:46:53 1.23 +++ configure.in 2000/08/14 16:35:35 @@ -870,7 +870,7 @@ AC_FUNC_STRCOLL AC_FUNC_MMAP -if test $ac_cv_func_mmap = yes; then +if test x$ac_cv_func_mmap_fixed_mapped = xyes; then AC_CHECK_FUNCS(munmap msync) fi