From a176d9e0a43896000900611cbc878e6ec7aa2a1b Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 23 Mar 2004 22:35:09 +0000 Subject: Make usemallocwrap a Configure-time question. Default is yes for usedevel, no otherwise, but I'm expecting hints files on known good platforms to override this. (and known bad) Demonstration hints file for darwin. p4raw-id: //depot/perl@22571 --- Configure | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Configure') diff --git a/Configure b/Configure index b58dd15d5d..072afbf65a 100755 --- a/Configure +++ b/Configure @@ -942,6 +942,7 @@ freetype='' mallocobj='' mallocsrc='' malloctype='' +usemallocwrap='' usemymalloc='' installman1dir='' man1dir='' @@ -6258,6 +6259,26 @@ EOM ;; esac +: determine whether to use malloc wrapping +echo " " +case "$usemallocwrap" in +[yY]*|true|$define) dflt='y' ;; +[nN]*|false|$undef) dflt='n' ;; +*) case "$usedevel" in + [yY]*|true|$define) dflt='y' ;; + *) dflt='n' ;; + esac + ;; +esac +rp="Do you wish to wrap malloc calls to protect against potential overflows?" +. ./myread +usemallocwrap="$ans" +case "$ans" in +y*|true) + usemallocwrap="$define" ;; +*) + usemallocwrap="$undef" ;; +esac : determine which malloc to compile in echo " " @@ -21143,6 +21164,7 @@ make_set_make='$make_set_make' mallocobj='$mallocobj' mallocsrc='$mallocsrc' malloctype='$malloctype' +usemallocwrap='$usemallocwrap' man1dir='$man1dir' man1direxp='$man1direxp' man1ext='$man1ext' -- cgit v1.2.1