# $Id: Head.U 6 2006-08-25 22:21:46Z rmanfredi $
#
-# Generated on Thu Nov 5 21:01:50 CET 2009 [metaconfig 3.5 PL0]
+# Generated on Fri Nov 6 07:43:05 CET 2009 [metaconfig 3.5 PL0]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
cf_email=''
cf_by=''
cf_time=''
+charbits=''
+charsize=''
contains=''
cpp_stuff=''
cpplast=''
: set the base revision
baserev=5.0
+: check for length of character
+echo " "
+case "$charsize" in
+'')
+ echo "Checking to see how big your characters are (hey, you never know)..." >&4
+ $cat >try.c <<EOCP
+#include <stdio.h>
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+int main()
+{
+ printf("%d\n", (int)sizeof(char));
+ exit(0);
+}
+EOCP
+ set try
+ if eval $compile_ok; then
+ dflt=`$run ./try`
+ else
+ dflt='1'
+ echo "(I can't seem to compile the test program. Guessing...)"
+ fi
+ ;;
+*)
+ dflt="$charsize"
+ ;;
+esac
+rp="What is the size of a character (in bytes)?"
+. ./myread
+charsize="$ans"
+$rm_try
+
+: Check for the number of bits in a character
+case "$charbits" in
+'') echo "Checking how long a character is (in bits)..." >&4
+ $cat >try.c <<EOCP
+#include <stdio.h>
+int main ()
+{
+ int n;
+ unsigned char c;
+ for (c = 1, n = 0; c; c <<= 1, n++) ;
+ printf ("%d\n", n);
+ return (0);
+ }
+EOCP
+ set try
+ if eval $compile_ok; then
+ dflt=`$run ./try`
+ else
+ dflt='8'
+ echo "(I can't seem to compile the test program. Guessing...)"
+ fi
+ ;;
+*)
+ dflt="$charbits"
+ ;;
+esac
+rp="What is the length of a character (in bits)?"
+. ./myread
+charbits="$ans"
+$rm_try
+case "$charbits" in
+8) ;;
+*) cat >&4 << EOM
+Your system has an unsigned character size of $charbits bits, which
+is rather unusual (normally it is 8 bits). Perl likely will not work
+correctly on your system, with subtle bugs in various places.
+EOM
+ rp='Do you really want to continue?'
+ dflt='n'
+ . ./myread
+ case "$ans" in
+ [yY]) echo >&4 "Okay, continuing." ;;
+ *) exit 1 ;;
+ esac
+esac
+
: how do we concatenate cpp tokens here?
echo " "
echo "Checking to see how your cpp does stuff like concatenate tokens..." >&4
cf_by='$cf_by'
cf_email='$cf_email'
cf_time='$cf_time'
+charbits='$charbits'
+charsize='$charsize'
chgrp='$chgrp'
chmod='$chmod'
chown='$chown'
cf_by='red'
cf_email='red@criticalintegration.com'
cf_time='Wed Sep 3 22:24:58 EDT 2003'
+charbits='8'
chgrp=''
chmod='chmod'
chown=''
cf_by='nobody'
cf_email='nobody@no.where.net'
cf_time=''
+charbits='8'
chgrp=''
chmod=''
chown=''
Holds the output of the "date" command when the configuration file was
produced. This is used to tag both config.sh and config_h.SH.
+charbits (charsize.U):
+ This variable contains the value of the CHARBITS symbol, which
+ indicates to the C program how many bits there are in a character.
+
+charsize (charsize.U):
+ This variable contains the value of the CHARSIZE symbol, which
+ indicates to the C program how many bytes there are in a character.
+
chgrp (Loc.U):
This variable is defined but not used by Configure.
The value is the empty string and is not useful.
cf_by='merijn'
cf_email='yourname@yourhost.yourplace.com'
cf_time='Wed Jan 23 09:43:56 CET 2008'
+charbits='8'
chgrp=''
chmod='chmod'
chown=''
#define BYTEORDER 0x$byteorder /* large digits for MSB */
#endif /* NeXT */
+/* CHARBITS:
+ * This symbol contains the size of a char, so that the C preprocessor
+ * can make decisions based on it.
+ */
+#define CHARBITS $charbits /**/
+
/* CASTI32:
* This symbol is defined if the C compiler can cast negative
* or large floating point numbers to 32-bit ints.
$ WC "cf_by='" + cf_by + "'"
$ WC "cf_email='" + cf_email + "'"
$ WC "cf_time='" + cf_time + "'"
+$ WC "charbits='8'"
$ WC "config_args='" + config_args + "'"
$ WC "config_sh='" + config_sh + "'"
$ WC "cpp_stuff='" + cpp_stuff + "'"
cf_by='olaf'
cf_email='o.flebbe@gmx.de'
cf_time='Dec 2001'
+charbits='8'
chgrp=''
chmod=''
chown=''
cf_by='9trouble'
cf_email='9trouble@plan9.bell-labs.com'
cf_time='Sun Nov 24 20:57:48 EST 2002'
+charbits='8'
chgrp=''
chmod='chmod'
chown=''
ccdlflags=''
cf_by='root@localhost'
cf_time='Thu Jan 1 00:00:00 GMT 1970'
+charbits='8'
clocktype='clock_t'
cpp_stuff='42'
cpplast=''
castflags='0'
cf_by='root@localhost'
cf_time='Thu Jan 1 00:00:00 GMT 1970'
+charbits='8'
clocktype='clock_t'
cpplast='-'
cppminus='-'
cf_by='nobody'
cf_email='nobody@no.where.net'
cf_time=''
+charbits='8'
chgrp=''
chmod=''
chown=''
cf_by='nobody'
cf_email='nobody@no.where.net'
cf_time=''
+charbits='8'
chgrp=''
chmod=''
chown=''
cf_by='nobody'
cf_email='nobody@no.where.net'
cf_time=''
+charbits='8'
chgrp=''
chmod=''
chown=''
cf_by='nobody'
cf_email='nobody@no.where.net'
cf_time=''
+charbits='8'
chgrp=''
chmod=''
chown=''
cf_by='nobody'
cf_email='nobody@no.where.net'
cf_time=''
+charbits='8'
chgrp=''
chmod=''
chown=''