This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Spelling - megapatch
[metaconfig.git] / U / modified / i_varhdr.U
index 2b72f29..61aae35 100644 (file)
@@ -1,12 +1,12 @@
-?RCS: $Id: i_varhdr.U,v 3.0.1.3 1997/02/28 15:54:42 ram Exp $
+?RCS: $Id: i_varhdr.U 1 2006-08-24 12:32:52Z rmanfredi $
 ?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
-?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
 ?RCS: as specified in the README file that comes with the distribution.
 ?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
 ?RCS:
 ?RCS: $Log: i_varhdr.U,v $
 ?RCS: Revision 3.0.1.3  1997/02/28  15:54:42  ram
@@ -23,7 +23,7 @@
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
 ?MAKE:i_stdarg i_varargs i_varhdr: cat +cc +ccflags rm test Setvar \
-       Findhdr startsh _o run
+       Findhdr startsh _o
 ?MAKE: -pick add $@ %<
 ?S:i_stdarg:
 ?S:    This variable conditionally defines the I_STDARG symbol, which
 ?H:#$i_varargs I_VARARGS       /**/
 ?H:.
 ?W:%<:va_dcl
-?T:valstd
 ?F:!varargs
+?T:valstd
 ?LINT:set i_stdarg i_varargs
 ?X:
-?X: Don't use setvar because the varags test below might override these.
+?X: Don't use setvar because the varargs test below might override these.
 ?X: Actually, the messages here are just informative. We don't wish to set
 ?X: i_varargs or i_stdarg to their final value before knowing which of the
 ?X: two we'll include.
@@ -69,7 +69,7 @@ else
        valstd="$undef"
 fi
 
-: see if varags is available
+: see if varargs is available
 echo " "
 if $test `./findhdr varargs.h`; then
        echo "<varargs.h> found." >&4
@@ -109,6 +109,7 @@ va_dcl
        p = va_arg(ap, char *);
 #endif
        va_end(ap);
+       return 0;
 }
 EOP
 $cat > varargs <<EOP
@@ -125,6 +126,7 @@ chmod +x varargs
 : now check which varargs header should be included
 echo " "
 i_varhdr=''
+val=''
 case "$valstd" in
 "$define")
        if `./varargs I_STDARG`; then
@@ -141,11 +143,20 @@ case "$valstd" in
 esac
 case "$val" in
 '')
+       echo " "
+       echo "*** WHOA THERE!!! ***" >&4
+       echo "    Your C compiler \"$cc\" doesn't seem to support stdarg or varargs!" >&4
+       case "$knowitall" in
+       '')
+       echo "    I'm giving up; maybe you can try again with a different compiler?" >&4
+               exit 1
+               ;;
+       esac
 echo "I could not find the definition for va_dcl... You have problems..." >&4
        val="$undef"; set i_stdarg; eval $setvar
        val="$undef"; set i_varargs; eval $setvar
        ;;
-*) 
+*)
        set i_varhdr
        eval $setvar
        case "$i_varhdr" in