/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.63 by camm, Fri Aug 2 22:23:57 2002 UTC revision 1.64 by mjthomas, Fri Aug 9 03:59:25 2002 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by GNU Autoconf 2.53.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6    # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Defaults:  if expr a : '\(a\)' >/dev/null 2>&1; then
11  ac_help=    as_expr=expr
12    else
13      as_expr=false
14    fi
15    
16    
17    ## --------------------- ##
18    ## M4sh Initialization.  ##
19    ## --------------------- ##
20    
21    # Be Bourne compatible
22    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23      emulate sh
24      NULLCMD=:
25    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26      set -o posix
27    fi
28    
29    # NLS nuisances.
30    # Support unset when possible.
31    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32      as_unset=unset
33    else
34      as_unset=false
35    fi
36    
37    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38        { $as_unset LANG || test "${LANG+set}" != set; } ||
39          { LANG=C; export LANG; }
40    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42          { LC_ALL=C; export LC_ALL; }
43    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45          { LC_TIME=C; export LC_TIME; }
46    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48          { LC_CTYPE=C; export LC_CTYPE; }
49    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51          { LANGUAGE=C; export LANGUAGE; }
52    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54          { LC_COLLATE=C; export LC_COLLATE; }
55    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57          { LC_NUMERIC=C; export LC_NUMERIC; }
58    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60          { LC_MESSAGES=C; export LC_MESSAGES; }
61    
62    
63    # Name of the executable.
64    as_me=`(basename "$0") 2>/dev/null ||
65    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66             X"$0" : 'X\(//\)$' \| \
67             X"$0" : 'X\(/\)$' \| \
68             .     : '\(.\)' 2>/dev/null ||
69    echo X/"$0" |
70        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71              /^X\/\(\/\/\)$/{ s//\1/; q; }
72              /^X\/\(\/\).*/{ s//\1/; q; }
73              s/.*/./; q'`
74    
75    # PATH needs CR, and LINENO needs CR and PATH.
76    # Avoid depending upon Character Ranges.
77    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80    as_cr_digits='0123456789'
81    as_cr_alnum=$as_cr_Letters$as_cr_digits
82    
83    # The user is always right.
84    if test "${PATH_SEPARATOR+set}" != set; then
85      echo "#! /bin/sh" >conftest.sh
86      echo  "exit 0"   >>conftest.sh
87      chmod +x conftest.sh
88      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89        PATH_SEPARATOR=';'
90      else
91        PATH_SEPARATOR=:
92      fi
93      rm -f conftest.sh
94    fi
95    
96    
97      as_lineno_1=$LINENO
98      as_lineno_2=$LINENO
99      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100      test "x$as_lineno_1" != "x$as_lineno_2" &&
101      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102      # Find who we are.  Look in the path if we contain no path at all
103      # relative or not.
104      case $0 in
105        *[\\/]* ) as_myself=$0 ;;
106        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107    for as_dir in $PATH
108    do
109      IFS=$as_save_IFS
110      test -z "$as_dir" && as_dir=.
111      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112    done
113    
114           ;;
115      esac
116      # We did not find ourselves, most probably we were run as `sh COMMAND'
117      # in which case we are not to be found in the path.
118      if test "x$as_myself" = x; then
119        as_myself=$0
120      fi
121      if test ! -f "$as_myself"; then
122        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123       { (exit 1); exit 1; }; }
124      fi
125      case $CONFIG_SHELL in
126      '')
127        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129    do
130      IFS=$as_save_IFS
131      test -z "$as_dir" && as_dir=.
132      for as_base in sh bash ksh sh5; do
133             case $as_dir in
134             /*)
135               if ("$as_dir/$as_base" -c '
136      as_lineno_1=$LINENO
137      as_lineno_2=$LINENO
138      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139      test "x$as_lineno_1" != "x$as_lineno_2" &&
140      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141                 CONFIG_SHELL=$as_dir/$as_base
142                 export CONFIG_SHELL
143                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144               fi;;
145             esac
146           done
147    done
148    ;;
149      esac
150    
151      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152      # uniformly replaced by the line number.  The first 'sed' inserts a
153      # line-number line before each line; the second 'sed' does the real
154      # work.  The second script uses 'N' to pair each line-number line
155      # with the numbered line, and appends trailing '-' during
156      # substitution so that $LINENO is not a special case at line end.
157      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159      sed '=' <$as_myself |
160        sed '
161          N
162          s,$,-,
163          : loop
164          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165          t loop
166          s,-$,,
167          s,^['$as_cr_digits']*\n,,
168        ' >$as_me.lineno &&
169      chmod +x $as_me.lineno ||
170        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171       { (exit 1); exit 1; }; }
172    
173      # Don't try to exec as it changes $[0], causing all sort of problems
174      # (the dirname of $[0] is not the place where we might find the
175      # original and so on.  Autoconf is especially sensible to this).
176      . ./$as_me.lineno
177      # Exit status is that of the last command.
178      exit
179    }
180    
181    
182    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183      *c*,-n*) ECHO_N= ECHO_C='
184    ' ECHO_T='      ' ;;
185      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187    esac
188    
189    if expr a : '\(a\)' >/dev/null 2>&1; then
190      as_expr=expr
191    else
192      as_expr=false
193    fi
194    
195    rm -f conf$$ conf$$.exe conf$$.file
196    echo >conf$$.file
197    if ln -s conf$$.file conf$$ 2>/dev/null; then
198      # We could just check for DJGPP; but this test a) works b) is more generic
199      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200      if test -f conf$$.exe; then
201        # Don't use ln at all; we don't have any links
202        as_ln_s='cp -p'
203      else
204        as_ln_s='ln -s'
205      fi
206    elif ln conf$$.file conf$$ 2>/dev/null; then
207      as_ln_s=ln
208    else
209      as_ln_s='cp -p'
210    fi
211    rm -f conf$$ conf$$.exe conf$$.file
212    
213    as_executable_p="test -f"
214    
215    # Sed expression to map a string onto a valid CPP name.
216    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217    
218    # Sed expression to map a string onto a valid variable name.
219    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220    
221    
222    # IFS
223    # We need space, tab and new line, in precisely that order.
224    as_nl='
225    '
226    IFS="   $as_nl"
227    
228    # CDPATH.
229    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230    
231    
232    # Name of the host.
233    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234    # so uname gets run too.
235    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236    
237    exec 6>&1
238    
239    #
240    # Initializations.
241    #
242  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
243  # Any additions from configure.in:  cross_compiling=no
244  ac_help="$ac_help  subdirs=
245   --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) "  MFLAGS=
246  ac_help="$ac_help  MAKEFLAGS=
247   --enable-vssize=XXXX will compile in a value stack of size XXX "  SHELL=${CONFIG_SHELL-/bin/sh}
248  ac_help="$ac_help  
249   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "  # Maximum number of lines to put in a shell here document.
250  ac_help="$ac_help  # This variable seems obsolete.  It should probably be removed, and
251   --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) "  # only ac_max_sed_lines should be used.
252  ac_help="$ac_help  : ${ac_max_here_lines=38}
253   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "  
254  ac_help="$ac_help  # Identity of this package.
255   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "  PACKAGE_NAME=
256  ac_help="$ac_help  PACKAGE_TARNAME=
257   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "  PACKAGE_VERSION=
258  ac_help="$ac_help  PACKAGE_STRING=
259   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "  PACKAGE_BUGREPORT=
260  ac_help="$ac_help  
261   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  "  # Factoring default headers for most tests.
262  ac_help="$ac_help  ac_includes_default="\
263   --disable-bfd prevents gcl from using libbfd.a for fast object loading and symbol table lookups  "  #include <stdio.h>
264  ac_help="$ac_help  #if HAVE_SYS_TYPES_H
265  --enable-readine    enables command line completion via the readline library "  # include <sys/types.h>
266  ac_help="$ac_help  #endif
267  --enable-ansi builds a large gcl aiming for ansi compliance,  #if HAVE_SYS_STAT_H
268                      --disable-ansi builds the smaller traditional CLtL1 image"  # include <sys/stat.h>
269    #endif
270    #if STDC_HEADERS
271    # include <stdlib.h>
272    # include <stddef.h>
273    #else
274    # if HAVE_STDLIB_H
275    #  include <stdlib.h>
276    # endif
277    #endif
278    #if HAVE_STRING_H
279    # if !STDC_HEADERS && HAVE_MEMORY_H
280    #  include <memory.h>
281    # endif
282    # include <string.h>
283    #endif
284    #if HAVE_STRINGS_H
285    # include <strings.h>
286    #endif
287    #if HAVE_INTTYPES_H
288    # include <inttypes.h>
289    #else
290    # if HAVE_STDINT_H
291    #  include <stdint.h>
292    # endif
293    #endif
294    #if HAVE_UNISTD_H
295    # include <unistd.h>
296    #endif"
297    
298    
299  # Initialize some variables set by options.  # Initialize some variables set by options.
300    ac_init_help=
301    ac_init_version=false
302  # The variables have the same names as the options, with  # The variables have the same names as the options, with
303  # dashes changed to underlines.  # dashes changed to underlines.
304  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
305  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
306  no_create=  no_create=
 nonopt=NONE  
307  no_recursion=  no_recursion=
308  prefix=NONE  prefix=NONE
309  program_prefix=NONE  program_prefix=NONE
# Line 54  program_transform_name=s,x,x, Line 312  program_transform_name=s,x,x,
312  silent=  silent=
313  site=  site=
314  srcdir=  srcdir=
 target=NONE  
315  verbose=  verbose=
316  x_includes=NONE  x_includes=NONE
317  x_libraries=NONE  x_libraries=NONE
318    
319    # Installation directory options.
320    # These are left unexpanded so users can "make install exec_prefix=/foo"
321    # and all the variables that are supposed to be based on exec_prefix
322    # by default will actually change.
323    # Use braces instead of parens because sh, perl, etc. also accept them.
324  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
325  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
326  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 71  oldincludedir='/usr/include' Line 334  oldincludedir='/usr/include'
334  infodir='${prefix}/info'  infodir='${prefix}/info'
335  mandir='${prefix}/man'  mandir='${prefix}/man'
336    
 # Initialize some other variables.  
 subdirs=  
 MFLAGS= MAKEFLAGS=  
 SHELL=${CONFIG_SHELL-/bin/sh}  
 # Maximum number of lines to put in a shell here document.  
 ac_max_here_lines=12  
   
337  ac_prev=  ac_prev=
338  for ac_option  for ac_option
339  do  do
   
340    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
341    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
342      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 89  do Line 344  do
344      continue      continue
345    fi    fi
346    
347    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
348    
349    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
350    
351    case "$ac_option" in    case $ac_option in
352    
353    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
354      ac_prev=bindir ;;      ac_prev=bindir ;;
355    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
356      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
357    
358    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
359      ac_prev=build ;;      ac_prev=build_alias ;;
360    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
361      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
362    
363    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
364    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
365      ac_prev=cache_file ;;      ac_prev=cache_file ;;
366    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
367    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
368      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
369    
370      --config-cache | -C)
371        cache_file=config.cache ;;
372    
373    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
374      ac_prev=datadir ;;      ac_prev=datadir ;;
375    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
376    | --da=*)    | --da=*)
377      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
378    
379    -disable-* | --disable-*)    -disable-* | --disable-*)
380      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
381      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
382      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
383        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
384      fi     { (exit 1); exit 1; }; }
385      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
386      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
387    
388    -enable-* | --enable-*)    -enable-* | --enable-*)
389      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
390      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
391      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393      fi     { (exit 1); exit 1; }; }
394      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395      case "$ac_option" in      case $ac_option in
396        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
398      esac      esac
399      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
400    
401    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
402    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 150  do Line 405  do
405    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
406    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
407    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
408      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
409    
410    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
411      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
412      with_gas=yes ;;      with_gas=yes ;;
413    
414    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
415      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
416      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
417      cat << EOF      ac_init_help=recursive ;;
418  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
419  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
420    
421    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
422      ac_prev=host ;;      ac_prev=host_alias ;;
423    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
424      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
425    
426    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
427    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
428      ac_prev=includedir ;;      ac_prev=includedir ;;
429    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
430    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
431      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
432    
433    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
434      ac_prev=infodir ;;      ac_prev=infodir ;;
435    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
436      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
437    
438    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
439      ac_prev=libdir ;;      ac_prev=libdir ;;
440    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
441      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
442    
443    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
444    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
445      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
446    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
447    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
448      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
449    
450    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
451    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 247  EOF Line 454  EOF
454    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
455    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
456    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
457      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
458    
459    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
460      ac_prev=mandir ;;      ac_prev=mandir ;;
461    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
462      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
463    
464    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
465      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
466      with_fp=no ;;      with_fp=no ;;
467    
468    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
470      no_create=yes ;;      no_create=yes ;;
471    
472    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 273  EOF Line 480  EOF
480    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
481    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
482    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
483      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
484    
485    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
486      ac_prev=prefix ;;      ac_prev=prefix ;;
487    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
488      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
489    
490    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
491    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
492      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
493    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
494    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
495      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
496    
497    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
498    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
499      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
500    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
501    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
502      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
503    
504    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
505    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 309  EOF Line 516  EOF
516    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
517    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
518    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
519      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
520    
521    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
522    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 319  EOF Line 526  EOF
526      ac_prev=sbindir ;;      ac_prev=sbindir ;;
527    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
528    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
529      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
530    
531    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
532    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 330  EOF Line 537  EOF
537    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
538    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
539    | --sha=* | --sh=*)    | --sha=* | --sh=*)
540      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
541    
542    -site | --site | --sit)    -site | --site | --sit)
543      ac_prev=site ;;      ac_prev=site ;;
544    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
545      site="$ac_optarg" ;;      site=$ac_optarg ;;
546    
547    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
548      ac_prev=srcdir ;;      ac_prev=srcdir ;;
549    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
550      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
551    
552    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
553    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
554      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
555    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
556    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
557      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
558    
559    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
560      ac_prev=target ;;      ac_prev=target_alias ;;
561    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
562      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
563    
564    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
565      verbose=yes ;;      verbose=yes ;;
566    
567    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
568      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
569    
570    -with-* | --with-*)    -with-* | --with-*)
571      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
572      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
573      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
575      fi     { (exit 1); exit 1; }; }
576      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
577      case "$ac_option" in      case $ac_option in
578        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
580      esac      esac
581      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
582    
583    -without-* | --without-*)    -without-* | --without-*)
584      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
585      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
586      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
588      fi     { (exit 1); exit 1; }; }
589      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
590      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
591    
592    --x)    --x)
593      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 392  EOF Line 598  EOF
598      ac_prev=x_includes ;;      ac_prev=x_includes ;;
599    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
600    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
601      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
602    
603    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
604    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
605      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
606    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
607    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
608      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
609    
610    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
611    Try \`$0 --help' for more information." >&2
612       { (exit 1); exit 1; }; }
613      ;;      ;;
614    
615      *=*)
616        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
617        # Reject names that are not valid shell variable names.
618        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
619          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
620       { (exit 1); exit 1; }; }
621        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
622        eval "$ac_envvar='$ac_optarg'"
623        export $ac_envvar ;;
624    
625    *)    *)
626      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
627        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
628      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
629      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
630        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
631      ;;      ;;
632    
633    esac    esac
634  done  done
635    
636  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
637    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
638      { echo "$as_me: error: missing argument to $ac_option" >&2
639       { (exit 1); exit 1; }; }
640  fi  fi
641    
642  trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  # Be sure to have absolute paths.
643    for ac_var in exec_prefix prefix
644  # File descriptor usage:  do
645  # 0 standard input    eval ac_val=$`echo $ac_var`
646  # 1 file creation    case $ac_val in
647  # 2 errors and warnings      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
648  # 3 some systems may open it to /dev/tty      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649  # 4 used on the Kubota Titan     { (exit 1); exit 1; }; };;
650  # 6 checking for... messages and results    esac
651  # 5 compiler messages saved in config.log  done
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
 fi  
 exec 5>./config.log  
   
 echo "\  
 This file contains any messages produced by compilers while  
 running configure, to aid debugging if configure makes a mistake.  
 " 1>&5  
652    
653  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
654  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
655  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
656  do  do
657    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
658    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
659    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
660    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
662    esac    esac
663  done  done
664    
665  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
666  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
667  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
668  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
669  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
670  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
671  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
672  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
673  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
674      if test "x$build_alias" = x; then
675        cross_compiling=maybe
676        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
677        If a cross compiler is detected then cross compile mode will be used." >&2
678      elif test "x$build_alias" != "x$host_alias"; then
679        cross_compiling=yes
680      fi
681    fi
682    
683  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
684  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
685  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
686  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
687    
 # A filename unique to this package, relative to the directory that  
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=  
688    
689  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
690  if test -z "$srcdir"; then  if test -z "$srcdir"; then
691    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
692    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
693    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
694    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
695    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
696             X"$0" : 'X\(//\)$' \| \
697             X"$0" : 'X\(/\)' \| \
698             .     : '\(.\)' 2>/dev/null ||
699    echo X"$0" |
700        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
701              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
702              /^X\(\/\/\)$/{ s//\1/; q; }
703              /^X\(\/\).*/{ s//\1/; q; }
704              s/.*/./; q'`
705    srcdir=$ac_confdir    srcdir=$ac_confdir
706    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
707      srcdir=..      srcdir=..
# Line 494  else Line 711  else
711  fi  fi
712  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
713    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
714      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
715       { (exit 1); exit 1; }; }
716    else    else
717      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
718       { (exit 1); exit 1; }; }
719    fi    fi
720  fi  fi
721  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722    ac_env_build_alias_set=${build_alias+set}
723    ac_env_build_alias_value=$build_alias
724    ac_cv_env_build_alias_set=${build_alias+set}
725    ac_cv_env_build_alias_value=$build_alias
726    ac_env_host_alias_set=${host_alias+set}
727    ac_env_host_alias_value=$host_alias
728    ac_cv_env_host_alias_set=${host_alias+set}
729    ac_cv_env_host_alias_value=$host_alias
730    ac_env_target_alias_set=${target_alias+set}
731    ac_env_target_alias_value=$target_alias
732    ac_cv_env_target_alias_set=${target_alias+set}
733    ac_cv_env_target_alias_value=$target_alias
734    ac_env_CC_set=${CC+set}
735    ac_env_CC_value=$CC
736    ac_cv_env_CC_set=${CC+set}
737    ac_cv_env_CC_value=$CC
738    ac_env_CFLAGS_set=${CFLAGS+set}
739    ac_env_CFLAGS_value=$CFLAGS
740    ac_cv_env_CFLAGS_set=${CFLAGS+set}
741    ac_cv_env_CFLAGS_value=$CFLAGS
742    ac_env_LDFLAGS_set=${LDFLAGS+set}
743    ac_env_LDFLAGS_value=$LDFLAGS
744    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
745    ac_cv_env_LDFLAGS_value=$LDFLAGS
746    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
747    ac_env_CPPFLAGS_value=$CPPFLAGS
748    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
749    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
750    ac_env_CPP_set=${CPP+set}
751    ac_env_CPP_value=$CPP
752    ac_cv_env_CPP_set=${CPP+set}
753    ac_cv_env_CPP_value=$CPP
754    
755    #
756    # Report the --help message.
757    #
758    if test "$ac_init_help" = "long"; then
759      # Omit some internal or obsolete options to make the list less imposing.
760      # This message is too long to be a string in the A/UX 3.1 sh.
761      cat <<_ACEOF
762    \`configure' configures this package to adapt to many kinds of systems.
763    
764    Usage: $0 [OPTION]... [VAR=VALUE]...
765    
766    To assign environment variables (e.g., CC, CFLAGS...), specify them as
767    VAR=VALUE.  See below for descriptions of some of the useful variables.
768    
769    Defaults for the options are specified in brackets.
770    
771    Configuration:
772      -h, --help              display this help and exit
773          --help=short        display options specific to this package
774          --help=recursive    display the short help of all the included packages
775      -V, --version           display version information and exit
776      -q, --quiet, --silent   do not print \`checking...' messages
777          --cache-file=FILE   cache test results in FILE [disabled]
778      -C, --config-cache      alias for \`--cache-file=config.cache'
779      -n, --no-create         do not create output files
780          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
781    
782    _ACEOF
783    
784      cat <<_ACEOF
785    Installation directories:
786      --prefix=PREFIX         install architecture-independent files in PREFIX
787                              [$ac_default_prefix]
788      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
789                              [PREFIX]
790    
791    By default, \`make install' will install all the files in
792    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
793    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
794    for instance \`--prefix=\$HOME'.
795    
796    For better control, use the options below.
797    
798    Fine tuning of the installation directories:
799      --bindir=DIR           user executables [EPREFIX/bin]
800      --sbindir=DIR          system admin executables [EPREFIX/sbin]
801      --libexecdir=DIR       program executables [EPREFIX/libexec]
802      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
803      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
804      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
805      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
806      --libdir=DIR           object code libraries [EPREFIX/lib]
807      --includedir=DIR       C header files [PREFIX/include]
808      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
809      --infodir=DIR          info documentation [PREFIX/info]
810      --mandir=DIR           man documentation [PREFIX/man]
811    _ACEOF
812    
813      cat <<\_ACEOF
814    
815    System types:
816      --build=BUILD     configure for building on BUILD [guessed]
817      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
818    _ACEOF
819    fi
820    
821    if test -n "$ac_init_help"; then
822    
823      cat <<\_ACEOF
824    
825    Optional Features:
826      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
827      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
828     --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)
829     --enable-vssize=XXXX will compile in a value stack of size XXX
830     --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
831     --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)
832     --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
833     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
834     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
835     --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
836     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
837     --disable-bfd prevents gcl from using libbfd.a for fast object loading and symbol table lookups
838    --enable-readine    enables command line completion via the readline library
839    --enable-ansi builds a large gcl aiming for ansi compliance,
840                        --disable-ansi builds the smaller traditional CLtL1 image
841    
842    Some influential environment variables:
843      CC          C compiler command
844      CFLAGS      C compiler flags
845      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
846                  nonstandard directory <lib dir>
847      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
848                  headers in a nonstandard directory <include dir>
849      CPP         C preprocessor
850    
851    Use these variables to override the choices made by `configure' or to help
852    it to find libraries and programs with nonstandard names/locations.
853    
854    _ACEOF
855    fi
856    
857    if test "$ac_init_help" = "recursive"; then
858      # If there are subdirs, report their specific --help.
859      ac_popdir=`pwd`
860      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861        test -d $ac_dir || continue
862        ac_builddir=.
863    
864    if test "$ac_dir" != .; then
865      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866      # A "../" for each directory in $ac_dir_suffix.
867      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868    else
869      ac_dir_suffix= ac_top_builddir=
870    fi
871    
872    case $srcdir in
873      .)  # No --srcdir option.  We are building in place.
874        ac_srcdir=.
875        if test -z "$ac_top_builddir"; then
876           ac_top_srcdir=.
877        else
878           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879        fi ;;
880      [\\/]* | ?:[\\/]* )  # Absolute path.
881        ac_srcdir=$srcdir$ac_dir_suffix;
882        ac_top_srcdir=$srcdir ;;
883      *) # Relative path.
884        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885        ac_top_srcdir=$ac_top_builddir$srcdir ;;
886    esac
887    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
888    # absolute.
889    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
890    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
891    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
892    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
893    
894        cd $ac_dir
895        # Check for guested configure; otherwise get Cygnus style configure.
896        if test -f $ac_srcdir/configure.gnu; then
897          echo
898          $SHELL $ac_srcdir/configure.gnu  --help=recursive
899        elif test -f $ac_srcdir/configure; then
900          echo
901          $SHELL $ac_srcdir/configure  --help=recursive
902        elif test -f $ac_srcdir/configure.ac ||
903               test -f $ac_srcdir/configure.in; then
904          echo
905          $ac_configure --help
906        else
907          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
908        fi
909        cd $ac_popdir
910      done
911    fi
912    
913    test -n "$ac_init_help" && exit 0
914    if $ac_init_version; then
915      cat <<\_ACEOF
916    
917    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
918    Free Software Foundation, Inc.
919    This configure script is free software; the Free Software Foundation
920    gives unlimited permission to copy, distribute and modify it.
921    _ACEOF
922      exit 0
923    fi
924    exec 5>config.log
925    cat >&5 <<_ACEOF
926    This file contains any messages produced by compilers while
927    running configure, to aid debugging if configure makes a mistake.
928    
929    It was created by $as_me, which was
930    generated by GNU Autoconf 2.53.  Invocation command line was
931    
932      $ $0 $@
933    
934    _ACEOF
935    {
936    cat <<_ASUNAME
937    ## --------- ##
938    ## Platform. ##
939    ## --------- ##
940    
941    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
942    uname -m = `(uname -m) 2>/dev/null || echo unknown`
943    uname -r = `(uname -r) 2>/dev/null || echo unknown`
944    uname -s = `(uname -s) 2>/dev/null || echo unknown`
945    uname -v = `(uname -v) 2>/dev/null || echo unknown`
946    
947    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
948    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
949    
950    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
951    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
952    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
953    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
954    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
955    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
956    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
957    
958    _ASUNAME
959    
960    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961    for as_dir in $PATH
962    do
963      IFS=$as_save_IFS
964      test -z "$as_dir" && as_dir=.
965      echo "PATH: $as_dir"
966    done
967    
968    } >&5
969    
970    cat >&5 <<_ACEOF
971    
972    
973    ## ----------- ##
974    ## Core tests. ##
975    ## ----------- ##
976    
977    _ACEOF
978    
979    
980    # Keep a trace of the command line.
981    # Strip out --no-create and --no-recursion so they do not pile up.
982    # Also quote any args containing shell meta-characters.
983    ac_configure_args=
984    ac_sep=
985    for ac_arg
986    do
987      case $ac_arg in
988      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989      | --no-cr | --no-c | -n ) continue ;;
990      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992        continue ;;
993      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
995      esac
996      case " $ac_configure_args " in
997        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
998        *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999           ac_sep=" " ;;
1000      esac
1001      # Get rid of the leading space.
1002    done
1003    
1004    # When interrupted or exit'd, cleanup temporary files, and complete
1005    # config.log.  We remove comments because anyway the quotes in there
1006    # would cause problems or look ugly.
1007    # WARNING: Be sure not to use single quotes in there, as some shells,
1008    # such as our DU 5.0 friend, will then `close' the trap.
1009    trap 'exit_status=$?
1010      # Save into config.log some information that might help in debugging.
1011      {
1012        echo
1013        cat <<\_ASBOX
1014    ## ---------------- ##
1015    ## Cache variables. ##
1016    ## ---------------- ##
1017    _ASBOX
1018        echo
1019        # The following way of writing the cache mishandles newlines in values,
1020    {
1021      (set) 2>&1 |
1022        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1023        *ac_space=\ *)
1024          sed -n \
1025            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1027          ;;
1028        *)
1029          sed -n \
1030            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1031          ;;
1032        esac;
1033    }
1034        echo
1035        if test -s confdefs.h; then
1036          cat <<\_ASBOX
1037    ## ----------- ##
1038    ## confdefs.h. ##
1039    ## ----------- ##
1040    _ASBOX
1041          echo
1042          sed "/^$/d" confdefs.h
1043          echo
1044        fi
1045        test "$ac_signal" != 0 &&
1046          echo "$as_me: caught signal $ac_signal"
1047        echo "$as_me: exit $exit_status"
1048      } >&5
1049      rm -f core core.* *.core &&
1050      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1051        exit $exit_status
1052         ' 0
1053    for ac_signal in 1 2 13 15; do
1054      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1055    done
1056    ac_signal=0
1057    
1058    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1059    rm -rf conftest* confdefs.h
1060    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1061    echo >confdefs.h
1062    
1063    # Predefined preprocessor variables.
1064    
1065    cat >>confdefs.h <<_ACEOF
1066    #define PACKAGE_NAME "$PACKAGE_NAME"
1067    _ACEOF
1068    
1069    
1070    cat >>confdefs.h <<_ACEOF
1071    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1072    _ACEOF
1073    
1074    
1075    cat >>confdefs.h <<_ACEOF
1076    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1077    _ACEOF
1078    
1079    
1080    cat >>confdefs.h <<_ACEOF
1081    #define PACKAGE_STRING "$PACKAGE_STRING"
1082    _ACEOF
1083    
1084    
1085    cat >>confdefs.h <<_ACEOF
1086    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1087    _ACEOF
1088    
1089    
1090    # Let the site file select an alternate cache file if it wants to.
1091  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1092  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1093    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 511  if test -z "$CONFIG_SITE"; then Line 1098  if test -z "$CONFIG_SITE"; then
1098  fi  fi
1099  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1100    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1101      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1102    echo "$as_me: loading site script $ac_site_file" >&6;}
1103        sed 's/^/| /' "$ac_site_file" >&5
1104      . "$ac_site_file"      . "$ac_site_file"
1105    fi    fi
1106  done  done
1107    
1108  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1109    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1110    . $cache_file    # files actually), so we avoid doing that.
1111      if test -f "$cache_file"; then
1112        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1113    echo "$as_me: loading cache $cache_file" >&6;}
1114        case $cache_file in
1115          [\\/]* | ?:[\\/]* ) . $cache_file;;
1116          *)                      . ./$cache_file;;
1117        esac
1118      fi
1119  else  else
1120    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1121    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1122      >$cache_file
1123    fi
1124    
1125    # Check that the precious variables saved in the cache have kept the same
1126    # value.
1127    ac_cache_corrupted=false
1128    for ac_var in `(set) 2>&1 |
1129                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1130      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1131      eval ac_new_set=\$ac_env_${ac_var}_set
1132      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1133      eval ac_new_val="\$ac_env_${ac_var}_value"
1134      case $ac_old_set,$ac_new_set in
1135        set,)
1136          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1137    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1138          ac_cache_corrupted=: ;;
1139        ,set)
1140          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1141    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1142          ac_cache_corrupted=: ;;
1143        ,);;
1144        *)
1145          if test "x$ac_old_val" != "x$ac_new_val"; then
1146            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1147    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1148            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1149    echo "$as_me:   former value:  $ac_old_val" >&2;}
1150            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1151    echo "$as_me:   current value: $ac_new_val" >&2;}
1152            ac_cache_corrupted=:
1153          fi;;
1154      esac
1155      # Pass precious variables to config.status.
1156      if test "$ac_new_set" = set; then
1157        case $ac_new_val in
1158        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1159          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1160        *) ac_arg=$ac_var=$ac_new_val ;;
1161        esac
1162        case " $ac_configure_args " in
1163          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1164          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1165        esac
1166      fi
1167    done
1168    if $ac_cache_corrupted; then
1169      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1170    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1171      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1172    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1173       { (exit 1); exit 1; }; }
1174  fi  fi
1175    
1176  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1177  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1178  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1179  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1180  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1181    
1182  ac_exeext=  
1183  ac_objext=o  
1184  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1185    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1186    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1187      ac_n= ac_c='  
1188  ' ac_t='        '  
1189    else  
1190      ac_n=-n ac_c= ac_t=  
1191    fi  
1192  else  
1193    ac_n= ac_c='\c' ac_t=  
1194  fi  
1195    
1196    
1197    
1198    
1199    ac_config_headers="$ac_config_headers h/gclincl.h"
1200    
1201  # some parts of this configure script are taken from the tcl configure.in  # some parts of this configure script are taken from the tcl configure.in
1202    
1203  #  #
# Line 557  help="--enable-maxpage=XXXX will compile Line 1208  help="--enable-maxpage=XXXX will compile
1208  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1209  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1210    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1211    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1212  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1213  EOF  _ACEOF
   
1214    
 fi  
1215    
1216    fi;
1217    
1218  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1219  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1220    enableval="$enable_vssize"    enableval="$enable_vssize"
1221    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1222  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1223  EOF  _ACEOF
1224    
1225    
1226  fi  fi;
   
1227    
1228  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1229  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 582  if test "${enable_machine+set}" = set; t Line 1231  if test "${enable_machine+set}" = set; t
1231    enable_machine=$enableval    enable_machine=$enableval
1232  else  else
1233    enable_machine=""    enable_machine=""
1234  fi  fi;
   
1235    
1236  # Check whether --enable-gmp or --disable-gmp was given.  # Check whether --enable-gmp or --disable-gmp was given.
1237  if test "${enable_gmp+set}" = set; then  if test "${enable_gmp+set}" = set; then
# Line 591  if test "${enable_gmp+set}" = set; then Line 1239  if test "${enable_gmp+set}" = set; then
1239    use_gmp=$enableval    use_gmp=$enableval
1240  else  else
1241    use_gmp="yes"    use_gmp="yes"
1242  fi  fi;
   
1243    
1244  # Check whether --enable-notify or --disable-notify was given.  # Check whether --enable-notify or --disable-notify was given.
1245  if test "${enable_notify+set}" = set; then  if test "${enable_notify+set}" = set; then
# Line 600  if test "${enable_notify+set}" = set; th Line 1247  if test "${enable_notify+set}" = set; th
1247    enable_notify=$enableval    enable_notify=$enableval
1248  else  else
1249    enable_notify="yes"    enable_notify="yes"
1250  fi  fi;
   
1251    
1252  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1253  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 609  if test "${enable_tkconfig+set}" = set; Line 1255  if test "${enable_tkconfig+set}" = set;
1255    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1256  else  else
1257    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1258  fi  fi;
   
1259    
1260    
1261  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 619  if test "${enable_tclconfig+set}" = set; Line 1264  if test "${enable_tclconfig+set}" = set;
1264    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1265  else  else
1266    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1267  fi  fi;
   
1268    
1269  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1270  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 628  if test "${enable_infodir+set}" = set; t Line 1272  if test "${enable_infodir+set}" = set; t
1272    INFO_DIR=$enableval    INFO_DIR=$enableval
1273  else  else
1274    INFO_DIR="unknown"    INFO_DIR="unknown"
1275  fi  fi;
   
1276    
1277  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1278  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1279    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1280    :  
1281  else  else
1282    enable_dlopen="no"    enable_dlopen="no"
1283  fi  fi;
   
1284  # Check whether --enable-bfd or --disable-bfd was given.  # Check whether --enable-bfd or --disable-bfd was given.
1285  if test "${enable_bfd+set}" = set; then  if test "${enable_bfd+set}" = set; then
1286    enableval="$enable_bfd"    enableval="$enable_bfd"
1287    :  
1288  else  else
1289    enable_bfd="yes"    enable_bfd="yes"
1290  fi  fi;
   
1291    
1292  #  #
1293  # Host information  # Host information
1294  #  #
1295    
1296    
# Line 663  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1304  for ac_dir in $srcdir $srcdir/.. $srcdir
1304      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1305      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1306      break      break
1307      elif test -f $ac_dir/shtool; then
1308        ac_aux_dir=$ac_dir
1309        ac_install_sh="$ac_aux_dir/shtool install -c"
1310        break
1311    fi    fi
1312  done  done
1313  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1314    { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1315  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1316  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1317  ac_config_sub=$ac_aux_dir/config.sub  fi
1318  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1319    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1320    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1321    
1322  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1323  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1324  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1325  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1326       { (exit 1); exit 1; }; }
1327    
1328    echo "$as_me:$LINENO: checking build system type" >&5
1329    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1330    if test "${ac_cv_build+set}" = set; then
1331      echo $ECHO_N "(cached) $ECHO_C" >&6
1332    else
1333      ac_cv_build_alias=$build_alias
1334    test -z "$ac_cv_build_alias" &&
1335      ac_cv_build_alias=`$ac_config_guess`
1336    test -z "$ac_cv_build_alias" &&
1337      { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1338    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1339       { (exit 1); exit 1; }; }
1340    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1341      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1342    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1343       { (exit 1); exit 1; }; }
1344    
1345    fi
1346    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1347    echo "${ECHO_T}$ac_cv_build" >&6
1348    build=$ac_cv_build
1349    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1350    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1351    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1352    
1353    
1354    echo "$as_me:$LINENO: checking host system type" >&5
1355    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1356    if test "${ac_cv_host+set}" = set; then
1357      echo $ECHO_N "(cached) $ECHO_C" >&6
1358    else
1359      ac_cv_host_alias=$host_alias
1360    test -z "$ac_cv_host_alias" &&
1361      ac_cv_host_alias=$ac_cv_build_alias
1362    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1363      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1364    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1365       { (exit 1); exit 1; }; }
1366    
1367    fi
1368    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1369    echo "${ECHO_T}$ac_cv_host" >&6
1370    host=$ac_cv_host
1371    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374    
 echo $ac_n "checking host system type""... $ac_c" 1>&6  
 echo "configure:683: checking host system type" >&5  
   
 host_alias=$host  
 case "$host_alias" in  
 NONE)  
   case $nonopt in  
   NONE)  
     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :  
     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  
     fi ;;  
   *) host_alias=$nonopt ;;  
   esac ;;  
 esac  
   
 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  
 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
 echo "$ac_t""$host" 1>&6  
1375    
1376  canonical=$host  canonical=$host
1377  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
1378  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1379    echo "${ECHO_T}host=$host" >&6
1380    
1381  use=unknown  use=unknown
1382  case $canonical in  case $canonical in
# Line 771  case $canonical in Line 1446  case $canonical in
1446             IRIX3*)             IRIX3*)
1447              use=sgi4d;;              use=sgi4d;;
1448         esac ;;         esac ;;
1449    
1450    
1451       m68k-apple-aux*)       m68k-apple-aux*)
1452       use=mac2;;       use=mac2;;
# Line 847  case $canonical in Line 1522  case $canonical in
1522              then use=mingw              then use=mingw
1523            else  use=gnuwin95            else  use=gnuwin95
1524          fi;;          fi;;
1525      
1526  esac  esac
1527    
1528  echo enable_machine=$enable_machine  echo enable_machine=$enable_machine
# Line 856  if test "x$enable_machine" != "x" ; then Line 1531  if test "x$enable_machine" != "x" ; then
1531  fi  fi
1532    
1533  EXTRA_CFLAGS=""  EXTRA_CFLAGS=""
1534  case $use in  case $use in
1535       *linux)       *linux)
1536          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1537          case $use in          case $use in
1538                  alpha*)                  alpha*)
1539                          EXTRA_CFLAGS=-mieee;                          EXTRA_CFLAGS=-mieee;
1540                          enable_dlopen="yes" ;;                          enable_dlopen="yes" ;;
1541                  mips*)                  mips*)
1542                          enable_dlopen="yes" ;;                          enable_dlopen="yes" ;;
1543                  ia64*)                  ia64*)
1544                          enable_dlopen="yes" ;;                          enable_dlopen="yes" ;;
1545                  hppa*)                  hppa*)
1546                          EXTRA_CFLAGS=-fPIC;                          EXTRA_CFLAGS=-fPIC;
1547                          enable_dlopen="yes" ;;                          enable_dlopen="yes" ;;
1548          esac;;          esac;;
1549  esac  esac
# Line 877  esac Line 1552  esac
1552  ##  ##
1553  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1554  #types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"`  #types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"`
1555  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1556  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1557  #exit(1)  #exit(1)
1558  #fi  #fi
1559    
1560  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1561    echo "${ECHO_T}use=$use" >&6
1562    
1563    
1564  #  #
# Line 890  echo "$ac_t""use=$use" 1>&6 Line 1566  echo "$ac_t""use=$use" 1>&6
1566  #  #
1567    
1568    
1569  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1570    ac_cpp='$CPP $CPPFLAGS'
1571    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574    if test -n "$ac_tool_prefix"; then
1575      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1576    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1577    echo "$as_me:$LINENO: checking for $ac_word" >&5
1578    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579    if test "${ac_cv_prog_CC+set}" = set; then
1580      echo $ECHO_N "(cached) $ECHO_C" >&6
1581    else
1582      if test -n "$CC"; then
1583      ac_cv_prog_CC="$CC" # Let the user override the test.
1584    else
1585    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586    for as_dir in $PATH
1587    do
1588      IFS=$as_save_IFS
1589      test -z "$as_dir" && as_dir=.
1590      for ac_exec_ext in '' $ac_executable_extensions; do
1591      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1593        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594        break 2
1595      fi
1596    done
1597    done
1598    
1599    fi
1600    fi
1601    CC=$ac_cv_prog_CC
1602    if test -n "$CC"; then
1603      echo "$as_me:$LINENO: result: $CC" >&5
1604    echo "${ECHO_T}$CC" >&6
1605    else
1606      echo "$as_me:$LINENO: result: no" >&5
1607    echo "${ECHO_T}no" >&6
1608    fi
1609    
1610    fi
1611    if test -z "$ac_cv_prog_CC"; then
1612      ac_ct_CC=$CC
1613      # Extract the first word of "gcc", so it can be a program name with args.
1614  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1615  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1616  echo "configure:897: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1619    else
1620      if test -n "$ac_ct_CC"; then
1621      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622    else
1623    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624    for as_dir in $PATH
1625    do
1626      IFS=$as_save_IFS
1627      test -z "$as_dir" && as_dir=.
1628      for ac_exec_ext in '' $ac_executable_extensions; do
1629      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630        ac_cv_prog_ac_ct_CC="gcc"
1631        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632        break 2
1633      fi
1634    done
1635    done
1636    
1637    fi
1638    fi
1639    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640    if test -n "$ac_ct_CC"; then
1641      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642    echo "${ECHO_T}$ac_ct_CC" >&6
1643    else
1644      echo "$as_me:$LINENO: result: no" >&5
1645    echo "${ECHO_T}no" >&6
1646    fi
1647    
1648      CC=$ac_ct_CC
1649    else
1650      CC="$ac_cv_prog_CC"
1651    fi
1652    
1653    if test -z "$CC"; then
1654      if test -n "$ac_tool_prefix"; then
1655      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1656    set dummy ${ac_tool_prefix}cc; ac_word=$2
1657    echo "$as_me:$LINENO: checking for $ac_word" >&5
1658    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659    if test "${ac_cv_prog_CC+set}" = set; then
1660      echo $ECHO_N "(cached) $ECHO_C" >&6
1661  else  else
1662    if test -n "$CC"; then    if test -n "$CC"; then
1663    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1664  else  else
1665    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666    ac_dummy="$PATH"  for as_dir in $PATH
1667    for ac_dir in $ac_dummy; do  do
1668      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1669      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1670        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1671        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1673    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674    IFS="$ac_save_ifs"      break 2
1675      fi
1676    done
1677    done
1678    
1679  fi  fi
1680  fi  fi
1681  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1682  if test -n "$CC"; then  if test -n "$CC"; then
1683    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1684    echo "${ECHO_T}$CC" >&6
1685  else  else
1686    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1687    echo "${ECHO_T}no" >&6
1688  fi  fi
1689    
1690    fi
1691    if test -z "$ac_cv_prog_CC"; then
1692      ac_ct_CC=$CC
1693      # Extract the first word of "cc", so it can be a program name with args.
1694    set dummy cc; ac_word=$2
1695    echo "$as_me:$LINENO: checking for $ac_word" >&5
1696    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698      echo $ECHO_N "(cached) $ECHO_C" >&6
1699    else
1700      if test -n "$ac_ct_CC"; then
1701      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702    else
1703    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704    for as_dir in $PATH
1705    do
1706      IFS=$as_save_IFS
1707      test -z "$as_dir" && as_dir=.
1708      for ac_exec_ext in '' $ac_executable_extensions; do
1709      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710        ac_cv_prog_ac_ct_CC="cc"
1711        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712        break 2
1713      fi
1714    done
1715    done
1716    
1717    fi
1718    fi
1719    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720    if test -n "$ac_ct_CC"; then
1721      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722    echo "${ECHO_T}$ac_ct_CC" >&6
1723    else
1724      echo "$as_me:$LINENO: result: no" >&5
1725    echo "${ECHO_T}no" >&6
1726    fi
1727    
1728      CC=$ac_ct_CC
1729    else
1730      CC="$ac_cv_prog_CC"
1731    fi
1732    
1733    fi
1734  if test -z "$CC"; then  if test -z "$CC"; then
1735    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1736  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1737  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1738  echo "configure:927: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1740    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1741  else  else
1742    if test -n "$CC"; then    if test -n "$CC"; then
1743    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1744  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1745    ac_prog_rejected=no    ac_prog_rejected=no
1746    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747    for ac_dir in $ac_dummy; do  for as_dir in $PATH
1748      test -z "$ac_dir" && ac_dir=.  do
1749      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
1750        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
1751          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
1752          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1754        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
1755        break         continue
1756      fi       fi
1757    done      ac_cv_prog_CC="cc"
1758    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759        break 2
1760      fi
1761    done
1762    done
1763    
1764  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1765    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1766    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1767    shift    shift
1768    if test $# -gt 0; then    if test $# != 0; then
1769      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1770      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1771      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1772      shift      shift
1773      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$as_dir/$ac_word" ${1+"$@"}
1774      shift      shift
1775      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1776    fi    fi
1777  fi  fi
1778  fi  fi
1779  fi  fi
1780  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1781  if test -n "$CC"; then  if test -n "$CC"; then
1782    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1783    echo "${ECHO_T}$CC" >&6
1784  else  else
1785    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1786    echo "${ECHO_T}no" >&6
1787  fi  fi
1788    
1789    if test -z "$CC"; then  fi
1790      case "`uname -s`" in  if test -z "$CC"; then
1791      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1792        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1793  set dummy cl; ac_word=$2    do
1794  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1795  echo "configure:978: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1796  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
1797    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798    if test "${ac_cv_prog_CC+set}" = set; then
1799      echo $ECHO_N "(cached) $ECHO_C" >&6
1800  else  else
1801    if test -n "$CC"; then    if test -n "$CC"; then
1802    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1803  else  else
1804    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805    ac_dummy="$PATH"  for as_dir in $PATH
1806    for ac_dir in $ac_dummy; do  do
1807      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1808      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1809        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
1810        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1812    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813    IFS="$ac_save_ifs"      break 2
1814      fi
1815    done
1816    done
1817    
1818  fi  fi
1819  fi  fi
1820  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1821  if test -n "$CC"; then  if test -n "$CC"; then
1822    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1823    echo "${ECHO_T}$CC" >&6
1824  else  else
1825    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1826    echo "${ECHO_T}no" >&6
1827  fi  fi
1828   ;;  
1829      esac      test -n "$CC" && break
1830      done
1831    fi
1832    if test -z "$CC"; then
1833      ac_ct_CC=$CC
1834      for ac_prog in cl
1835    do
1836      # Extract the first word of "$ac_prog", so it can be a program name with args.
1837    set dummy $ac_prog; ac_word=$2
1838    echo "$as_me:$LINENO: checking for $ac_word" >&5
1839    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1841      echo $ECHO_N "(cached) $ECHO_C" >&6
1842    else
1843      if test -n "$ac_ct_CC"; then
1844      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845    else
1846    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847    for as_dir in $PATH
1848    do
1849      IFS=$as_save_IFS
1850      test -z "$as_dir" && as_dir=.
1851      for ac_exec_ext in '' $ac_executable_extensions; do
1852      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853        ac_cv_prog_ac_ct_CC="$ac_prog"
1854        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855        break 2
1856    fi    fi
1857    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
1858    done
1859    
1860    fi
1861    fi
1862    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863    if test -n "$ac_ct_CC"; then
1864      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865    echo "${ECHO_T}$ac_ct_CC" >&6
1866    else
1867      echo "$as_me:$LINENO: result: no" >&5
1868    echo "${ECHO_T}no" >&6
1869  fi  fi
1870    
1871  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
1872  echo "configure:1010: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
1873    
1874  ac_ext=c    CC=$ac_ct_CC
1875  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  fi
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
1876    
1877  cat > conftest.$ac_ext << EOF  fi
1878    
 #line 1021 "configure"  
 #include "confdefs.h"  
1879    
1880  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1881  EOF  echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1882  if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     { (exit 1); exit 1; }; }
1883    ac_cv_prog_cc_works=yes  
1884    # If we can't run a trivial program, we are probably using a cross compiler.  # Provide some information about the compiler.
1885    if (./conftest; exit) 2>/dev/null; then  echo "$as_me:$LINENO:" \
1886      ac_cv_prog_cc_cross=no       "checking for C compiler version" >&5
1887    else  ac_compiler=`set X $ac_compile; echo $2`
1888      ac_cv_prog_cc_cross=yes  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1889    fi    (eval $ac_compiler --version </dev/null >&5) 2>&5
1890  else    ac_status=$?
1891    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892    cat conftest.$ac_ext >&5    (exit $ac_status); }
1893    ac_cv_prog_cc_works=no  { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1894  fi    (eval $ac_compiler -v </dev/null >&5) 2>&5
1895  rm -fr conftest*    ac_status=$?
1896  ac_ext=c    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.    (exit $ac_status); }
1898  ac_cpp='$CPP $CPPFLAGS'  { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1899  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    (eval $ac_compiler -V </dev/null >&5) 2>&5
1900  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'    ac_status=$?
1901  cross_compiling=$ac_cv_prog_cc_cross    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902      (exit $ac_status); }
1903  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
1904  if test $ac_cv_prog_cc_works = no; then  cat >conftest.$ac_ext <<_ACEOF
1905    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  #line $LINENO "configure"
1906  fi  #include "confdefs.h"
1907  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  
1908  echo "configure:1052: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  #ifdef F77_DUMMY_MAIN
1909  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  #  ifdef __cplusplus
1910  cross_compiling=$ac_cv_prog_cc_cross       extern "C"
1911    #  endif
1912  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6     int F77_DUMMY_MAIN() { return 1; }
 echo "configure:1057: checking whether we are using GNU C" >&5  
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.c <<EOF  
 #ifdef __GNUC__  
   yes;  
1913  #endif  #endif
1914  EOF  int
1915  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  main ()
1916    ac_cv_prog_gcc=yes  {
1917    
1918      ;
1919      return 0;
1920    }
1921    _ACEOF
1922    ac_clean_files_save=$ac_clean_files
1923    ac_clean_files="$ac_clean_files a.out a.exe"
1924    # Try to create an executable without -o first, disregard a.out.
1925    # It will help us diagnose broken compilers, and finding out an intuition
1926    # of exeext.
1927    echo "$as_me:$LINENO: checking for C compiler default output" >&5
1928    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1929    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1930    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1931      (eval $ac_link_default) 2>&5
1932      ac_status=$?
1933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934      (exit $ac_status); }; then
1935      # Find the output, starting from the most likely.  This scheme is
1936    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1937    # resort.
1938    
1939    # Be careful to initialize this variable, since it used to be cached.
1940    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1941    ac_cv_exeext=
1942    for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1943                    ls a.out conftest 2>/dev/null;
1944                    ls a.* conftest.* 2>/dev/null`; do
1945      case $ac_file in
1946        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1947        a.out ) # We found the default executable, but exeext='' is most
1948                # certainly right.
1949                break;;
1950        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1951              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1952              export ac_cv_exeext
1953              break;;
1954        * ) break;;
1955      esac
1956    done
1957  else  else
1958    ac_cv_prog_gcc=no    echo "$as_me: failed program was:" >&5
1959  fi  cat conftest.$ac_ext >&5
1960    { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1961    echo "$as_me: error: C compiler cannot create executables" >&2;}
1962       { (exit 77); exit 77; }; }
1963    fi
1964    
1965    ac_exeext=$ac_cv_exeext
1966    echo "$as_me:$LINENO: result: $ac_file" >&5
1967    echo "${ECHO_T}$ac_file" >&6
1968    
1969    # Check the compiler produces executables we can run.  If not, either
1970    # the compiler is broken, or we cross compile.
1971    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1972    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1973    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1974    # If not cross compiling, check that we can run a simple program.
1975    if test "$cross_compiling" != yes; then
1976      if { ac_try='./$ac_file'
1977      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978      (eval $ac_try) 2>&5
1979      ac_status=$?
1980      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981      (exit $ac_status); }; }; then
1982        cross_compiling=no
1983      else
1984        if test "$cross_compiling" = maybe; then
1985            cross_compiling=yes
1986        else
1987            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1988    If you meant to cross compile, use \`--host'." >&5
1989    echo "$as_me: error: cannot run C compiled programs.
1990    If you meant to cross compile, use \`--host'." >&2;}
1991       { (exit 1); exit 1; }; }
1992        fi
1993      fi
1994  fi  fi
1995    echo "$as_me:$LINENO: result: yes" >&5
1996    echo "${ECHO_T}yes" >&6
1997    
1998  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
1999    ac_clean_files=$ac_clean_files_save
2000  if test $ac_cv_prog_gcc = yes; then  # Check the compiler produces executables we can run.  If not, either
2001    GCC=yes  # the compiler is broken, or we cross compile.
2002    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2003    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2004    echo "$as_me:$LINENO: result: $cross_compiling" >&5
2005    echo "${ECHO_T}$cross_compiling" >&6
2006    
2007    echo "$as_me:$LINENO: checking for suffix of executables" >&5
2008    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2009    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2010      (eval $ac_link) 2>&5
2011      ac_status=$?
2012      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013      (exit $ac_status); }; then
2014      # If both `conftest.exe' and `conftest' are `present' (well, observable)
2015    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2016    # work properly (i.e., refer to `conftest.exe'), while it won't with
2017    # `rm'.
2018    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2019      case $ac_file in
2020        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2021        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022              export ac_cv_exeext
2023              break;;
2024        * ) break;;
2025      esac
2026    done
2027  else  else
2028    GCC=    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2029  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2030       { (exit 1); exit 1; }; }
2031    fi
2032    
2033    rm -f conftest$ac_cv_exeext
2034    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2035    echo "${ECHO_T}$ac_cv_exeext" >&6
2036    
2037    rm -f conftest.$ac_ext
2038    EXEEXT=$ac_cv_exeext
2039    ac_exeext=$EXEEXT
2040    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2041    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2042    if test "${ac_cv_objext+set}" = set; then
2043      echo $ECHO_N "(cached) $ECHO_C" >&6
2044    else
2045      cat >conftest.$ac_ext <<_ACEOF
2046    #line $LINENO "configure"
2047    #include "confdefs.h"
2048    
2049    #ifdef F77_DUMMY_MAIN
2050    #  ifdef __cplusplus
2051         extern "C"
2052    #  endif
2053       int F77_DUMMY_MAIN() { return 1; }
2054    #endif
2055    int
2056    main ()
2057    {
2058    
2059  ac_test_CFLAGS="${CFLAGS+set}"    ;
2060  ac_save_CFLAGS="$CFLAGS"    return 0;
2061  CFLAGS=  }
2062  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
2063  echo "configure:1085: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.o conftest.obj
2064  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
2066      ac_status=$?
2067      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068      (exit $ac_status); }; then
2069      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2070      case $ac_file in
2071        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2072        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2073           break;;
2074      esac
2075    done
2076  else  else
2077    echo 'void f(){}' > conftest.c    echo "$as_me: failed program was:" >&5
2078  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  cat conftest.$ac_ext >&5
2079    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2080    echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2081       { (exit 1); exit 1; }; }
2082    fi
2083    
2084    rm -f conftest.$ac_cv_objext conftest.$ac_ext
2085    fi
2086    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2087    echo "${ECHO_T}$ac_cv_objext" >&6
2088    OBJEXT=$ac_cv_objext
2089    ac_objext=$OBJEXT
2090    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2091    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2092    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2093      echo $ECHO_N "(cached) $ECHO_C" >&6
2094    else
2095      cat >conftest.$ac_ext <<_ACEOF
2096    #line $LINENO "configure"
2097    #include "confdefs.h"
2098    
2099    #ifdef F77_DUMMY_MAIN
2100    #  ifdef __cplusplus
2101         extern "C"
2102    #  endif
2103       int F77_DUMMY_MAIN() { return 1; }
2104    #endif
2105    int
2106    main ()
2107    {
2108    #ifndef __GNUC__
2109           choke me
2110    #endif
2111    
2112      ;
2113      return 0;
2114    }
2115    _ACEOF
2116    rm -f conftest.$ac_objext
2117    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118      (eval $ac_compile) 2>&5
2119      ac_status=$?
2120      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121      (exit $ac_status); } &&
2122             { ac_try='test -s conftest.$ac_objext'
2123      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124      (eval $ac_try) 2>&5
2125      ac_status=$?
2126      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127      (exit $ac_status); }; }; then
2128      ac_compiler_gnu=yes
2129    else
2130      echo "$as_me: failed program was:" >&5
2131    cat conftest.$ac_ext >&5
2132    ac_compiler_gnu=no
2133    fi
2134    rm -f conftest.$ac_objext conftest.$ac_ext
2135    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2136    
2137    fi
2138    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2139    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2140    GCC=`test $ac_compiler_gnu = yes && echo yes`
2141    ac_test_CFLAGS=${CFLAGS+set}
2142    ac_save_CFLAGS=$CFLAGS
2143    CFLAGS="-g"
2144    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2145    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2146    if test "${ac_cv_prog_cc_g+set}" = set; then
2147      echo $ECHO_N "(cached) $ECHO_C" >&6
2148    else
2149      cat >conftest.$ac_ext <<_ACEOF
2150    #line $LINENO "configure"
2151    #include "confdefs.h"
2152    
2153    #ifdef F77_DUMMY_MAIN
2154    #  ifdef __cplusplus
2155         extern "C"
2156    #  endif
2157       int F77_DUMMY_MAIN() { return 1; }
2158    #endif
2159    int
2160    main ()
2161    {
2162    
2163      ;
2164      return 0;
2165    }
2166    _ACEOF
2167    rm -f conftest.$ac_objext
2168    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169      (eval $ac_compile) 2>&5
2170      ac_status=$?
2171      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172      (exit $ac_status); } &&
2173             { ac_try='test -s conftest.$ac_objext'
2174      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175      (eval $ac_try) 2>&5
2176      ac_status=$?
2177      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178      (exit $ac_status); }; }; then
2179    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2180  else  else
2181    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2182    cat conftest.$ac_ext >&5
2183    ac_cv_prog_cc_g=no
2184  fi  fi
2185  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
2186  fi  fi
2187    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2188  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2189  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2190    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2191  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2192    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2193      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1111  else Line 2201  else
2201      CFLAGS=      CFLAGS=
2202    fi    fi
2203  fi  fi
2204    # Some people use a C++ compiler to compile C.  Since we use `exit',
2205    # in C++ we need to declare it.  In case someone uses the same compiler
2206    # for both compiling C and C++ we need to have the C++ compiler decide
2207    # the declaration of exit, since it's the most demanding environment.
2208    cat >conftest.$ac_ext <<_ACEOF
2209    #ifndef __cplusplus
2210      choke me
2211    #endif
2212    _ACEOF
2213    rm -f conftest.$ac_objext
2214    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215      (eval $ac_compile) 2>&5
2216      ac_status=$?
2217      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218      (exit $ac_status); } &&
2219             { ac_try='test -s conftest.$ac_objext'
2220      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221      (eval $ac_try) 2>&5
2222      ac_status=$?
2223      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224      (exit $ac_status); }; }; then
2225      for ac_declaration in \
2226       ''\
2227       '#include <stdlib.h>' \
2228       'extern "C" void std::exit (int) throw (); using std::exit;' \
2229       'extern "C" void std::exit (int); using std::exit;' \
2230       'extern "C" void exit (int) throw ();' \
2231       'extern "C" void exit (int);' \
2232       'void exit (int);'
2233    do
2234      cat >conftest.$ac_ext <<_ACEOF
2235    #line $LINENO "configure"
2236    #include "confdefs.h"
2237    #include <stdlib.h>
2238    $ac_declaration
2239    #ifdef F77_DUMMY_MAIN
2240    #  ifdef __cplusplus
2241         extern "C"
2242    #  endif
2243       int F77_DUMMY_MAIN() { return 1; }
2244    #endif
2245    int
2246    main ()
2247    {
2248    exit (42);
2249      ;
2250      return 0;
2251    }
2252    _ACEOF
2253    rm -f conftest.$ac_objext
2254    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255      (eval $ac_compile) 2>&5
2256      ac_status=$?
2257      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258      (exit $ac_status); } &&
2259             { ac_try='test -s conftest.$ac_objext'
2260      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261      (eval $ac_try) 2>&5
2262      ac_status=$?
2263      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264      (exit $ac_status); }; }; then
2265      :
2266    else
2267      echo "$as_me: failed program was:" >&5
2268    cat conftest.$ac_ext >&5
2269    continue
2270    fi
2271    rm -f conftest.$ac_objext conftest.$ac_ext
2272      cat >conftest.$ac_ext <<_ACEOF
2273    #line $LINENO "configure"
2274    #include "confdefs.h"
2275    $ac_declaration
2276    #ifdef F77_DUMMY_MAIN
2277    #  ifdef __cplusplus
2278         extern "C"
2279    #  endif
2280       int F77_DUMMY_MAIN() { return 1; }
2281    #endif
2282    int
2283    main ()
2284    {
2285    exit (42);
2286      ;
2287      return 0;
2288    }
2289    _ACEOF
2290    rm -f conftest.$ac_objext
2291    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292      (eval $ac_compile) 2>&5
2293      ac_status=$?
2294      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295      (exit $ac_status); } &&
2296             { ac_try='test -s conftest.$ac_objext'
2297      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298      (eval $ac_try) 2>&5
2299      ac_status=$?
2300      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301      (exit $ac_status); }; }; then
2302      break
2303    else
2304      echo "$as_me: failed program was:" >&5
2305    cat conftest.$ac_ext >&5
2306    fi
2307    rm -f conftest.$ac_objext conftest.$ac_ext
2308    done
2309    rm -f conftest*
2310    if test -n "$ac_declaration"; then
2311      echo '#ifdef __cplusplus' >>confdefs.h
2312      echo $ac_declaration      >>confdefs.h
2313      echo '#endif'             >>confdefs.h
2314    fi
2315    
2316    else
2317      echo "$as_me: failed program was:" >&5
2318    cat conftest.$ac_ext >&5
2319    fi
2320    rm -f conftest.$ac_objext conftest.$ac_ext
2321    ac_ext=c
2322    ac_cpp='$CPP $CPPFLAGS'
2323    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326    
2327  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
2328  echo "configure:1117: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
2329    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2333    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2334  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2335  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2336    CPP=    CPP=
2337  fi  fi
2338  if test -z "$CPP"; then  if test -z "$CPP"; then
2339  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2340    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2341  else  else
2342      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2343    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2344    CPP="${CC-cc} -E"      do
2345          ac_preproc_ok=false
2346    for ac_c_preproc_warn_flag in '' yes
2347    do
2348      # Use a header file that comes with gcc, so configuring glibc
2349      # with a fresh cross-compiler works.
2350    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2351    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2352    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2353  #line 1132 "configure"  #line $LINENO "configure"
2354  #include "confdefs.h"  #include "confdefs.h"
2355  #include <assert.h>  #include <assert.h>
2356  Syntax Error                       Syntax error
2357  EOF  _ACEOF
2358  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2359  { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2360  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2361  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2362      rm -f conftest.er1
2363      cat conftest.err >&5
2364      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365      (exit $ac_status); } >/dev/null; then
2366      if test -s conftest.err; then
2367        ac_cpp_err=$ac_c_preproc_warn_flag
2368      else
2369        ac_cpp_err=
2370      fi
2371    else
2372      ac_cpp_err=yes
2373    fi
2374    if test -z "$ac_cpp_err"; then
2375    :    :
2376  else  else
2377    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2378    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2379    rm -rf conftest*    # Broken: fails on valid input.
2380    CPP="${CC-cc} -E -traditional-cpp"  continue
2381    cat > conftest.$ac_ext <<EOF  fi
2382  #line 1149 "configure"  rm -f conftest.err conftest.$ac_ext
2383  #include "confdefs.h"  
2384  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2385  Syntax Error    # can be detected and how.
2386  EOF    cat >conftest.$ac_ext <<_ACEOF
2387  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #line $LINENO "configure"
2388  { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  #include "confdefs.h"
2389  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <ac_nonexistent.h>
2390  if test -z "$ac_err"; then  _ACEOF
2391    :  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393      ac_status=$?
2394      egrep -v '^ *\+' conftest.er1 >conftest.err
2395      rm -f conftest.er1
2396      cat conftest.err >&5
2397      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398      (exit $ac_status); } >/dev/null; then
2399      if test -s conftest.err; then
2400        ac_cpp_err=$ac_c_preproc_warn_flag
2401      else
2402        ac_cpp_err=
2403      fi
2404  else  else
2405    echo "$ac_err" >&5    ac_cpp_err=yes
2406    echo "configure: failed program was:" >&5  fi
2407    if test -z "$ac_cpp_err"; then
2408      # Broken: success on invalid input.
2409    continue
2410    else
2411      echo "$as_me: failed program was:" >&5
2412    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2413    rm -rf conftest*    # Passes both tests.
2414    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2415    cat > conftest.$ac_ext <<EOF  break
2416  #line 1166 "configure"  fi
2417    rm -f conftest.err conftest.$ac_ext
2418    
2419    done
2420    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2421    rm -f conftest.err conftest.$ac_ext
2422    if $ac_preproc_ok; then
2423      break
2424    fi
2425    
2426        done
2427        ac_cv_prog_CPP=$CPP
2428    
2429    fi
2430      CPP=$ac_cv_prog_CPP
2431    else
2432      ac_cv_prog_CPP=$CPP
2433    fi
2434    echo "$as_me:$LINENO: result: $CPP" >&5
2435    echo "${ECHO_T}$CPP" >&6
2436    ac_preproc_ok=false
2437    for ac_c_preproc_warn_flag in '' yes
2438    do
2439      # Use a header file that comes with gcc, so configuring glibc
2440      # with a fresh cross-compiler works.
2441      # On the NeXT, cc -E runs the code through the compiler's parser,
2442      # not just through cpp. "Syntax error" is here to catch this case.
2443      cat >conftest.$ac_ext <<_ACEOF
2444    #line $LINENO "configure"
2445  #include "confdefs.h"  #include "confdefs.h"
2446  #include <assert.h>  #include <assert.h>
2447  Syntax Error                       Syntax error
2448  EOF  _ACEOF
2449  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2450  { (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2452  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2453      rm -f conftest.er1
2454      cat conftest.err >&5
2455      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456      (exit $ac_status); } >/dev/null; then
2457      if test -s conftest.err; then
2458        ac_cpp_err=$ac_c_preproc_warn_flag
2459      else
2460        ac_cpp_err=
2461      fi
2462    else
2463      ac_cpp_err=yes
2464    fi
2465    if test -z "$ac_cpp_err"; then
2466    :    :
2467  else  else
2468    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2469    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2470    rm -rf conftest*    # Broken: fails on valid input.
2471    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
2472  fi  fi
2473  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2474    
2475      # OK, works on sane cases.  Now check whether non-existent headers
2476      # can be detected and how.
2477      cat >conftest.$ac_ext <<_ACEOF
2478    #line $LINENO "configure"
2479    #include "confdefs.h"
2480    #include <ac_nonexistent.h>
2481    _ACEOF
2482    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2483      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2484      ac_status=$?
2485      egrep -v '^ *\+' conftest.er1 >conftest.err
2486      rm -f conftest.er1
2487      cat conftest.err >&5
2488      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489      (exit $ac_status); } >/dev/null; then
2490      if test -s conftest.err; then
2491        ac_cpp_err=$ac_c_preproc_warn_flag
2492      else
2493        ac_cpp_err=
2494      fi
2495    else
2496      ac_cpp_err=yes
2497  fi  fi
2498  rm -f conftest*  if test -z "$ac_cpp_err"; then
2499    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2500    continue
2501    else
2502      echo "$as_me: failed program was:" >&5
2503      cat conftest.$ac_ext >&5
2504      # Passes both tests.
2505    ac_preproc_ok=:
2506    break
2507  fi  fi
2508    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2509    
2510    done
2511    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2512    rm -f conftest.err conftest.$ac_ext
2513    if $ac_preproc_ok; then
2514      :
2515  else  else
2516    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2517    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2518       { (exit 1); exit 1; }; }
2519  fi  fi
2520  echo "$ac_t""$CPP" 1>&6  
2521    ac_ext=c
2522    ac_cpp='$CPP $CPPFLAGS'
2523    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526    
2527  # can only test for numbers -- CM  # can only test for numbers -- CM
2528  # if test "${GCC}" -eq "yes" ; then  # if test "${GCC}" -eq "yes" ; then
# Line 1208  fi Line 2540  fi
2540  # for the system.  This can usually be done via the "uname" command, but  # for the system.  This can usually be done via the "uname" command, but
2541  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
2542    
2543  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
2544  echo "configure:1213: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
2545  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
2546    
2547  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
2548  do  do
2549  # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
2550  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2551  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2552  echo "configure:1221: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
2554    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2555  else  else
2556    if test -n "$AWK"; then    if test -n "$AWK"; then
2557    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
2558  else  else
2559    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560    ac_dummy="$PATH"  for as_dir in $PATH
2561    for ac_dir in $ac_dummy; do  do
2562      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2563      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2564        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2565        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566      fi      ac_cv_prog_AWK="$ac_prog"
2567    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    IFS="$ac_save_ifs"      break 2
2569      fi
2570    done
2571    done
2572    
2573  fi  fi
2574  fi  fi
2575  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
2576  if test -n "$AWK"; then  if test -n "$AWK"; then
2577    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
2578    echo "${ECHO_T}$AWK" >&6
2579  else  else
2580    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2581    echo "${ECHO_T}no" >&6
2582  fi  fi
2583    
2584  test -n "$AWK" && break    test -n "$AWK" && break
2585  done  done
2586  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
2587    
2588    
2589  for ac_prog in makeinfo  for ac_prog in makeinfo
2590  do  do
2591  # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
2592  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2593  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2594  echo "configure:1257: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2595  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2596    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2597  else  else
2598    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
2599    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2600  else  else
2601    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602    ac_dummy="$PATH"  for as_dir in $PATH
2603    for ac_dir in $ac_dummy; do  do
2604      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2605      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2606        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2607        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608      fi      ac_cv_prog_MAKEINFO="$ac_prog"
2609    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610    IFS="$ac_save_ifs"      break 2
2611      fi
2612    done
2613    done
2614    
2615  fi  fi
2616  fi  fi
2617  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
2618  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
2619    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2620    echo "${ECHO_T}$MAKEINFO" >&6
2621  else  else
2622    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2623    echo "${ECHO_T}no" >&6
2624  fi  fi
2625    
2626  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
2627  done  done
2628  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
2629    
# Line 1290  if test -f /usr/lib/NextStep/software_ve Line 2634  if test -f /usr/lib/NextStep/software_ve
2634  else  else
2635      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
2636      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
2637          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
2638    echo "${ECHO_T}unknown (can't find uname command)" >&6
2639          system=unknown          system=unknown
2640      else      else
2641          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
2642          # results, and the version is kept in special file).          # results, and the version is kept in special file).
2643        
2644          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
2645              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
2646          fi          fi
2647          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
2648              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
2649          fi          fi
2650          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
2651    echo "${ECHO_T}$system" >&6
2652      fi      fi
2653  fi  fi
2654    
# Line 1314  fi Line 2660  fi
2660    
2661  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
2662    
2663          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6  
2664  echo "configure:1319: checking for dlopen in -ldl" >&5  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
2665  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2666  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2667    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2668  else  else
2669    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
2670  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
2671  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
2672  #line 1327 "configure"  #line $LINENO "configure"
2673  #include "confdefs.h"  #include "confdefs.h"
2674    
2675  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2676    #ifdef __cplusplus
2677    extern "C"
2678    #endif
2679  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2680      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
2681  char dlopen();  char dlopen ();
2682    #ifdef F77_DUMMY_MAIN
2683  int main() {  #  ifdef __cplusplus
2684  dlopen()       extern "C"
2685  ; return 0; }  #  endif
2686  EOF     int F77_DUMMY_MAIN() { return 1; }
2687  if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
2688    rm -rf conftest*  int
2689    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
2690  else  {
2691    echo "configure: failed program was:" >&5  dlopen ();
2692    cat conftest.$ac_ext >&5    ;
2693    rm -rf conftest*    return 0;
2694    eval "ac_cv_lib_$ac_lib_var=no"  }
2695  fi  _ACEOF
2696  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
2697  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2698      (eval $ac_link) 2>&5
2699  fi    ac_status=$?
2700  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
2702             { ac_try='test -s conftest$ac_exeext'
2703      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704      (eval $ac_try) 2>&5
2705      ac_status=$?
2706      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707      (exit $ac_status); }; }; then
2708      ac_cv_lib_dl_dlopen=yes
2709    else
2710      echo "$as_me: failed program was:" >&5
2711    cat conftest.$ac_ext >&5
2712    ac_cv_lib_dl_dlopen=no
2713    fi
2714    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2715    LIBS=$ac_check_lib_save_LIBS
2716    fi
2717    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
2718    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2719    if test $ac_cv_lib_dl_dlopen = yes; then
2720    have_dl=1    have_dl=1
2721  else  else
2722    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
2723  fi  fi
2724    
2725          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 1361  fi Line 2728  fi
2728          fi          fi
2729    
2730          LIBS="$LIBS -ldl -rdynamic"          LIBS="$LIBS -ldl -rdynamic"
2731          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
2732  #define USE_DLOPEN 1  #define USE_DLOPEN 1
2733  EOF  _ACEOF
2734    
2735    
2736  else      else
2737    
2738          if test "$enable_bfd" = "yes" ; then          if test "$enable_bfd" = "yes" ; then
2739                  ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`  
2740  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2741  echo "configure:1375: checking for bfd.h" >&5  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2742  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_stdc+set}" = set; then
2743    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2744    else
2745      cat >conftest.$ac_ext <<_ACEOF
2746    #line $LINENO "configure"
2747    #include "confdefs.h"
2748    #include <stdlib.h>
2749    #include <stdarg.h>
2750    #include <string.h>
2751    #include <float.h>
2752    
2753    _ACEOF
2754    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756      ac_status=$?
2757      egrep -v '^ *\+' conftest.er1 >conftest.err
2758      rm -f conftest.er1
2759      cat conftest.err >&5
2760      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761      (exit $ac_status); } >/dev/null; then
2762      if test -s conftest.err; then
2763        ac_cpp_err=$ac_c_preproc_warn_flag
2764      else
2765        ac_cpp_err=
2766      fi
2767  else  else
2768    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
2769  #line 1380 "configure"  fi
2770  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
2771  #include <bfd.h>    ac_cv_header_stdc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
2772  else  else
2773    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2774    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2775    rm -rf conftest*    ac_cv_header_stdc=no
2776    eval "ac_cv_header_$ac_safe=no"  fi
2777    rm -f conftest.err conftest.$ac_ext
2778    
2779    if test $ac_cv_header_stdc = yes; then
2780      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2781      cat >conftest.$ac_ext <<_ACEOF
2782    #line $LINENO "configure"
2783    #include "confdefs.h"
2784    #include <string.h>
2785    
2786    _ACEOF
2787    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2788      egrep "memchr" >/dev/null 2>&1; then
2789      :
2790    else
2791      ac_cv_header_stdc=no
2792  fi  fi
2793  rm -f conftest*  rm -f conftest*
2794    
2795  fi  fi
2796  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
2797    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
2798    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2799  echo "configure:1402: checking for bfd_init in -lbfd" >&5    cat >conftest.$ac_ext <<_ACEOF
2800  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
2801  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  #include "confdefs.h"
2802    echo $ac_n "(cached) $ac_c" 1>&6  #include <stdlib.h>
2803    
2804    _ACEOF
2805    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2806      egrep "free" >/dev/null 2>&1; then
2807      :
2808  else  else
2809    ac_save_LIBS="$LIBS"    ac_cv_header_stdc=no
2810  LIBS="-lbfd -liberty $LIBS"  fi
2811  cat > conftest.$ac_ext <<EOF  rm -f conftest*
2812  #line 1410 "configure"  
2813    fi
2814    
2815    if test $ac_cv_header_stdc = yes; then
2816      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2817      if test "$cross_compiling" = yes; then
2818      :
2819    else
2820      cat >conftest.$ac_ext <<_ACEOF
2821    #line $LINENO "configure"
2822  #include "confdefs.h"  #include "confdefs.h"
2823  /* Override any gcc2 internal prototype to avoid an error.  */  #include <ctype.h>
2824  /* We use char because int might match the return type of a gcc2  #if ((' ' & 0x0FF) == 0x020)
2825      builtin and then its argument prototype would still apply.  */  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2826  char bfd_init();  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2827    #else
2828    # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2829                         || ('j' <= (c) && (c) <= 'r') \
2830                         || ('s' <= (c) && (c) <= 'z'))
2831    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2832    #endif
2833    
2834  int main() {  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2835  bfd_init()  int
2836  ; return 0; }  main ()
2837  EOF  {
2838  if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    int i;
2839    rm -rf conftest*    for (i = 0; i < 256; i++)
2840    eval "ac_cv_lib_$ac_lib_var=yes"      if (XOR (islower (i), ISLOWER (i))
2841            || toupper (i) != TOUPPER (i))
2842          exit(2);
2843      exit (0);
2844    }
2845    _ACEOF
2846    rm -f conftest$ac_exeext
2847    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2848      (eval $ac_link) 2>&5
2849      ac_status=$?
2850      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2852      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853      (eval $ac_try) 2>&5
2854      ac_status=$?
2855      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856      (exit $ac_status); }; }; then
2857      :
2858    else
2859      echo "$as_me: program exited with status $ac_status" >&5
2860    echo "$as_me: failed program was:" >&5
2861    cat conftest.$ac_ext >&5
2862    ( exit $ac_status )
2863    ac_cv_header_stdc=no
2864    fi
2865    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2866    fi
2867    fi
2868    fi
2869    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2870    echo "${ECHO_T}$ac_cv_header_stdc" >&6
2871    if test $ac_cv_header_stdc = yes; then
2872    
2873    cat >>confdefs.h <<\_ACEOF
2874    #define STDC_HEADERS 1
2875    _ACEOF
2876    
2877    fi
2878    
2879    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2880    
2881    
2882    
2883    
2884    
2885    
2886    
2887    
2888    
2889    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2890                      inttypes.h stdint.h unistd.h
2891    do
2892    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2893    echo "$as_me:$LINENO: checking for $ac_header" >&5
2894    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2895    if eval "test \"\${$as_ac_Header+set}\" = set"; then
2896      echo $ECHO_N "(cached) $ECHO_C" >&6
2897    else
2898      cat >conftest.$ac_ext <<_ACEOF
2899    #line $LINENO "configure"
2900    #include "confdefs.h"
2901    $ac_includes_default
2902    
2903    #include <$ac_header>
2904    _ACEOF
2905    rm -f conftest.$ac_objext
2906    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907      (eval $ac_compile) 2>&5
2908      ac_status=$?
2909      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910      (exit $ac_status); } &&
2911             { ac_try='test -s conftest.$ac_objext'
2912      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913      (eval $ac_try) 2>&5
2914      ac_status=$?
2915      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916      (exit $ac_status); }; }; then
2917      eval "$as_ac_Header=yes"
2918    else
2919      echo "$as_me: failed program was:" >&5
2920    cat conftest.$ac_ext >&5
2921    eval "$as_ac_Header=no"
2922    fi
2923    rm -f conftest.$ac_objext conftest.$ac_ext
2924    fi
2925    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2926    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2927    if test `eval echo '${'$as_ac_Header'}'` = yes; then
2928      cat >>confdefs.h <<_ACEOF
2929    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2930    _ACEOF
2931    
2932    fi
2933    
2934    done
2935    
2936    
2937    if test "${ac_cv_header_bfd_h+set}" = set; then
2938      echo "$as_me:$LINENO: checking for bfd.h" >&5
2939    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
2940    if test "${ac_cv_header_bfd_h+set}" = set; then
2941      echo $ECHO_N "(cached) $ECHO_C" >&6
2942    fi
2943    echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
2944    echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
2945    else
2946      # Is the header compilable?
2947    echo "$as_me:$LINENO: checking bfd.h usability" >&5
2948    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
2949    cat >conftest.$ac_ext <<_ACEOF
2950    #line $LINENO "configure"
2951    #include "confdefs.h"
2952    $ac_includes_default
2953    #include <bfd.h>
2954    _ACEOF
2955    rm -f conftest.$ac_objext
2956    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957      (eval $ac_compile) 2>&5
2958      ac_status=$?
2959      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960      (exit $ac_status); } &&
2961             { ac_try='test -s conftest.$ac_objext'
2962      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963      (eval $ac_try) 2>&5
2964      ac_status=$?
2965      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966      (exit $ac_status); }; }; then
2967      ac_header_compiler=yes
2968    else
2969      echo "$as_me: failed program was:" >&5
2970    cat conftest.$ac_ext >&5
2971    ac_header_compiler=no
2972    fi
2973    rm -f conftest.$ac_objext conftest.$ac_ext
2974    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2975    echo "${ECHO_T}$ac_header_compiler" >&6
2976    
2977    # Is the header present?
2978    echo "$as_me:$LINENO: checking bfd.h presence" >&5
2979    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
2980    cat >conftest.$ac_ext <<_ACEOF
2981    #line $LINENO "configure"
2982    #include "confdefs.h"
2983    #include <bfd.h>
2984    _ACEOF
2985    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987      ac_status=$?
2988      egrep -v '^ *\+' conftest.er1 >conftest.err
2989      rm -f conftest.er1
2990      cat conftest.err >&5
2991      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992      (exit $ac_status); } >/dev/null; then
2993      if test -s conftest.err; then
2994        ac_cpp_err=$ac_c_preproc_warn_flag
2995      else
2996        ac_cpp_err=
2997      fi
2998    else
2999      ac_cpp_err=yes
3000    fi
3001    if test -z "$ac_cpp_err"; then
3002      ac_header_preproc=yes
3003  else  else
3004    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3005    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3006    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_lib_$ac_lib_var=no"  
3007  fi  fi
3008  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3009  LIBS="$ac_save_LIBS"  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3010    echo "${ECHO_T}$ac_header_preproc" >&6
3011    
3012    # So?  What about this header?
3013    case $ac_header_compiler:$ac_header_preproc in
3014      yes:no )
3015        { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3016    echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3017        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
3018    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
3019      no:yes )
3020        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
3021    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
3022        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
3023    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
3024        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
3025    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
3026    esac
3027    echo "$as_me:$LINENO: checking for bfd.h" >&5
3028    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
3029    if test "${ac_cv_header_bfd_h+set}" = set; then
3030      echo $ECHO_N "(cached) $ECHO_C" >&6
3031    else
3032      ac_cv_header_bfd_h=$ac_header_preproc
3033    fi
3034    echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
3035    echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
3036    
3037  fi  fi
3038  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_bfd_h = yes; then
3039    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
3040    echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c  echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
3041                                  MP=`$GCC  -Wl,-M  -static -o foo foo.c -lbfd -liberty 2>&1 | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq`  if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
3042                                  rm -f foo.c foo    echo $ECHO_N "(cached) $ECHO_C" >&6
3043                                  BFDLIB=`echo $MP | tr ' ' '\012' | grep libbfd.a`  else
3044                                  IBRLIB=`echo $MP | tr ' ' '\012' | grep libiberty.a`    ac_check_lib_save_LIBS=$LIBS
3045    LIBS="-lbfd -liberty $LIBS"
3046    cat >conftest.$ac_ext <<_ACEOF
3047    #line $LINENO "configure"
3048    #include "confdefs.h"
3049    
3050    /* Override any gcc2 internal prototype to avoid an error.  */
3051    #ifdef __cplusplus
3052    extern "C"
3053    #endif
3054    /* We use char because int might match the return type of a gcc2
3055       builtin and then its argument prototype would still apply.  */
3056    char bfd_init ();
3057    #ifdef F77_DUMMY_MAIN
3058    #  ifdef __cplusplus
3059         extern "C"
3060    #  endif
3061       int F77_DUMMY_MAIN() { return 1; }
3062    #endif
3063    int
3064    main ()
3065    {
3066    bfd_init ();
3067      ;
3068      return 0;
3069    }
3070    _ACEOF
3071    rm -f conftest.$ac_objext conftest$ac_exeext
3072    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3073      (eval $ac_link) 2>&5
3074      ac_status=$?
3075      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076      (exit $ac_status); } &&
3077             { ac_try='test -s conftest$ac_exeext'
3078      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079      (eval $ac_try) 2>&5
3080      ac_status=$?
3081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082      (exit $ac_status); }; }; then
3083      ac_cv_lib_bfd_bfd_init=yes
3084    else
3085      echo "$as_me: failed program was:" >&5
3086    cat conftest.$ac_ext >&5
3087    ac_cv_lib_bfd_bfd_init=no
3088    fi
3089    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3090    LIBS=$ac_check_lib_save_LIBS
3091    fi
3092    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
3093    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
3094    if test $ac_cv_lib_bfd_bfd_init = yes; then
3095      if $CC -v 2>&1 | fgrep ming > /dev/null ; then
3096                                                   BFDLIB="-lbfd"
3097                                                   IBRLIB="-liberty"
3098                                            else
3099                                                    echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c
3100                                                    MP=`$GCC  -Wl,-M  -static -o foo foo.c -lbfd -liberty 2>&1 | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq`
3101                                                    rm -f foo.c foo
3102                                                    BFDLIB=`echo $MP | tr ' ' '\012' | grep libbfd.a`
3103                                                    IBRLIB=`echo $MP | tr ' ' '\012' | grep libiberty.a`
3104                                            fi
3105          #          #
3106          # Old binutils appear to need CONST defined to const          # Old binutils appear to need CONST defined to const
3107          #          #
3108                                  echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6                                  echo "$as_me:$LINENO: checking if need to define CONST for bfd" >&5
3109  echo "configure:1445: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
3110                                  if test "$cross_compiling" = yes; then                                  if test "$cross_compiling" = yes; then
3111    echo "$ac_t""cannot use bfd" 1>&6    echo "$as_me:$LINENO: result: cannot use bfd" >&5
3112    echo "${ECHO_T}cannot use bfd" >&6
3113  else  else
3114    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3115  #line 1450 "configure"  #line $LINENO "configure"
3116  #include "confdefs.h"  #include "confdefs.h"
3117  #define IN_GCC  #define IN_GCC
3118                                              #include <bfd.h>                                              #include <bfd.h>
3119                                              int main() { symbol_info t; return 0;}                                              int main() { symbol_info t; return 0;}
3120  EOF  _ACEOF
3121  if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3122  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3123    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
3124                                          cat >> confdefs.h <<\EOF    ac_status=$?
3125      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3127      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128      (eval $ac_try) 2>&5
3129      ac_status=$?
3130      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131      (exit $ac_status); }; }; then
3132      echo "$as_me:$LINENO: result: no" >&5
3133    echo "${ECHO_T}no" >&6
3134                                            cat >>confdefs.h <<\_ACEOF
3135  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
3136  EOF  _ACEOF
3137    
3138                                          LIBS="$LIBS  $BFDLIB $IBRLIB"                                          LIBS="$LIBS  $BFDLIB $IBRLIB"
3139  else  else
3140    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3141    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3142    rm -fr conftest*  cat conftest.$ac_ext >&5
3143    if test "$cross_compiling" = yes; then  ( exit $ac_status )
3144    echo "$ac_t""cannot use bfd" 1>&6  if test "$cross_compiling" = yes; then
3145      echo "$as_me:$LINENO: result: cannot use bfd" >&5
3146    echo "${ECHO_T}cannot use bfd" >&6
3147  else  else
3148    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3149  #line 1472 "configure"  #line $LINENO "configure"
3150  #include "confdefs.h"  #include "confdefs.h"
3151  #define IN_GCC  #define IN_GCC
3152                                                      #include <bfd.h>                                                      #include <bfd.h>
3153                                                      #define CONST const                                                      #define CONST const
3154                                                      int main() {symbol_info t; return 0;}                                                      int main() {symbol_info t; return 0;}
3155  EOF  _ACEOF
3156  if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3157  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
3159                                                  cat >> confdefs.h <<\EOF    ac_status=$?
3160      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3162      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163      (eval $ac_try) 2>&5
3164      ac_status=$?
3165      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166      (exit $ac_status); }; }; then
3167      echo "$as_me:$LINENO: result: yes" >&5
3168    echo "${ECHO_T}yes" >&6
3169                                                    cat >>confdefs.h <<\_ACEOF
3170  #define NEED_CONST 1  #define NEED_CONST 1
3171  EOF  _ACEOF
3172    
3173                                                  cat >> confdefs.h <<\EOF                                                  cat >>confdefs.h <<\_ACEOF
3174  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
3175  EOF  _ACEOF
3176    
3177                                                  LIBS="$LIBS  $BFDLIB $IBRLIB"                                                  LIBS="$LIBS  $BFDLIB $IBRLIB"
3178  else  else
3179    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3180    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3181    rm -fr conftest*  cat conftest.$ac_ext >&5
3182    echo "$ac_t""cannot use bfd" 1>&6  ( exit $ac_status )
3183    echo "$as_me:$LINENO: result: cannot use bfd" >&5
3184    echo "${ECHO_T}cannot use bfd" >&6
3185  fi  fi
3186  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3187  fi  fi
   
3188  fi  fi
3189  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3190  fi  fi
3191    
3192                                                    
                                   
 else  
   echo "$ac_t""no" 1>&6  
3193  fi  fi
3194    
 else  
   echo "$ac_t""no" 1>&6  
3195  fi  fi
3196    
3197    
3198          fi          fi
3199    
3200  fi  fi
# Line 1518  fi Line 3203  fi
3203  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
3204  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
3205    
3206  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long *" >&5
3207  echo "configure:1523: checking size of long *" >&5  echo $ECHO_N "checking for long *... $ECHO_C" >&6
3208  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if test "${ac_cv_type_long_p+set}" = set; then
3209    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3210  else  else
3211      cat >conftest.$ac_ext <<_ACEOF
3212    #line $LINENO "configure"
3213    #include "confdefs.h"
3214    $ac_includes_default
3215    #ifdef F77_DUMMY_MAIN
3216    #  ifdef __cplusplus
3217         extern "C"
3218    #  endif
3219       int F77_DUMMY_MAIN() { return 1; }
3220    #endif
3221    int
3222    main ()
3223    {
3224    if ((long * *) 0)
3225      return 0;
3226    if (sizeof (long *))
3227      return 0;
3228      ;
3229      return 0;
3230    }
3231    _ACEOF
3232    rm -f conftest.$ac_objext
3233    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234      (eval $ac_compile) 2>&5
3235      ac_status=$?
3236      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237      (exit $ac_status); } &&
3238             { ac_try='test -s conftest.$ac_objext'
3239      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240      (eval $ac_try) 2>&5
3241      ac_status=$?
3242      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243      (exit $ac_status); }; }; then
3244      ac_cv_type_long_p=yes
3245    else
3246      echo "$as_me: failed program was:" >&5
3247    cat conftest.$ac_ext >&5
3248    ac_cv_type_long_p=no
3249    fi
3250    rm -f conftest.$ac_objext conftest.$ac_ext
3251    fi
3252    echo "$as_me:$LINENO: result: $ac_cv_type_long_p" >&5
3253    echo "${ECHO_T}$ac_cv_type_long_p" >&6
3254    
3255    echo "$as_me:$LINENO: checking size of long *" >&5
3256    echo $ECHO_N "checking size of long *... $ECHO_C" >&6
3257    if test "${ac_cv_sizeof_long_p+set}" = set; then
3258      echo $ECHO_N "(cached) $ECHO_C" >&6
3259    else
3260      if test "$ac_cv_type_long_p" = yes; then
3261      # The cast to unsigned long works around a bug in the HP C Compiler
3262      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3263      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3264      # This bug is HP SR number 8606223364.
3265    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
3266    ac_cv_sizeof_long_p=0    # Depending upon the size, compute the lo and hi bounds.
3267    cat >conftest.$ac_ext <<_ACEOF
3268    #line $LINENO "configure"
3269    #include "confdefs.h"
3270    $ac_includes_default
3271    #ifdef F77_DUMMY_MAIN
3272    #  ifdef __cplusplus
3273         extern "C"
3274    #  endif
3275       int F77_DUMMY_MAIN() { return 1; }
3276    #endif
3277    int
3278    main ()
3279    {
3280    static int test_array [1 - 2 * !(((long) (sizeof (long *))) >= 0)];
3281    test_array [0] = 0
3282    
3283      ;
3284      return 0;
3285    }
3286    _ACEOF
3287    rm -f conftest.$ac_objext
3288    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289      (eval $ac_compile) 2>&5
3290      ac_status=$?
3291      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292      (exit $ac_status); } &&
3293             { ac_try='test -s conftest.$ac_objext'
3294      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295      (eval $ac_try) 2>&5
3296      ac_status=$?
3297      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298      (exit $ac_status); }; }; then
3299      ac_lo=0 ac_mid=0
3300      while :; do
3301        cat >conftest.$ac_ext <<_ACEOF
3302    #line $LINENO "configure"
3303    #include "confdefs.h"
3304    $ac_includes_default
3305    #ifdef F77_DUMMY_MAIN
3306    #  ifdef __cplusplus
3307         extern "C"
3308    #  endif
3309       int F77_DUMMY_MAIN() { return 1; }
3310    #endif
3311    int
3312    main ()
3313    {
3314    static int test_array [1 - 2 * !(((long) (sizeof (long *))) <= $ac_mid)];
3315    test_array [0] = 0
3316    
3317      ;
3318      return 0;
3319    }
3320    _ACEOF
3321    rm -f conftest.$ac_objext
3322    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323      (eval $ac_compile) 2>&5
3324      ac_status=$?
3325      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326      (exit $ac_status); } &&
3327             { ac_try='test -s conftest.$ac_objext'
3328      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329      (eval $ac_try) 2>&5
3330      ac_status=$?
3331      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332      (exit $ac_status); }; }; then
3333      ac_hi=$ac_mid; break
3334    else
3335      echo "$as_me: failed program was:" >&5
3336    cat conftest.$ac_ext >&5
3337    ac_lo=`expr $ac_mid + 1`
3338                        if test $ac_lo -le $ac_mid; then
3339                          ac_lo= ac_hi=
3340                          break
3341                        fi
3342                        ac_mid=`expr 2 '*' $ac_mid + 1`
3343    fi
3344    rm -f conftest.$ac_objext conftest.$ac_ext
3345      done
3346  else  else
3347    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
3348  #line 1531 "configure"  cat conftest.$ac_ext >&5
3349  #include "confdefs.h"  cat >conftest.$ac_ext <<_ACEOF
3350    #line $LINENO "configure"
3351    #include "confdefs.h"
3352    $ac_includes_default
3353    #ifdef F77_DUMMY_MAIN
3354    #  ifdef __cplusplus
3355         extern "C"
3356    #  endif
3357       int F77_DUMMY_MAIN() { return 1; }
3358    #endif
3359    int
3360    main ()
3361    {
3362    static int test_array [1 - 2 * !(((long) (sizeof (long *))) < 0)];
3363    test_array [0] = 0
3364    
3365      ;
3366      return 0;
3367    }
3368    _ACEOF
3369    rm -f conftest.$ac_objext
3370    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371      (eval $ac_compile) 2>&5
3372      ac_status=$?
3373      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374      (exit $ac_status); } &&
3375             { ac_try='test -s conftest.$ac_objext'
3376      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377      (eval $ac_try) 2>&5
3378      ac_status=$?
3379      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380      (exit $ac_status); }; }; then
3381      ac_hi=-1 ac_mid=-1
3382      while :; do
3383        cat >conftest.$ac_ext <<_ACEOF
3384    #line $LINENO "configure"
3385    #include "confdefs.h"
3386    $ac_includes_default
3387    #ifdef F77_DUMMY_MAIN
3388    #  ifdef __cplusplus
3389         extern "C"
3390    #  endif
3391       int F77_DUMMY_MAIN() { return 1; }
3392    #endif
3393    int
3394    main ()
3395    {
3396    static int test_array [1 - 2 * !(((long) (sizeof (long *))) >= $ac_mid)];
3397    test_array [0] = 0
3398    
3399      ;
3400      return 0;
3401    }
3402    _ACEOF
3403    rm -f conftest.$ac_objext
3404    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405      (eval $ac_compile) 2>&5
3406      ac_status=$?
3407      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408      (exit $ac_status); } &&
3409             { ac_try='test -s conftest.$ac_objext'
3410      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411      (eval $ac_try) 2>&5
3412      ac_status=$?
3413      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414      (exit $ac_status); }; }; then
3415      ac_lo=$ac_mid; break
3416    else
3417      echo "$as_me: failed program was:" >&5
3418    cat conftest.$ac_ext >&5
3419    ac_hi=`expr '(' $ac_mid ')' - 1`
3420                           if test $ac_mid -le $ac_hi; then
3421                             ac_lo= ac_hi=
3422                             break
3423                           fi
3424                           ac_mid=`expr 2 '*' $ac_mid`
3425    fi
3426    rm -f conftest.$ac_objext conftest.$ac_ext
3427      done
3428    else
3429      echo "$as_me: failed program was:" >&5
3430    cat conftest.$ac_ext >&5
3431    ac_lo= ac_hi=
3432    fi
3433    rm -f conftest.$ac_objext conftest.$ac_ext
3434    fi
3435    rm -f conftest.$ac_objext conftest.$ac_ext
3436    # Binary search between lo and hi bounds.
3437    while test "x$ac_lo" != "x$ac_hi"; do
3438      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3439      cat >conftest.$ac_ext <<_ACEOF
3440    #line $LINENO "configure"
3441    #include "confdefs.h"
3442    $ac_includes_default
3443    #ifdef F77_DUMMY_MAIN
3444    #  ifdef __cplusplus
3445         extern "C"
3446    #  endif
3447       int F77_DUMMY_MAIN() { return 1; }
3448    #endif
3449    int
3450    main ()
3451    {
3452    static int test_array [1 - 2 * !(((long) (sizeof (long *))) <= $ac_mid)];
3453    test_array [0] = 0
3454    
3455      ;
3456      return 0;
3457    }
3458    _ACEOF
3459    rm -f conftest.$ac_objext
3460    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3461      (eval $ac_compile) 2>&5
3462      ac_status=$?
3463      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464      (exit $ac_status); } &&
3465             { ac_try='test -s conftest.$ac_objext'
3466      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467      (eval $ac_try) 2>&5
3468      ac_status=$?
3469      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470      (exit $ac_status); }; }; then
3471      ac_hi=$ac_mid
3472    else
3473      echo "$as_me: failed program was:" >&5
3474    cat conftest.$ac_ext >&5
3475    ac_lo=`expr '(' $ac_mid ')' + 1`
3476    fi
3477    rm -f conftest.$ac_objext conftest.$ac_ext
3478    done
3479    case $ac_lo in
3480    ?*) ac_cv_sizeof_long_p=$ac_lo;;
3481    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5
3482    echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;}
3483       { (exit 1); exit 1; }; } ;;
3484    esac
3485    else
3486      if test "$cross_compiling" = yes; then
3487      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3488    echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3489       { (exit 1); exit 1; }; }
3490    else
3491      cat >conftest.$ac_ext <<_ACEOF
3492    #line $LINENO "configure"
3493    #include "confdefs.h"
3494    $ac_includes_default
3495    long longval () { return (long) (sizeof (long *)); }
3496    unsigned long ulongval () { return (long) (sizeof (long *)); }
3497  #include <stdio.h>  #include <stdio.h>
3498  main()  #include <stdlib.h>
3499    #ifdef F77_DUMMY_MAIN
3500    #  ifdef __cplusplus
3501         extern "C"
3502    #  endif
3503       int F77_DUMMY_MAIN() { return 1; }
3504    #endif
3505    int
3506    main ()
3507  {  {
3508    FILE *f=fopen("conftestval", "w");  
3509    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
3510    fprintf(f, "%d\n", sizeof(long *));    if (! f)
3511    exit(0);      exit (1);
3512      if (((long) (sizeof (long *))) < 0)
3513        {
3514          long i = longval ();
3515          if (i != ((long) (sizeof (long *))))
3516            exit (1);
3517          fprintf (f, "%ld\n", i);
3518        }
3519      else
3520        {
3521          unsigned long i = ulongval ();
3522          if (i != ((long) (sizeof (long *))))
3523            exit (1);
3524          fprintf (f, "%lu\n", i);
3525        }
3526      exit (ferror (f) || fclose (f) != 0);
3527    
3528      ;
3529      return 0;
3530  }  }
3531  EOF  _ACEOF
3532  if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3533  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534    ac_cv_sizeof_long_p=`cat conftestval`    (eval $ac_link) 2>&5
3535      ac_status=$?
3536      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3538      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539      (eval $ac_try) 2>&5
3540      ac_status=$?
3541      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542      (exit $ac_status); }; }; then
3543      ac_cv_sizeof_long_p=`cat conftest.val`
3544    else
3545      echo "$as_me: program exited with status $ac_status" >&5
3546    echo "$as_me: failed program was:" >&5
3547    cat conftest.$ac_ext >&5
3548    ( exit $ac_status )
3549    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5
3550    echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;}
3551       { (exit 1); exit 1; }; }
3552    fi
3553    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3554    fi
3555    fi
3556    rm -f conftest.val
3557  else  else
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -fr conftest*  
3558    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
3559  fi  fi
 rm -fr conftest*  
 fi  
   
3560  fi  fi
3561  echo "$ac_t""$ac_cv_sizeof_long_p" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_p" >&5
3562  cat >> confdefs.h <<EOF  echo "${ECHO_T}$ac_cv_sizeof_long_p" >&6
3563    cat >>confdefs.h <<_ACEOF
3564  #define SIZEOF_LONG_P $ac_cv_sizeof_long_p  #define SIZEOF_LONG_P $ac_cv_sizeof_long_p
3565  EOF  _ACEOF
3566    
3567    
3568    
3569    
3570  for ac_hdr in endian.h  for ac_header in endian.h
3571  do  do
3572  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3573  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3574  echo "configure:1566: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
3575  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3576    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3577      echo $ECHO_N "(cached) $ECHO_C" >&6
3578    fi
3579    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3580    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3581    else
3582      # Is the header compilable?
3583    echo "$as_me:$LINENO: checking $ac_header usability" >&5
3584    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3585    cat >conftest.$ac_ext <<_ACEOF
3586    #line $LINENO "configure"
3587    #include "confdefs.h"
3588    $ac_includes_default
3589    #include <$ac_header>
3590    _ACEOF
3591    rm -f conftest.$ac_objext
3592    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593      (eval $ac_compile) 2>&5
3594      ac_status=$?
3595      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596      (exit $ac_status); } &&
3597             { ac_try='test -s conftest.$ac_objext'
3598      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599      (eval $ac_try) 2>&5
3600      ac_status=$?
3601      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602      (exit $ac_status); }; }; then
3603      ac_header_compiler=yes
3604    else
3605      echo "$as_me: failed program was:" >&5
3606    cat conftest.$ac_ext >&5
3607    ac_header_compiler=no
3608    fi
3609    rm -f conftest.$ac_objext conftest.$ac_ext
3610    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3611    echo "${ECHO_T}$ac_header_compiler" >&6
3612    
3613    # Is the header present?
3614    echo "$as_me:$LINENO: checking $ac_header presence" >&5
3615    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3616    cat >conftest.$ac_ext <<_ACEOF
3617    #line $LINENO "configure"
3618    #include "confdefs.h"
3619    #include <$ac_header>
3620    _ACEOF
3621    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3622      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3623      ac_status=$?
3624      egrep -v '^ *\+' conftest.er1 >conftest.err
3625      rm -f conftest.er1
3626      cat conftest.err >&5
3627      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628      (exit $ac_status); } >/dev/null; then
3629      if test -s conftest.err; then
3630        ac_cpp_err=$ac_c_preproc_warn_flag
3631      else
3632        ac_cpp_err=
3633      fi
3634  else  else
3635    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
3636  #line 1571 "configure"  fi
3637  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
3638  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
3639  else  else
3640    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3641    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3642    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
3643  fi  fi
3644  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3645  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3646  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
3647    echo "$ac_t""yes" 1>&6  
3648      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
3649    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
3650  #define $ac_tr_hdr 1    yes:no )
3651  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3652   echo $ac_n "checking "endianness"""... $ac_c" 1>&6  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3653  echo "configure:1597: checking "endianness"" >&5      { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3654    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3655      no:yes )
3656        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3657    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3658        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3659    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3660        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3661    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3662    esac
3663    echo "$as_me:$LINENO: checking for $ac_header" >&5
3664    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3665    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3666      echo $ECHO_N "(cached) $ECHO_C" >&6
3667    else
3668      eval "$as_ac_Header=$ac_header_preproc"
3669    fi
3670    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3671    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3672    
3673    fi
3674    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3675      cat >>confdefs.h <<_ACEOF
3676    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3677    _ACEOF
3678     echo "$as_me:$LINENO: checking \"endianness\"" >&5
3679    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
3680          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3681    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
3682    echo "${ECHO_T}big" >&6
3683  else  else
3684    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3685  #line 1602 "configure"  #line $LINENO "configure"
3686  #include "confdefs.h"  #include "confdefs.h"
3687  #define __ARMEB__  #define __ARMEB__
3688                  #include <endian.h>                  #include <endian.h>
3689                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
3690  EOF  _ACEOF
3691  if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3692  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3694      ac_status=$?
3695      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3697      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698      (eval $ac_try) 2>&5
3699      ac_status=$?
3700      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701      (exit $ac_status); }; }; then
3702      cat >>confdefs.h <<\_ACEOF
3703  #define LITTLE_END 1  #define LITTLE_END 1
3704  EOF  _ACEOF
3705   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
3706  else  echo "${ECHO_T}little" >&6
3707    echo "configure: failed program was:" >&5  else
3708    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3709    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3710    echo "$ac_t""big" 1>&6  cat conftest.$ac_ext >&5
3711    ( exit $ac_status )
3712    echo "$as_me:$LINENO: result: big" >&5
3713    echo "${ECHO_T}big" >&6
3714  fi  fi
3715  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3716  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
3717  fi  fi
3718    
3719  done  done
3720    
3721    
3722    
3723  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
3724  echo "configure:1631: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
3725  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3726    dbegin=0    dbegin=0
3727  else  else
3728    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3729  #line 1636 "configure"  #line $LINENO "configure"
3730  #include "confdefs.h"  #include "confdefs.h"
3731  #include <stdio.h>  #include <stdio.h>
3732              #include <stdlib.h>              #include <stdlib.h>
# Line 1640  main() Line 3734  main()
3734  {  {
3735    char *b = (void *) malloc(1000);    char *b = (void *) malloc(1000);
3736    FILE *fp = fopen("conftest1","w");    FILE *fp = fopen("conftest1","w");
3737    #ifdef _WIN32
3738      fprintf(fp,"_dbegin");
3739    #else
3740    fprintf(fp,"0x%lx",((unsigned long) b) & ~(unsigned long)0xffffff);    fprintf(fp,"0x%lx",((unsigned long) b) & ~(unsigned long)0xffffff);
3741    #endif
3742    fclose(fp);    fclose(fp);
3743    return 0;    return 0;
3744  }  }
3745  EOF  _ACEOF
3746  if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3747  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748      (eval $ac_link) 2>&5
3749      ac_status=$?
3750      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3752      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753      (eval $ac_try) 2>&5
3754      ac_status=$?
3755      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756      (exit $ac_status); }; }; then
3757    dbegin=`cat conftest1`    dbegin=`cat conftest1`
3758  else  else
3759    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3760    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3761    rm -fr conftest*  cat conftest.$ac_ext >&5
3762    dbegin=0  ( exit $ac_status )
3763    dbegin=0
3764  fi  fi
3765  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3766  fi  fi
3767    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
3768  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
3769  /* where data begins */  /* where data begins */
3770    
3771  EOF  _ACEOF
3772    
3773  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
3774    echo "${ECHO_T}got $dbegin" >&6
3775    
3776    
3777  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
3778  echo "configure:1671: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
3779  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3780    cstack_address=0    cstack_address=0
3781  else  else
3782    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3783  #line 1676 "configure"  #line $LINENO "configure"
3784  #include "confdefs.h"  #include "confdefs.h"
3785  #include <stdio.h>  #include <stdio.h>
3786  main()  main()
# Line 1683  main() Line 3791  main()
3791    fclose(fp);    fclose(fp);
3792    return 0;    return 0;
3793  }  }
3794  EOF  _ACEOF
3795  if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3796  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797      (eval $ac_link) 2>&5
3798      ac_status=$?
3799      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3801      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802      (eval $ac_try) 2>&5
3803      ac_status=$?
3804      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805      (exit $ac_status); }; }; then
3806    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
3807  else  else
3808    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3809    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3810    rm -fr conftest*  cat conftest.$ac_ext >&5
3811    cstack_address=0  ( exit $ac_status )
3812    cstack_address=0
3813  fi  fi
3814  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3815  fi  fi
3816    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
3817  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
3818    
3819  EOF  _ACEOF
3820    
3821  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
3822    echo "${ECHO_T}got $cstack_address" >&6
3823    
3824    
3825    
3826  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
3827  echo "configure:1710: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
3828  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3829    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3830    echo "${ECHO_T}no" >&6
3831    
3832  else  else
3833    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3834  #line 1716 "configure"  #line $LINENO "configure"
3835  #include "confdefs.h"  #include "confdefs.h"
3836  #include <stdio.h>  #include <stdio.h>
3837  main()  main()
# Line 1721  main() Line 3840  main()
3840    return 1;    return 1;
3841  }  }
3842    
3843  EOF  _ACEOF
3844  if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3845  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3847      ac_status=$?
3848      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3850      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851      (eval $ac_try) 2>&5
3852      ac_status=$?
3853      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854      (exit $ac_status); }; }; then
3855      cat >>confdefs.h <<\_ACEOF
3856  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
3857  EOF  _ACEOF
3858    
3859  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
3860    echo "${ECHO_T}yes" >&6
3861  else  else
3862    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3863    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3864    rm -fr conftest*  cat conftest.$ac_ext >&5
3865    echo "$ac_t""no" 1>&6  ( exit $ac_status )
3866    echo "$as_me:$LINENO: result: no" >&5
3867    echo "${ECHO_T}no" >&6
3868  fi  fi
3869  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3870  fi  fi
3871    
3872    
3873    
   
3874  # readline  # readline
3875  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
3876  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
3877    enableval="$enable_readline"    enableval="$enable_readline"
3878    :  
3879  else  else
3880    enable_readline="yes"    enable_readline="yes"
3881  fi  fi;
   
3882    
3883  # ansi lisp  # ansi lisp
3884  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
3885  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
3886    enableval="$enable_ansi"    enableval="$enable_ansi"
3887    :  
3888  else  else
3889    enable_ansi="no"    enable_ansi="no"
3890  fi  fi;
   
3891    
3892  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
3893          FLISP=saved_ansi_gcl;          FLISP=saved_ansi_gcl;
# Line 1770  fi Line 3898  fi
3898    
3899    
3900  # pagewidth  # pagewidth
3901  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
3902  echo "configure:1775: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
3903  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3904    PAGEWIDTH=0    PAGEWIDTH=0
3905  else  else
3906    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3907  #line 1780 "configure"  #line $LINENO "configure"
3908  #include "confdefs.h"  #include "confdefs.h"
3909  #include <stdio.h>  #include <stdio.h>
3910              #include <unistd.h>              #include <unistd.h>
3911  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
3912              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
3913              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
3914              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
3915              return 0;}              return 0;}
3916  EOF  _ACEOF
3917  if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3918  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919      (eval $ac_link) 2>&5
3920      ac_status=$?
3921      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3923      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924      (eval $ac_try) 2>&5
3925      ac_status=$?
3926      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927      (exit $ac_status); }; }; then
3928    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
3929  else  else
3930    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3931    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3932    rm -fr conftest*  cat conftest.$ac_ext >&5
3933    PAGEWIDTH=0  ( exit $ac_status )
3934  fi  PAGEWIDTH=0
3935  rm -fr conftest*  fi
3936  fi  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3937    fi
3938  echo "$ac_t""$PAGEWIDTH" 1>&6  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
3939  cat >> confdefs.h <<EOF  echo "${ECHO_T}$PAGEWIDTH" >&6
3940    cat >>confdefs.h <<_ACEOF
3941  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
3942  EOF  _ACEOF
3943    
3944    
3945    
# Line 1810  EOF Line 3948  EOF
3948    
3949    
3950  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
3951    
3952  for ac_func in getcwd  for ac_func in getcwd
3953  do  do
3954  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3955  echo "configure:1817: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
3956  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3957    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
3958      echo $ECHO_N "(cached) $ECHO_C" >&6
3959  else  else
3960    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3961  #line 1822 "configure"  #line $LINENO "configure"
3962  #include "confdefs.h"  #include "confdefs.h"
3963  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3964      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
3965  #include <assert.h>  #include <assert.h>
3966  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3967    #ifdef __cplusplus
3968    extern "C"
3969    #endif
3970  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3971      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3972  char $ac_func();  char $ac_func ();
3973    char (*f) ();
3974  int main() {  
3975    #ifdef F77_DUMMY_MAIN
3976    #  ifdef __cplusplus
3977         extern "C"
3978    #  endif
3979       int F77_DUMMY_MAIN() { return 1; }
3980    #endif
3981    int
3982    main ()
3983    {
3984  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
3985      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
3986      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
3987  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3988  choke me  choke me
3989  #else  #else
3990  $ac_func();  f = $ac_func;
3991  #endif  #endif
3992    
3993  ; return 0; }    ;
3994  EOF    return 0;
3995  if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3996    rm -rf conftest*  _ACEOF
3997    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
3998  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4000    cat conftest.$ac_ext >&5    ac_status=$?
4001    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
4003  fi           { ac_try='test -s conftest$ac_exeext'
4004  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005  fi    (eval $ac_try) 2>&5
4006      ac_status=$?
4007      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008      (exit $ac_status); }; }; then
4009      eval "$as_ac_var=yes"
4010    else
4011      echo "$as_me: failed program was:" >&5
4012    cat conftest.$ac_ext >&5
4013    eval "$as_ac_var=no"
4014    fi
4015    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4016    fi
4017    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4018    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4019    if test `eval echo '${'$as_ac_var'}'` = yes; then
4020      cat >>confdefs.h <<_ACEOF
4021    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4022    _ACEOF
4023    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
4024  fi  fi
4025  done  done
4026    
4027    
4028  for ac_func in getwd  for ac_func in getwd
4029  do  do
4030  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4031  echo "configure:1872: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
4032  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4033    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
4034      echo $ECHO_N "(cached) $ECHO_C" >&6
4035  else  else
4036    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4037  #line 1877 "configure"  #line $LINENO "configure"
4038  #include "confdefs.h"  #include "confdefs.h"
4039  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4040      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
4041  #include <assert.h>  #include <assert.h>
4042  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4043    #ifdef __cplusplus
4044    extern "C"
4045    #endif
4046  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4047      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4048  char $ac_func();  char $ac_func ();
4049    char (*f) ();
4050  int main() {  
4051    #ifdef F77_DUMMY_MAIN
4052    #  ifdef __cplusplus
4053         extern "C"
4054    #  endif
4055       int F77_DUMMY_MAIN() { return 1; }
4056    #endif
4057    int
4058    main ()
4059    {
4060  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4061      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4062      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4063  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4064  choke me  choke me
4065  #else  #else
4066  $ac_func();  f = $ac_func;
4067  #endif  #endif
4068    
4069  ; return 0; }    ;
4070  EOF    return 0;
4071  if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4072    rm -rf conftest*  _ACEOF
4073    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4074  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4076    cat conftest.$ac_ext >&5    ac_status=$?
4077    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
4079  fi           { ac_try='test -s conftest$ac_exeext'
4080  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081  fi    (eval $ac_try) 2>&5
4082      ac_status=$?
4083      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084      (exit $ac_status); }; }; then
4085      eval "$as_ac_var=yes"
4086    else
4087      echo "$as_me: failed program was:" >&5
4088    cat conftest.$ac_ext >&5
4089    eval "$as_ac_var=no"
4090    fi
4091    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4092    fi
4093    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4094    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4095    if test `eval echo '${'$as_ac_var'}'` = yes; then
4096      cat >>confdefs.h <<_ACEOF
4097    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4098    _ACEOF
4099    
 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
4100  fi  fi
4101  done  done
4102    
4103  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
4104  echo "configure:1925: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
4105  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
4106    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4107  else  else
4108    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4109  #line 1930 "configure"  #line $LINENO "configure"
4110  #include "confdefs.h"  #include "confdefs.h"
4111  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4112      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
4113  #include <assert.h>  #include <assert.h>
4114  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4115    #ifdef __cplusplus
4116    extern "C"
4117    #endif
4118  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4119      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4120  char uname();  char uname ();
4121    char (*f) ();
4122  int main() {  
4123    #ifdef F77_DUMMY_MAIN
4124    #  ifdef __cplusplus
4125         extern "C"
4126    #  endif
4127       int F77_DUMMY_MAIN() { return 1; }
4128    #endif
4129    int
4130    main ()
4131    {
4132  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4133      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4134      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4135  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
4136  choke me  choke me
4137  #else  #else
4138  uname();  f = uname;
4139  #endif  #endif
4140    
4141  ; return 0; }    ;
4142  EOF    return 0;
4143  if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4144    rm -rf conftest*  _ACEOF
4145    eval "ac_cv_func_uname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4146  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4148    cat conftest.$ac_ext >&5    ac_status=$?
4149    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150    eval "ac_cv_func_uname=no"    (exit $ac_status); } &&
4151  fi           { ac_try='test -s conftest$ac_exeext'
4152  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153  fi    (eval $ac_try) 2>&5
4154      ac_status=$?
4155  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4157      ac_cv_func_uname=yes
4158    else
4159      echo "$as_me: failed program was:" >&5
4160    cat conftest.$ac_ext >&5
4161    ac_cv_func_uname=no
4162    fi
4163    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4164    fi
4165    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
4166    echo "${ECHO_T}$ac_cv_func_uname" >&6
4167    if test $ac_cv_func_uname = yes; then
4168    :    :
4169  else  else
4170    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
4171  #define NO_UNAME 1  #define NO_UNAME 1
4172  EOF  _ACEOF
4173    
4174  fi  fi
4175    
4176  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
4177  echo "configure:1977: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
4178  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
4179    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4180  else  else
4181    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4182  #line 1982 "configure"  #line $LINENO "configure"
4183  #include "confdefs.h"  #include "confdefs.h"
4184  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4185      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
4186  #include <assert.h>  #include <assert.h>
4187  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4188    #ifdef __cplusplus
4189    extern "C"
4190    #endif
4191  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4192      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4193  char gettimeofday();  char gettimeofday ();
4194    char (*f) ();
4195  int main() {  
4196    #ifdef F77_DUMMY_MAIN
4197    #  ifdef __cplusplus
4198         extern "C"
4199    #  endif
4200       int F77_DUMMY_MAIN() { return 1; }
4201    #endif
4202    int
4203    main ()
4204    {
4205  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4206      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4207      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4208  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
4209  choke me  choke me
4210  #else  #else
4211  gettimeofday();  f = gettimeofday;
4212  #endif  #endif
4213    
4214  ; return 0; }    ;
4215  EOF    return 0;
4216  if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4217    rm -rf conftest*  _ACEOF
4218    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4219  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4221    cat conftest.$ac_ext >&5    ac_status=$?
4222    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
4224  fi           { ac_try='test -s conftest$ac_exeext'
4225  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  fi    (eval $ac_try) 2>&5
4227      ac_status=$?
4228  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4230      ac_cv_func_gettimeofday=yes
4231    else
4232      echo "$as_me: failed program was:" >&5
4233    cat conftest.$ac_ext >&5
4234    ac_cv_func_gettimeofday=no
4235    fi
4236    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4237    fi
4238    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
4239    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
4240    if test $ac_cv_func_gettimeofday = yes; then
4241    :    :
4242  else  else
4243    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
4244  #define NO_GETTOD 1  #define NO_GETTOD 1
4245  EOF  _ACEOF
4246    
4247  fi  fi
4248    
4249    
4250    
4251  for ac_hdr in sys/ioctl.h  
4252    for ac_header in sys/ioctl.h
4253  do  do
4254  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4255  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4256  echo "configure:2034: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
4257  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4258    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259      echo $ECHO_N "(cached) $ECHO_C" >&6
4260    fi
4261    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4262    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4263    else
4264      # Is the header compilable?
4265    echo "$as_me:$LINENO: checking $ac_header usability" >&5
4266    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4267    cat >conftest.$ac_ext <<_ACEOF
4268    #line $LINENO "configure"
4269    #include "confdefs.h"
4270    $ac_includes_default
4271    #include <$ac_header>
4272    _ACEOF
4273    rm -f conftest.$ac_objext
4274    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275      (eval $ac_compile) 2>&5
4276      ac_status=$?
4277      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278      (exit $ac_status); } &&
4279             { ac_try='test -s conftest.$ac_objext'
4280      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281      (eval $ac_try) 2>&5
4282      ac_status=$?
4283      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284      (exit $ac_status); }; }; then
4285      ac_header_compiler=yes
4286    else
4287      echo "$as_me: failed program was:" >&5
4288    cat conftest.$ac_ext >&5
4289    ac_header_compiler=no
4290    fi
4291    rm -f conftest.$ac_objext conftest.$ac_ext
4292    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4293    echo "${ECHO_T}$ac_header_compiler" >&6
4294    
4295    # Is the header present?
4296    echo "$as_me:$LINENO: checking $ac_header presence" >&5
4297    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4298    cat >conftest.$ac_ext <<_ACEOF
4299    #line $LINENO "configure"
4300    #include "confdefs.h"
4301    #include <$ac_header>
4302    _ACEOF
4303    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4304      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4305      ac_status=$?
4306      egrep -v '^ *\+' conftest.er1 >conftest.err
4307      rm -f conftest.er1
4308      cat conftest.err >&5
4309      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310      (exit $ac_status); } >/dev/null; then
4311      if test -s conftest.err; then
4312        ac_cpp_err=$ac_c_preproc_warn_flag
4313      else
4314        ac_cpp_err=
4315      fi
4316  else  else
4317    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
4318  #line 2039 "configure"  fi
4319  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
4320  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
4321  else  else
4322    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
4323    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4324    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
4325  fi  fi
4326  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
4327  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4328  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
4329    echo "$ac_t""yes" 1>&6  
4330      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
4331    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
4332  #define $ac_tr_hdr 1    yes:no )
4333  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4334    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4335        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4336    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4337      no:yes )
4338        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4339    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4340        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4341    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4342        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4343    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4344    esac
4345    echo "$as_me:$LINENO: checking for $ac_header" >&5
4346    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4347    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4348      echo $ECHO_N "(cached) $ECHO_C" >&6
4349  else  else
4350    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
4351    fi
4352    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4353    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4354    
4355    fi
4356    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4357      cat >>confdefs.h <<_ACEOF
4358    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4359    _ACEOF
4360    
4361  fi  fi
4362    
4363  done  done
4364    
4365    
# Line 2079  done Line 4375  done
4375  #          declare it.  #          declare it.
4376  #--------------------------------------------------------------------  #--------------------------------------------------------------------
4377    
4378  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
4379  echo "configure:2084: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
4380  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
4381    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4382  else  else
4383    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4384  #line 2089 "configure"  #line $LINENO "configure"
4385  #include "confdefs.h"  #include "confdefs.h"
4386  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4387      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
4388  #include <assert.h>  #include <assert.h>
4389  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4390    #ifdef __cplusplus
4391    extern "C"
4392    #endif
4393  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4394      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4395  char BSDgettimeofday();  char BSDgettimeofday ();
4396    char (*f) ();
4397  int main() {  
4398    #ifdef F77_DUMMY_MAIN
4399    #  ifdef __cplusplus
4400         extern "C"
4401    #  endif
4402       int F77_DUMMY_MAIN() { return 1; }
4403    #endif
4404    int
4405    main ()
4406    {
4407  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4408      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4409      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4410  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
4411  choke me  choke me
4412  #else  #else
4413  BSDgettimeofday();  f = BSDgettimeofday;
4414  #endif  #endif
4415    
4416  ; return 0; }    ;
4417  EOF    return 0;
4418  if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4419    rm -rf conftest*  _ACEOF
4420    eval "ac_cv_func_BSDgettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4421  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4423    cat conftest.$ac_ext >&5    ac_status=$?
4424    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425    eval "ac_cv_func_BSDgettimeofday=no"    (exit $ac_status); } &&
4426  fi           { ac_try='test -s conftest$ac_exeext'
4427  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428  fi    (eval $ac_try) 2>&5
4429      ac_status=$?
4430  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4432    cat >> confdefs.h <<\EOF    ac_cv_func_BSDgettimeofday=yes
4433    else
4434      echo "$as_me: failed program was:" >&5
4435    cat conftest.$ac_ext >&5
4436    ac_cv_func_BSDgettimeofday=no
4437    fi
4438    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4439    fi
4440    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
4441    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
4442    if test $ac_cv_func_BSDgettimeofday = yes; then
4443      cat >>confdefs.h <<\_ACEOF
4444  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
4445  EOF  _ACEOF
4446    
4447  else  else
4448    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
4449  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
4450  echo "configure:2133: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
4451  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4452  else  else
4453    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4454  #line 2138 "configure"  #line $LINENO "configure"
4455  #include "confdefs.h"  #include "confdefs.h"
4456  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4457      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
4458  #include <assert.h>  #include <assert.h>
4459  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4460    #ifdef __cplusplus
4461    extern "C"
4462    #endif
4463  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4464      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4465  char gettimeofday();  char gettimeofday ();
4466    char (*f) ();
4467  int main() {  
4468    #ifdef F77_DUMMY_MAIN
4469    #  ifdef __cplusplus
4470         extern "C"
4471    #  endif
4472       int F77_DUMMY_MAIN() { return 1; }
4473    #endif
4474    int
4475    main ()
4476    {
4477  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4478      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4479      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4480  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
4481  choke me  choke me
4482  #else  #else
4483  gettimeofday();  f = gettimeofday;
4484  #endif  #endif
4485    
4486  ; return 0; }    ;
4487  EOF    return 0;
4488  if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4489    rm -rf conftest*  _ACEOF
4490    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4491  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4493    cat conftest.$ac_ext >&5    ac_status=$?
4494    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
4496  fi           { ac_try='test -s conftest$ac_exeext'
4497  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  fi    (eval $ac_try) 2>&5
4499      ac_status=$?
4500  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
4502      ac_cv_func_gettimeofday=yes
4503    else
4504      echo "$as_me: failed program was:" >&5
4505    cat conftest.$ac_ext >&5
4506    ac_cv_func_gettimeofday=no
4507    fi
4508    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509    fi
4510    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
4511    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
4512    if test $ac_cv_func_gettimeofday = yes; then
4513    :    :
4514  else  else
4515    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
4516  #define NO_GETTOD 1  #define NO_GETTOD 1
4517  EOF  _ACEOF
4518    
4519  fi  fi
4520    
4521  fi  fi
4522    
4523    
4524  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
4525  echo "configure:2188: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
4526    
4527  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4528  #line 2191 "configure"  #line $LINENO "configure"
4529  #include "confdefs.h"  #include "confdefs.h"
4530  #include <sys/time.h>  #include <sys/time.h>
4531  EOF  
4532    _ACEOF
4533  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534    egrep "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
4535    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
4536    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
4537  else  else
4538    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
4539    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
4540                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
4541  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
4542  EOF  _ACEOF
4543    
4544  fi  fi
4545  rm -f conftest*  rm -f conftest*
4546    
4547    
4548    
4549  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
4550  echo "configure:2212: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
4551  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
4552  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4553  else  else
4554    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4555  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
4556  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4557  #line 2220 "configure"  #line $LINENO "configure"
4558  #include "confdefs.h"  #include "confdefs.h"
4559    
4560  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4561    #ifdef __cplusplus
4562    extern "C"
4563    #endif
4564  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4565      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4566  char sin();  char sin ();
4567    #ifdef F77_DUMMY_MAIN
4568  int main() {  #  ifdef __cplusplus
4569  sin()       extern "C"
4570  ; return 0; }  #  endif
4571  EOF     int F77_DUMMY_MAIN() { return 1; }
4572  if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4573    rm -rf conftest*  int
4574    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4575  else  {
4576    echo "configure: failed program was:" >&5  sin ();
4577    cat conftest.$ac_ext >&5    ;
4578    rm -rf conftest*    return 0;
4579    eval "ac_cv_lib_$ac_lib_var=no"  }
4580  fi  _ACEOF
4581  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4582  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583      (eval $ac_link) 2>&5
4584  fi    ac_status=$?
4585  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4587             { ac_try='test -s conftest$ac_exeext'
4588      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589      (eval $ac_try) 2>&5
4590      ac_status=$?
4591      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592      (exit $ac_status); }; }; then
4593      ac_cv_lib_m_sin=yes
4594    else
4595      echo "$as_me: failed program was:" >&5
4596    cat conftest.$ac_ext >&5
4597    ac_cv_lib_m_sin=no
4598    fi
4599    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4600    LIBS=$ac_check_lib_save_LIBS
4601    fi
4602    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4603    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
4604    if test $ac_cv_lib_m_sin = yes; then
4605    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
4606  else  else
4607    echo "$ac_t""no" 1>&6    true
 true  
4608  fi  fi
4609    
4610  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
4611  echo "configure:2253: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
4612  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
4613  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
4614  else  else
4615    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4616  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
4617  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4618  #line 2261 "configure"  #line $LINENO "configure"
4619  #include "confdefs.h"  #include "confdefs.h"
4620    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4621    
4622  fi  #ifdef F77_DUMMY_MAIN
4623  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4624    echo "$ac_t""yes" 1>&6       extern "C"
4625    #  endif
4626       int F77_DUMMY_MAIN() { return 1; }
4627    #endif
4628    int
4629    main ()
4630    {
4631    main ();
4632      ;
4633      return 0;
4634    }
4635    _ACEOF
4636    rm -f conftest.$ac_objext conftest$ac_exeext
4637    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638      (eval $ac_link) 2>&5
4639      ac_status=$?
4640      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641      (exit $ac_status); } &&
4642             { ac_try='test -s conftest$ac_exeext'
4643      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644      (eval $ac_try) 2>&5
4645      ac_status=$?
4646      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647      (exit $ac_status); }; }; then
4648      ac_cv_lib_mingwex_main=yes
4649    else
4650      echo "$as_me: failed program was:" >&5
4651    cat conftest.$ac_ext >&5
4652    ac_cv_lib_mingwex_main=no
4653    fi
4654    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4655    LIBS=$ac_check_lib_save_LIBS
4656    fi
4657    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
4658    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
4659    if test $ac_cv_lib_mingwex_main = yes; then
4660    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
4661  else  else
4662    echo "$ac_t""no" 1>&6    true
 true  
4663  fi  fi
4664    
4665    
4666  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
4667  # basically works for now.  CM  # basically works for now.  CM
4668  #  #
4669  for ac_hdr in math.h  
4670    for ac_header in math.h
4671  do  do
4672  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4673  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4674  echo "configure:2297: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
4675  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4676    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4677      echo $ECHO_N "(cached) $ECHO_C" >&6
4678    fi
4679    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4680    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4681    else
4682      # Is the header compilable?
4683    echo "$as_me:$LINENO: checking $ac_header usability" >&5
4684    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4685    cat >conftest.$ac_ext <<_ACEOF
4686    #line $LINENO "configure"
4687    #include "confdefs.h"
4688    $ac_includes_default
4689    #include <$ac_header>
4690    _ACEOF
4691    rm -f conftest.$ac_objext
4692    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693      (eval $ac_compile) 2>&5
4694      ac_status=$?
4695      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696      (exit $ac_status); } &&
4697             { ac_try='test -s conftest.$ac_objext'
4698      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699      (eval $ac_try) 2>&5
4700      ac_status=$?
4701      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702      (exit $ac_status); }; }; then
4703      ac_header_compiler=yes
4704    else
4705      echo "$as_me: failed program was:" >&5
4706    cat conftest.$ac_ext >&5
4707    ac_header_compiler=no
4708    fi
4709    rm -f conftest.$ac_objext conftest.$ac_ext
4710    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4711    echo "${ECHO_T}$ac_header_compiler" >&6
4712    
4713    # Is the header present?
4714    echo "$as_me:$LINENO: checking $ac_header presence" >&5
4715    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4716    cat >conftest.$ac_ext <<_ACEOF
4717    #line $LINENO "configure"
4718    #include "confdefs.h"
4719    #include <$ac_header>
4720    _ACEOF
4721    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723      ac_status=$?
4724      egrep -v '^ *\+' conftest.er1 >conftest.err
4725      rm -f conftest.er1
4726      cat conftest.err >&5
4727      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728      (exit $ac_status); } >/dev/null; then
4729      if test -s conftest.err; then
4730        ac_cpp_err=$ac_c_preproc_warn_flag
4731      else
4732        ac_cpp_err=
4733      fi
4734  else  else
4735    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
4736  #line 2302 "configure"  fi
4737  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
4738  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
4739  else  else
4740    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
4741    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4742    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
4743  fi  fi
4744  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
4745  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4746  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
4747    echo "$ac_t""yes" 1>&6  
4748      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
4749    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
4750  #define $ac_tr_hdr 1    yes:no )
4751  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4752   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4753        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4754    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4755      no:yes )
4756        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4757    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4758        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4759    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4760        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4762    esac
4763    echo "$as_me:$LINENO: checking for $ac_header" >&5
4764    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4765    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4766      echo $ECHO_N "(cached) $ECHO_C" >&6
4767    else
4768      eval "$as_ac_Header=$ac_header_preproc"
4769    fi
4770    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4771    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4772    
4773    fi
4774    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4775      cat >>confdefs.h <<_ACEOF
4776    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777    _ACEOF
4778     cat >>confdefs.h <<\_ACEOF
4779  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
4780  EOF  _ACEOF
4781    
 else  
   echo "$ac_t""no" 1>&6  
4782  fi  fi
4783    
4784  done  done
4785    
4786    
4787  #  #
4788  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
4789  #  #
4790  for ac_hdr in values.h  
4791    for ac_header in values.h
4792  do  do
4793  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4794  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795  echo "configure:2344: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
4796  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4797    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798      echo $ECHO_N "(cached) $ECHO_C" >&6
4799    fi
4800    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4801    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4802    else
4803      # Is the header compilable?
4804    echo "$as_me:$LINENO: checking $ac_header usability" >&5
4805    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4806    cat >conftest.$ac_ext <<_ACEOF
4807    #line $LINENO "configure"
4808    #include "confdefs.h"
4809    $ac_includes_default
4810    #include <$ac_header>
4811    _ACEOF
4812    rm -f conftest.$ac_objext
4813    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814      (eval $ac_compile) 2>&5
4815      ac_status=$?
4816      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817      (exit $ac_status); } &&
4818             { ac_try='test -s conftest.$ac_objext'
4819      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820      (eval $ac_try) 2>&5
4821      ac_status=$?
4822      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823      (exit $ac_status); }; }; then
4824      ac_header_compiler=yes
4825    else
4826      echo "$as_me: failed program was:" >&5
4827    cat conftest.$ac_ext >&5
4828    ac_header_compiler=no
4829    fi
4830    rm -f conftest.$ac_objext conftest.$ac_ext
4831    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4832    echo "${ECHO_T}$ac_header_compiler" >&6
4833    
4834    # Is the header present?
4835    echo "$as_me:$LINENO: checking $ac_header presence" >&5
4836    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4837    cat >conftest.$ac_ext <<_ACEOF
4838    #line $LINENO "configure"
4839    #include "confdefs.h"
4840    #include <$ac_header>
4841    _ACEOF
4842    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844      ac_status=$?
4845      egrep -v '^ *\+' conftest.er1 >conftest.err
4846      rm -f conftest.er1
4847      cat conftest.err >&5
4848      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849      (exit $ac_status); } >/dev/null; then
4850      if test -s conftest.err; then
4851        ac_cpp_err=$ac_c_preproc_warn_flag
4852      else
4853        ac_cpp_err=
4854      fi
4855  else  else
4856    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
4857  #line 2349 "configure"  fi
4858  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
4859  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
4860  else  else
4861    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
4862    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4863    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
4864  fi  fi
4865  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
4866  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
4868    echo "$ac_t""yes" 1>&6  
4869      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
4870    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
4871  #define $ac_tr_hdr 1    yes:no )
4872  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4873   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4875    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4876      no:yes )
4877        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4878    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4879        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4880    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4881        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4882    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4883    esac
4884    echo "$as_me:$LINENO: checking for $ac_header" >&5
4885    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4886    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887      echo $ECHO_N "(cached) $ECHO_C" >&6
4888    else
4889      eval "$as_ac_Header=$ac_header_preproc"
4890    fi
4891    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4892    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4893    
4894    fi
4895    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4896      cat >>confdefs.h <<_ACEOF
4897    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4898    _ACEOF
4899     cat >>confdefs.h <<\_ACEOF
4900  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
4901  EOF  _ACEOF
4902    
 else  
   echo "$ac_t""no" 1>&6  
4903  fi  fi
4904    
4905  done  done
4906    
4907    
# Line 2385  done Line 4910  done
4910  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
4911  # test makes sense.  CM  # test makes sense.  CM
4912  #  #
4913  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
4914  echo "configure:2390: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
4915  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4916    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
4917    echo "${ECHO_T}no" >&6
4918  else  else
4919    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4920  #line 2395 "configure"  #line $LINENO "configure"
4921  #include "confdefs.h"  #include "confdefs.h"
4922  #define _GNU_SOURCE  #define _GNU_SOURCE
4923              #include <math.h>              #include <math.h>
# Line 2399  else Line 4925  else
4925                  float f;                  float f;
4926                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
4927                  }                  }
4928  EOF  _ACEOF
4929  if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4930  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
4932      ac_status=$?
4933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4935      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936      (eval $ac_try) 2>&5
4937      ac_status=$?
4938      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939      (exit $ac_status); }; }; then
4940      cat >>confdefs.h <<\_ACEOF
4941  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
4942  EOF  _ACEOF
4943   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
4944  else  echo "${ECHO_T}yes" >&6
4945    echo "configure: failed program was:" >&5  else
4946    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
4947    rm -fr conftest*  echo "$as_me: failed program was:" >&5
4948    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
4949  echo "configure:2415: checking for fpclass in ieeefp.h" >&5  ( exit $ac_status )
4950    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
4951    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
4952                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4953    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
4954    echo "${ECHO_T}no" >&6
4955  else  else
4956    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4957  #line 2420 "configure"  #line $LINENO "configure"
4958  #include "confdefs.h"  #include "confdefs.h"
4959  #include <ieeefp.h>  #include <ieeefp.h>
4960                              int main() {                              int main() {
4961                                  float f;                                  float f;
4962                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
4963                                  }                                  }
4964  EOF  _ACEOF
4965  if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
4966  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
4968      ac_status=$?
4969      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972      (eval $ac_try) 2>&5
4973      ac_status=$?
4974      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975      (exit $ac_status); }; }; then
4976      cat >>confdefs.h <<\_ACEOF
4977  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
4978  EOF  _ACEOF
4979   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
4980    echo "${ECHO_T}yes" >&6
4981  else  else
4982    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
4983    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
4984    rm -fr conftest*  cat conftest.$ac_ext >&5
4985    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
4986    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
4987    echo "${ECHO_T}no" >&6
4988  fi  fi
4989  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4990  fi  fi
4991    
           
4992  fi  fi
4993  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994  fi  fi
4995    
4996    echo "$as_me:$LINENO: checking for isfinite" >&5
4997  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:2450: checking for isfinite" >&5  
4998  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4999    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
5000    echo "${ECHO_T}no" >&6
5001  else  else
5002    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5003  #line 2455 "configure"  #line $LINENO "configure"
5004  #include "confdefs.h"  #include "confdefs.h"
5005  #define _GNU_SOURCE  #define _GNU_SOURCE
5006              #include <math.h>              #include <math.h>
# Line 2459  else Line 5008  else
5008                  float f;                  float f;
5009                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
5010                  }                  }
5011  EOF  _ACEOF
5012  if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5013  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
5015      ac_status=$?
5016      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019      (eval $ac_try) 2>&5
5020      ac_status=$?
5021      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022      (exit $ac_status); }; }; then
5023      cat >>confdefs.h <<\_ACEOF
5024  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
5025  EOF  _ACEOF
5026   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
5027  else  echo "${ECHO_T}yes" >&6
5028    echo "configure: failed program was:" >&5  else
5029    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
5030    rm -fr conftest*  echo "$as_me: failed program was:" >&5
5031    echo $ac_n "checking for finite()""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
5032  echo "configure:2475: checking for finite()" >&5  ( exit $ac_status )
5033    echo "$as_me:$LINENO: checking for finite()" >&5
5034    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
5035                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5036    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
5037    echo "${ECHO_T}no" >&6
5038  else  else
5039    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5040  #line 2480 "configure"  #line $LINENO "configure"
5041  #include "confdefs.h"  #include "confdefs.h"
5042  #include <math.h>  #include <math.h>
5043                              int main() {                              int main() {
5044                                  float f;                                  float f;
5045                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
5046                                  }                                  }
5047  EOF  _ACEOF
5048  if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5049  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
5051      ac_status=$?
5052      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055      (eval $ac_try) 2>&5
5056      ac_status=$?
5057      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058      (exit $ac_status); }; }; then
5059      cat >>confdefs.h <<\_ACEOF
5060  #define HAVE_FINITE 1  #define HAVE_FINITE 1
5061  EOF  _ACEOF
5062   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
5063    echo "${ECHO_T}yes" >&6
5064  else  else
5065    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5066    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5067    rm -fr conftest*  cat conftest.$ac_ext >&5
5068    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
5069    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
5070    echo "${ECHO_T}no" >&6
5071  fi  fi
5072  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5073  fi  fi
5074    
           
5075  fi  fi
5076  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077  fi  fi
5078    
5079    
5080    
   
5081  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5082  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
5083  #       The order here is important, so that they end up in the right  #       The order here is important, so that they end up in the right
# Line 2524  fi Line 5095  fi
5095  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
5096  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
5097  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5098  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
5099  echo "configure:2529: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
5100  tcl_checkBoth=0  tcl_checkBoth=0
5101  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
5102  echo "configure:2532: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
5103  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
5104    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5105  else  else
5106    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5107  #line 2537 "configure"  #line $LINENO "configure"
5108  #include "confdefs.h"  #include "confdefs.h"
5109  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5110      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
5111  #include <assert.h>  #include <assert.h>
5112  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5113    #ifdef __cplusplus
5114    extern "C"
5115    #endif
5116  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5117      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5118  char connect();  char connect ();
5119    char (*f) ();
5120  int main() {  
5121    #ifdef F77_DUMMY_MAIN
5122    #  ifdef __cplusplus
5123         extern "C"
5124    #  endif
5125       int F77_DUMMY_MAIN() { return 1; }
5126    #endif
5127    int
5128    main ()
5129    {
5130  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5131      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5132      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5133  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
5134  choke me  choke me
5135  #else  #else
5136  connect();  f = connect;
5137  #endif  #endif
5138    
5139  ; return 0; }    ;
5140  EOF    return 0;
5141  if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5142    rm -rf conftest*  _ACEOF
5143    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5144  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5145    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5146    cat conftest.$ac_ext >&5    ac_status=$?
5147    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
5149  fi           { ac_try='test -s conftest$ac_exeext'
5150  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151  fi    (eval $ac_try) 2>&5
5152      ac_status=$?
5153  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5155      ac_cv_func_connect=yes
5156    else
5157      echo "$as_me: failed program was:" >&5
5158    cat conftest.$ac_ext >&5
5159    ac_cv_func_connect=no
5160    fi
5161    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5162    fi
5163    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5164    echo "${ECHO_T}$ac_cv_func_connect" >&6
5165    if test $ac_cv_func_connect = yes; then
5166    tcl_checkSocket=0    tcl_checkSocket=0
5167  else  else
5168    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
5169  fi  fi
5170    
5171  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
5172      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5173  echo "configure:2582: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5174  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
5175  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
5176  else  else
5177    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5178  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
5179  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5180  #line 2590 "configure"  #line $LINENO "configure"
5181  #include "confdefs.h"  #include "confdefs.h"
5182    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5183    
5184  fi  #ifdef F77_DUMMY_MAIN
5185  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
5186    echo "$ac_t""yes" 1>&6       extern "C"
5187    #  endif
5188       int F77_DUMMY_MAIN() { return 1; }
5189    #endif
5190    int
5191    main ()
5192    {
5193    main ();
5194      ;
5195      return 0;
5196    }
5197    _ACEOF
5198    rm -f conftest.$ac_objext conftest$ac_exeext
5199    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200      (eval $ac_link) 2>&5
5201      ac_status=$?
5202      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203      (exit $ac_status); } &&
5204             { ac_try='test -s conftest$ac_exeext'
5205      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206      (eval $ac_try) 2>&5
5207      ac_status=$?
5208      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209      (exit $ac_status); }; }; then
5210      ac_cv_lib_socket_main=yes
5211    else
5212      echo "$as_me: failed program was:" >&5
5213    cat conftest.$ac_ext >&5
5214    ac_cv_lib_socket_main=no
5215    fi
5216    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5217    LIBS=$ac_check_lib_save_LIBS
5218    fi
5219    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5220    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5221    if test $ac_cv_lib_socket_main = yes; then
5222    LIBS="$LIBS -lsocket"    LIBS="$LIBS -lsocket"
5223  else  else
5224    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
5225  fi  fi
5226    
5227  fi  fi
# Line 2620  fi Line 5230  fi
5230  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
5231      tk_oldLibs=$LIBS      tk_oldLibs=$LIBS
5232      LIBS="$LIBS -lsocket -lnsl"      LIBS="$LIBS -lsocket -lnsl"
5233      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
5234  echo "configure:2625: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
5235  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
5236    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5237  else  else
5238    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5239  #line 2630 "configure"  #line $LINENO "configure"
5240  #include "confdefs.h"  #include "confdefs.h"
5241  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5242      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
5243  #include <assert.h>  #include <assert.h>
5244  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5245    #ifdef __cplusplus
5246    extern "C"
5247    #endif
5248  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5249      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5250  char accept();  char accept ();
5251    char (*f) ();
5252  int main() {  
5253    #ifdef F77_DUMMY_MAIN
5254    #  ifdef __cplusplus
5255         extern "C"
5256    #  endif
5257       int F77_DUMMY_MAIN() { return 1; }
5258    #endif
5259    int
5260    main ()
5261    {
5262  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5263      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5264      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5265  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
5266  choke me  choke me
5267  #else  #else
5268  accept();  f = accept;
5269  #endif  #endif
5270    
5271  ; return 0; }    ;
5272  EOF    return 0;
5273  if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5274    rm -rf conftest*  _ACEOF
5275    eval "ac_cv_func_accept=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5276  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5278    cat conftest.$ac_ext >&5    ac_status=$?
5279    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280    eval "ac_cv_func_accept=no"    (exit $ac_status); } &&
5281  fi           { ac_try='test -s conftest$ac_exeext'
5282  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283  fi    (eval $ac_try) 2>&5
5284      ac_status=$?
5285  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5287      ac_cv_func_accept=yes
5288    else
5289      echo "$as_me: failed program was:" >&5
5290    cat conftest.$ac_ext >&5
5291    ac_cv_func_accept=no
5292    fi
5293    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5294    fi
5295    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
5296    echo "${ECHO_T}$ac_cv_func_accept" >&6
5297    if test $ac_cv_func_accept = yes; then
5298    tcl_checkNsl=0    tcl_checkNsl=0
5299  else  else
5300    echo "$ac_t""no" 1>&6    LIBS=$tk_oldLibs
 LIBS=$tk_oldLibs  
5301  fi  fi
5302    
5303  fi  fi
5304  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
5305  echo "configure:2675: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5306  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
5307    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5308  else  else
5309    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5310  #line 2680 "configure"  #line $LINENO "configure"
5311  #include "confdefs.h"  #include "confdefs.h"
5312  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5313      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
5314  #include <assert.h>  #include <assert.h>
5315  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5316    #ifdef __cplusplus
5317    extern "C"
5318    #endif
5319  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5320      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5321  char gethostbyname();  char gethostbyname ();
5322    char (*f) ();
5323  int main() {  
5324    #ifdef F77_DUMMY_MAIN
5325    #  ifdef __cplusplus
5326         extern "C"
5327    #  endif
5328       int F77_DUMMY_MAIN() { return 1; }
5329    #endif
5330    int
5331    main ()
5332    {
5333  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5334      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5335      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5336  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5337  choke me  choke me
5338  #else  #else
5339  gethostbyname();  f = gethostbyname;
5340  #endif  #endif
5341    
5342  ; return 0; }    ;
5343  EOF    return 0;
5344  if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5345    rm -rf conftest*  _ACEOF
5346    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5347  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5349    cat conftest.$ac_ext >&5    ac_status=$?
5350    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
5352  fi           { ac_try='test -s conftest$ac_exeext'
5353  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354  fi    (eval $ac_try) 2>&5
5355      ac_status=$?
5356  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5358      ac_cv_func_gethostbyname=yes
5359    else
5360      echo "$as_me: failed program was:" >&5
5361    cat conftest.$ac_ext >&5
5362    ac_cv_func_gethostbyname=no
5363    fi
5364    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5365    fi
5366    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5367    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5368    if test $ac_cv_func_gethostbyname = yes; then
5369    :    :
5370  else  else
5371    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5372  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5373  echo "configure:2721: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
5374  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`    echo $ECHO_N "(cached) $ECHO_C" >&6
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
5375  else  else
5376    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5377  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
5378  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5379  #line 2729 "configure"  #line $LINENO "configure"
5380  #include "confdefs.h"  #include "confdefs.h"
5381    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5382    
5383  fi  #ifdef F77_DUMMY_MAIN
5384  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
5385    echo "$ac_t""yes" 1>&6       extern "C"
5386    #  endif
5387       int F77_DUMMY_MAIN() { return 1; }
5388    #endif
5389    int
5390    main ()
5391    {
5392    main ();
5393      ;
5394      return 0;
5395    }
5396    _ACEOF
5397    rm -f conftest.$ac_objext conftest$ac_exeext
5398    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399      (eval $ac_link) 2>&5
5400      ac_status=$?
5401      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402      (exit $ac_status); } &&
5403             { ac_try='test -s conftest$ac_exeext'
5404      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405      (eval $ac_try) 2>&5
5406      ac_status=$?
5407      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408      (exit $ac_status); }; }; then
5409      ac_cv_lib_nsl_main=yes
5410    else
5411      echo "$as_me: failed program was:" >&5
5412    cat conftest.$ac_ext >&5
5413    ac_cv_lib_nsl_main=no
5414    fi
5415    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416    LIBS=$ac_check_lib_save_LIBS
5417    fi
5418    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5419    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5420    if test $ac_cv_lib_nsl_main = yes; then
5421    LIBS="$LIBS -lnsl"    LIBS="$LIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
5422  fi  fi
5423    
5424  fi  fi
5425    
5426    
5427  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
5428          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5429  echo "configure:2761: checking for main in -lreadline" >&5  echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5430  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_main+set}" = set; then
5431  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
5432  else  else
5433    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5434  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
5435  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5436  #line 2769 "configure"  #line $LINENO "configure"
5437  #include "confdefs.h"  #include "confdefs.h"
5438    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
5439    
5440  fi  #ifdef F77_DUMMY_MAIN
5441  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
5442    echo "$ac_t""yes" 1>&6       extern "C"
5443    cat >> confdefs.h <<\EOF  #  endif
5444       int F77_DUMMY_MAIN() { return 1; }
5445    #endif
5446    int
5447    main ()
5448    {
5449    main ();
5450      ;
5451      return 0;
5452    }
5453    _ACEOF
5454    rm -f conftest.$ac_objext conftest$ac_exeext
5455    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456      (eval $ac_link) 2>&5
5457      ac_status=$?
5458      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459      (exit $ac_status); } &&
5460             { ac_try='test -s conftest$ac_exeext'
5461      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462      (eval $ac_try) 2>&5
5463      ac_status=$?
5464      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465      (exit $ac_status); }; }; then
5466      ac_cv_lib_readline_main=yes
5467    else
5468      echo "$as_me: failed program was:" >&5
5469    cat conftest.$ac_ext >&5
5470    ac_cv_lib_readline_main=no
5471    fi
5472    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5473    LIBS=$ac_check_lib_save_LIBS
5474    fi
5475    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5476    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5477    if test $ac_cv_lib_readline_main = yes; then
5478      cat >>confdefs.h <<\_ACEOF
5479  #define HAVE_READLINE 1  #define HAVE_READLINE 1
5480  EOF  _ACEOF
5481    
5482                  LIBS="$LIBS -lreadline -lncurses"                  LIBS="$LIBS -lreadline -lncurses"
5483                  RL_OBJS=readline.o                  RL_OBJS=readline.o
5484                  RL_LIB=lsp/readline.o                  RL_LIB=lsp/readline.o
 else  
   echo "$ac_t""no" 1>&6  
5485  fi  fi
5486    
5487  fi  fi
# Line 2804  fi Line 5490  fi
5490    
5491    
5492    
5493  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking For network code for nsocket.c" >&5
5494  echo "configure:2809: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
5495  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5496  #line 2811 "configure"  #line $LINENO "configure"
5497  #include "confdefs.h"  #include "confdefs.h"
5498    
5499  #include <sys/time.h>  #include <sys/time.h>
# Line 2818  cat > conftest.$ac_ext <<EOF Line 5504  cat > conftest.$ac_ext <<EOF
5504  #include <fcntl.h>  #include <fcntl.h>
5505  #include <stdio.h>  #include <stdio.h>
5506    
5507  /************* for the sockets ******************/  /************* for the sockets ******************/
5508  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
5509  #ifndef NO_UNAME  #ifndef NO_UNAME
5510  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 2827  cat > conftest.$ac_ext <<EOF Line 5513  cat > conftest.$ac_ext <<EOF
5513  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
5514  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
5515    
5516  int main() {  #ifdef F77_DUMMY_MAIN
5517    #  ifdef __cplusplus
5518         extern "C"
5519    #  endif
5520       int F77_DUMMY_MAIN() { return 1; }
5521    #endif
5522    int
5523    main ()
5524    {
5525   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
5526      gethostbyname("jil");      gethostbyname("jil");
5527      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
5528            
5529  ; return 0; }    ;
5530  EOF    return 0;
5531  if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5532    rm -rf conftest*  _ACEOF
5533    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
5534    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535      (eval $ac_link) 2>&5
5536      ac_status=$?
5537      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538      (exit $ac_status); } &&
5539             { ac_try='test -s conftest$ac_exeext'
5540      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541      (eval $ac_try) 2>&5
5542      ac_status=$?
5543      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544      (exit $ac_status); }; }; then
5545      cat >>confdefs.h <<\_ACEOF
5546  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
5547  EOF  _ACEOF
5548    
5549   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
5550    echo "${ECHO_T}yes" >&6
5551  else  else
5552    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5553    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
5554    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
5555    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
5556  fi  fi
5557  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558    
5559    
5560  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
5561  echo "configure:2855: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
5562  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5563  #line 2857 "configure"  #line $LINENO "configure"
5564  #include "confdefs.h"  #include "confdefs.h"
5565  #include <stdio.h>  #include <stdio.h>
5566  #include <fcntl.h>  #include <fcntl.h>
5567    
5568  int main() {  #ifdef F77_DUMMY_MAIN
5569    #  ifdef __cplusplus
5570         extern "C"
5571    #  endif
5572       int F77_DUMMY_MAIN() { return 1; }
5573    #endif
5574    int
5575    main ()
5576    {
5577  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
5578    int orig;    int orig;
5579    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
5580    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
5581    
5582  ; return 0; }    ;
5583  EOF    return 0;
5584  if { (eval echo configure:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
5585    rm -rf conftest*  _ACEOF
5586    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
5587    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588      (eval $ac_compile) 2>&5
5589      ac_status=$?
5590      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591      (exit $ac_status); } &&
5592             { ac_try='test -s conftest.$ac_objext'
5593      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594      (eval $ac_try) 2>&5
5595      ac_status=$?
5596      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597      (exit $ac_status); }; }; then
5598      cat >>confdefs.h <<\_ACEOF
5599  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
5600  EOF  _ACEOF
5601    
5602   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
5603    echo "${ECHO_T}yes" >&6
5604  else  else
5605    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5606    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
5607    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
5608    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
5609  fi  fi
5610  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
5611    
5612    
5613    
5614    
5615  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
5616  echo "configure:2889: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
5617  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
5618    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5619  else  else
5620    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5621  #line 2894 "configure"  #line $LINENO "configure"
5622  #include "confdefs.h"  #include "confdefs.h"
5623  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5624      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
5625  #include <assert.h>  #include <assert.h>
5626  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5627    #ifdef __cplusplus
5628    extern "C"
5629    #endif
5630  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5631      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5632  char profil();  char profil ();
5633    char (*f) ();
5634  int main() {  
5635    #ifdef F77_DUMMY_MAIN
5636    #  ifdef __cplusplus
5637         extern "C"
5638    #  endif
5639       int F77_DUMMY_MAIN() { return 1; }
5640    #endif
5641    int
5642    main ()
5643    {
5644  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5645      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5646      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5647  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
5648  choke me  choke me
5649  #else  #else
5650  profil();  f = profil;
5651  #endif  #endif
5652    
5653  ; return 0; }    ;
5654  EOF    return 0;
5655  if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5656    rm -rf conftest*  _ACEOF
5657    eval "ac_cv_func_profil=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5658  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5660    cat conftest.$ac_ext >&5    ac_status=$?
5661    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662    eval "ac_cv_func_profil=no"    (exit $ac_status); } &&
5663  fi           { ac_try='test -s conftest$ac_exeext'
5664  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665  fi    (eval $ac_try) 2>&5
5666      ac_status=$?
5667  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5669      ac_cv_func_profil=yes
5670    else
5671      echo "$as_me: failed program was:" >&5
5672    cat conftest.$ac_ext >&5
5673    ac_cv_func_profil=no
5674    fi
5675    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5676    fi
5677    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
5678    echo "${ECHO_T}$ac_cv_func_profil" >&6
5679    if test $ac_cv_func_profil = yes; then
5680    :    :
5681  else  else
5682    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
5683  #define NO_PROFILE 1  #define NO_PROFILE 1
5684  EOF  _ACEOF
5685    
5686  fi  fi
5687    
5688    
5689  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
5690  echo "configure:2942: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
5691  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
5692    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5693  else  else
5694    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5695  #line 2947 "configure"  #line $LINENO "configure"
5696  #include "confdefs.h"  #include "confdefs.h"
5697  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5698      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
5699  #include <assert.h>  #include <assert.h>
5700  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5701    #ifdef __cplusplus
5702    extern "C"
5703    #endif
5704  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5705      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5706  char setenv();  char setenv ();
5707    char (*f) ();
5708  int main() {  
5709    #ifdef F77_DUMMY_MAIN
5710    #  ifdef __cplusplus
5711         extern "C"
5712    #  endif
5713       int F77_DUMMY_MAIN() { return 1; }
5714    #endif
5715    int
5716    main ()
5717    {
5718  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5719      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5720      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5721  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
5722  choke me  choke me
5723  #else  #else
5724  setenv();  f = setenv;
5725  #endif  #endif
5726    
5727  ; return 0; }    ;
5728  EOF    return 0;
5729  if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5730    rm -rf conftest*  _ACEOF
5731    eval "ac_cv_func_setenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5732  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5734    cat conftest.$ac_ext >&5    ac_status=$?
5735    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736    eval "ac_cv_func_setenv=no"    (exit $ac_status); } &&
5737  fi           { ac_try='test -s conftest$ac_exeext'
5738  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739  fi    (eval $ac_try) 2>&5
5740      ac_status=$?
5741  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5743    cat >> confdefs.h <<\EOF    ac_cv_func_setenv=yes
5744    else
5745      echo "$as_me: failed program was:" >&5
5746    cat conftest.$ac_ext >&5
5747    ac_cv_func_setenv=no
5748    fi
5749    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5750    fi
5751    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
5752    echo "${ECHO_T}$ac_cv_func_setenv" >&6
5753    if test $ac_cv_func_setenv = yes; then
5754      cat >>confdefs.h <<\_ACEOF
5755  #define HAVE_SETENV 1  #define HAVE_SETENV 1
5756  EOF  _ACEOF
5757    
5758  else  else
5759    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
5760  fi  fi
5761    
5762    
5763  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
5764  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
5765  echo "configure:2996: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
5766  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
5767    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5768  else  else
5769    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5770  #line 3001 "configure"  #line $LINENO "configure"
5771  #include "confdefs.h"  #include "confdefs.h"
5772  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5773      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
5774  #include <assert.h>  #include <assert.h>
5775  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5776    #ifdef __cplusplus
5777    extern "C"
5778    #endif
5779  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5780      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5781  char putenv();  char putenv ();
5782    char (*f) ();
5783  int main() {  
5784    #ifdef F77_DUMMY_MAIN
5785    #  ifdef __cplusplus
5786         extern "C"
5787    #  endif
5788       int F77_DUMMY_MAIN() { return 1; }
5789    #endif
5790    int
5791    main ()
5792    {
5793  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5794      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5795      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5796  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
5797  choke me  choke me
5798  #else  #else
5799  putenv();  f = putenv;
5800  #endif  #endif
5801    
5802  ; return 0; }    ;
5803  EOF    return 0;
5804  if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5805    rm -rf conftest*  _ACEOF
5806    eval "ac_cv_func_putenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5807  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5808    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5809    cat conftest.$ac_ext >&5    ac_status=$?
5810    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811    eval "ac_cv_func_putenv=no"    (exit $ac_status); } &&
5812  fi           { ac_try='test -s conftest$ac_exeext'
5813  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814  fi    (eval $ac_try) 2>&5
5815      ac_status=$?
5816  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5818    cat >> confdefs.h <<\EOF    ac_cv_func_putenv=yes
5819    else
5820      echo "$as_me: failed program was:" >&5
5821    cat conftest.$ac_ext >&5
5822    ac_cv_func_putenv=no
5823    fi
5824    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825    fi
5826    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
5827    echo "${ECHO_T}$ac_cv_func_putenv" >&6
5828    if test $ac_cv_func_putenv = yes; then
5829      cat >>confdefs.h <<\_ACEOF
5830  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
5831  EOF  _ACEOF
5832    
 else  
   echo "$ac_t""no" 1>&6  
5833  fi  fi
5834    
5835    
5836  fi  fi
5837    
5838  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
5839  echo "configure:3050: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
5840  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
5841    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5842  else  else
5843    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5844  #line 3055 "configure"  #line $LINENO "configure"
5845  #include "confdefs.h"  #include "confdefs.h"
5846  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5847      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
5848  #include <assert.h>  #include <assert.h>
5849  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5850    #ifdef __cplusplus
5851    extern "C"
5852    #endif
5853  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5854      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5855  char _cleanup();  char _cleanup ();
5856    char (*f) ();
5857  int main() {  
5858    #ifdef F77_DUMMY_MAIN
5859    #  ifdef __cplusplus
5860         extern "C"
5861    #  endif
5862       int F77_DUMMY_MAIN() { return 1; }
5863    #endif
5864    int
5865    main ()
5866    {
5867  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
5868      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
5869      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
5870  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
5871  choke me  choke me
5872  #else  #else
5873  _cleanup();  f = _cleanup;
5874  #endif  #endif
5875    
5876  ; return 0; }    ;
5877  EOF    return 0;
5878  if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
5879    rm -rf conftest*  _ACEOF
5880    eval "ac_cv_func__cleanup=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
5881  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
5883    cat conftest.$ac_ext >&5    ac_status=$?
5884    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885    eval "ac_cv_func__cleanup=no"    (exit $ac_status); } &&
5886  fi           { ac_try='test -s conftest$ac_exeext'
5887  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888  fi    (eval $ac_try) 2>&5
5889      ac_status=$?
5890  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
5892    cat >> confdefs.h <<\EOF    ac_cv_func__cleanup=yes
5893    else
5894      echo "$as_me: failed program was:" >&5
5895    cat conftest.$ac_ext >&5
5896    ac_cv_func__cleanup=no
5897    fi
5898    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5899    fi
5900    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
5901    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
5902    if test $ac_cv_func__cleanup = yes; then
5903      cat >>confdefs.h <<\_ACEOF
5904  #define USE_CLEANUP 1  #define USE_CLEANUP 1
5905  EOF  _ACEOF
5906    
 else  
   echo "$ac_t""no" 1>&6  
5907  fi  fi
5908    
5909    
5910  gcl_ok=no  gcl_ok=no
5911    
5912  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5913  #line 3104 "configure"  #line $LINENO "configure"
5914  #include "confdefs.h"  #include "confdefs.h"
5915  #include <ctype.h>  #include <ctype.h>
5916  EOF  
5917    _ACEOF
5918  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
5920    gcl_ok=yes    gcl_ok=yes
5921  else  else
   rm -rf conftest*  
5922    gcl_ok=noo    gcl_ok=noo
5923  fi  fi
5924  rm -f conftest*  rm -f conftest*
5925    
5926  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
5927  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5928  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
5929  EOF  _ACEOF
5930    
5931  fi  fi
5932    
# Line 3127  fi Line 5936  fi
5936    
5937    
5938  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
5939  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
5940  echo "configure:3132: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6
5941    
5942  case $system in  case $system in
5943         OSF*)         OSF*)
5944          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5945  #define USE_FIONBIO 1  #define USE_FIONBIO 1
5946  EOF  _ACEOF
5947    
5948          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
5949    echo "${ECHO_T}FIONBIO" >&6
5950          ;;          ;;
5951      SunOS-4*)      SunOS-4*)
5952          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5953  #define USE_FIONBIO 1  #define USE_FIONBIO 1
5954  EOF  _ACEOF
5955    
5956          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
5957    echo "${ECHO_T}FIONBIO" >&6
5958          ;;          ;;
5959      ULTRIX-4.*)      ULTRIX-4.*)
5960          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5961  #define USE_FIONBIO 1  #define USE_FIONBIO 1
5962  EOF  _ACEOF
5963    
5964          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
5965    echo "${ECHO_T}FIONBIO" >&6
5966          ;;          ;;
5967      *)      *)
5968          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
5969    echo "${ECHO_T}O_NONBLOCK" >&6
5970          ;;          ;;
5971  esac  esac
5972    
5973    
5974  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
5975  echo "configure:3163: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
5976  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5977  #line 3165 "configure"  #line $LINENO "configure"
5978  #include "confdefs.h"  #include "confdefs.h"
5979  #include <signal.h>  #include <signal.h>
5980  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
5981    
5982  int main() {  #ifdef F77_DUMMY_MAIN
5983    #  ifdef __cplusplus
5984         extern "C"
5985    #  endif
5986       int F77_DUMMY_MAIN() { return 1; }
5987    #endif
5988    int
5989    main ()
5990    {
5991    
5992  ; return 0; }    ;
5993  EOF    return 0;
5994  if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
5995    rm -rf conftest*  _ACEOF
5996    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
5997    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998      (eval $ac_compile) 2>&5
5999      ac_status=$?
6000      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001      (exit $ac_status); } &&
6002             { ac_try='test -s conftest.$ac_objext'
6003      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004      (eval $ac_try) 2>&5
6005      ac_status=$?
6006      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007      (exit $ac_status); }; }; then
6008      cat >>confdefs.h <<\_ACEOF
6009  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
6010  EOF  _ACEOF
6011    
6012    
6013   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
6014    echo "${ECHO_T}yes" >&6
6015  else  else
6016    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6017    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6018    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
6019    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
6020  fi  fi
6021  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6022    
6023    
6024  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
6025  echo "configure:3192: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
6026  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6027  #line 3194 "configure"  #line $LINENO "configure"
6028  #include "confdefs.h"  #include "confdefs.h"
6029  #include <signal.h>  #include <signal.h>
6030  int joe=SIGSYS;  int joe=SIGSYS;
6031    
6032  int main() {  #ifdef F77_DUMMY_MAIN
6033    #  ifdef __cplusplus
6034         extern "C"
6035    #  endif
6036       int F77_DUMMY_MAIN() { return 1; }
6037    #endif
6038    int
6039    main ()
6040    {
6041    
6042  ; return 0; }    ;
6043  EOF    return 0;
6044  if { (eval echo configure:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
6045    rm -rf conftest*  _ACEOF
6046    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
6047    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048      (eval $ac_compile) 2>&5
6049      ac_status=$?
6050      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051      (exit $ac_status); } &&
6052             { ac_try='test -s conftest.$ac_objext'
6053      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054      (eval $ac_try) 2>&5
6055      ac_status=$?
6056      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057      (exit $ac_status); }; }; then
6058      cat >>confdefs.h <<\_ACEOF
6059  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
6060  EOF  _ACEOF
6061    
6062    
6063     echo "$as_me:$LINENO: result: yes" >&5
6064   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
6065  else  else
6066    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6067    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6068    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
6069    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
6070  fi  fi
6071  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6072    
6073    
6074  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
6075  echo "configure:3221: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
6076  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6077  #line 3223 "configure"  #line $LINENO "configure"
6078  #include "confdefs.h"  #include "confdefs.h"
6079  #include <signal.h>  #include <signal.h>
6080  int joe=SIGEMT;  int joe=SIGEMT;
6081    
6082  int main() {  #ifdef F77_DUMMY_MAIN
6083    #  ifdef __cplusplus
6084         extern "C"
6085    #  endif
6086       int F77_DUMMY_MAIN() { return 1; }
6087    #endif
6088    int
6089    main ()
6090    {
6091    
6092  ; return 0; }    ;
6093  EOF    return 0;
6094  if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
6095    rm -rf conftest*  _ACEOF
6096    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
6097    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098      (eval $ac_compile) 2>&5
6099      ac_status=$?
6100      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101      (exit $ac_status); } &&
6102             { ac_try='test -s conftest.$ac_objext'
6103      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104      (eval $ac_try) 2>&5
6105      ac_status=$?
6106      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107      (exit $ac_status); }; }; then
6108      cat >>confdefs.h <<\_ACEOF
6109  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
6110  EOF  _ACEOF
6111    
6112    
6113   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
6114    echo "${ECHO_T}yes" >&6
6115  else  else
6116    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6117    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6118    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
6119    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
6120  fi  fi
6121  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6122    
6123    
6124    
6125    
6126  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
6127          for ac_hdr in asm/sigcontext.h  
6128    for ac_header in asm/sigcontext.h
6129  do  do
6130  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6131  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6132  echo "configure:3256: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6133  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135      echo $ECHO_N "(cached) $ECHO_C" >&6
6136    fi
6137    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6138    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6139    else
6140      # Is the header compilable?
6141    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6142    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6143    cat >conftest.$ac_ext <<_ACEOF
6144    #line $LINENO "configure"
6145    #include "confdefs.h"
6146    $ac_includes_default
6147    #include <$ac_header>
6148    _ACEOF
6149    rm -f conftest.$ac_objext
6150    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6151      (eval $ac_compile) 2>&5
6152      ac_status=$?
6153      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154      (exit $ac_status); } &&
6155             { ac_try='test -s conftest.$ac_objext'
6156      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157      (eval $ac_try) 2>&5
6158      ac_status=$?
6159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160      (exit $ac_status); }; }; then
6161      ac_header_compiler=yes
6162    else
6163      echo "$as_me: failed program was:" >&5
6164    cat conftest.$ac_ext >&5
6165    ac_header_compiler=no
6166    fi
6167    rm -f conftest.$ac_objext conftest.$ac_ext
6168    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169    echo "${ECHO_T}$ac_header_compiler" >&6
6170    
6171    # Is the header present?
6172    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6173    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6174    cat >conftest.$ac_ext <<_ACEOF
6175    #line $LINENO "configure"
6176    #include "confdefs.h"
6177    #include <$ac_header>
6178    _ACEOF
6179    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6180      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6181      ac_status=$?
6182      egrep -v '^ *\+' conftest.er1 >conftest.err
6183      rm -f conftest.er1
6184      cat conftest.err >&5
6185      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186      (exit $ac_status); } >/dev/null; then
6187      if test -s conftest.err; then
6188        ac_cpp_err=$ac_c_preproc_warn_flag
6189      else
6190        ac_cpp_err=
6191      fi
6192  else  else
6193    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6194  #line 3261 "configure"  fi
6195  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6196  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
6197  else  else
6198    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6199    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6200    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6201  fi  fi
6202  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6203    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6204      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6205    cat >> confdefs.h <<EOF  
6206  #define $ac_tr_hdr 1  # So?  What about this header?
6207  EOF  case $ac_header_compiler:$ac_header_preproc in
6208      yes:no )
6209        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6210    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6211        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6212    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6213      no:yes )
6214        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6215    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6216        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6217    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6218        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6219    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6220    esac
6221    echo "$as_me:$LINENO: checking for $ac_header" >&5
6222    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6223    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224      echo $ECHO_N "(cached) $ECHO_C" >&6
6225  else  else
6226    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
6227    fi
6228    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230    
6231    fi
6232    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6233      cat >>confdefs.h <<_ACEOF
6234    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6235    _ACEOF
6236    
6237  fi  fi
6238    
6239  done  done
6240    
6241          for ac_hdr in asm/signal.h  
6242    for ac_header in asm/signal.h
6243  do  do
6244  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6245  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246  echo "configure:3296: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6247  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249      echo $ECHO_N "(cached) $ECHO_C" >&6
6250    fi
6251    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253    else
6254      # Is the header compilable?
6255    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6256    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6257    cat >conftest.$ac_ext <<_ACEOF
6258    #line $LINENO "configure"
6259    #include "confdefs.h"
6260    $ac_includes_default
6261    #include <$ac_header>
6262    _ACEOF
6263    rm -f conftest.$ac_objext
6264    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265      (eval $ac_compile) 2>&5
6266      ac_status=$?
6267      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268      (exit $ac_status); } &&
6269             { ac_try='test -s conftest.$ac_objext'
6270      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271      (eval $ac_try) 2>&5
6272      ac_status=$?
6273      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274      (exit $ac_status); }; }; then
6275      ac_header_compiler=yes
6276    else
6277      echo "$as_me: failed program was:" >&5
6278    cat conftest.$ac_ext >&5
6279    ac_header_compiler=no
6280    fi
6281    rm -f conftest.$ac_objext conftest.$ac_ext
6282    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283    echo "${ECHO_T}$ac_header_compiler" >&6
6284    
6285    # Is the header present?
6286    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6287    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6288    cat >conftest.$ac_ext <<_ACEOF
6289    #line $LINENO "configure"
6290    #include "confdefs.h"
6291    #include <$ac_header>
6292    _ACEOF
6293    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295      ac_status=$?
6296      egrep -v '^ *\+' conftest.er1 >conftest.err
6297      rm -f conftest.er1
6298      cat conftest.err >&5
6299      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300      (exit $ac_status); } >/dev/null; then
6301      if test -s conftest.err; then
6302        ac_cpp_err=$ac_c_preproc_warn_flag
6303      else
6304        ac_cpp_err=
6305      fi
6306  else  else
6307    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6308  #line 3301 "configure"  fi
6309  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6310  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
6311  else  else
6312    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6313    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6314    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6315  fi  fi
6316  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6317    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6319    cat >> confdefs.h <<EOF  
6320  #define $ac_tr_hdr 1  # So?  What about this header?
6321  EOF  case $ac_header_compiler:$ac_header_preproc in
6322      yes:no )
6323        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6326    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6327      no:yes )
6328        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6329    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6330        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6331    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6332        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6334    esac
6335    echo "$as_me:$LINENO: checking for $ac_header" >&5
6336    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6337    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338      echo $ECHO_N "(cached) $ECHO_C" >&6
6339  else  else
6340    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
6341  fi  fi
6342    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6343    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6344    
6345    fi
6346    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6347      cat >>confdefs.h <<_ACEOF
6348    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6349    _ACEOF
6350    
6351    fi
6352    
6353  done  done
6354    
6355          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
6356  #line 3333 "configure"  #line $LINENO "configure"
6357  #include "confdefs.h"  #include "confdefs.h"
6358  #include <signal.h>  #include <signal.h>
6359                          long code;                            long code;
6360          
6361  int main() {  #ifdef F77_DUMMY_MAIN
6362    #  ifdef __cplusplus
6363         extern "C"
6364    #  endif
6365       int F77_DUMMY_MAIN() { return 1; }
6366    #endif
6367    int
6368    main ()
6369    {
6370    
6371          void *p = ((void *)(((struct sigcontext_struct *)(&code))));          void *p = ((void *)(((struct sigcontext_struct *)(&code))));
6372          
6373  ; return 0; }    ;
6374  EOF    return 0;
6375  if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
6376    rm -rf conftest*  _ACEOF
6377      rm -f conftest.$ac_objext
6378    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379      (eval $ac_compile) 2>&5
6380      ac_status=$?
6381      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382      (exit $ac_status); } &&
6383             { ac_try='test -s conftest.$ac_objext'
6384      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385      (eval $ac_try) 2>&5
6386      ac_status=$?
6387      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388      (exit $ac_status); }; }; then
6389    
6390          sigcontext_struct_works=1;          sigcontext_struct_works=1;
6391          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6392  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
6393  EOF  _ACEOF
6394    
6395            echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5
6396    echo "${ECHO_T}\"sigcontext in signal.h\"" >&6
6397    
         echo "$ac_t"""sigcontext in signal.h"" 1>&6  
         
6398  else  else
6399    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6400    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6401    rm -rf conftest*  sigcontext_struct_works=0;
6402    sigcontext_struct_works=0;           echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5
6403           echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6  echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6
6404          
6405  fi  fi
6406  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6407         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
6408         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
6409  #line 3365 "configure"  #line $LINENO "configure"
6410  #include "confdefs.h"  #include "confdefs.h"
6411  #include <signal.h>  #include <signal.h>
6412               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
6413               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
6414               #endif               #endif
6415               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
6416               #include <asm/signal.h>               #include <asm/signal.h>
6417               #endif               #endif
6418               long code;               long code;
6419              
6420  int main() {  #ifdef F77_DUMMY_MAIN
6421    #  ifdef __cplusplus
6422         extern "C"
6423    #  endif
6424       int F77_DUMMY_MAIN() { return 1; }
6425    #endif
6426    int
6427    main ()
6428    {
6429    
6430          void *p = ((void *)(((struct sigcontext *)(&code))));          void *p = ((void *)(((struct sigcontext *)(&code))));
6431            
6432  ; return 0; }    ;
6433  EOF    return 0;
6434  if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
6435    rm -rf conftest*  _ACEOF
6436      rm -f conftest.$ac_objext
6437    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438      (eval $ac_compile) 2>&5
6439      ac_status=$?
6440      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441      (exit $ac_status); } &&
6442             { ac_try='test -s conftest.$ac_objext'
6443      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444      (eval $ac_try) 2>&5
6445      ac_status=$?
6446      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447      (exit $ac_status); }; }; then
6448    
6449          sigcontext_works=1 ;          sigcontext_works=1 ;
6450          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6451  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
6452  EOF  _ACEOF
6453    
6454            echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5
6455    echo "${ECHO_T}\"use struct sigcontext\"" >&6
6456    
         echo "$ac_t"""use struct sigcontext"" 1>&6  
           
6457  else  else
6458    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6459    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6460    rm -rf conftest*  
6461              sigcontext_works=0 ;
6462          sigcontext_works=0 ;  
       
6463  fi  fi
6464  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
6465    
6466    
6467         fi         fi
6468  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
6469  #       $CC -S conftest1.c  #       $CC -S conftest1.c
6470  #       use_underscore=0          #       use_underscore=0
6471  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
6472  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
6473  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 3420  rm -f conftest* Line 6485  rm -f conftest*
6485    
6486  # Extract the first word of "emacs", so it can be a program name with args.  # Extract the first word of "emacs", so it can be a program name with args.
6487  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
6488  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
6489  echo "configure:3425: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6490  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
6491    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6492  else  else
6493    case "$EMACS" in    case $EMACS in
6494    /*)    [\\/]* | ?:[\\/]*)
6495    ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.    ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
6496    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
6497    *)    *)
6498    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499    ac_dummy="$PATH"  for as_dir in $PATH
6500    for ac_dir in $ac_dummy; do  do
6501      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
6502      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
6503        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
6504        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
6506    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    IFS="$ac_save_ifs"      break 2
6508      fi
6509    done
6510    done
6511    
6512    ;;    ;;
6513  esac  esac
6514  fi  fi
6515  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
6516    
6517  if test -n "$EMACS"; then  if test -n "$EMACS"; then
6518    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
6519    echo "${ECHO_T}$EMACS" >&6
6520  else  else
6521    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
6522    echo "${ECHO_T}no" >&6
6523  fi  fi
6524    
6525    
# Line 3468  cat >> conftest.el <<EOF Line 6537  cat >> conftest.el <<EOF
6537    (message ans))    (message ans))
6538  EOF  EOF
6539    
6540  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
6541  echo "configure:3473: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
6542  #EMACS_SITE_LISP=unknown  #EMACS_SITE_LISP=unknown
6543  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
6544          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
6545  else  else
6546          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
6547  fi  fi
6548  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
6549    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
6550    
6551    
6552  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 3491  cat >> conftest.el <<EOF Line 6561  cat >> conftest.el <<EOF
6561    (message ans))    (message ans))
6562  EOF  EOF
6563    
6564  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
6565  echo "configure:3496: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
6566  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
6567          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
6568  else  else
# Line 3503  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 6573  if  test -f "${EMACS_DEFAULT_EL}"  ; the
6573       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
6574    fi    fi
6575  fi  fi
6576  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
6577    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
6578    
6579    
6580    
# Line 3514  cat >> conftest.el <<EOF Line 6585  cat >> conftest.el <<EOF
6585  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
6586   (while tem   (while tem
6587     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
6588            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
6589            (setq tem nil) ))            (setq tem nil) ))
6590     (setq tem (cdr tem)))     (setq tem (cdr tem)))
6591    (message ans))    (message ans))
6592  EOF  EOF
6593    
6594  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
6595  echo "configure:3525: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
6596  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
6597          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
6598  fi  fi
# Line 3531  if test -f /usr/info/dir ; then Line 6602  if test -f /usr/info/dir ; then
6602  else true;  else true;
6603  fi  fi
6604  fi  fi
6605  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
6606    echo "${ECHO_T}$INFO_DIR" >&6
6607    
6608    
6609  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
6610  echo "configure:3539: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
6611    
6612    
6613  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 3545  cat >> conftest.tcl <<EOF Line 6617  cat >> conftest.tcl <<EOF
6617  set dir [set tcl_library]  set dir [set tcl_library]
6618  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
6619        puts  [set dir]        puts  [set dir]
6620        exit              exit
6621    }    }
6622  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
6623  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 3557  EOF Line 6629  EOF
6629    
6630  # Extract the first word of "tclsh", so it can be a program name with args.  # Extract the first word of "tclsh", so it can be a program name with args.
6631  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
6632  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
6633  echo "configure:3562: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
6635    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6636  else  else
6637    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
6638    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
6639  else  else
6640    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641    ac_dummy="$PATH"  for as_dir in $PATH
6642    for ac_dir in $ac_dummy; do  do
6643      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
6644      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
6645        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
6646        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647      fi      ac_cv_prog_TCLSH="tclsh"
6648    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    IFS="$ac_save_ifs"      break 2
6650      fi
6651    done
6652    done
6653    
6654    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
6655  fi  fi
6656  fi  fi
6657  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
6658  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
6659    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
6660    echo "${ECHO_T}$TCLSH" >&6
6661  else  else
6662    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
6663    echo "${ECHO_T}no" >&6
6664  fi  fi
6665    
6666  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 3648  if test -f ${TK_CONFIG_PREFIX}/../includ Line 6726  if test -f ${TK_CONFIG_PREFIX}/../includ
6726    else    else
6727    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
6728      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
6729    fi        fi
6730  fi  fi
6731  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
6732    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 3657  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 6735  if test -f ${TCL_CONFIG_PREFIX}/../inclu
6735      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
6736    fi    fi
6737  fi  fi
6738  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -llieee" >&5
6739  echo "configure:3662: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
6740  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
6741  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
6742  else  else
6743    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6744  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
6745  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6746  #line 3670 "configure"  #line $LINENO "configure"
6747  #include "confdefs.h"  #include "confdefs.h"
6748    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
6749    
6750  fi  #ifdef F77_DUMMY_MAIN
6751  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
6752    echo "$ac_t""yes" 1>&6       extern "C"
6753    #  endif
6754       int F77_DUMMY_MAIN() { return 1; }
6755    #endif
6756    int
6757    main ()
6758    {
6759    main ();
6760      ;
6761      return 0;
6762    }
6763    _ACEOF
6764    rm -f conftest.$ac_objext conftest$ac_exeext
6765    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766      (eval $ac_link) 2>&5
6767      ac_status=$?
6768      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769      (exit $ac_status); } &&
6770             { ac_try='test -s conftest$ac_exeext'
6771      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772      (eval $ac_try) 2>&5
6773      ac_status=$?
6774      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775      (exit $ac_status); }; }; then
6776      ac_cv_lib_lieee_main=yes
6777    else
6778      echo "$as_me: failed program was:" >&5
6779    cat conftest.$ac_ext >&5
6780    ac_cv_lib_lieee_main=no
6781    fi
6782    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6783    LIBS=$ac_check_lib_save_LIBS
6784    fi
6785    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
6786    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
6787    if test $ac_cv_lib_lieee_main = yes; then
6788    have_ieee=1    have_ieee=1
6789  else  else
6790    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
6791  fi  fi
6792    
6793  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 3722  fi Line 6818  fi
6818    
6819    
6820  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
6821  echo "$ac_t""using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" 1>&6  echo "$as_me:$LINENO: result: using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&5
6822    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
6823  else  else
6824  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
6825    echo "${ECHO_T}not found" >&6
6826  fi  fi
6827    
6828  NOTIFY=$enable_notify  NOTIFY=$enable_notify
6829    
6830    
6831          
6832    
6833    
6834  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
6835    
6836  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
6837    
6838  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
6839  echo "configure:3742: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
6840  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6841    gcl_ok=no    gcl_ok=no
6842  else  else
6843    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6844  #line 3747 "configure"  #line $LINENO "configure"
6845  #include "confdefs.h"  #include "confdefs.h"
6846  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
6847  EOF  _ACEOF
6848  if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6849  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850      (eval $ac_link) 2>&5
6851      ac_status=$?
6852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6854      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855      (eval $ac_try) 2>&5
6856      ac_status=$?
6857      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858      (exit $ac_status); }; }; then
6859    :    :
6860  else  else
6861    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6862    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6863    rm -fr conftest*  cat conftest.$ac_ext >&5
6864    gcl_ok=yes  ( exit $ac_status )
6865    gcl_ok=yes
6866  fi  fi
6867  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6868  fi  fi
   
6869  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
6870      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
6871      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
6872        cat >>confdefs.h <<\_ACEOF
6873  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
6874  EOF  _ACEOF
6875    
6876  else  else
6877    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
6878    gcl_ok=no    gcl_ok=no
6879  else  else
6880    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6881  #line 3774 "configure"  #line $LINENO "configure"
6882  #include "confdefs.h"  #include "confdefs.h"
6883  #include <alloca.h>  #include <alloca.h>
6884    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
6885  EOF  _ACEOF
6886  if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6887  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888      (eval $ac_link) 2>&5
6889      ac_status=$?
6890      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6892      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893      (eval $ac_try) 2>&5
6894      ac_status=$?
6895      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896      (exit $ac_status); }; }; then
6897    :    :
6898  else  else
6899    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6900    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6901    rm -fr conftest*  cat conftest.$ac_ext >&5
6902    gcl_ok=yes  ( exit $ac_status )
6903    gcl_ok=yes
6904  fi  fi
6905  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6906  fi  fi
   
6907   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
6908      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
6909      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
6910        cat >>confdefs.h <<\_ACEOF
6911  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
6912  EOF  _ACEOF
6913    
6914      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
6915  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
6916  EOF  _ACEOF
6917    
6918   fi   fi
6919  fi  fi
6920  if test $gcl_ok = no ; then     echo "$ac_t""no" 1>&6 ; fi  if test $gcl_ok = no ; then     echo "$as_me:$LINENO: result: no" >&5
6921    echo "${ECHO_T}no" >&6 ; fi
6922    
6923    
6924    
# Line 3815  if test $gcl_ok = no ; then     echo "$a Line 6934  if test $gcl_ok = no ; then     echo "$a
6934  # dlopen etc  # dlopen etc
6935  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
6936  # then dlload("foo.o") a lisp file can refer to things in libX.so  # then dlload("foo.o") a lisp file can refer to things in libX.so
6937  #  #
6938    
6939  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
6940  # and machine specific defs.  # and machine specific defs.
# Line 3837  rm -f makedefsafter Line 6956  rm -f makedefsafter
6956    
6957  MP_INLCUDE=""  MP_INLCUDE=""
6958  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
6959   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking use_gmp=yes, doing configure in gmp directory" >&5
6960  echo "configure:3842: checking use_gmp=yes, doing configure in gmp directory" >&5  echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6
6961   case "$use" in   case "$use" in
6962  #   i[[5-9]]86* | pentium* | k6* | athlon*)  #   i[[5-9]]86* | pentium* | k6* | athlon*)
6963  #      (cd gmp3 ; ./configure --target=i486) ;;  #      (cd gmp3 ; ./configure --target=i486) ;;
# Line 3850  echo "configure:3842: checking use_gmp=y Line 6969  echo "configure:3842: checking use_gmp=y
6969   esac   esac
6970  # [[ "`ls -1 gmp3/mpn/add_n.* 2>/dev/null`" != "" ]] || cp gmp3/mpn/generic/*.c gmp3/mpn/  # [[ "`ls -1 gmp3/mpn/add_n.* 2>/dev/null`" != "" ]] || cp gmp3/mpn/generic/*.c gmp3/mpn/
6971   cp gmp3/gmp.h h/gmp.h   cp gmp3/gmp.h h/gmp.h
6972   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
6973  echo "configure:3855: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
6974   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
6975    mpsize=0    mpsize=0
6976  else  else
6977    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6978  #line 3860 "configure"  #line $LINENO "configure"
6979  #include "confdefs.h"  #include "confdefs.h"
6980  #include <stdio.h>  #include <stdio.h>
6981          #include "h/gmp.h"          #include "h/gmp.h"
6982            
6983          int main() {          int main() {
6984          FILE *fp=fopen("conftest1","w");          FILE *fp=fopen("conftest1","w");
6985          fprintf(fp,"%u",sizeof(mp_limb_t));          fprintf(fp,"%u",sizeof(mp_limb_t));
6986          fclose(fp);          fclose(fp);
6987          return 0;          return 0;
6988  }  }
6989  EOF  _ACEOF
6990  if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6991  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992      (eval $ac_link) 2>&5
6993      ac_status=$?
6994      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6996      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997      (eval $ac_try) 2>&5
6998      ac_status=$?
6999      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000      (exit $ac_status); }; }; then
7001    mpsize=`cat conftest1`    mpsize=`cat conftest1`
7002  else  else
7003    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7004    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7005    rm -fr conftest*  cat conftest.$ac_ext >&5
7006    mpsize=0  ( exit $ac_status )
7007    mpsize=0
7008  fi  fi
7009  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7010  fi  fi
   
7011   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
7012          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
7013          exit 1          exit 1
7014   fi   fi
7015   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
7016  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
7017  EOF  _ACEOF
7018    
7019   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
7020    echo "${ECHO_T}$mpsize" >&6
7021   GMP=1   GMP=1
7022   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
7023  #define GMP 1  #define GMP 1
7024  EOF  _ACEOF
7025    
7026    
   
7027   MP_INCLUDE=h/gmp.h   MP_INCLUDE=h/gmp.h
7028   echo > makedefsafter   echo > makedefsafter
7029   echo 'MPFILES=${GMP_DIR}libgmp.a' >> makedefsafter   echo 'MPFILES=${GMP_DIR}libgmp.a' >> makedefsafter
7030   echo >> makedefsafter   echo >> makedefsafter
7031  fi  fi
7032    
7033    
7034  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
7035  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
7036  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking Checking for buggy gcc version from redhat" >&5
7037  echo "configure:3909: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
7038  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
7039     then     then
7040          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
7041          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
7042  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
7043  EOF  _ACEOF
7044    
7045    
           
7046          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
7047          echo >> makedefsafter          echo >> makedefsafter
7048          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
7049    echo "${ECHO_T}yes .. turning off -O4" >&6
7050     else     else
7051          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
7052  fi  echo "${ECHO_T}no" >&6
7053    fi
7054    
7055    
7056  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
7057    
7058      
7059    trap '' 1 2 15    ac_config_files="$ac_config_files makedefc"
7060  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
7061  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
7062  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
7063  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
7064  # If it contains results you don't want to keep, you may remove or edit it.  # It is not useful on other systems.  If it contains results you don't
7065    # want to keep, you may remove or edit it.
7066  #  #
7067  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
7068  # creating it if it does not exist already.  You can give configure  # the --recheck option to rerun configure.
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
7069  #  #
7070  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
7071    # loading this file, other *unset* `ac_cv_foo' will be assigned the
7072    # following values.
7073    
7074    _ACEOF
7075    
7076  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
7077  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
7078  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
7079  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
7080  # and sets the high bit in the cache file unless we assign to the vars.  # and sets the high bit in the cache file unless we assign to the vars.
7081  (set) 2>&1 |  {
7082    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
7083    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
7084      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
7085      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
7086      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
7087        -e "s/'/'\\\\''/g" \        sed -n \
7088        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
7089      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7090    *)        ;;
7091      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
7092      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'        # `set' quotes correctly as required by POSIX, so do not add quotes.
7093      ;;        sed -n \
7094    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7095  if cmp -s $cache_file confcache; then        ;;
7096    :      esac;
7097  else  } |
7098      sed '
7099         t clear
7100         : clear
7101         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7102         t end
7103         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7104         : end' >>confcache
7105    if cmp -s $cache_file confcache; then :; else
7106    if test -w $cache_file; then    if test -w $cache_file; then
7107      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7108      cat confcache > $cache_file      cat confcache >$cache_file
7109    else    else
7110      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
7111    fi    fi
7112  fi  fi
7113  rm -f confcache  rm -f confcache
7114    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
7115  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
7116  # Let make expand exec_prefix.  # Let make expand exec_prefix.
7117  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7118    
7119  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
7120  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7121  # If there is a colon in the path, we need to keep it.  # trailing colons and then remove the whole line if VPATH becomes empty
7122    # (actually we leave an empty line to preserve line numbers).
7123  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
7124    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
7125    s/:*\$(srcdir):*/:/;
7126    s/:*\${srcdir}:*/:/;
7127    s/:*@srcdir@:*/:/;
7128    s/^\([^=]*=[    ]*\):*/\1/;
7129    s/:*$//;
7130    s/^[^=]*=[      ]*$//;
7131    }'
7132  fi  fi
7133    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
7134  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
7135    
 # Without the "./", some shells look in PATH for config.status.  
 : ${CONFIG_STATUS=./config.status}  
7136    
7137  echo creating $CONFIG_STATUS  : ${CONFIG_STATUS=./config.status}
7138  rm -f $CONFIG_STATUS  ac_clean_files_save=$ac_clean_files
7139  cat > $CONFIG_STATUS <<EOF  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7140  #! /bin/sh  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7141  # Generated automatically by configure.  echo "$as_me: creating $CONFIG_STATUS" >&6;}
7142    cat >$CONFIG_STATUS <<_ACEOF
7143    #! $SHELL
7144    # Generated by $as_me.
7145  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
 # This directory was configured as follows,  
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  
 #  
 # $0 $ac_configure_args  
 #  
7146  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
7147  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
7148    
7149  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
7150  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
7151    _ACEOF
7152    
7153    cat >>$CONFIG_STATUS <<\_ACEOF
7154    
7155    ## --------------------- ##
7156    ## M4sh Initialization.  ##
7157    ## --------------------- ##
7158    
7159    # Be Bourne compatible
7160    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7161      emulate sh
7162      NULLCMD=:
7163    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7164      set -o posix
7165    fi
7166    
7167    # NLS nuisances.
7168    # Support unset when possible.
7169    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7170      as_unset=unset
7171    else
7172      as_unset=false
7173    fi
7174    
7175    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7176        { $as_unset LANG || test "${LANG+set}" != set; } ||
7177          { LANG=C; export LANG; }
7178    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7179        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7180          { LC_ALL=C; export LC_ALL; }
7181    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7182        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
7183          { LC_TIME=C; export LC_TIME; }
7184    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
7185        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
7186          { LC_CTYPE=C; export LC_CTYPE; }
7187    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
7188        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
7189          { LANGUAGE=C; export LANGUAGE; }
7190    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
7191        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
7192          { LC_COLLATE=C; export LC_COLLATE; }
7193    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
7194        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
7195          { LC_NUMERIC=C; export LC_NUMERIC; }
7196    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
7197        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
7198          { LC_MESSAGES=C; export LC_MESSAGES; }
7199    
7200    
7201    # Name of the executable.
7202    as_me=`(basename "$0") 2>/dev/null ||
7203    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7204             X"$0" : 'X\(//\)$' \| \
7205             X"$0" : 'X\(/\)$' \| \
7206             .     : '\(.\)' 2>/dev/null ||
7207    echo X/"$0" |
7208        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7209              /^X\/\(\/\/\)$/{ s//\1/; q; }
7210              /^X\/\(\/\).*/{ s//\1/; q; }
7211              s/.*/./; q'`
7212    
7213    # PATH needs CR, and LINENO needs CR and PATH.
7214    # Avoid depending upon Character Ranges.
7215    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7216    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7217    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7218    as_cr_digits='0123456789'
7219    as_cr_alnum=$as_cr_Letters$as_cr_digits
7220    
7221    # The user is always right.
7222    if test "${PATH_SEPARATOR+set}" != set; then
7223      echo "#! /bin/sh" >conftest.sh
7224      echo  "exit 0"   >>conftest.sh
7225      chmod +x conftest.sh
7226      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
7227        PATH_SEPARATOR=';'
7228      else
7229        PATH_SEPARATOR=:
7230      fi
7231      rm -f conftest.sh
7232    fi
7233    
7234    
7235      as_lineno_1=$LINENO
7236      as_lineno_2=$LINENO
7237      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7238      test "x$as_lineno_1" != "x$as_lineno_2" &&
7239      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7240      # Find who we are.  Look in the path if we contain no path at all
7241      # relative or not.
7242      case $0 in
7243        *[\\/]* ) as_myself=$0 ;;
7244        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245    for as_dir in $PATH
7246    do
7247      IFS=$as_save_IFS
7248      test -z "$as_dir" && as_dir=.
7249      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7250    done
7251    
7252           ;;
7253      esac
7254      # We did not find ourselves, most probably we were run as `sh COMMAND'
7255      # in which case we are not to be found in the path.
7256      if test "x$as_myself" = x; then
7257        as_myself=$0
7258      fi
7259      if test ! -f "$as_myself"; then
7260        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7261    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7262       { (exit 1); exit 1; }; }
7263      fi
7264      case $CONFIG_SHELL in
7265      '')
7266        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7268    do
7269      IFS=$as_save_IFS
7270      test -z "$as_dir" && as_dir=.
7271      for as_base in sh bash ksh sh5; do
7272             case $as_dir in
7273             /*)
7274               if ("$as_dir/$as_base" -c '
7275      as_lineno_1=$LINENO
7276      as_lineno_2=$LINENO
7277      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7278      test "x$as_lineno_1" != "x$as_lineno_2" &&
7279      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7280                 CONFIG_SHELL=$as_dir/$as_base
7281                 export CONFIG_SHELL
7282                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7283               fi;;
7284             esac
7285           done
7286    done
7287    ;;
7288      esac
7289    
7290      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7291      # uniformly replaced by the line number.  The first 'sed' inserts a
7292      # line-number line before each line; the second 'sed' does the real
7293      # work.  The second script uses 'N' to pair each line-number line
7294      # with the numbered line, and appends trailing '-' during
7295      # substitution so that $LINENO is not a special case at line end.
7296      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7297      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7298      sed '=' <$as_myself |
7299        sed '
7300          N
7301          s,$,-,
7302          : loop
7303          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7304          t loop
7305          s,-$,,
7306          s,^['$as_cr_digits']*\n,,
7307        ' >$as_me.lineno &&
7308      chmod +x $as_me.lineno ||
7309        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7310    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7311       { (exit 1); exit 1; }; }
7312    
7313      # Don't try to exec as it changes $[0], causing all sort of problems
7314      # (the dirname of $[0] is not the place where we might find the
7315      # original and so on.  Autoconf is especially sensible to this).
7316      . ./$as_me.lineno
7317      # Exit status is that of the last command.
7318      exit
7319    }
7320    
7321    
7322    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7323      *c*,-n*) ECHO_N= ECHO_C='
7324    ' ECHO_T='      ' ;;
7325      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7326      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7327    esac
7328    
7329    if expr a : '\(a\)' >/dev/null 2>&1; then
7330      as_expr=expr
7331    else
7332      as_expr=false
7333    fi
7334    
7335    rm -f conf$$ conf$$.exe conf$$.file
7336    echo >conf$$.file
7337    if ln -s conf$$.file conf$$ 2>/dev/null; then
7338      # We could just check for DJGPP; but this test a) works b) is more generic
7339      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7340      if test -f conf$$.exe; then
7341        # Don't use ln at all; we don't have any links
7342        as_ln_s='cp -p'
7343      else
7344        as_ln_s='ln -s'
7345      fi
7346    elif ln conf$$.file conf$$ 2>/dev/null; then
7347      as_ln_s=ln
7348    else
7349      as_ln_s='cp -p'
7350    fi
7351    rm -f conf$$ conf$$.exe conf$$.file
7352    
7353    as_executable_p="test -f"
7354    
7355    # Sed expression to map a string onto a valid CPP name.
7356    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7357    
7358    # Sed expression to map a string onto a valid variable name.
7359    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7360    
7361    
7362    # IFS
7363    # We need space, tab and new line, in precisely that order.
7364    as_nl='
7365    '
7366    IFS="   $as_nl"
7367    
7368    # CDPATH.
7369    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
7370    
7371    exec 6>&1
7372    
7373    # Open the log real soon, to keep \$[0] and so on meaningful, and to
7374    # report actual input values of CONFIG_FILES etc. instead of their
7375    # values after options handling.  Logging --version etc. is OK.
7376    exec 5>>config.log
7377    {
7378      echo
7379      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7380    ## Running $as_me. ##
7381    _ASBOX
7382    } >&5
7383    cat >&5 <<_CSEOF
7384    
7385    This file was extended by $as_me, which was
7386    generated by GNU Autoconf 2.53.  Invocation command line was
7387    
7388      CONFIG_FILES    = $CONFIG_FILES
7389      CONFIG_HEADERS  = $CONFIG_HEADERS
7390      CONFIG_LINKS    = $CONFIG_LINKS
7391      CONFIG_COMMANDS = $CONFIG_COMMANDS
7392      $ $0 $@
7393    
7394    _CSEOF
7395    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7396    echo >&5
7397    _ACEOF
7398    
7399    # Files that config.status was made for.
7400    if test -n "$ac_config_files"; then
7401      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7402    fi
7403    
7404    if test -n "$ac_config_headers"; then
7405      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7406    fi
7407    
7408    if test -n "$ac_config_links"; then
7409      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7410    fi
7411    
7412    if test -n "$ac_config_commands"; then
7413      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7414    fi
7415    
7416    cat >>$CONFIG_STATUS <<\_ACEOF
7417    
7418    ac_cs_usage="\
7419    \`$as_me' instantiates files from templates according to the
7420    current configuration.
7421    
7422    Usage: $0 [OPTIONS] [FILE]...
7423    
7424      -h, --help       print this help, then exit
7425      -V, --version    print version number, then exit
7426      -d, --debug      don't remove temporary files
7427          --recheck    update $as_me by reconfiguring in the same conditions
7428      --file=FILE[:TEMPLATE]
7429                       instantiate the configuration file FILE
7430      --header=FILE[:TEMPLATE]
7431                       instantiate the configuration header FILE
7432    
7433    Configuration files:
7434    $config_files
7435    
7436    Configuration headers:
7437    $config_headers
7438    
7439    Report bugs to <bug-autoconf@gnu.org>."
7440    _ACEOF
7441    
7442    cat >>$CONFIG_STATUS <<_ACEOF
7443    ac_cs_version="\\
7444    config.status
7445    configured by $0, generated by GNU Autoconf 2.53,
7446      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7447    
7448    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7449    Free Software Foundation, Inc.
7450    This config.status script is free software; the Free Software Foundation
7451    gives unlimited permission to copy, distribute and modify it."
7452    srcdir=$srcdir
7453    _ACEOF
7454    
7455    cat >>$CONFIG_STATUS <<\_ACEOF
7456    # If no file are specified by the user, then we need to provide default
7457    # value.  By we need to know if files were specified by the user.
7458    ac_need_defaults=:
7459    while test $# != 0
7460  do  do
7461    case "\$ac_option" in    case $1 in
7462      --*=*)
7463        ac_option=`expr "x$1" : 'x\([^=]*\)='`
7464        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7465        shift
7466        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7467        shift
7468        ;;
7469      -*);;
7470      *) # This is not an option, so the user has probably given explicit
7471         # arguments.
7472         ac_need_defaults=false;;
7473      esac
7474    
7475      case $1 in
7476      # Handling of the options.
7477    _ACEOF
7478    cat >>$CONFIG_STATUS <<_ACEOF
7479    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7480      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7481      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7482    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  _ACEOF
7483      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\_ACEOF
7484      exit 0 ;;    --version | --vers* | -V )
7485    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
7486      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
7487    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
7488        { { echo "$as_me:$LINENO: error: ambiguous option: $1
7489    Try \`$0 --help' for more information." >&5
7490    echo "$as_me: error: ambiguous option: $1
7491    Try \`$0 --help' for more information." >&2;}
7492       { (exit 1); exit 1; }; };;
7493      --help | --hel | -h )
7494        echo "$ac_cs_usage"; exit 0 ;;
7495      --debug | --d* | -d )
7496        debug=: ;;
7497      --file | --fil | --fi | --f )
7498        shift
7499        CONFIG_FILES="$CONFIG_FILES $1"
7500        ac_need_defaults=false;;
7501      --header | --heade | --head | --hea )
7502        shift
7503        CONFIG_HEADERS="$CONFIG_HEADERS $1"
7504        ac_need_defaults=false;;
7505    
7506      # This is an error.
7507      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7508    Try \`$0 --help' for more information." >&5
7509    echo "$as_me: error: unrecognized option: $1
7510    Try \`$0 --help' for more information." >&2;}
7511       { (exit 1); exit 1; }; } ;;
7512    
7513      *) ac_config_targets="$ac_config_targets $1" ;;
7514    
7515    esac    esac
7516      shift
7517  done  done
7518    
7519  ac_given_srcdir=$srcdir  _ACEOF
7520    
 trap 'rm -fr `echo "makedefc h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
7521    
 # Protect against being on the right side of a sed subst in config.status.  
 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  
  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  
 $ac_vpsub  
 $extrasub  
 s%@SHELL@%$SHELL%g  
 s%@CFLAGS@%$CFLAGS%g  
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
 s%@GCC@%$GCC%g  
 s%@AWK@%$AWK%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@LITTLE_END@%$LITTLE_END%g  
 s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
 s%@FLISP@%$FLISP%g  
 s%@PAGEWIDTH@%$PAGEWIDTH%g  
 s%@RL_OBJS@%$RL_OBJS%g  
 s%@RL_LIB@%$RL_LIB%g  
 s%@NO_PROFILE@%$NO_PROFILE%g  
 s%@HAVE_SETENV@%$HAVE_SETENV%g  
 s%@HAVE_PUTENV@%$HAVE_PUTENV%g  
 s%@USE_CLEANUP@%$USE_CLEANUP%g  
 s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g  
 s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g  
 s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g  
 s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g  
 s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g  
 s%@EMACS@%$EMACS%g  
 s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g  
 s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g  
 s%@INFO_DIR@%$INFO_DIR%g  
 s%@TCLSH@%$TCLSH%g  
 s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g  
 s%@TK_LIBRARY@%$TK_LIBRARY%g  
 s%@TCL_LIBRARY@%$TCL_LIBRARY%g  
 s%@TK_XINCLUDES@%$TK_XINCLUDES%g  
 s%@TK_INCLUDE@%$TK_INCLUDE%g  
 s%@TCL_INCLUDE@%$TCL_INCLUDE%g  
 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g  
 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g  
 s%@TK_XLIBSW@%$TK_XLIBSW%g  
 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g  
 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g  
 s%@TCL_LIBS@%$TCL_LIBS%g  
 s%@NOTIFY@%$NOTIFY%g  
 s%@GMP@%$GMP%g  
 s%@MP_INCLUDE@%$MP_INCLUDE%g  
 s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g  
 s%@use@%$use%g  
7522    
7523    
7524    
7525    cat >>$CONFIG_STATUS <<\_ACEOF
7526    for ac_config_target in $ac_config_targets
7527    do
7528      case "$ac_config_target" in
7529      # Handling of arguments.
7530      "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
7531      "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
7532      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7533    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7534       { (exit 1); exit 1; }; };;
7535      esac
7536    done
7537    
7538    # If the user did not use the arguments to specify the items to instantiate,
7539    # then the envvar interface is used.  Set only those that are not.
7540    # We use the long form for the default assignment because of an extremely
7541    # bizarre bug on SunOS 4.1.3.
7542    if $ac_need_defaults; then
7543      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7544      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7545    fi
7546    
7547    # Create a temporary directory, and hook for its removal unless debugging.
7548    $debug ||
7549    {
7550      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7551      trap '{ (exit 1); exit 1; }' 1 2 13 15
7552    }
7553    
7554    # Create a (secure) tmp directory for tmp files.
7555    : ${TMPDIR=/tmp}
7556    {
7557      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7558      test -n "$tmp" && test -d "$tmp"
7559    }  ||
7560    {
7561      tmp=$TMPDIR/cs$$-$RANDOM
7562      (umask 077 && mkdir $tmp)
7563    } ||
7564    {
7565       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7566       { (exit 1); exit 1; }
7567    }
7568    
7569    _ACEOF
7570    
7571    cat >>$CONFIG_STATUS <<_ACEOF
7572    
7573    #
7574    # CONFIG_FILES section.
7575    #
7576    
7577    # No need to generate the scripts if there are no CONFIG_FILES.
7578    # This happens for instance when ./config.status config.h
7579    if test -n "\$CONFIG_FILES"; then
7580      # Protect against being on the right side of a sed subst in config.status.
7581      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7582       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7583    s,@SHELL@,$SHELL,;t t
7584    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7585    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7586    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7587    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7588    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7589    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7590    s,@exec_prefix@,$exec_prefix,;t t
7591    s,@prefix@,$prefix,;t t
7592    s,@program_transform_name@,$program_transform_name,;t t
7593    s,@bindir@,$bindir,;t t
7594    s,@sbindir@,$sbindir,;t t
7595    s,@libexecdir@,$libexecdir,;t t
7596    s,@datadir@,$datadir,;t t
7597    s,@sysconfdir@,$sysconfdir,;t t
7598    s,@sharedstatedir@,$sharedstatedir,;t t
7599    s,@localstatedir@,$localstatedir,;t t
7600    s,@libdir@,$libdir,;t t
7601    s,@includedir@,$includedir,;t t
7602    s,@oldincludedir@,$oldincludedir,;t t
7603    s,@infodir@,$infodir,;t t
7604    s,@mandir@,$mandir,;t t
7605    s,@build_alias@,$build_alias,;t t
7606    s,@host_alias@,$host_alias,;t t
7607    s,@target_alias@,$target_alias,;t t
7608    s,@DEFS@,$DEFS,;t t
7609    s,@ECHO_C@,$ECHO_C,;t t
7610    s,@ECHO_N@,$ECHO_N,;t t
7611    s,@ECHO_T@,$ECHO_T,;t t
7612    s,@LIBS@,$LIBS,;t t
7613    s,@build@,$build,;t t
7614    s,@build_cpu@,$build_cpu,;t t
7615    s,@build_vendor@,$build_vendor,;t t
7616    s,@build_os@,$build_os,;t t
7617    s,@host@,$host,;t t
7618    s,@host_cpu@,$host_cpu,;t t
7619    s,@host_vendor@,$host_vendor,;t t
7620    s,@host_os@,$host_os,;t t
7621    s,@CC@,$CC,;t t
7622    s,@CFLAGS@,$CFLAGS,;t t
7623    s,@LDFLAGS@,$LDFLAGS,;t t
7624    s,@CPPFLAGS@,$CPPFLAGS,;t t
7625    s,@ac_ct_CC@,$ac_ct_CC,;t t
7626    s,@EXEEXT@,$EXEEXT,;t t
7627    s,@OBJEXT@,$OBJEXT,;t t
7628    s,@CPP@,$CPP,;t t
7629    s,@GCC@,$GCC,;t t
7630    s,@AWK@,$AWK,;t t
7631    s,@MAKEINFO@,$MAKEINFO,;t t
7632    s,@LITTLE_END@,$LITTLE_END,;t t
7633    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
7634    s,@FLISP@,$FLISP,;t t
7635    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
7636    s,@RL_OBJS@,$RL_OBJS,;t t
7637    s,@RL_LIB@,$RL_LIB,;t t
7638    s,@NO_PROFILE@,$NO_PROFILE,;t t
7639    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
7640    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
7641    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
7642    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
7643    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
7644    s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
7645    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
7646    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
7647    s,@EMACS@,$EMACS,;t t
7648    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
7649    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
7650    s,@INFO_DIR@,$INFO_DIR,;t t
7651    s,@TCLSH@,$TCLSH,;t t
7652    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
7653    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
7654    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
7655    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
7656    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
7657    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
7658    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
7659    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
7660    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
7661    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
7662    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
7663    s,@TCL_LIBS@,$TCL_LIBS,;t t
7664    s,@NOTIFY@,$NOTIFY,;t t
7665    s,@GMP@,$GMP,;t t
7666    s,@MP_INCLUDE@,$MP_INCLUDE,;t t
7667    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
7668    s,@use@,$use,;t t
7669  CEOF  CEOF
 EOF  
7670    
7671  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
7672    
7673  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
7674  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
7675  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.    # small command number limits, like on Digital OSF/1 and HP-UX.
7676  ac_file=1 # Number of current file.    ac_max_sed_lines=48
7677  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
7678  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
7679  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
7680  ac_sed_cmds=""    ac_more_lines=:
7681  while $ac_more_lines; do    ac_sed_cmds=
7682    if test $ac_beg -gt 1; then    while $ac_more_lines; do
7683      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
7684    else        sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     sed "${ac_end}q" conftest.subs > conftest.s$ac_file  
   fi  
   if test ! -s conftest.s$ac_file; then  
     ac_more_lines=false  
     rm -f conftest.s$ac_file  
   else  
     if test -z "$ac_sed_cmds"; then  
       ac_sed_cmds="sed -f conftest.s$ac_file"  
7685      else      else
7686        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7687      fi      fi
7688      ac_file=`expr $ac_file + 1`      if test ! -s $tmp/subs.frag; then
7689      ac_beg=$ac_end        ac_more_lines=false
7690      ac_end=`expr $ac_end + $ac_max_sed_cmds`      else
7691          # The purpose of the label and of the branching condition is to
7692          # speed up the sed processing (if there are no `@' at all, there
7693          # is no need to browse any of the substitutions).
7694          # These are the two extra sed commands mentioned above.
7695          (echo ':t
7696      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7697          if test -z "$ac_sed_cmds"; then
7698            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7699          else
7700            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7701          fi
7702          ac_sed_frag=`expr $ac_sed_frag + 1`
7703          ac_beg=$ac_end
7704          ac_end=`expr $ac_end + $ac_max_sed_lines`
7705        fi
7706      done
7707      if test -z "$ac_sed_cmds"; then
7708        ac_sed_cmds=cat
7709    fi    fi
7710  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
   
 cat >> $CONFIG_STATUS <<EOF  
7711    
7712  CONFIG_FILES=\${CONFIG_FILES-"makedefc"}  _ACEOF
7713  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
7714  cat >> $CONFIG_STATUS <<\EOF  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  
7715    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7716    case "$ac_file" in    case $ac_file in
7717    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
7718         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
7719    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7720            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7721      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7722            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7723      * )   ac_file_in=$ac_file.in ;;
7724    esac    esac
7725    
7726    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7727      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7728    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7729             X"$ac_file" : 'X\(//\)[^/]' \| \
7730             X"$ac_file" : 'X\(//\)$' \| \
7731             X"$ac_file" : 'X\(/\)' \| \
7732             .     : '\(.\)' 2>/dev/null ||
7733    echo X"$ac_file" |
7734        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7735              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7736              /^X\(\/\/\)$/{ s//\1/; q; }
7737              /^X\(\/\).*/{ s//\1/; q; }
7738              s/.*/./; q'`
7739      { case "$ac_dir" in
7740      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7741      *)                      as_incr_dir=.;;
7742    esac
7743    as_dummy="$ac_dir"
7744    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7745      case $as_mkdir_dir in
7746        # Skip DOS drivespec
7747        ?:) as_incr_dir=$as_mkdir_dir ;;
7748        *)
7749          as_incr_dir=$as_incr_dir/$as_mkdir_dir
7750          test -d "$as_incr_dir" ||
7751            mkdir "$as_incr_dir" ||
7752            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7753    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7754       { (exit 1); exit 1; }; }
7755        ;;
7756      esac
7757    done; }
7758    
7759    # Remove last slash and all that follows it.  Not all systems have dirname.    ac_builddir=.
   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  
   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  
     # The file is in a subdirectory.  
     test ! -d "$ac_dir" && mkdir "$ac_dir"  
     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"  
     # A "../" for each directory in $ac_dir_suffix.  
     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`  
   else  
     ac_dir_suffix= ac_dots=  
   fi  
7760    
7761    case "$ac_given_srcdir" in  if test "$ac_dir" != .; then
7762    .)  srcdir=.    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7763        if test -z "$ac_dots"; then top_srcdir=.    # A "../" for each directory in $ac_dir_suffix.
7764        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7765    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;  else
7766      ac_dir_suffix= ac_top_builddir=
7767    fi
7768    
7769    case $srcdir in
7770      .)  # No --srcdir option.  We are building in place.
7771        ac_srcdir=.
7772        if test -z "$ac_top_builddir"; then
7773           ac_top_srcdir=.
7774        else
7775           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7776        fi ;;
7777      [\\/]* | ?:[\\/]* )  # Absolute path.
7778        ac_srcdir=$srcdir$ac_dir_suffix;
7779        ac_top_srcdir=$srcdir ;;
7780    *) # Relative path.    *) # Relative path.
7781      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7782      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
7783    esac  esac
7784    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7785    # absolute.
7786    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7787    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7788    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7789    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7790    
7791    
   echo creating "$ac_file"  
   rm -f "$ac_file"  
   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  
   case "$ac_file" in  
   *Makefile*) ac_comsub="1i\\  
 # $configure_input" ;;  
   *) ac_comsub= ;;  
   esac  
7792    
7793    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    if test x"$ac_file" != x-; then
7794    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
7795  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
7796  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
7797  s%@top_srcdir@%$top_srcdir%g    fi
7798  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
7799  fi; done    # use $as_me), people would be surprised to read:
7800  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
7801      if test x"$ac_file" = x-; then
7802        configure_input=
7803      else
7804        configure_input="$ac_file.  "
7805      fi
7806      configure_input=$configure_input"Generated from `echo $ac_file_in |
7807                                         sed 's,.*/,,'` by configure."
7808    
7809      # First look for the input files in the build tree, otherwise in the
7810      # src tree.
7811      ac_file_inputs=`IFS=:
7812        for f in $ac_file_in; do
7813          case $f in
7814          -) echo $tmp/stdin ;;
7815          [\\/$]*)
7816             # Absolute (can't be DOS-style, as IFS=:)
7817             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7818    echo "$as_me: error: cannot find input file: $f" >&2;}
7819       { (exit 1); exit 1; }; }
7820             echo $f;;
7821          *) # Relative
7822             if test -f "$f"; then
7823               # Build tree
7824               echo $f
7825             elif test -f "$srcdir/$f"; then
7826               # Source tree
7827               echo $srcdir/$f
7828             else
7829               # /dev/null tree
7830               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7831    echo "$as_me: error: cannot find input file: $f" >&2;}
7832       { (exit 1); exit 1; }; }
7833             fi;;
7834          esac
7835        done` || { (exit 1); exit 1; }
7836    _ACEOF
7837    cat >>$CONFIG_STATUS <<_ACEOF
7838      sed "$ac_vpsub
7839    $extrasub
7840    _ACEOF
7841    cat >>$CONFIG_STATUS <<\_ACEOF
7842    :t
7843    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7844    s,@configure_input@,$configure_input,;t t
7845    s,@srcdir@,$ac_srcdir,;t t
7846    s,@abs_srcdir@,$ac_abs_srcdir,;t t
7847    s,@top_srcdir@,$ac_top_srcdir,;t t
7848    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7849    s,@builddir@,$ac_builddir,;t t
7850    s,@abs_builddir@,$ac_abs_builddir,;t t
7851    s,@top_builddir@,$ac_top_builddir,;t t
7852    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7853    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7854      rm -f $tmp/stdin
7855      if test x"$ac_file" != x-; then
7856        mv $tmp/out $ac_file
7857      else
7858        cat $tmp/out
7859        rm -f $tmp/out
7860      fi
7861    
7862    done
7863    _ACEOF
7864    cat >>$CONFIG_STATUS <<\_ACEOF
7865    
7866    #
7867    # CONFIG_HEADER section.
7868    #
7869    
7870  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7871  # NAME is the cpp macro being defined and VALUE is the value it is being given.  # NAME is the cpp macro being defined and VALUE is the value it is being given.
7872  #  #
7873  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
7874  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7875  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
7876  ac_dC='\3'  ac_dC=' '
7877  ac_dD='%g'  ac_dD=',;t'
7878  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7879  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7880  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
7881  ac_uC=' '  ac_uC=' '
7882  ac_uD='\4%g'  ac_uD=',;t'
 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  
 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  
 ac_eB='$%\1#\2define\3'  
 ac_eC=' '  
 ac_eD='%g'  
7883    
7884  if test "${CONFIG_HEADERS+set}" != set; then  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   CONFIG_HEADERS="h/gclincl.h"  
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 fi  
 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  
7885    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7886    case "$ac_file" in    case $ac_file in
7887    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
7888         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
7889    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7890            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7891      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7892            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7893      * )   ac_file_in=$ac_file.in ;;
7894    esac    esac
7895    
7896    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7897    echo "$as_me: creating $ac_file" >&6;}
   rm -f conftest.frag conftest.in conftest.out  
   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`  
   cat $ac_file_inputs > conftest.in  
7898    
7899  EOF    # First look for the input files in the build tree, otherwise in the
7900      # src tree.
7901  # Transform confdefs.h into a sed script conftest.vals that substitutes    ac_file_inputs=`IFS=:
7902  # the proper values into config.h.in to produce config.h.  And first:      for f in $ac_file_in; do
7903  # Protect against being on the right side of a sed subst in config.status.        case $f in
7904  # Protect against being in an unquoted here document in config.status.        -) echo $tmp/stdin ;;
7905  rm -f conftest.vals        [\\/$]*)
7906  cat > conftest.hdr <<\EOF           # Absolute (can't be DOS-style, as IFS=:)
7907  s/[\\&%]/\\&/g           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7908  s%[\\$`]%\\&%g  echo "$as_me: error: cannot find input file: $f" >&2;}
7909  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp     { (exit 1); exit 1; }; }
7910  s%ac_d%ac_u%gp           echo $f;;
7911  s%ac_u%ac_e%gp        *) # Relative
7912  EOF           if test -f "$f"; then
7913  sed -n -f conftest.hdr confdefs.h > conftest.vals             # Build tree
7914  rm -f conftest.hdr             echo $f
7915             elif test -f "$srcdir/$f"; then
7916               # Source tree
7917               echo $srcdir/$f
7918             else
7919               # /dev/null tree
7920               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7921    echo "$as_me: error: cannot find input file: $f" >&2;}
7922       { (exit 1); exit 1; }; }
7923             fi;;
7924          esac
7925        done` || { (exit 1); exit 1; }
7926      # Remove the trailing spaces.
7927      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7928    
7929    _ACEOF
7930    
7931    # Transform confdefs.h into two sed scripts, `conftest.defines' and
7932    # `conftest.undefs', that substitutes the proper values into
7933    # config.h.in to produce config.h.  The first handles `#define'
7934    # templates, and the second `#undef' templates.
7935    # And first: Protect against being on the right side of a sed subst in
7936    # config.status.  Protect against being in an unquoted here document
7937    # in config.status.
7938    rm -f conftest.defines conftest.undefs
7939    # Using a here document instead of a string reduces the quoting nightmare.
7940    # Putting comments in sed scripts is not portable.
7941    #
7942    # `end' is used to avoid that the second main sed command (meant for
7943    # 0-ary CPP macros) applies to n-ary macro definitions.
7944    # See the Autoconf documentation for `clear'.
7945    cat >confdef2sed.sed <<\_ACEOF
7946    s/[\\&,]/\\&/g
7947    s,[\\$`],\\&,g
7948    t clear
7949    : clear
7950    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7951    t end
7952    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7953    : end
7954    _ACEOF
7955    # If some macros were called several times there might be several times
7956    # the same #defines, which is useless.  Nevertheless, we may not want to
7957    # sort them, since we want the *last* AC-DEFINE to be honored.
7958    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7959    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7960    rm -f confdef2sed.sed
7961    
7962  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
7963  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
7964  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
7965  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
7966  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7967  EOF  _ACEOF
7968    
7969  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
7970  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
7971    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7972    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7973    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7974    echo '  :' >>$CONFIG_STATUS
7975    rm -f conftest.tail
7976    while grep . conftest.defines >/dev/null
7977    do
7978      # Write a limited-size here document to $tmp/defines.sed.
7979      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7980      # Speed up: don't consider the non `#define' lines.
7981      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7982      # Work around the forget-to-reset-the-flag bug.
7983      echo 't clr' >>$CONFIG_STATUS
7984      echo ': clr' >>$CONFIG_STATUS
7985      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7986      echo 'CEOF
7987      sed -f $tmp/defines.sed $tmp/in >$tmp/out
7988      rm -f $tmp/in
7989      mv $tmp/out $tmp/in
7990    ' >>$CONFIG_STATUS
7991      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7992      rm -f conftest.defines
7993      mv conftest.tail conftest.defines
7994    done
7995    rm -f conftest.defines
7996    echo '  fi # egrep' >>$CONFIG_STATUS
7997    echo >>$CONFIG_STATUS
7998    
7999    # Break up conftest.undefs because some shells have a limit on the size
8000    # of here documents, and old seds have small limits too (100 cmds).
8001    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8002  rm -f conftest.tail  rm -f conftest.tail
8003  while :  while grep . conftest.undefs >/dev/null
8004  do  do
8005    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
8006    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8007    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
8008    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8009    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
8010    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
8011      echo ': clr' >>$CONFIG_STATUS
8012      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8013    echo 'CEOF    echo 'CEOF
8014    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8015    rm -f conftest.in    rm -f $tmp/in
8016    mv conftest.out conftest.in    mv $tmp/out $tmp/in
8017  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
8018    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8019    rm -f conftest.vals    rm -f conftest.undefs
8020    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
8021  done  done
8022  rm -f conftest.vals  rm -f conftest.undefs
8023    
8024  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
8025    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
8026    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
8027    cat conftest.in >> conftest.h    #    /* config.h.  Generated by config.status.  */
8028    rm -f conftest.in    if test x"$ac_file" = x-; then
8029    if cmp -s $ac_file conftest.h 2>/dev/null; then      echo "/* Generated by configure.  */" >$tmp/config.h
     echo "$ac_file is unchanged"  
     rm -f conftest.h  
8030    else    else
8031      # Remove last slash and all that follows it.  Not all systems have dirname.      echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  
       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  
       # The file is in a subdirectory.  
       test ! -d "$ac_dir" && mkdir "$ac_dir"  
     fi  
     rm -f $ac_file  
     mv conftest.h $ac_file  
8032    fi    fi
8033  fi; done    cat $tmp/in >>$tmp/config.h
8034      rm -f $tmp/in
8035      if test x"$ac_file" != x-; then
8036        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8037          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8038    echo "$as_me: $ac_file is unchanged" >&6;}
8039        else
8040          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8041    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8042             X"$ac_file" : 'X\(//\)[^/]' \| \
8043             X"$ac_file" : 'X\(//\)$' \| \
8044             X"$ac_file" : 'X\(/\)' \| \
8045             .     : '\(.\)' 2>/dev/null ||
8046    echo X"$ac_file" |
8047        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8048              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8049              /^X\(\/\/\)$/{ s//\1/; q; }
8050              /^X\(\/\).*/{ s//\1/; q; }
8051              s/.*/./; q'`
8052          { case "$ac_dir" in
8053      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8054      *)                      as_incr_dir=.;;
8055    esac
8056    as_dummy="$ac_dir"
8057    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8058      case $as_mkdir_dir in
8059        # Skip DOS drivespec
8060        ?:) as_incr_dir=$as_mkdir_dir ;;
8061        *)
8062          as_incr_dir=$as_incr_dir/$as_mkdir_dir
8063          test -d "$as_incr_dir" ||
8064            mkdir "$as_incr_dir" ||
8065            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8066    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8067       { (exit 1); exit 1; }; }
8068        ;;
8069      esac
8070    done; }
8071    
8072  EOF        rm -f $ac_file
8073  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
8074        fi
8075      else
8076        cat $tmp/config.h
8077        rm -f $tmp/config.h
8078      fi
8079    done
8080    _ACEOF
8081    
8082  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
8083    
8084  exit 0  { (exit 0); exit 0; }
8085  EOF  _ACEOF
8086  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
8087  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
8088  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
8089    
8090    # configure is writing to config.log, and then calls config.status.
8091    # config.status does its own redirection, appending to config.log.
8092    # Unfortunately, on DOS this fails, as config.log is still kept open
8093    # by configure, so config.status won't be able to write to it; its
8094    # output is simply discarded.  So we exec the FD to /dev/null,
8095    # effectively closing config.log, so it can be properly (re)opened and
8096    # appended to by config.status.  When coming back to configure, we
8097    # need to make the FD available again.
8098    if test "$no_create" != yes; then
8099      ac_cs_success=:
8100      exec 5>/dev/null
8101      $SHELL $CONFIG_STATUS || ac_cs_success=false
8102      exec 5>>config.log
8103      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8104      # would make configure fail if this is the last instruction.
8105      $ac_cs_success || { (exit 1); exit 1; }
8106    fi
8107    
8108    echo makedefc    echo makedefc
8109    cat makedefc    cat makedefc

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26