From: Jarkko Hietaniemi Date: Fri, 1 Dec 2000 23:47:39 +0000 (+0000) Subject: Try to find stdchar also from . X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=065ee5e7cbcdc9aa24de43adde491c8c4b75b18c;p=p5sagit%2Fp5-mst-13.2.git Try to find stdchar also from . p4raw-id: //depot/perl@7950 --- diff --git a/Configure b/Configure index 9f88080..5fdc2f1 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed Nov 29 18:47:12 EET 2000 [metaconfig 3.0 PL70] +# Generated on Fri Dec 1 22:20:01 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >/tmp/c1$$ </dev/null 2>&1 ; then echo "Your stdio uses unsigned chars." >&4 stdchar="unsigned char" else - echo "Your stdio uses signed chars." >&4 - stdchar="char" + : Solaris 7+ + if $contains 'unsigned.*char.*_ptr;' `./findhdr stdio_impl.h` >/dev/null 2>&1 ; then + echo "Your stdio uses unsigned chars." >&4 + stdchar="unsigned char" + else + echo "Your stdio uses signed chars." >&4 + stdchar="char" + fi fi : see if time exists diff --git a/config_h.SH b/config_h.SH index 6483ebe..bc1fc3f 100644 --- a/config_h.SH +++ b/config_h.SH @@ -981,12 +981,6 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #define SH_PATH "$sh" /**/ -/* STDCHAR: - * This symbol is defined to be the type of char used in stdio.h. - * It has the values "unsigned char" or "char". - */ -#define STDCHAR $stdchar /**/ - /* CROSSCOMPILE: * This symbol, if defined, signifies that we our * build process is a cross-compilation. @@ -3211,6 +3205,12 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #$d_setpgrp HAS_SETPGRP /**/ #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ +/* STDCHAR: + * This symbol is defined to be the type of char used in stdio.h. + * It has the values "unsigned char" or "char". + */ +#define STDCHAR $stdchar /**/ + /* HAS__FWALK: * This symbol, if defined, indicates that the _fwalk system call is * available to apply a function to all the file handles.