PennMUSH Community
Show
Ignore:
Timestamp:
10/05/07 23:29:53 (1 year ago)
Author:
shawnw
Message:

gc: sync with p5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/gc/CHANGES.182

    r1017 r1129  
    1414========================================================================== 
    1515 
     16Version 1.8.2 patchlevel 7                     October 6, 2007 
     17 
     18Minor changes: 
     19  * nwho() now takes an optional viewer argument like lwho(). By Sketch. 
     20 
     21Fixes: 
     22  * Clarified the behavior of eval() and get_eval() in help. Suggested by 
     23    Talvo and Javelin. 
     24  * A failed db save no longer broadcasts a success message in addition to a 
     25    failure one. Reported by Cooee. 
     26  * The open database file wasn't getting closed on a failed save. 
     27  * Crash bug in sortkey(). Fix by Nathan Baum. 
     28  * 'help @desc' brings up @describe instead of @descformat. 
     29    Suggested by Nymeria. 
     30  * Removed mention of Win32 requiring a particular attribute 
     31    compression algorithm. Any will work, and always have. 
     32    Reported by Andrew Klein. 
     33  * Crash bug in @purge. Javelin.   
     34 
    1635Version 1.8.2 patchlevel 6                       July 9, 2007 
    1736 
     
    2140 
    2241Minor changes: 
     42  * Removed the gmalloc malloc option. [SW] 
    2343  * KEEPALIVE flag makes the server send a telnet NOP after 
    2444    a short period of inactivity; helps prevent timeouts from 
     
    2747Fixes: 
    2848  * Fixed assorted small memory leaks. [SW] 
     49  * Fix to fraction() when dealing with numbers that can't 
     50    be fractioned. Discovered by Ashen-Shugar. [GM] 
    2951  * Fixed handling of telnet NOPs sent by clients. [SW] 
    3052  * The OpenSSL random number pool wasn't getting adequately 
    3153    initialized on systems without /dev/urandom [SW] 
    3254  * Infinite loop in math code. Reported by Ashen-Sugar. [GM] 
     55  * mkvershlp.pl skips over emacs backup files. 
    3356 
    3457Version 1.8.2 patchlevel 5                      June 13, 2007 
    3558 
    3659Minor changes: 
    37   * Removed the gmalloc malloc option. [SW] 
    3860  * Assorted gcc warning fixes. [SW] 
    3961 
  • 1.8.3/branches/gc/CHANGES.183

    r1008 r1129  
    1515========================================================================== 
    1616 
    17 Version 1.8.3 patchlevel 4                      ???? ??, 2007 
     17Version 1.8.3 patchlevel 5                      October 6, 2007 
     18 
     19Major changes: 
     20 * Significant rewrite of ansi parsing and better ansi support 
     21   for many string-handling functions. Patch by Sketch. 
     22 * Rewrite of the softcode regression testing framework, and  
     23   addition of more tests. [SW] 
     24 
     25Minor changes: 
     26 * Store a pointer to the start of a player's mailbox in objdata 
     27   instead of the connection struct. 
     28 * Experimental rewrite of hash tables to use the cuckoo hashing 
     29   algorithm, with constant-time lookups even in the worst case. 
     30   (And appears to have generally faster lookup even in normal usage.) 
     31 * Regular expression @sitelocks save the compiled regexp instead of 
     32   recompiling every time the rule is tested. 
     33 * Added %4 to @pageformat, which is the default page message. 
     34 
     35Commands: 
     36 * Added @message, which makes it easy to use @chatformat or 
     37   @pageformat via @hooks, or to create your own *format. 
     38 
     39Functions: 
     40 * Added message(), the function version of @message. 
     41 
     42Fixes: 
     43 * decode64() does better validation of its input. [SW] 
     44 * Various compile fixes reported by Interevis and Kimiko. 
     45   Win32 patched by Intrevis. 
     46 * @sitelock does better error reporting. [SW] 
     47 * Crash bug related to regeditall fixed. 
     48 * @decompile didn't handle attribute trees correctly. 
     49 * Compile failure in funstr.c on some systems. Fixed by Boris. 
     50 * '@set =foo' failed silently. Reported by Talvo. 
     51 * Fixes from 1.8.2p7 
     52 
     53Version 1.8.3 patchlevel 4                      July 9, 2007 
    1854 
    1955Major changes: 
     
    78114    common cases by Sketch and Javelin. 
    79115  * Fixes to ANSI output where extra ^[[m were being sent. 
     116  * Default flags weren't getting set on some attributes in certain 
     117    cases. Report by Talvo. 
    80118  * Fixes from 1.8.2p6 
    81119 
  • 1.8.3/branches/gc/MANIFEST

    r1023 r1129  
    231231src/wild.c 
    232232src/wiz.c 
     233test/README 
    233234test/MUSHConnection.pm 
    234235test/PennMUSH.pm 
    235236test/TestHarness.pm 
    236 test/alltests.pl 
     237test/alltests.sh.in 
     238test/runtest.pl 
    237239test/testalias.pl 
    238240test/testatree.pl 
     
    254256test/teststringsecs.pl 
    255257test/testtr.pl 
     258test/testtrim.pl 
    256259utils/clwrapper.sh 
    257260utils/customize.pl 
  • 1.8.3/branches/gc/Makefile.in

    r1023 r1129  
    44 
    55VERSION=1.8.3 
    6 PATCHLEVEL=3 
     6PATCHLEVEL=5 
    77 
    88# 
     
    8181netmud:  
    8282    (cd src; make netmud "CC=$(CC)" "CCFLAGS=$(CCFLAGS)" \ 
     83    "SQL_CFLAGS=$(SQL_CFLAGS)" "SQL_LDFLAGS=$(SQL_LDFLAGS)" \ 
    8384    "LDFLAGS=$(LDFLAGS)" "CLIBS=$(CLIBS)" ) 
    8485 
     
    163164update-hdr: 
    164165    -@@TOUCH@ options.h.dist 
     166    -@sleep 2 
    165167    -@@PERL@ utils/update.pl options.h options.h.dist 
    166168 
  • 1.8.3/branches/gc/Patchlevel

    r921 r1129  
    11Do not edit this file. It is maintained by the official PennMUSH patches. 
    2 This is PennMUSH 1.8.3p3 
     2This is PennMUSH 1.8.3p5 
  • 1.8.3/branches/gc/UPGRADING

    r981 r1129  
    119119*** target version of PennMUSH. PennMUSH 1.7.7+ can no longer read 
    120120*** 1.7.4 databases. 
     121 
     122*** If you are upgrading from 1.7.6 or certain 1.7.7 versions, 
     123*** you may also first need to load your database under PennMUSH 
     124*** 1.8.0p13 and then dump it, and load this converted database 
     125*** under your target version of PennMUSH. 
    121126 
    122127============================================================================ 
  • 1.8.3/branches/gc/config.h.in

    r1017 r1129  
    166166#undef HAVE_CBRT 
    167167 
     168#undef HAVE_LOG2 
     169 
    168170#undef HAS_CRYPT 
    169171 
     
    280282 
    281283#undef HAVE_WRITEV 
     284 
     285#undef HAVE_FCNTL 
    282286 
    283287/* Variables and defines */ 
  • 1.8.3/branches/gc/configure

    r1017 r1129  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.60
     3# Generated by GNU Autoconf 2.61
    44# 
    55# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 
     
    1111## --------------------- ## 
    1212 
    13 # Be Bourne compatible 
     13# Be more Bourne compatible 
     14DUALCASE=1; export DUALCASE # for MKS sh 
    1415if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    1516  emulate sh 
     
    2021  setopt NO_GLOB_SUBST 
    2122else 
    22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 
    23 fi 
    24 BIN_SH=xpg4; export BIN_SH # for Tru64 
    25 DUALCASE=1; export DUALCASE # for MKS sh 
     23  case `(set -o) 2>/dev/null` in 
     24  *posix*) set -o posix ;; 
     25esac 
     26 
     27fi 
     28 
     29 
    2630 
    2731 
     
    216220  as_candidate_shells= 
    217221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
    218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 
     222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 
    219223do 
    220224  IFS=$as_save_IFS 
     
    234238     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 
    235239        { ("$as_shell") 2> /dev/null <<\_ASEOF 
    236 # Be Bourne compatible 
    237240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    238241  emulate sh 
     
    243246  setopt NO_GLOB_SUBST 
    244247else 
    245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 
    246 fi 
    247 BIN_SH=xpg4; export BIN_SH # for Tru64 
    248 DUALCASE=1; export DUALCASE # for MKS sh 
     248  case `(set -o) 2>/dev/null` in 
     249  *posix*) set -o posix ;; 
     250esac 
     251 
     252fi 
     253 
    249254 
    250255: 
     
    254259           as_have_required=yes 
    255260           if { "$as_shell" 2> /dev/null <<\_ASEOF 
    256 # Be Bourne compatible 
    257261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    258262  emulate sh 
     
    263267  setopt NO_GLOB_SUBST 
    264268else 
    265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 
    266 fi 
    267 BIN_SH=xpg4; export BIN_SH # for Tru64 
    268 DUALCASE=1; export DUALCASE # for MKS sh 
     269  case `(set -o) 2>/dev/null` in 
     270  *posix*) set -o posix ;; 
     271esac 
     272 
     273fi 
     274 
    269275 
    270276: 
     
    513519fi 
    514520 
    515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as 
    516 # systems may use methods other than mode bits to determine executability. 
    517 cat >conf$$.file <<_ASEOF 
    518 #! /bin/sh 
    519 exit 0 
    520 _ASEOF 
    521 chmod +x conf$$.file 
    522 if test -x conf$$.file >/dev/null 2>&1; then 
    523   as_executable_p="test -x" 
    524 else 
    525   as_executable_p=: 
    526 fi 
    527 rm -f conf$$.file 
     521if test -x / >/dev/null 2>&1; then 
     522  as_test_x='test -x' 
     523else 
     524  if ls -dL / >/dev/null 2>&1; then 
     525    as_ls_L_option=L 
     526  else 
     527    as_ls_L_option= 
     528  fi 
     529  as_test_x=' 
     530    eval sh -c '\'' 
     531      if test -d "$1"; then 
     532        test -d "$1/."; 
     533      else 
     534    case $1 in 
     535        -*)set "./$1";; 
     536    esac; 
     537    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 
     538    ???[sx]*):;;*)false;;esac;fi 
     539    '\'' sh 
     540  ' 
     541fi 
     542as_executable_p=$as_test_x 
    528543 
    529544# Sed expression to map a string onto a valid CPP name. 
     
    566581ac_includes_default="\ 
    567582#include <stdio.h> 
    568 #if HAVE_SYS_TYPES_H 
     583#ifdef HAVE_SYS_TYPES_H 
    569584# include <sys/types.h> 
    570585#endif 
    571 #if HAVE_SYS_STAT_H 
     586#ifdef HAVE_SYS_STAT_H 
    572587# include <sys/stat.h> 
    573588#endif 
    574 #if STDC_HEADERS 
     589#ifdef STDC_HEADERS 
    575590# include <stdlib.h> 
    576591# include <stddef.h> 
    577592#else 
    578 # if HAVE_STDLIB_H 
     593# ifdef HAVE_STDLIB_H 
    579594#  include <stdlib.h> 
    580595# endif 
    581596#endif 
    582 #if HAVE_STRING_H 
    583 # if !STDC_HEADERS && HAVE_MEMORY_H 
     597#ifdef HAVE_STRING_H 
     598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 
    584599#  include <memory.h> 
    585600# endif 
    586601# include <string.h> 
    587602#endif 
    588 #if HAVE_STRINGS_H 
     603#ifdef HAVE_STRINGS_H 
    589604# include <strings.h> 
    590605#endif 
    591 #if HAVE_INTTYPES_H 
     606#ifdef HAVE_INTTYPES_H 
    592607# include <inttypes.h> 
    593608#endif 
    594 #if HAVE_STDINT_H 
     609#ifdef HAVE_STDINT_H 
    595610# include <stdint.h> 
    596611#endif 
    597 #if HAVE_UNISTD_H 
     612#ifdef HAVE_UNISTD_H 
    598613# include <unistd.h> 
    599614#endif" 
     
    687702CFLAGS 
    688703LDFLAGS 
     704LIBS 
    689705CPPFLAGS 
    690706SENDMAIL 
     
    795811    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 
    796812    # Reject names that are not valid shell variable names. 
    797     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     813    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    798814      { echo "$as_me: error: invalid feature name: $ac_feature" >&2 
    799815   { (exit 1); exit 1; }; } 
    800     ac_feature=`echo $ac_feature | sed 's/-/_/g'` 
     816    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 
    801817    eval enable_$ac_feature=no ;; 
    802818 
     
    814830    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 
    815831    # Reject names that are not valid shell variable names. 
    816     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     832    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    817833      { echo "$as_me: error: invalid feature name: $ac_feature" >&2 
    818834   { (exit 1); exit 1; }; } 
    819     ac_feature=`echo $ac_feature | sed 's/-/_/g'` 
     835    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 
    820836    eval enable_$ac_feature=\$ac_optarg ;; 
    821837 
     
    10111027    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 
    10121028    # Reject names that are not valid shell variable names. 
    1013     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     1029    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    10141030      { echo "$as_me: error: invalid package name: $ac_package" >&2 
    10151031   { (exit 1); exit 1; }; } 
    1016     ac_package=`echo $ac_package| sed 's/-/_/g'` 
     1032    ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 
    10171033    eval with_$ac_package=\$ac_optarg ;; 
    10181034 
     
    10201036    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 
    10211037    # Reject names that are not valid shell variable names. 
    1022     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 
     1038    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    10231039      { echo "$as_me: error: invalid package name: $ac_package" >&2 
    10241040   { (exit 1); exit 1; }; } 
    1025     ac_package=`echo $ac_package | sed 's/-/_/g'` 
     1041    ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 
    10261042    eval with_$ac_package=no ;; 
    10271043 
     
    12801296  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a 
    12811297              nonstandard directory <lib dir> 
     1298  LIBS        libraries to pass to the linker, e.g. -l<library> 
    12821299  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 
    12831300              you have headers in a nonstandard directory <include dir> 
     
    13491366  cat <<\_ACEOF 
    13501367configure 
    1351 generated by GNU Autoconf 2.60 
     1368generated by GNU Autoconf 2.61 
    13521369 
    13531370Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 
     
    13631380 
    13641381It was created by $as_me, which was 
    1365 generated by GNU Autoconf 2.60.  Invocation command line was 
     1382generated by GNU Autoconf 2.61.  Invocation command line was 
    13661383 
    13671384  $ $0 $@ 
     
    17441761  test -z "$as_dir" && as_dir=. 
    17451762  for ac_exec_ext in '' $ac_executable_extensions; do 
    1746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    17471764    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 
    17481765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    17881805  test -z "$as_dir" && as_dir=. 
    17891806  for ac_exec_ext in '' $ac_executable_extensions; do 
    1790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    17911808    ac_cv_prog_CC="${ac_tool_prefix}gcc" 
    17921809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    18281845  test -z "$as_dir" && as_dir=. 
    18291846  for ac_exec_ext in '' $ac_executable_extensions; do 
    1830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    18311848    ac_cv_prog_ac_ct_CC="gcc" 
    18321849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    18851902  test -z "$as_dir" && as_dir=. 
    18861903  for ac_exec_ext in '' $ac_executable_extensions; do 
    1887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    18881905    ac_cv_prog_CC="${ac_tool_prefix}cc" 
    18891906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    19261943  test -z "$as_dir" && as_dir=. 
    19271944  for ac_exec_ext in '' $ac_executable_extensions; do 
    1928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     1945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    19291946    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 
    19301947       ac_prog_rejected=yes 
     
    19842001  test -z "$as_dir" && as_dir=. 
    19852002  for ac_exec_ext in '' $ac_executable_extensions; do 
    1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     2003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    19872004    ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 
    19882005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    20282045  test -z "$as_dir" && as_dir=. 
    20292046  for ac_exec_ext in '' $ac_executable_extensions; do 
    2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     2047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    20312048    ac_cv_prog_ac_ct_CC="$ac_prog" 
    20322049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    21692186# so that the user can short-circuit this test for compilers unknown to 
    21702187# Autoconf. 
    2171 for ac_file in $ac_files 
     2188for ac_file in $ac_files '' 
    21722189do 
    21732190  test -f "$ac_file" || continue 
     
    21972214 
    21982215else 
     2216  ac_file='' 
     2217fi 
     2218 
     2219{ echo "$as_me:$LINENO: result: $ac_file" >&5 
     2220echo "${ECHO_T}$ac_file" >&6; } 
     2221if test -z "$ac_file"; then 
    21992222  echo "$as_me: failed program was:" >&5 
    22002223sed 's/^/| /' conftest.$ac_ext >&5 
     
    22082231 
    22092232ac_exeext=$ac_cv_exeext 
    2210 { echo "$as_me:$LINENO: result: $ac_file" >&5 
    2211 echo "${ECHO_T}$ac_file" >&6; } 
    22122233 
    22132234# Check that the compiler produces executables we can run.  If not, either 
     
    23872408  cat conftest.err >&5 
    23882409  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2389   (exit $ac_status); } && 
    2390      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2391   { (case "(($ac_try" in 
    2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2393   *) ac_try_echo=$ac_try;; 
    2394 esac 
    2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2396   (eval "$ac_try") 2>&5 
    2397   ac_status=$? 
    2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2399   (exit $ac_status); }; } && 
    2400      { ac_try='test -s conftest.$ac_objext' 
    2401   { (case "(($ac_try" in 
    2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2403   *) ac_try_echo=$ac_try;; 
    2404 esac 
    2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2406   (eval "$ac_try") 2>&5 
    2407   ac_status=$? 
    2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2409   (exit $ac_status); }; }; then 
     2410  (exit $ac_status); } && { 
     2411     test -z "$ac_c_werror_flag" || 
     2412     test ! -s conftest.err 
     2413       } && test -s conftest.$ac_objext; then 
    24102414  ac_compiler_gnu=yes 
    24112415else 
     
    24622466  cat conftest.err >&5 
    24632467  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2464   (exit $ac_status); } && 
    2465      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2466   { (case "(($ac_try" in 
    2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2468   *) ac_try_echo=$ac_try;; 
    2469 esac 
    2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2471   (eval "$ac_try") 2>&5 
    2472   ac_status=$? 
    2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2474   (exit $ac_status); }; } && 
    2475      { ac_try='test -s conftest.$ac_objext' 
    2476   { (case "(($ac_try" in 
    2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2478   *) ac_try_echo=$ac_try;; 
    2479 esac 
    2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2481   (eval "$ac_try") 2>&5 
    2482   ac_status=$? 
    2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2484   (exit $ac_status); }; }; then 
     2468  (exit $ac_status); } && { 
     2469     test -z "$ac_c_werror_flag" || 
     2470     test ! -s conftest.err 
     2471       } && test -s conftest.$ac_objext; then 
    24852472  ac_cv_prog_cc_g=yes 
    24862473else 
     
    25172504  cat conftest.err >&5 
    25182505  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2519   (exit $ac_status); } && 
    2520      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2521   { (case "(($ac_try" in 
    2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2523   *) ac_try_echo=$ac_try;; 
    2524 esac 
    2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2526   (eval "$ac_try") 2>&5 
    2527   ac_status=$? 
    2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2529   (exit $ac_status); }; } && 
    2530      { ac_try='test -s conftest.$ac_objext' 
    2531   { (case "(($ac_try" in 
    2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2533   *) ac_try_echo=$ac_try;; 
    2534 esac 
    2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2536   (eval "$ac_try") 2>&5 
    2537   ac_status=$? 
    2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2539   (exit $ac_status); }; }; then 
     2506  (exit $ac_status); } && { 
     2507     test -z "$ac_c_werror_flag" || 
     2508     test ! -s conftest.err 
     2509       } && test -s conftest.$ac_objext; then 
    25402510  : 
    25412511else 
     
    25732543  cat conftest.err >&5 
    25742544  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2575   (exit $ac_status); } && 
    2576      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2577   { (case "(($ac_try" in 
    2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2579   *) ac_try_echo=$ac_try;; 
    2580 esac 
    2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2582   (eval "$ac_try") 2>&5 
    2583   ac_status=$? 
    2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2585   (exit $ac_status); }; } && 
    2586      { ac_try='test -s conftest.$ac_objext' 
    2587   { (case "(($ac_try" in 
    2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2589   *) ac_try_echo=$ac_try;; 
    2590 esac 
    2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2592   (eval "$ac_try") 2>&5 
    2593   ac_status=$? 
    2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2595   (exit $ac_status); }; }; then 
     2545  (exit $ac_status); } && { 
     2546     test -z "$ac_c_werror_flag" || 
     2547     test ! -s conftest.err 
     2548       } && test -s conftest.$ac_objext; then 
    25962549  ac_cv_prog_cc_g=yes 
    25972550else 
     
    27092662  cat conftest.err >&5 
    27102663  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2711   (exit $ac_status); } && 
    2712      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2713   { (case "(($ac_try" in 
    2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2715   *) ac_try_echo=$ac_try;; 
    2716 esac 
    2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2718   (eval "$ac_try") 2>&5 
    2719   ac_status=$? 
    2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2721   (exit $ac_status); }; } && 
    2722      { ac_try='test -s conftest.$ac_objext' 
    2723   { (case "(($ac_try" in 
    2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2725   *) ac_try_echo=$ac_try;; 
    2726 esac 
    2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2728   (eval "$ac_try") 2>&5 
    2729   ac_status=$? 
    2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2731   (exit $ac_status); }; }; then 
     2664  (exit $ac_status); } && { 
     2665     test -z "$ac_c_werror_flag" || 
     2666     test ! -s conftest.err 
     2667       } && test -s conftest.$ac_objext; then 
    27322668  ac_cv_prog_cc_c89=$ac_arg 
    27332669else 
     
    27852721#include <stdio.h> 
    27862722 
     2723// Check varargs macros.  These examples are taken from C99 6.10.3.5. 
     2724#define debug(...) fprintf (stderr, __VA_ARGS__) 
     2725#define showlist(...) puts (#__VA_ARGS__) 
     2726#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 
     2727static void 
     2728test_varargs_macros (void) 
     2729{ 
     2730  int x = 1234; 
     2731  int y = 5678; 
     2732  debug ("Flag"); 
     2733  debug ("X = %d\n", x); 
     2734  showlist (The first, second, and third items.); 
     2735  report (x>y, "x is %d but y is %d", x, y); 
     2736} 
     2737 
     2738// Check long long types. 
     2739#define BIG64 18446744073709551615ull 
     2740#define BIG32 4294967295ul 
     2741#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 
     2742#if !BIG_OK 
     2743  your preprocessor is broken; 
     2744#endif 
     2745#if BIG_OK 
     2746#else 
     2747  your preprocessor is broken; 
     2748#endif 
     2749static long long int bignum = -9223372036854775807LL; 
     2750static unsigned long long int ubignum = BIG64; 
     2751 
    27872752struct incomplete_array 
    27882753{ 
     
    28002765 
    28012766static inline int 
    2802 test_restrict(ccp restrict text) 
     2767test_restrict (ccp restrict text) 
    28032768{ 
    28042769  // See if C++-style comments work. 
     
    28102775} 
    28112776 
    2812 // Check varargs and va_copy work
     2777// Check varargs and va_copy
    28132778static void 
    2814 test_varargs(const char *format, ...) 
     2779test_varargs (const char *format, ...) 
    28152780{ 
    28162781  va_list args; 
    2817   va_start(args, format); 
     2782  va_start (args, format); 
    28182783  va_list args_copy; 
    2819   va_copy(args_copy, args); 
     2784  va_copy (args_copy, args); 
    28202785 
    28212786  const char *str; 
     
    28282793    { 
    28292794    case 's': // string 
    2830       str = va_arg(args_copy, const char *); 
     2795      str = va_arg (args_copy, const char *); 
    28312796      break; 
    28322797    case 'd': // int 
    2833       number = va_arg(args_copy, int); 
     2798      number = va_arg (args_copy, int); 
    28342799      break; 
    28352800    case 'f': // float 
    2836       fnumber = (float) va_arg(args_copy, double); 
     2801      fnumber = va_arg (args_copy, double); 
    28372802      break; 
    28382803    default: 
     
    28402805    } 
    28412806    } 
    2842   va_end(args_copy); 
    2843   va_end(args); 
     2807  va_end (args_copy); 
     2808  va_end (args); 
    28442809} 
    28452810 
     
    28482813{ 
    28492814 
    2850   // Check bool and long long datatypes
     2815  // Check bool
    28512816  _Bool success = false; 
    2852   long long int bignum = -1234567890LL; 
    2853   unsigned long long int ubignum = 1234567890uLL; 
    28542817 
    28552818  // Check restrict. 
    2856   if (test_restrict("String literal") != 0) 
     2819  if (test_restrict ("String literal") == 0) 
    28572820    success = true; 
    28582821  char *restrict newvar = "Another string"; 
    28592822 
    28602823  // Check varargs. 
    2861   test_varargs("s, d' f .", "string", 65, 34.234); 
    2862  
    2863   // Check incomplete arrays work. 
     2824  test_varargs ("s, d' f .", "string", 65, 34.234); 
     2825  test_varargs_macros (); 
     2826 
     2827  // Check flexible array members. 
    28642828  struct incomplete_array *ia = 
    2865     malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10)); 
     2829    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 
    28662830  ia->datasize = 10; 
    28672831  for (int i = 0; i < ia->datasize; ++i) 
    2868     ia->data[i] = (double) i * 1.234; 
    2869  
    2870   // Check named initialisers. 
     2832    ia->data[i] = i * 1.234; 
     2833 
     2834  // Check named initializers. 
    28712835  struct named_init ni = { 
    28722836    .number = 34, 
     
    28782842 
    28792843  int dynamic_array[ni.number]; 
    2880   dynamic_array[43] = 543; 
     2844  dynamic_array[ni.number - 1] = 543; 
    28812845 
    28822846  // work around unused variable warnings 
    2883   return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'; 
     2847  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 
     2848      || dynamic_array[ni.number - 1] != 543); 
    28842849 
    28852850  ; 
     
    29032868  cat conftest.err >&5 
    29042869  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2905   (exit $ac_status); } && 
    2906      { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 
    2907   { (case "(($ac_try" in 
    2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2909   *) ac_try_echo=$ac_try;; 
    2910 esac 
    2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2912   (eval "$ac_try") 2>&5 
    2913   ac_status=$? 
    2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2915   (exit $ac_status); }; } && 
    2916      { ac_try='test -s conftest.$ac_objext' 
    2917   { (case "(($ac_try" in 
    2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2919   *) ac_try_echo=$ac_try;; 
    2920 esac 
    2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    2922   (eval "$ac_try") 2>&5 
    2923   ac_status=$? 
    2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2925   (exit $ac_status); }; }; then 
     2870  (exit $ac_status); } && { 
     2871     test -z "$ac_c_werror_flag" || 
     2872     test ! -s conftest.err 
     2873       } && test -s conftest.$ac_objext; then 
    29262874  ac_cv_prog_cc_c99=$ac_arg 
    29272875else 
     
    29732921  test -z "$as_dir" && as_dir=. 
    29742922  for ac_exec_ext in '' $ac_executable_extensions; do 
    2975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     2923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    29762924    ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext" 
    29772925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    30302978  test -z "$as_dir" && as_dir=. 
    30312979  for ac_exec_ext in '' $ac_executable_extensions; do 
    3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     2980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    30332981    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 
    30342982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
     
    30703018  test -z "$as_dir" && as_dir=. 
    30713019  for ac_exec_ext in '' $ac_executable_extensions; do 
    3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 
     3020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    30733021    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 
    30743022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5