summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-02 17:54:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-02 17:54:32 +0000
commitdcd7796ab9330335475a23f3bb99758a7fe5b8d4 (patch)
treebfdd9de1051ee5128d0e53e1bb74e6abd559d764 /Configure
parent4248a4fbbde45bffdb71d6c3e4f9dca3ce032f3d (diff)
downloadperl-dcd7796ab9330335475a23f3bb99758a7fe5b8d4.tar.gz
An inconvenient hang would happen if the stdio _ptr wasn't
found in <stdio.h> and <stdio_impl.h> didn't exist. (grep would be grepping stdin for all eternity for the _ptr.) p4raw-id: //depot/perl@7954
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure23
1 files changed, 14 insertions, 9 deletions
diff --git a/Configure b/Configure
index 5fdc2f1f1f..30300d82c4 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 Fri Dec 1 22:20:01 EET 2000 [metaconfig 3.0 PL70]
+# Generated on Sat Dec 2 18:39:37 EET 2000 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >/tmp/c1$$ <<EOF
@@ -14497,14 +14497,19 @@ if $contains 'unsigned.*char.*_ptr;' `./findhdr stdio.h` >/dev/null 2>&1 ; then
echo "Your stdio uses unsigned chars." >&4
stdchar="unsigned char"
else
- : 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
+ : Solaris 7+, others?
+ stdiohdr=`./findhdr stdio_impl.h`
+ case "$stdiohdr" in
+ '') ;;
+ *) if $contains 'unsigned.*char.*_ptr;' $stdiohdr >/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
+ ;;
+ esac
fi
: see if time exists