diff options
author | Yitzchak Scott-Thoennes <sthoenna@efn.org> | 2002-12-30 10:01:16 -0800 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2003-01-21 16:54:00 +0000 |
commit | 01d07975f7ef0e7dd339708172dbf5a4de2f8c8c (patch) | |
tree | 3f4b2684b9f28a6441cc5a936f6fcf25442f7ecd /Configure | |
parent | 672fde27ba83048a1bcb79269f93917843058281 (diff) | |
download | perl-01d07975f7ef0e7dd339708172dbf5a4de2f8c8c.tar.gz |
Re: FreeBSD 5 hints patch
Message-ID: <spPE+gzkg+6F092yn@efn.org>
p4raw-id: //depot/perl@18538
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Dec 16 12:51:57 MET 2002 [metaconfig 3.0 PL70] +# Generated on Tue Jan 21 18:59:19 MET 2003 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -6743,8 +6743,25 @@ set d_dosuid eval $setvar : see if this is a malloc.h system -set malloc.h i_malloc -eval $inhdr +: we want a real compile instead of Inhdr because some systems have a +: malloc.h that just gives a compile error saying to use stdlib.h instead +echo " " +$cat >try.c <<EOCP +#include <stdlib.h> +#include <malloc.h> +int main () { return 0; } +EOCP +set try +if eval $compile; then + echo "<malloc.h> found." >&4 + val="$define" +else + echo "<malloc.h> NOT found." >&4 + val="$undef" +fi +$rm -f try.c try +set i_malloc +eval $setvar : see if stdlib is available set stdlib.h i_stdlib |