]> thyrsus.com Git - intercal.git/commitdiff
Build fixes
authorAlex Smith <ais523@bham.ac.uk>
Sun, 11 May 2008 03:40:34 +0000 (23:40 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 00:34:55 +0000 (20:34 -0400)
NEWS.txt
config.ac
config.sh
src/autoscan.log [deleted file]

index 6f55f8116cd3bd48cf25773b59bede861aeeb85b..7059203dd1510881fa82fac3e925402c791ea71b 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -39,23 +39,30 @@ Bugs found by the people on irc.freenode.org/esoteric (thanks for testing!)
     this was patched just for DJGPP, the patch now applies to all operating
     systems and platforms). This bug is known to have affected the build on
     DOS, FreeBSD and Mac OS X, and possibly affects other platforms. (reported
-    by both <ehird> and <AnMaster>)
+    independently by both <ehird> and <AnMaster>)
+
+8.  The build now succeeds (with warnings) when lex or yacc are missing,
+    rather than failing with mysterious error messages that seem to have
+    nothing to do with the problems. (The success is made possible by using
+    the prebuilt versions; see change 11 of version 0.26, this is finishing
+    what that started.) Also improved the autoconfiguration some more.
+    (reported by <ehird>)
 
 Changes by Joris Huizer
 
-8.  The [xoritself] optimiser idiom has been generalised to handle some
+9.  The [xoritself] optimiser idiom has been generalised to handle some
     situations where the redundant XOR operands are on different grouping
     levels; this helps to optimise some heavily inlined greater-than tests.
 
-9.  Fixed unary operators applied to constants (AIS: it seems that my patch to
+10. Fixed unary operators applied to constants (AIS: it seems that my patch to
     solve this issue earlier was itself buggy).
 
-10. The -g option now causes optimisation of the output compiled C to be
+11. The -g option now causes optimisation of the output compiled C to be
     turned off.
 
 Bugs reported by the Debian autobuilders and Joey Hess
 
-11. The build of the optimiser idioms is now split over many files, to reduce
+12. The build of the optimiser idioms is now split over many files, to reduce
     the memory usage of gcc when it tries to compile the giant output C file.
     This was a problem on ia64. (The ulimit method of preventing thrashing has
     been removed, as this method works better; likewise, the optimiser
@@ -63,21 +70,21 @@ Bugs reported by the Debian autobuilders and Joey Hess
 
 Changes by Alex Smith
 
-12. convickt can now produce its output as INTERCAL initialisation of a tail
+13. convickt can now produce its output as INTERCAL initialisation of a tail
     array. (This doesn't auto-offset between the different characters; it is
     therefore mostly useful for producing Baudot arrays for CLC-INTERCAL-style
     IO.)
 
-13. The function clock_gettime is now supported by the yuk profiler as an
+14. The function clock_gettime is now supported by the yuk profiler as an
     alternative method of getting a high-resolution clock for profiling (it
     is available on at least Linux).
 
-14. Upgraded the autoconfiguration to a substantially newer version of
+15. Upgraded the autoconfiguration to a substantially newer version of
     autoconf. Hopefully the same script works on all operating systems now,
     because I've removed the one that configures for DOS (which was previously
     separate).
 
-15. Added support for computed CREATE (the computation is done at create-time,
+16. Added support for computed CREATE (the computation is done at create-time,
     rather than when the unknown statement is encountered); partly because
     this was rather easy, but mostly because it can be used to simulate a
     computed NEXT, thus making the example expansion library compunex (which I
@@ -89,10 +96,10 @@ Changes by Alex Smith
     features of NEXT, anyway, rather than the small subset COMPUNEX could
     manage.)
 
-16. Plugged a couple of small memory leaks; however, there are still several
+17. Plugged a couple of small memory leaks; however, there are still several
     much bigger memory leaks that could do with being fixed.
 
-17. About the version number: this release is mostly bugfixing, but does add a
+18. About the version number: this release is mostly bugfixing, but does add a
     few new features, so I wasn't sure whether to increment the major or the
     minor version number. In the end, I used the old INTERCAL maxim 'when in
     doubt, do both'.
index 239a9d234af9897f7f12c9675e9a39999c7fa763..02c6e6c1e6886cfcc933536cd218e7973a2f9eee 100644 (file)
--- a/config.ac
+++ b/config.ac
@@ -1,6 +1,8 @@
 dnl -*- autoconf -*-
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT
+dnl Yes, that is a valid email address. If your mailer doesn't support nested
+dnl comments, then get a better mailer.
+AC_INIT([C-INTERCAL],[1.29],[[ais523(524\)x\((525)y)@bham.ac.uk]])
 AC_CONFIG_SRCDIR([src/abcess.h])
 AC_CONFIG_HEADER(temp/config.h:src/configh.in)
 
@@ -69,12 +71,17 @@ dnl This Autoconf input is compatible with pre-C99 Autoconf, so to
 dnl check for long long AC_CHECK_SIZEOF is used to test for a nonzero result,
 dnl likewise for _Bool.
 AC_C_CONST
+AC_C_VOLATILE
 AC_CHECK_SIZEOF(long long int,0)
 AC_CHECK_SIZEOF(_Bool,0)
 AC_HEADER_TIME
 AC_EXEEXT
 AC_OBJEXT
 AC_SYS_INTERPRETER
+AC_TYPE_SIGNAL
+AC_TYPE_SIZE_T
+AC_TYPE_UINT16_T
+AC_TYPE_UINT32_T
 
 AC_MSG_CHECKING(whether yyrestart() is needed)
 # Write a lex program that will cause an error if yyrestart exists.
@@ -92,7 +99,6 @@ fi
 AC_DEFINE_UNQUOTED(EXEEXT,"$EXEEXT")
 
 dnl Checks for library functions.
-AC_TYPE_SIGNAL
 AC_CHECK_FUNCS(gettimeofday gethrtime strdup strtol strtoul snprintf asprintf)
 ICK_SAVECFLAGS=$CFLAGS
 CFLAGS="$CFLAGS -lrt"
@@ -105,3 +111,23 @@ AC_CONFIG_FILES([Makefile temp/coopt.sh:src/cooptsh.in])
 AC_OUTPUT
 dnl After the output, chmod coopt.sh to be executable.
 chmod a+x temp/coopt.sh
+
+dnl Use prebuilt files if necessary. This is done after config.h is generated,
+dnl so the touched timestamps fool make in the correct manner.
+# Use the prebuilt files if necessary, otherwise delete them.
+if test ! -n "$LEX"; then
+  touch temp/lexer.c
+  AC_WARN([No version of lex was found, using prebuilt lexer.c.])
+  AC_WARN([The lexer will not respond to changes in src/lexer.l unless you])
+  AC_WARN([install a version of lex and reconfigure.])
+else
+  rm -f temp/lexer.c
+fi
+if test ! -n "$YACC"; then
+  touch temp/oil.c temp/parser.c temp/parser.h
+  AC_WARN([No version of yacc was found, using prebuilt oil.c and parser.c.])
+  AC_WARN([The parsers will not respond to changes in source files unless you])
+  AC_WARN([install a version of yacc and reconfigure.])
+else
+  rm -f temp/oil.c temp/parser.c temp/parser.h
+fi
index 491d21ca3f44ff9d807e113da927ccc66cde43d5..b542468e016eb3f806430b2565cc8ff7a8162039 100644 (file)
--- a/config.sh
+++ b/config.sh
@@ -1,6 +1,8 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61.
+# Generated by GNU Autoconf 2.61 for C-INTERCAL 1.29.
+#
+# Report bugs to <ais523(524\)x\((525)y)@bham.ac.uk>.
 #
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
@@ -570,11 +572,11 @@ MAKEFLAGS=
 SHELL=${CONFIG_SHELL-/bin/sh}
 
 # Identity of this package.
-PACKAGE_NAME=
-PACKAGE_TARNAME=
-PACKAGE_VERSION=
-PACKAGE_STRING=
-PACKAGE_BUGREPORT=
+PACKAGE_NAME='C-INTERCAL'
+PACKAGE_TARNAME='c-intercal'
+PACKAGE_VERSION='1.29'
+PACKAGE_STRING='C-INTERCAL 1.29'
+PACKAGE_BUGREPORT='ais523(524\)x\((525)y)@bham.ac.uk'
 
 ac_unique_file="src/abcess.h"
 # Factoring default headers for most tests.
@@ -723,7 +725,7 @@ sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE}'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 infodir='${datarootdir}/info'
 htmldir='${docdir}'
 dvidir='${docdir}'
@@ -1187,7 +1189,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures this package to adapt to many kinds of systems.
+\`configure' configures C-INTERCAL 1.29 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1235,7 +1237,7 @@ Fine tuning of the installation directories:
   --infodir=DIR          info documentation [DATAROOTDIR/info]
   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   --mandir=DIR           man documentation [DATAROOTDIR/man]
-  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
+  --docdir=DIR           documentation root [DATAROOTDIR/doc/c-intercal]
   --htmldir=DIR          html documentation [DOCDIR]
   --dvidir=DIR           dvi documentation [DOCDIR]
   --pdfdir=DIR           pdf documentation [DOCDIR]
@@ -1247,7 +1249,9 @@ _ACEOF
 fi
 
 if test -n "$ac_init_help"; then
-
+  case $ac_init_help in
+     short | recursive ) echo "Configuration of C-INTERCAL 1.29:";;
+   esac
   cat <<\_ACEOF
 
 Some influential environment variables:
@@ -1268,6 +1272,7 @@ Some influential environment variables:
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
 
+Report bugs to <ais523(524\)x\((525)y)@bham.ac.uk>.
 _ACEOF
 ac_status=$?
 fi
@@ -1328,7 +1333,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-configure
+C-INTERCAL configure 1.29
 generated by GNU Autoconf 2.61
 
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1342,7 +1347,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by $as_me, which was
+It was created by C-INTERCAL $as_me 1.29, which was
 generated by GNU Autoconf 2.61.  Invocation command line was
 
   $ $0 $@
@@ -1675,6 +1680,14 @@ fi
 
 
 
+
+
+
+
+
+
+
+
 
 
 
@@ -3888,7 +3901,12 @@ echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-
+    ( cat <<\_ASBOX
+## ------------------------------------------------ ##
+## Report this to ais523(524\)x\((525)y)@bham.ac.uk ##
+## ------------------------------------------------ ##
+_ASBOX
+     ) | sed "s/^/$as_me: WARNING:     /" >&2
     ;;
 esac
 { echo "$as_me:$LINENO: checking for $ac_header" >&5
@@ -4028,7 +4046,12 @@ echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-
+    ( cat <<\_ASBOX
+## ------------------------------------------------ ##
+## Report this to ais523(524\)x\((525)y)@bham.ac.uk ##
+## ------------------------------------------------ ##
+_ASBOX
+     ) | sed "s/^/$as_me: WARNING:     /" >&2
     ;;
 esac
 { echo "$as_me:$LINENO: checking for $ac_header" >&5
@@ -4160,6 +4183,66 @@ _ACEOF
 
 fi
 
+{ echo "$as_me:$LINENO: checking for working volatile" >&5
+echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
+if test "${ac_cv_c_volatile+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+volatile int x;
+int * volatile y = (int *) 0;
+return !x && !y;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_c_volatile=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_cv_c_volatile=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
+echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
+if test $ac_cv_c_volatile = no; then
+
+cat >>confdefs.h <<\_ACEOF
+#define volatile
+_ACEOF
+
+fi
+
 { echo "$as_me:$LINENO: checking for long long int" >&5
 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 if test "${ac_cv_type_long_long_int+set}" = set; then
@@ -5054,25 +5137,24 @@ fi
 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
 interpval=$ac_cv_sys_interpreter
 
-
-{ echo "$as_me:$LINENO: checking whether yyrestart() is needed" >&5
-echo $ECHO_N "checking whether yyrestart() is needed... $ECHO_C" >&6; }
-# Write a lex program that will cause an error if yyrestart exists.
-echo '%%
-%%
-float yyrestart(int, ...);' | $LEX
-cat >conftest.$ac_ext <<_ACEOF
+{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
+echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
+if test "${ac_cv_type_signal+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include "${LEX_OUTPUT_ROOT}.c"
+#include <sys/types.h>
+#include <signal.h>
 
 int
 main ()
 {
-exit(0);
+return *(signal (0, 0)) (0) == 1;
   ;
   return 0;
 }
@@ -5094,52 +5176,181 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         test -z "$ac_c_werror_flag" ||
         test ! -s conftest.err
        } && test -s conftest.$ac_objext; then
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
+  ac_cv_type_signal=int
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-       cat >>confdefs.h <<\_ACEOF
-#define NEED_YYRESTART 1
+       ac_cv_type_signal=void
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
+echo "${ECHO_T}$ac_cv_type_signal" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define RETSIGTYPE $ac_cv_type_signal
 _ACEOF
 
-{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
+
+{ echo "$as_me:$LINENO: checking for size_t" >&5
+echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_size_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+typedef size_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+  return 0;
+if (sizeof (ac__type_new_))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_type_size_t=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_cv_type_size_t=no
 fi
 
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-rm -f ${LEX_OUTPUT_ROOT}.c
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
+echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
+if test $ac_cv_type_size_t = yes; then
+  :
+else
 
-if test "$interpval" != "no"; then
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_SYS_INTERPRETER 1
+cat >>confdefs.h <<_ACEOF
+#define size_t unsigned int
+_ACEOF
+
+fi
+
+
+  { echo "$as_me:$LINENO: checking for uint16_t" >&5
+echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
+if test "${ac_cv_c_uint16_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_c_uint16_t=no
+     for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
+        'unsigned long long int' 'unsigned short int' 'unsigned char'; do
+       cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
 _ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  case $ac_type in
+  uint16_t) ac_cv_c_uint16_t=yes ;;
+  *) ac_cv_c_uint16_t=$ac_type ;;
+esac
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
 
 fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       test "$ac_cv_c_uint16_t" != no && break
+     done
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
+echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
+  case $ac_cv_c_uint16_t in #(
+  no|yes) ;; #(
+  *)
+
+
 cat >>confdefs.h <<_ACEOF
-#define EXEEXT "$EXEEXT"
+#define uint16_t $ac_cv_c_uint16_t
 _ACEOF
+;;
+  esac
 
 
-{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
-echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
-if test "${ac_cv_type_signal+set}" = set; then
+  { echo "$as_me:$LINENO: checking for uint32_t" >&5
+echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
+if test "${ac_cv_c_uint32_t+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  cat >conftest.$ac_ext <<_ACEOF
+  ac_cv_c_uint32_t=no
+     for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
+        'unsigned long long int' 'unsigned short int' 'unsigned char'; do
+       cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <sys/types.h>
-#include <signal.h>
-
+$ac_includes_default
 int
 main ()
 {
-return *(signal (0, 0)) (0) == 1;
+static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
+test_array [0] = 0
+
   ;
   return 0;
 }
@@ -5161,21 +5372,104 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         test -z "$ac_c_werror_flag" ||
         test ! -s conftest.err
        } && test -s conftest.$ac_objext; then
-  ac_cv_type_signal=int
+  case $ac_type in
+  uint32_t) ac_cv_c_uint32_t=yes ;;
+  *) ac_cv_c_uint32_t=$ac_type ;;
+esac
+
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-       ac_cv_type_signal=void
+
 fi
 
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       test "$ac_cv_c_uint32_t" != no && break
+     done
 fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
-echo "${ECHO_T}$ac_cv_type_signal" >&6; }
+{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
+echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
+  case $ac_cv_c_uint32_t in #(
+  no|yes) ;; #(
+  *)
+
+cat >>confdefs.h <<\_ACEOF
+#define _UINT32_T 1
+_ACEOF
+
 
 cat >>confdefs.h <<_ACEOF
-#define RETSIGTYPE $ac_cv_type_signal
+#define uint32_t $ac_cv_c_uint32_t
+_ACEOF
+;;
+  esac
+
+
+{ echo "$as_me:$LINENO: checking whether yyrestart() is needed" >&5
+echo $ECHO_N "checking whether yyrestart() is needed... $ECHO_C" >&6; }
+# Write a lex program that will cause an error if yyrestart exists.
+echo '%%
+%%
+float yyrestart(int, ...);' | $LEX
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include "${LEX_OUTPUT_ROOT}.c"
+
+int
+main ()
+{
+exit(0);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       cat >>confdefs.h <<\_ACEOF
+#define NEED_YYRESTART 1
+_ACEOF
+
+{ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+rm -f ${LEX_OUTPUT_ROOT}.c
+
+if test "$interpval" != "no"; then
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SYS_INTERPRETER 1
+_ACEOF
+
+fi
+cat >>confdefs.h <<_ACEOF
+#define EXEEXT "$EXEEXT"
 _ACEOF
 
 
@@ -5777,7 +6071,7 @@ exec 6>&1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by $as_me, which was
+This file was extended by C-INTERCAL $as_me 1.29, which was
 generated by GNU Autoconf 2.61.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -5826,7 +6120,7 @@ Report bugs to <bug-autoconf@gnu.org>."
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-config.status
+C-INTERCAL config.status 1.29
 configured by $0, generated by GNU Autoconf 2.61,
   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
@@ -6484,3 +6778,27 @@ if test "$no_create" != yes; then
 fi
 
 chmod a+x temp/coopt.sh
+
+# Use the prebuilt files if necessary, otherwise delete them.
+if test ! -n "$LEX"; then
+  touch temp/lexer.c
+  { echo "$as_me:$LINENO: WARNING: No version of lex was found, using prebuilt lexer.c." >&5
+echo "$as_me: WARNING: No version of lex was found, using prebuilt lexer.c." >&2;}
+  { echo "$as_me:$LINENO: WARNING: The lexer will not respond to changes in src/lexer.l unless you" >&5
+echo "$as_me: WARNING: The lexer will not respond to changes in src/lexer.l unless you" >&2;}
+  { echo "$as_me:$LINENO: WARNING: install a version of lex and reconfigure." >&5
+echo "$as_me: WARNING: install a version of lex and reconfigure." >&2;}
+else
+  rm -f temp/lexer.c
+fi
+if test ! -n "$YACC"; then
+  touch temp/oil.c temp/parser.c temp/parser.h
+  { echo "$as_me:$LINENO: WARNING: No version of yacc was found, using prebuilt oil.c and parser.c." >&5
+echo "$as_me: WARNING: No version of yacc was found, using prebuilt oil.c and parser.c." >&2;}
+  { echo "$as_me:$LINENO: WARNING: The parsers will not respond to changes in source files unless you" >&5
+echo "$as_me: WARNING: The parsers will not respond to changes in source files unless you" >&2;}
+  { echo "$as_me:$LINENO: WARNING: install a version of yacc and reconfigure." >&5
+echo "$as_me: WARNING: install a version of yacc and reconfigure." >&2;}
+else
+  rm -f temp/oil.c temp/parser.c temp/parser.h
+fi
diff --git a/src/autoscan.log b/src/autoscan.log
deleted file mode 100644 (file)
index e69de29..0000000