/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.107.4.1.2.2.2.5 by camm, Sun Sep 14 02:30:28 2003 UTC revision 1.107.4.1.2.2.2.6 by mjthomas, Thu Sep 18 07:45:34 2003 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-bdssize=XXXX will compile in a binding stack of size XXX "  # 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-ihssize=XXXX will compile in a invocation history stack of size XXX "  # only ac_max_sed_lines should be used.
252  ac_help="$ac_help  : ${ac_max_here_lines=38}
253   --enable-frssize=XXXX will compile in a frame stack of size XXX "  
254  ac_help="$ac_help  # Identity of this package.
255   --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs "  PACKAGE_NAME=
256  ac_help="$ac_help  PACKAGE_TARNAME=
257   --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) "  PACKAGE_VERSION=
258  ac_help="$ac_help  PACKAGE_STRING=
259   --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems "  PACKAGE_BUGREPORT=
260  ac_help="$ac_help  
261   --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh  "  # Factoring default headers for most tests.
262  ac_help="$ac_help  ac_includes_default="\
263   --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh  "  #include <stdio.h>
264  ac_help="$ac_help  #if HAVE_SYS_TYPES_H
265   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "  # include <sys/types.h>
266  ac_help="$ac_help  #endif
267   --enable-emacsdir=XXXX will manually specify the location for elisp files  "  #if HAVE_SYS_STAT_H
268  ac_help="$ac_help  # include <sys/stat.h>
269   --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) "  #endif
270  ac_help="$ac_help  #if STDC_HEADERS
271   --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system"  # include <stdlib.h>
272  ac_help="$ac_help  # include <stddef.h>
273   --enable-xdr=yes will compile in support for XDR"  #else
274  ac_help="$ac_help  # if HAVE_STDLIB_H
275   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images  #  include <stdlib.h>
276          "  # endif
277  ac_help="$ac_help  #endif
278   --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files  #if HAVE_STRING_H
279          "  # if !STDC_HEADERS && HAVE_MEMORY_H
280  ac_help="$ac_help  #  include <memory.h>
281   --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files  # endif
282          "  # include <string.h>
283  ac_help="$ac_help  #endif
284   --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files  #if HAVE_STRINGS_H
285          "  # include <strings.h>
286  ac_help="$ac_help  #endif
287   --enable-custreloc uses custom gcl code if available for loading  and relocationing object files  #if HAVE_INTTYPES_H
288          "  # include <inttypes.h>
289  ac_help="$ac_help  #else
290   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb  # if HAVE_STDINT_H
291          "  #  include <stdint.h>
292  ac_help="$ac_help  # endif
293   --enable-static will link your GCL against static as opposed to shared system libraries  "  #endif
294  ac_help="$ac_help  #if HAVE_UNISTD_H
295   --enable-pic builds gcl with -fPIC in CFLAGS  # include <unistd.h>
296          "  #endif"
297  ac_help="$ac_help  
  --enable-oldgmp will link against gmp2 instead of gmp3  
         "  
 ac_help="$ac_help  
  --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source  
         "  
 ac_help="$ac_help  
   --with-x                use the X Window System"  
 ac_help="$ac_help  
 --enable-readine    enables command line completion via the readline library "  
 ac_help="$ac_help  
 --enable-ansi builds a large gcl aiming for ansi compliance,  
                     --disable-ansi builds the smaller traditional CLtL1 image"  
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 95  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 112  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 130  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 191  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 288  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 314  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 350  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 360  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 371  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 433  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  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
639       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
640  fi  fi
 exec 5>./config.log  
641    
642  echo "\  # Be sure to have absolute paths.
643  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
644  running configure, to aid debugging if configure makes a mistake.  do
645  " 1>&5    eval ac_val=$`echo $ac_var`
646      case $ac_val in
647        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
648        *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649       { (exit 1); exit 1; }; };;
650      esac
651    done
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 535  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    X features:
816      --x-includes=DIR    X include files are in DIR
817      --x-libraries=DIR   X library files are in DIR
818    
819    System types:
820      --build=BUILD     configure for building on BUILD [guessed]
821      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
822    _ACEOF
823    fi
824    
825    if test -n "$ac_init_help"; then
826    
827      cat <<\_ACEOF
828    
829    Optional Features:
830      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
831      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
832     --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)
833     --enable-vssize=XXXX will compile in a value stack of size XXX
834     --enable-bdssize=XXXX will compile in a binding stack of size XXX
835     --enable-ihssize=XXXX will compile in a invocation history stack of size XXX
836     --enable-frssize=XXXX will compile in a frame stack of size XXX
837     --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
838     --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)
839     --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
840     --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
841     --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
842     --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
843     --enable-emacsdir=XXXX will manually specify the location for elisp files
844     --enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes)
845     --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system
846     --enable-xdr=yes will compile in support for XDR
847     --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
848    
849     --enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files
850    
851     --enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files
852    
853     --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files
854    
855     --enable-custreloc uses custom gcl code if available for loading  and relocationing object files
856    
857     --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
858    
859     --enable-static will link your GCL against static as opposed to shared system libraries
860     --enable-pic builds gcl with -fPIC in CFLAGS
861    
862     --enable-oldgmp will link against gmp2 instead of gmp3
863    
864     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
865    
866    --enable-readine    enables command line completion via the readline library
867    --enable-ansi builds a large gcl aiming for ansi compliance,
868                        --disable-ansi builds the smaller traditional CLtL1 image
869    
870    Optional Packages:
871      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873      --with-x                use the X Window System
874    
875    Some influential environment variables:
876      CC          C compiler command
877      CFLAGS      C compiler flags
878      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879                  nonstandard directory <lib dir>
880      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881                  headers in a nonstandard directory <include dir>
882      CPP         C preprocessor
883    
884    Use these variables to override the choices made by `configure' or to help
885    it to find libraries and programs with nonstandard names/locations.
886    
887    _ACEOF
888    fi
889    
890    if test "$ac_init_help" = "recursive"; then
891      # If there are subdirs, report their specific --help.
892      ac_popdir=`pwd`
893      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894        test -d $ac_dir || continue
895        ac_builddir=.
896    
897    if test "$ac_dir" != .; then
898      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899      # A "../" for each directory in $ac_dir_suffix.
900      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901    else
902      ac_dir_suffix= ac_top_builddir=
903    fi
904    
905    case $srcdir in
906      .)  # No --srcdir option.  We are building in place.
907        ac_srcdir=.
908        if test -z "$ac_top_builddir"; then
909           ac_top_srcdir=.
910        else
911           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912        fi ;;
913      [\\/]* | ?:[\\/]* )  # Absolute path.
914        ac_srcdir=$srcdir$ac_dir_suffix;
915        ac_top_srcdir=$srcdir ;;
916      *) # Relative path.
917        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918        ac_top_srcdir=$ac_top_builddir$srcdir ;;
919    esac
920    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
921    # absolute.
922    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
923    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
924    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
925    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
926    
927        cd $ac_dir
928        # Check for guested configure; otherwise get Cygnus style configure.
929        if test -f $ac_srcdir/configure.gnu; then
930          echo
931          $SHELL $ac_srcdir/configure.gnu  --help=recursive
932        elif test -f $ac_srcdir/configure; then
933          echo
934          $SHELL $ac_srcdir/configure  --help=recursive
935        elif test -f $ac_srcdir/configure.ac ||
936               test -f $ac_srcdir/configure.in; then
937          echo
938          $ac_configure --help
939        else
940          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941        fi
942        cd $ac_popdir
943      done
944    fi
945    
946    test -n "$ac_init_help" && exit 0
947    if $ac_init_version; then
948      cat <<\_ACEOF
949    
950    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
951    Free Software Foundation, Inc.
952    This configure script is free software; the Free Software Foundation
953    gives unlimited permission to copy, distribute and modify it.
954    _ACEOF
955      exit 0
956    fi
957    exec 5>config.log
958    cat >&5 <<_ACEOF
959    This file contains any messages produced by compilers while
960    running configure, to aid debugging if configure makes a mistake.
961    
962    It was created by $as_me, which was
963    generated by GNU Autoconf 2.53.  Invocation command line was
964    
965      $ $0 $@
966    
967    _ACEOF
968    {
969    cat <<_ASUNAME
970    ## --------- ##
971    ## Platform. ##
972    ## --------- ##
973    
974    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
975    uname -m = `(uname -m) 2>/dev/null || echo unknown`
976    uname -r = `(uname -r) 2>/dev/null || echo unknown`
977    uname -s = `(uname -s) 2>/dev/null || echo unknown`
978    uname -v = `(uname -v) 2>/dev/null || echo unknown`
979    
980    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
981    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
982    
983    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
984    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
985    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
986    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
987    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
988    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
989    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
990    
991    _ASUNAME
992    
993    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994    for as_dir in $PATH
995    do
996      IFS=$as_save_IFS
997      test -z "$as_dir" && as_dir=.
998      echo "PATH: $as_dir"
999    done
1000    
1001    } >&5
1002    
1003    cat >&5 <<_ACEOF
1004    
1005    
1006    ## ----------- ##
1007    ## Core tests. ##
1008    ## ----------- ##
1009    
1010    _ACEOF
1011    
1012    
1013    # Keep a trace of the command line.
1014    # Strip out --no-create and --no-recursion so they do not pile up.
1015    # Also quote any args containing shell meta-characters.
1016    ac_configure_args=
1017    ac_sep=
1018    for ac_arg
1019    do
1020      case $ac_arg in
1021      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022      | --no-cr | --no-c | -n ) continue ;;
1023      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025        continue ;;
1026      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1027        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1028      esac
1029      case " $ac_configure_args " in
1030        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1031        *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1032           ac_sep=" " ;;
1033      esac
1034      # Get rid of the leading space.
1035    done
1036    
1037    # When interrupted or exit'd, cleanup temporary files, and complete
1038    # config.log.  We remove comments because anyway the quotes in there
1039    # would cause problems or look ugly.
1040    # WARNING: Be sure not to use single quotes in there, as some shells,
1041    # such as our DU 5.0 friend, will then `close' the trap.
1042    trap 'exit_status=$?
1043      # Save into config.log some information that might help in debugging.
1044      {
1045        echo
1046        cat <<\_ASBOX
1047    ## ---------------- ##
1048    ## Cache variables. ##
1049    ## ---------------- ##
1050    _ASBOX
1051        echo
1052        # The following way of writing the cache mishandles newlines in values,
1053    {
1054      (set) 2>&1 |
1055        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1056        *ac_space=\ *)
1057          sed -n \
1058            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1059              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1060          ;;
1061        *)
1062          sed -n \
1063            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1064          ;;
1065        esac;
1066    }
1067        echo
1068        if test -s confdefs.h; then
1069          cat <<\_ASBOX
1070    ## ----------- ##
1071    ## confdefs.h. ##
1072    ## ----------- ##
1073    _ASBOX
1074          echo
1075          sed "/^$/d" confdefs.h
1076          echo
1077        fi
1078        test "$ac_signal" != 0 &&
1079          echo "$as_me: caught signal $ac_signal"
1080        echo "$as_me: exit $exit_status"
1081      } >&5
1082      rm -f core core.* *.core &&
1083      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1084        exit $exit_status
1085         ' 0
1086    for ac_signal in 1 2 13 15; do
1087      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1088    done
1089    ac_signal=0
1090    
1091    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1092    rm -rf conftest* confdefs.h
1093    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1094    echo >confdefs.h
1095    
1096    # Predefined preprocessor variables.
1097    
1098    cat >>confdefs.h <<_ACEOF
1099    #define PACKAGE_NAME "$PACKAGE_NAME"
1100    _ACEOF
1101    
1102    
1103    cat >>confdefs.h <<_ACEOF
1104    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1105    _ACEOF
1106    
1107    
1108    cat >>confdefs.h <<_ACEOF
1109    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1110    _ACEOF
1111    
1112    
1113    cat >>confdefs.h <<_ACEOF
1114    #define PACKAGE_STRING "$PACKAGE_STRING"
1115    _ACEOF
1116    
1117    
1118    cat >>confdefs.h <<_ACEOF
1119    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1120    _ACEOF
1121    
1122    
1123    # Let the site file select an alternate cache file if it wants to.
1124  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1125  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1126    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 552  if test -z "$CONFIG_SITE"; then Line 1131  if test -z "$CONFIG_SITE"; then
1131  fi  fi
1132  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1133    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1134      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1135    echo "$as_me: loading site script $ac_site_file" >&6;}
1136        sed 's/^/| /' "$ac_site_file" >&5
1137      . "$ac_site_file"      . "$ac_site_file"
1138    fi    fi
1139  done  done
1140    
1141  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1142    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1143    . $cache_file    # files actually), so we avoid doing that.
1144      if test -f "$cache_file"; then
1145        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1146    echo "$as_me: loading cache $cache_file" >&6;}
1147        case $cache_file in
1148          [\\/]* | ?:[\\/]* ) . $cache_file;;
1149          *)                      . ./$cache_file;;
1150        esac
1151      fi
1152  else  else
1153    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1154    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1155      >$cache_file
1156    fi
1157    
1158    # Check that the precious variables saved in the cache have kept the same
1159    # value.
1160    ac_cache_corrupted=false
1161    for ac_var in `(set) 2>&1 |
1162                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1163      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1164      eval ac_new_set=\$ac_env_${ac_var}_set
1165      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1166      eval ac_new_val="\$ac_env_${ac_var}_value"
1167      case $ac_old_set,$ac_new_set in
1168        set,)
1169          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1170    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1171          ac_cache_corrupted=: ;;
1172        ,set)
1173          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1174    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1175          ac_cache_corrupted=: ;;
1176        ,);;
1177        *)
1178          if test "x$ac_old_val" != "x$ac_new_val"; then
1179            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1180    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1181            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1182    echo "$as_me:   former value:  $ac_old_val" >&2;}
1183            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1184    echo "$as_me:   current value: $ac_new_val" >&2;}
1185            ac_cache_corrupted=:
1186          fi;;
1187      esac
1188      # Pass precious variables to config.status.
1189      if test "$ac_new_set" = set; then
1190        case $ac_new_val in
1191        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1192          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1193        *) ac_arg=$ac_var=$ac_new_val ;;
1194        esac
1195        case " $ac_configure_args " in
1196          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1197          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1198        esac
1199      fi
1200    done
1201    if $ac_cache_corrupted; then
1202      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1203    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1204      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1205    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1206       { (exit 1); exit 1; }; }
1207  fi  fi
1208    
1209  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1210  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1211  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212  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'
1213  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214    
1215  ac_exeext=  
1216  ac_objext=o  
1217  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1218    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
1219    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
1220      ac_n= ac_c='  
1221  ' ac_t='        '  
1222    else  
1223      ac_n=-n ac_c= ac_t=  
1224    fi  
1225  else  
1226    ac_n= ac_c='\c' ac_t=  
1227  fi  
1228    
1229    
1230    
1231    
1232    ac_config_headers="$ac_config_headers h/gclincl.h"
1233    
1234    
1235  VERSION=2.5.4  VERSION=2.5.4
1236    
1237    
# Line 602  help="--enable-maxpage=XXXX will compile Line 1245  help="--enable-maxpage=XXXX will compile
1245  # Check whether --enable-maxpage or --disable-maxpage was given.  # Check whether --enable-maxpage or --disable-maxpage was given.
1246  if test "${enable_maxpage+set}" = set; then  if test "${enable_maxpage+set}" = set; then
1247    enableval="$enable_maxpage"    enableval="$enable_maxpage"
1248    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1249  #define MAXPAGE $enable_maxpage  #define MAXPAGE $enable_maxpage
1250  EOF  _ACEOF
   
 fi  
1251    
1252    fi;
1253    
1254  # Check whether --enable-vssize or --disable-vssize was given.  # Check whether --enable-vssize or --disable-vssize was given.
1255  if test "${enable_vssize+set}" = set; then  if test "${enable_vssize+set}" = set; then
1256    enableval="$enable_vssize"    enableval="$enable_vssize"
1257    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1258  #define VSSIZE $enable_vssize  #define VSSIZE $enable_vssize
1259  EOF  _ACEOF
   
 fi  
1260    
1261    fi;
1262    
1263  # Check whether --enable-bdssize or --disable-bdssize was given.  # Check whether --enable-bdssize or --disable-bdssize was given.
1264  if test "${enable_bdssize+set}" = set; then  if test "${enable_bdssize+set}" = set; then
1265    enableval="$enable_bdssize"    enableval="$enable_bdssize"
1266    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1267  #define BDSSIZE $enable_bdssize  #define BDSSIZE $enable_bdssize
1268  EOF  _ACEOF
   
 fi  
1269    
1270    fi;
1271    
1272  # Check whether --enable-ihssize or --disable-ihssize was given.  # Check whether --enable-ihssize or --disable-ihssize was given.
1273  if test "${enable_ihssize+set}" = set; then  if test "${enable_ihssize+set}" = set; then
1274    enableval="$enable_ihssize"    enableval="$enable_ihssize"
1275    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1276  #define IHSSIZE $enable_ihssize  #define IHSSIZE $enable_ihssize
1277  EOF  _ACEOF
   
 fi  
1278    
1279    fi;
1280    
1281  # Check whether --enable-frssize or --disable-frssize was given.  # Check whether --enable-frssize or --disable-frssize was given.
1282  if test "${enable_frssize+set}" = set; then  if test "${enable_frssize+set}" = set; then
1283    enableval="$enable_frssize"    enableval="$enable_frssize"
1284    cat >> confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
1285  #define FRSSIZE $enable_frssize  #define FRSSIZE $enable_frssize
1286  EOF  _ACEOF
   
 fi  
1287    
1288    fi;
1289    
1290  # Check whether --enable-machine or --disable-machine was given.  # Check whether --enable-machine or --disable-machine was given.
1291  if test "${enable_machine+set}" = set; then  if test "${enable_machine+set}" = set; then
# Line 655  if test "${enable_machine+set}" = set; t Line 1293  if test "${enable_machine+set}" = set; t
1293    enable_machine=$enableval    enable_machine=$enableval
1294  else  else
1295    enable_machine=""    enable_machine=""
1296  fi  fi;
   
1297    
1298  # Check whether --enable-gmp or --disable-gmp was given.  # Check whether --enable-gmp or --disable-gmp was given.
1299  if test "${enable_gmp+set}" = set; then  if test "${enable_gmp+set}" = set; then
# Line 664  if test "${enable_gmp+set}" = set; then Line 1301  if test "${enable_gmp+set}" = set; then
1301    use_gmp=$enableval    use_gmp=$enableval
1302  else  else
1303    use_gmp="yes"    use_gmp="yes"
1304  fi  fi;
   
1305    
1306  # Check whether --enable-notify or --disable-notify was given.  # Check whether --enable-notify or --disable-notify was given.
1307  if test "${enable_notify+set}" = set; then  if test "${enable_notify+set}" = set; then
# Line 673  if test "${enable_notify+set}" = set; th Line 1309  if test "${enable_notify+set}" = set; th
1309    enable_notify=$enableval    enable_notify=$enableval
1310  else  else
1311    enable_notify="yes"    enable_notify="yes"
1312  fi  fi;
   
1313    
1314  # Check whether --enable-tkconfig or --disable-tkconfig was given.  # Check whether --enable-tkconfig or --disable-tkconfig was given.
1315  if test "${enable_tkconfig+set}" = set; then  if test "${enable_tkconfig+set}" = set; then
# Line 682  if test "${enable_tkconfig+set}" = set; Line 1317  if test "${enable_tkconfig+set}" = set;
1317    TK_CONFIG_PREFIX=$enableval    TK_CONFIG_PREFIX=$enableval
1318  else  else
1319    TK_CONFIG_PREFIX="unknown"    TK_CONFIG_PREFIX="unknown"
1320  fi  fi;
   
1321    
1322    
1323  # Check whether --enable-tclconfig or --disable-tclconfig was given.  # Check whether --enable-tclconfig or --disable-tclconfig was given.
# Line 692  if test "${enable_tclconfig+set}" = set; Line 1326  if test "${enable_tclconfig+set}" = set;
1326    TCL_CONFIG_PREFIX=$enableval    TCL_CONFIG_PREFIX=$enableval
1327  else  else
1328    TCL_CONFIG_PREFIX="unknown"    TCL_CONFIG_PREFIX="unknown"
1329  fi  fi;
   
1330    
1331  # Check whether --enable-infodir or --disable-infodir was given.  # Check whether --enable-infodir or --disable-infodir was given.
1332  if test "${enable_infodir+set}" = set; then  if test "${enable_infodir+set}" = set; then
# Line 701  if test "${enable_infodir+set}" = set; t Line 1334  if test "${enable_infodir+set}" = set; t
1334    INFO_DIR=$enableval    INFO_DIR=$enableval
1335  else  else
1336    INFO_DIR="unknown"    INFO_DIR="unknown"
1337  fi  fi;
   
1338    
1339  # Check whether --enable-emacsdir or --disable-emacsdir was given.  # Check whether --enable-emacsdir or --disable-emacsdir was given.
1340  if test "${enable_emacsdir+set}" = set; then  if test "${enable_emacsdir+set}" = set; then
# Line 710  if test "${enable_emacsdir+set}" = set; Line 1342  if test "${enable_emacsdir+set}" = set;
1342    EMACS_SITE_LISP=$enableval    EMACS_SITE_LISP=$enableval
1343  else  else
1344    EMACS_SITE_LISP="unknown"    EMACS_SITE_LISP="unknown"
1345  fi  fi;
   
1346    
1347  # Check whether --enable-common-binary or --disable-common-binary was given.  # Check whether --enable-common-binary or --disable-common-binary was given.
1348  if test "${enable_common_binary+set}" = set; then  if test "${enable_common_binary+set}" = set; then
# Line 719  if test "${enable_common_binary+set}" = Line 1350  if test "${enable_common_binary+set}" =
1350    use_common_binary=$enableval    use_common_binary=$enableval
1351  else  else
1352    use_common_binary="yes"    use_common_binary="yes"
1353  fi  fi;
   
1354    
1355  # Check whether --enable-japi or --disable-japi was given.  # Check whether --enable-japi or --disable-japi was given.
1356  if test "${enable_japi+set}" = set; then  if test "${enable_japi+set}" = set; then
# Line 728  if test "${enable_japi+set}" = set; then Line 1358  if test "${enable_japi+set}" = set; then
1358    try_japi=$enableval    try_japi=$enableval
1359  else  else
1360    try_japi="no"    try_japi="no"
1361  fi  fi;
   
1362    
1363  # Check whether --enable-xdr or --disable-xdr was given.  # Check whether --enable-xdr or --disable-xdr was given.
1364  if test "${enable_xdr+set}" = set; then  if test "${enable_xdr+set}" = set; then
# Line 737  if test "${enable_xdr+set}" = set; then Line 1366  if test "${enable_xdr+set}" = set; then
1366    try_xdr=$enableval    try_xdr=$enableval
1367  else  else
1368    try_xdr="no"    try_xdr="no"
1369  fi  fi;
   
1370    
1371  #  #
1372  # Host information  # Host information
1373  #  #
1374    
1375    
# Line 755  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1383  for ac_dir in $srcdir $srcdir/.. $srcdir
1383      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1384      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1385      break      break
1386      elif test -f $ac_dir/shtool; then
1387        ac_aux_dir=$ac_dir
1388        ac_install_sh="$ac_aux_dir/shtool install -c"
1389        break
1390    fi    fi
1391  done  done
1392  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1393    { 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
1394  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1396  ac_config_sub=$ac_aux_dir/config.sub  fi
1397  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400    
1401  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1402  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1403  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
1404  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405       { (exit 1); exit 1; }; }
1406    
1407    echo "$as_me:$LINENO: checking build system type" >&5
1408    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409    if test "${ac_cv_build+set}" = set; then
1410      echo $ECHO_N "(cached) $ECHO_C" >&6
1411    else
1412      ac_cv_build_alias=$build_alias
1413    test -z "$ac_cv_build_alias" &&
1414      ac_cv_build_alias=`$ac_config_guess`
1415    test -z "$ac_cv_build_alias" &&
1416      { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418       { (exit 1); exit 1; }; }
1419    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422       { (exit 1); exit 1; }; }
1423    
1424    fi
1425    echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426    echo "${ECHO_T}$ac_cv_build" >&6
1427    build=$ac_cv_build
1428    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431    
1432    
1433    echo "$as_me:$LINENO: checking host system type" >&5
1434    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435    if test "${ac_cv_host+set}" = set; then
1436      echo $ECHO_N "(cached) $ECHO_C" >&6
1437    else
1438      ac_cv_host_alias=$host_alias
1439    test -z "$ac_cv_host_alias" &&
1440      ac_cv_host_alias=$ac_cv_build_alias
1441    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444       { (exit 1); exit 1; }; }
1445    
1446    fi
1447    echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448    echo "${ECHO_T}$ac_cv_host" >&6
1449    host=$ac_cv_host
1450    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453    
 echo $ac_n "checking host system type""... $ac_c" 1>&6  
 echo "configure:775: 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  
1454    
1455  canonical=$host  canonical=$host
1456  ## host=CPU-COMPANY-SYSTEM  ## host=CPU-COMPANY-SYSTEM
1457  echo "$ac_t""host=$host" 1>&6  echo "$as_me:$LINENO: result: host=$host" >&5
1458    echo "${ECHO_T}host=$host" >&6
1459    
1460  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}  PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""}
1461    
# Line 873  case $canonical in Line 1535  case $canonical in
1535             IRIX3*)             IRIX3*)
1536              use=sgi4d;;              use=sgi4d;;
1537         esac ;;         esac ;;
1538    
1539    
1540       m68k-apple-aux*)       m68k-apple-aux*)
1541       use=mac2;;       use=mac2;;
# Line 954  case $canonical in Line 1616  case $canonical in
1616              then use=mingw              then use=mingw
1617            else  use=gnuwin95            else  use=gnuwin95
1618          fi;;          fi;;
1619      
1620  esac  esac
1621    
1622    
# Line 970  def_custreloc="no" Line 1632  def_custreloc="no"
1632  def_oldgmp="no"  def_oldgmp="no"
1633  def_pic="no";  def_pic="no";
1634  def_static="no";  def_static="no";
1635  case $use in  case $use in
1636       *linux)       *linux)
1637          ln -snf linux.defs h/$use.defs;          ln -snf linux.defs h/$use.defs;
1638          case $use in          case $use in
# Line 979  case $use in Line 1641  case $use in
1641                  mips*)                  mips*)
1642                          def_dlopen="yes" ; def_statsysbfd="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ;;
1643  # def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion  # def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion
1644  # on these architectures -- CM                    # on these architectures -- CM
1645                  ia64*)                  ia64*)
1646                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;                          def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;;
1647                  hppa*)                  hppa*)
# Line 994  esac Line 1656  esac
1656  # Check whether --enable-dlopen or --disable-dlopen was given.  # Check whether --enable-dlopen or --disable-dlopen was given.
1657  if test "${enable_dlopen+set}" = set; then  if test "${enable_dlopen+set}" = set; then
1658    enableval="$enable_dlopen"    enableval="$enable_dlopen"
1659    :  
1660  else  else
1661    enable_dlopen="$def_dlopen"    enable_dlopen="$def_dlopen"
1662  fi  fi;
   
1663  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.  # Check whether --enable-statsysbfd or --disable-statsysbfd was given.
1664  if test "${enable_statsysbfd+set}" = set; then  if test "${enable_statsysbfd+set}" = set; then
1665    enableval="$enable_statsysbfd"    enableval="$enable_statsysbfd"
1666    :  
1667  else  else
1668    enable_statsysbfd="$def_statsysbfd"    enable_statsysbfd="$def_statsysbfd"
1669  fi  fi;
   
1670  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.  # Check whether --enable-dynsysbfd or --disable-dynsysbfd was given.
1671  if test "${enable_dynsysbfd+set}" = set; then  if test "${enable_dynsysbfd+set}" = set; then
1672    enableval="$enable_dynsysbfd"    enableval="$enable_dynsysbfd"
1673    :  
1674  else  else
1675    enable_dynsysbfd="no"    enable_dynsysbfd="no"
1676  fi  fi;
   
1677  # Check whether --enable-locbfd or --disable-locbfd was given.  # Check whether --enable-locbfd or --disable-locbfd was given.
1678  if test "${enable_locbfd+set}" = set; then  if test "${enable_locbfd+set}" = set; then
1679    enableval="$enable_locbfd"    enableval="$enable_locbfd"
1680    :  
1681  else  else
1682    enable_locbfd="no"    enable_locbfd="no"
1683  fi  fi;
   
1684  # Check whether --enable-custreloc or --disable-custreloc was given.  # Check whether --enable-custreloc or --disable-custreloc was given.
1685  if test "${enable_custreloc+set}" = set; then  if test "${enable_custreloc+set}" = set; then
1686    enableval="$enable_custreloc"    enableval="$enable_custreloc"
1687    :  
1688  else  else
1689    enable_custreloc="$def_custreloc"    enable_custreloc="$def_custreloc"
1690  fi  fi;
   
1691  # Check whether --enable-debug or --disable-debug was given.  # Check whether --enable-debug or --disable-debug was given.
1692  if test "${enable_debug+set}" = set; then  if test "${enable_debug+set}" = set; then
1693    enableval="$enable_debug"    enableval="$enable_debug"
1694    :  
1695  else  else
1696    enable_debug="no"    enable_debug="no"
1697  fi  fi;
   
1698  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
1699  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
1700    enableval="$enable_static"    enableval="$enable_static"
1701    enable_static=$enableval    enable_static=$enableval
1702  else  else
1703    enable_static="$def_static"    enable_static="$def_static"
1704  fi  fi;
   
1705  # Check whether --enable-pic or --disable-pic was given.  # Check whether --enable-pic or --disable-pic was given.
1706  if test "${enable_pic+set}" = set; then  if test "${enable_pic+set}" = set; then
1707    enableval="$enable_pic"    enableval="$enable_pic"
1708    :  
1709  else  else
1710    enable_pic="$def_pic"    enable_pic="$def_pic"
1711  fi  fi;
   
1712    
1713  # Check whether --enable-oldgmp or --disable-oldgmp was given.  # Check whether --enable-oldgmp or --disable-oldgmp was given.
1714  if test "${enable_oldgmp+set}" = set; then  if test "${enable_oldgmp+set}" = set; then
1715    enableval="$enable_oldgmp"    enableval="$enable_oldgmp"
1716    :  
1717  else  else
1718    enable_oldgmp="$def_oldgmp"    enable_oldgmp="$def_oldgmp"
1719  fi  fi;
   
1720    
1721  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.  # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
1722  if test "${enable_dynsysgmp+set}" = set; then  if test "${enable_dynsysgmp+set}" = set; then
1723    enableval="$enable_dynsysgmp"    enableval="$enable_dynsysgmp"
1724    :  
1725  else  else
1726    enable_dynsysgmp="no"    enable_dynsysgmp="no"
1727  fi  fi;
   
1728    
1729  load_opt="0"  load_opt="0"
1730  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
# Line 1122  fi Line 1774  fi
1774  ##  ##
1775  #if test "$use" = "unknown" ; then  #if test "$use" = "unknown" ; then
1776  #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"`
1777  #echo got canonical=$canonical, but was not recognized.  #echo got canonical=$canonical, but was not recognized.
1778  #echo Unable to guess type to use.  Try one of  #echo Unable to guess type to use.  Try one of
1779  #exit(1)  #exit(1)
1780  #fi  #fi
1781    
1782  echo "$ac_t""use=$use" 1>&6      echo "$as_me:$LINENO: result: use=$use" >&5
1783    echo "${ECHO_T}use=$use" >&6
1784    
1785    
1786  #  #
1787  # System programs  # System programs
1788  #  #
1789    
1790  # Extract the first word of "gcc", so it can be a program name with args.  ac_ext=c
1791    ac_cpp='$CPP $CPPFLAGS'
1792    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795    if test -n "$ac_tool_prefix"; then
1796      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1797    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1798    echo "$as_me:$LINENO: checking for $ac_word" >&5
1799    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800    if test "${ac_cv_prog_CC+set}" = set; then
1801      echo $ECHO_N "(cached) $ECHO_C" >&6
1802    else
1803      if test -n "$CC"; then
1804      ac_cv_prog_CC="$CC" # Let the user override the test.
1805    else
1806    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807    for as_dir in $PATH
1808    do
1809      IFS=$as_save_IFS
1810      test -z "$as_dir" && as_dir=.
1811      for ac_exec_ext in '' $ac_executable_extensions; do
1812      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813        ac_cv_prog_CC="${ac_tool_prefix}gcc"
1814        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815        break 2
1816      fi
1817    done
1818    done
1819    
1820    fi
1821    fi
1822    CC=$ac_cv_prog_CC
1823    if test -n "$CC"; then
1824      echo "$as_me:$LINENO: result: $CC" >&5
1825    echo "${ECHO_T}$CC" >&6
1826    else
1827      echo "$as_me:$LINENO: result: no" >&5
1828    echo "${ECHO_T}no" >&6
1829    fi
1830    
1831    fi
1832    if test -z "$ac_cv_prog_CC"; then
1833      ac_ct_CC=$CC
1834      # Extract the first word of "gcc", so it can be a program name with args.
1835  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1836  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1837  echo "configure:1141: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1840    else
1841      if test -n "$ac_ct_CC"; then
1842      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843    else
1844    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845    for as_dir in $PATH
1846    do
1847      IFS=$as_save_IFS
1848      test -z "$as_dir" && as_dir=.
1849      for ac_exec_ext in '' $ac_executable_extensions; do
1850      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851        ac_cv_prog_ac_ct_CC="gcc"
1852        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853        break 2
1854      fi
1855    done
1856    done
1857    
1858    fi
1859    fi
1860    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861    if test -n "$ac_ct_CC"; then
1862      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1863    echo "${ECHO_T}$ac_ct_CC" >&6
1864    else
1865      echo "$as_me:$LINENO: result: no" >&5
1866    echo "${ECHO_T}no" >&6
1867    fi
1868    
1869      CC=$ac_ct_CC
1870    else
1871      CC="$ac_cv_prog_CC"
1872    fi
1873    
1874    if test -z "$CC"; then
1875      if test -n "$ac_tool_prefix"; then
1876      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1877    set dummy ${ac_tool_prefix}cc; ac_word=$2
1878    echo "$as_me:$LINENO: checking for $ac_word" >&5
1879    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880    if test "${ac_cv_prog_CC+set}" = set; then
1881      echo $ECHO_N "(cached) $ECHO_C" >&6
1882  else  else
1883    if test -n "$CC"; then    if test -n "$CC"; then
1884    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1885  else  else
1886    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887    ac_dummy="$PATH"  for as_dir in $PATH
1888    for ac_dir in $ac_dummy; do  do
1889      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1890      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1891        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1892        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1894    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    IFS="$ac_save_ifs"      break 2
1896      fi
1897    done
1898    done
1899    
1900  fi  fi
1901  fi  fi
1902  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1903  if test -n "$CC"; then  if test -n "$CC"; then
1904    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1905    echo "${ECHO_T}$CC" >&6
1906  else  else
1907    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1908    echo "${ECHO_T}no" >&6
1909  fi  fi
1910    
1911    fi
1912    if test -z "$ac_cv_prog_CC"; then
1913      ac_ct_CC=$CC
1914      # Extract the first word of "cc", so it can be a program name with args.
1915    set dummy cc; ac_word=$2
1916    echo "$as_me:$LINENO: checking for $ac_word" >&5
1917    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919      echo $ECHO_N "(cached) $ECHO_C" >&6
1920    else
1921      if test -n "$ac_ct_CC"; then
1922      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923    else
1924    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925    for as_dir in $PATH
1926    do
1927      IFS=$as_save_IFS
1928      test -z "$as_dir" && as_dir=.
1929      for ac_exec_ext in '' $ac_executable_extensions; do
1930      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931        ac_cv_prog_ac_ct_CC="cc"
1932        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933        break 2
1934      fi
1935    done
1936    done
1937    
1938    fi
1939    fi
1940    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941    if test -n "$ac_ct_CC"; then
1942      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943    echo "${ECHO_T}$ac_ct_CC" >&6
1944    else
1945      echo "$as_me:$LINENO: result: no" >&5
1946    echo "${ECHO_T}no" >&6
1947    fi
1948    
1949      CC=$ac_ct_CC
1950    else
1951      CC="$ac_cv_prog_CC"
1952    fi
1953    
1954    fi
1955  if test -z "$CC"; then  if test -z "$CC"; then
1956    # 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.
1957  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1958  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
1959  echo "configure:1171: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1961    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1962  else  else
1963    if test -n "$CC"; then    if test -n "$CC"; then
1964    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1965  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1966    ac_prog_rejected=no    ac_prog_rejected=no
1967    ac_dummy="$PATH"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968    for ac_dir in $ac_dummy; do  for as_dir in $PATH
1969      test -z "$ac_dir" && ac_dir=.  do
1970      if test -f $ac_dir/$ac_word; then    IFS=$as_save_IFS
1971        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$as_dir" && as_dir=.
1972          ac_prog_rejected=yes    for ac_exec_ext in '' $ac_executable_extensions; do
1973          continue    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974        fi      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975        ac_cv_prog_CC="cc"         ac_prog_rejected=yes
1976        break         continue
1977      fi       fi
1978    done      ac_cv_prog_CC="cc"
1979    IFS="$ac_save_ifs"      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980        break 2
1981      fi
1982    done
1983    done
1984    
1985  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1986    # 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.
1987    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1988    shift    shift
1989    if test $# -gt 0; then    if test $# != 0; then
1990      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1991      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1992      # 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.
1993      shift      shift
1994      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$as_dir/$ac_word" ${1+"$@"}
1995      shift      shift
1996      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1997    fi    fi
1998  fi  fi
1999  fi  fi
2000  fi  fi
2001  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2002  if test -n "$CC"; then  if test -n "$CC"; then
2003    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2004    echo "${ECHO_T}$CC" >&6
2005  else  else
2006    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2007    echo "${ECHO_T}no" >&6
2008  fi  fi
2009    
2010    if test -z "$CC"; then  fi
2011      case "`uname -s`" in  if test -z "$CC"; then
2012      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
2013        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
2014  set dummy cl; ac_word=$2    do
2015  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.
2016  echo "configure:1222: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2018    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019    if test "${ac_cv_prog_CC+set}" = set; then
2020      echo $ECHO_N "(cached) $ECHO_C" >&6
2021  else  else
2022    if test -n "$CC"; then    if test -n "$CC"; then
2023    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2024  else  else
2025    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026    ac_dummy="$PATH"  for as_dir in $PATH
2027    for ac_dir in $ac_dummy; do  do
2028      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2029      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2030        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
2031        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032      fi      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034    IFS="$ac_save_ifs"      break 2
2035      fi
2036    done
2037    done
2038    
2039  fi  fi
2040  fi  fi
2041  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
2042  if test -n "$CC"; then  if test -n "$CC"; then
2043    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
2044    echo "${ECHO_T}$CC" >&6
2045  else  else
2046    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2047    echo "${ECHO_T}no" >&6
2048  fi  fi
2049   ;;  
2050      esac      test -n "$CC" && break
2051      done
2052    fi
2053    if test -z "$CC"; then
2054      ac_ct_CC=$CC
2055      for ac_prog in cl
2056    do
2057      # Extract the first word of "$ac_prog", so it can be a program name with args.
2058    set dummy $ac_prog; ac_word=$2
2059    echo "$as_me:$LINENO: checking for $ac_word" >&5
2060    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062      echo $ECHO_N "(cached) $ECHO_C" >&6
2063    else
2064      if test -n "$ac_ct_CC"; then
2065      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066    else
2067    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068    for as_dir in $PATH
2069    do
2070      IFS=$as_save_IFS
2071      test -z "$as_dir" && as_dir=.
2072      for ac_exec_ext in '' $ac_executable_extensions; do
2073      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074        ac_cv_prog_ac_ct_CC="$ac_prog"
2075        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076        break 2
2077    fi    fi
2078    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  done
2079    done
2080    
2081    fi
2082    fi
2083    ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084    if test -n "$ac_ct_CC"; then
2085      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086    echo "${ECHO_T}$ac_ct_CC" >&6
2087    else
2088      echo "$as_me:$LINENO: result: no" >&5
2089    echo "${ECHO_T}no" >&6
2090  fi  fi
2091    
2092  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6    test -n "$ac_ct_CC" && break
2093  echo "configure:1254: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  done
2094    
2095  ac_ext=c    CC=$ac_ct_CC
2096  # 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  
2097    
2098  cat > conftest.$ac_ext << EOF  fi
2099    
 #line 1265 "configure"  
 #include "confdefs.h"  
2100    
2101  main(){return(0);}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2102  EOF  echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2103  if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     { (exit 1); exit 1; }; }
2104    ac_cv_prog_cc_works=yes  
2105    # If we can't run a trivial program, we are probably using a cross compiler.  # Provide some information about the compiler.
2106    if (./conftest; exit) 2>/dev/null; then  echo "$as_me:$LINENO:" \
2107      ac_cv_prog_cc_cross=no       "checking for C compiler version" >&5
2108    else  ac_compiler=`set X $ac_compile; echo $2`
2109      ac_cv_prog_cc_cross=yes  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2110    fi    (eval $ac_compiler --version </dev/null >&5) 2>&5
2111  else    ac_status=$?
2112    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113    cat conftest.$ac_ext >&5    (exit $ac_status); }
2114    ac_cv_prog_cc_works=no  { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2115  fi    (eval $ac_compiler -v </dev/null >&5) 2>&5
2116  rm -fr conftest*    ac_status=$?
2117  ac_ext=c    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.    (exit $ac_status); }
2119  ac_cpp='$CPP $CPPFLAGS'  { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2120  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    (eval $ac_compiler -V </dev/null >&5) 2>&5
2121  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'    ac_status=$?
2122  cross_compiling=$ac_cv_prog_cc_cross    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123      (exit $ac_status); }
2124  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
2125  if test $ac_cv_prog_cc_works = no; then  cat >conftest.$ac_ext <<_ACEOF
2126    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  #line $LINENO "configure"
2127  fi  #include "confdefs.h"
2128  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  
2129  echo "configure:1296: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  #ifdef F77_DUMMY_MAIN
2130  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  #  ifdef __cplusplus
2131  cross_compiling=$ac_cv_prog_cc_cross       extern "C"
2132    #  endif
2133  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6     int F77_DUMMY_MAIN() { return 1; }
 echo "configure:1301: 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;  
2134  #endif  #endif
2135  EOF  int
2136  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  main ()
2137    ac_cv_prog_gcc=yes  {
2138    
2139      ;
2140      return 0;
2141    }
2142    _ACEOF
2143    ac_clean_files_save=$ac_clean_files
2144    ac_clean_files="$ac_clean_files a.out a.exe"
2145    # Try to create an executable without -o first, disregard a.out.
2146    # It will help us diagnose broken compilers, and finding out an intuition
2147    # of exeext.
2148    echo "$as_me:$LINENO: checking for C compiler default output" >&5
2149    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2150    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2151    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2152      (eval $ac_link_default) 2>&5
2153      ac_status=$?
2154      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155      (exit $ac_status); }; then
2156      # Find the output, starting from the most likely.  This scheme is
2157    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2158    # resort.
2159    
2160    # Be careful to initialize this variable, since it used to be cached.
2161    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2162    ac_cv_exeext=
2163    for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2164                    ls a.out conftest 2>/dev/null;
2165                    ls a.* conftest.* 2>/dev/null`; do
2166      case $ac_file in
2167        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2168        a.out ) # We found the default executable, but exeext='' is most
2169                # certainly right.
2170                break;;
2171        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2173              export ac_cv_exeext
2174              break;;
2175        * ) break;;
2176      esac
2177    done
2178  else  else
2179    ac_cv_prog_gcc=no    echo "$as_me: failed program was:" >&5
2180  fi  cat conftest.$ac_ext >&5
2181    { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2182    echo "$as_me: error: C compiler cannot create executables" >&2;}
2183       { (exit 77); exit 77; }; }
2184    fi
2185    
2186    ac_exeext=$ac_cv_exeext
2187    echo "$as_me:$LINENO: result: $ac_file" >&5
2188    echo "${ECHO_T}$ac_file" >&6
2189    
2190    # Check the compiler produces executables we can run.  If not, either
2191    # the compiler is broken, or we cross compile.
2192    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2193    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2194    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2195    # If not cross compiling, check that we can run a simple program.
2196    if test "$cross_compiling" != yes; then
2197      if { ac_try='./$ac_file'
2198      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199      (eval $ac_try) 2>&5
2200      ac_status=$?
2201      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202      (exit $ac_status); }; }; then
2203        cross_compiling=no
2204      else
2205        if test "$cross_compiling" = maybe; then
2206            cross_compiling=yes
2207        else
2208            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2209    If you meant to cross compile, use \`--host'." >&5
2210    echo "$as_me: error: cannot run C compiled programs.
2211    If you meant to cross compile, use \`--host'." >&2;}
2212       { (exit 1); exit 1; }; }
2213        fi
2214      fi
2215  fi  fi
2216    echo "$as_me:$LINENO: result: yes" >&5
2217    echo "${ECHO_T}yes" >&6
2218    
2219  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
2220    ac_clean_files=$ac_clean_files_save
2221  if test $ac_cv_prog_gcc = yes; then  # Check the compiler produces executables we can run.  If not, either
2222    GCC=yes  # the compiler is broken, or we cross compile.
2223    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2224    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2225    echo "$as_me:$LINENO: result: $cross_compiling" >&5
2226    echo "${ECHO_T}$cross_compiling" >&6
2227    
2228    echo "$as_me:$LINENO: checking for suffix of executables" >&5
2229    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2230    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2231      (eval $ac_link) 2>&5
2232      ac_status=$?
2233      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234      (exit $ac_status); }; then
2235      # If both `conftest.exe' and `conftest' are `present' (well, observable)
2236    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2237    # work properly (i.e., refer to `conftest.exe'), while it won't with
2238    # `rm'.
2239    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2240      case $ac_file in
2241        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2242        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243              export ac_cv_exeext
2244              break;;
2245        * ) break;;
2246      esac
2247    done
2248  else  else
2249    GCC=    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2250  fi  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2251       { (exit 1); exit 1; }; }
2252    fi
2253    
2254    rm -f conftest$ac_cv_exeext
2255    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2256    echo "${ECHO_T}$ac_cv_exeext" >&6
2257    
2258    rm -f conftest.$ac_ext
2259    EXEEXT=$ac_cv_exeext
2260    ac_exeext=$EXEEXT
2261    echo "$as_me:$LINENO: checking for suffix of object files" >&5
2262    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2263    if test "${ac_cv_objext+set}" = set; then
2264      echo $ECHO_N "(cached) $ECHO_C" >&6
2265    else
2266      cat >conftest.$ac_ext <<_ACEOF
2267    #line $LINENO "configure"
2268    #include "confdefs.h"
2269    
2270    #ifdef F77_DUMMY_MAIN
2271    #  ifdef __cplusplus
2272         extern "C"
2273    #  endif
2274       int F77_DUMMY_MAIN() { return 1; }
2275    #endif
2276    int
2277    main ()
2278    {
2279    
2280  ac_test_CFLAGS="${CFLAGS+set}"    ;
2281  ac_save_CFLAGS="$CFLAGS"    return 0;
2282  CFLAGS=  }
2283  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
2284  echo "configure:1329: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.o conftest.obj
2285  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
2287      ac_status=$?
2288      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289      (exit $ac_status); }; then
2290      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2291      case $ac_file in
2292        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2293        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2294           break;;
2295      esac
2296    done
2297  else  else
2298    echo 'void f(){}' > conftest.c    echo "$as_me: failed program was:" >&5
2299  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  cat conftest.$ac_ext >&5
2300    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2301    echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2302       { (exit 1); exit 1; }; }
2303    fi
2304    
2305    rm -f conftest.$ac_cv_objext conftest.$ac_ext
2306    fi
2307    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2308    echo "${ECHO_T}$ac_cv_objext" >&6
2309    OBJEXT=$ac_cv_objext
2310    ac_objext=$OBJEXT
2311    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2312    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2313    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2314      echo $ECHO_N "(cached) $ECHO_C" >&6
2315    else
2316      cat >conftest.$ac_ext <<_ACEOF
2317    #line $LINENO "configure"
2318    #include "confdefs.h"
2319    
2320    #ifdef F77_DUMMY_MAIN
2321    #  ifdef __cplusplus
2322         extern "C"
2323    #  endif
2324       int F77_DUMMY_MAIN() { return 1; }
2325    #endif
2326    int
2327    main ()
2328    {
2329    #ifndef __GNUC__
2330           choke me
2331    #endif
2332    
2333      ;
2334      return 0;
2335    }
2336    _ACEOF
2337    rm -f conftest.$ac_objext
2338    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339      (eval $ac_compile) 2>&5
2340      ac_status=$?
2341      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342      (exit $ac_status); } &&
2343             { ac_try='test -s conftest.$ac_objext'
2344      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345      (eval $ac_try) 2>&5
2346      ac_status=$?
2347      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348      (exit $ac_status); }; }; then
2349      ac_compiler_gnu=yes
2350    else
2351      echo "$as_me: failed program was:" >&5
2352    cat conftest.$ac_ext >&5
2353    ac_compiler_gnu=no
2354    fi
2355    rm -f conftest.$ac_objext conftest.$ac_ext
2356    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2357    
2358    fi
2359    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2360    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2361    GCC=`test $ac_compiler_gnu = yes && echo yes`
2362    ac_test_CFLAGS=${CFLAGS+set}
2363    ac_save_CFLAGS=$CFLAGS
2364    CFLAGS="-g"
2365    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2366    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2367    if test "${ac_cv_prog_cc_g+set}" = set; then
2368      echo $ECHO_N "(cached) $ECHO_C" >&6
2369    else
2370      cat >conftest.$ac_ext <<_ACEOF
2371    #line $LINENO "configure"
2372    #include "confdefs.h"
2373    
2374    #ifdef F77_DUMMY_MAIN
2375    #  ifdef __cplusplus
2376         extern "C"
2377    #  endif
2378       int F77_DUMMY_MAIN() { return 1; }
2379    #endif
2380    int
2381    main ()
2382    {
2383    
2384      ;
2385      return 0;
2386    }
2387    _ACEOF
2388    rm -f conftest.$ac_objext
2389    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390      (eval $ac_compile) 2>&5
2391      ac_status=$?
2392      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393      (exit $ac_status); } &&
2394             { ac_try='test -s conftest.$ac_objext'
2395      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396      (eval $ac_try) 2>&5
2397      ac_status=$?
2398      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399      (exit $ac_status); }; }; then
2400    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2401  else  else
2402    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2403    cat conftest.$ac_ext >&5
2404    ac_cv_prog_cc_g=no
2405  fi  fi
2406  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
2407  fi  fi
2408    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2411    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2412  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2413    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2414      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1355  else Line 2422  else
2422      CFLAGS=      CFLAGS=
2423    fi    fi
2424  fi  fi
2425    # Some people use a C++ compiler to compile C.  Since we use `exit',
2426    # in C++ we need to declare it.  In case someone uses the same compiler
2427    # for both compiling C and C++ we need to have the C++ compiler decide
2428    # the declaration of exit, since it's the most demanding environment.
2429    cat >conftest.$ac_ext <<_ACEOF
2430    #ifndef __cplusplus
2431      choke me
2432    #endif
2433    _ACEOF
2434    rm -f conftest.$ac_objext
2435    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436      (eval $ac_compile) 2>&5
2437      ac_status=$?
2438      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439      (exit $ac_status); } &&
2440             { ac_try='test -s conftest.$ac_objext'
2441      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442      (eval $ac_try) 2>&5
2443      ac_status=$?
2444      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445      (exit $ac_status); }; }; then
2446      for ac_declaration in \
2447       ''\
2448       '#include <stdlib.h>' \
2449       'extern "C" void std::exit (int) throw (); using std::exit;' \
2450       'extern "C" void std::exit (int); using std::exit;' \
2451       'extern "C" void exit (int) throw ();' \
2452       'extern "C" void exit (int);' \
2453       'void exit (int);'
2454    do
2455      cat >conftest.$ac_ext <<_ACEOF
2456    #line $LINENO "configure"
2457    #include "confdefs.h"
2458    #include <stdlib.h>
2459    $ac_declaration
2460    #ifdef F77_DUMMY_MAIN
2461    #  ifdef __cplusplus
2462         extern "C"
2463    #  endif
2464       int F77_DUMMY_MAIN() { return 1; }
2465    #endif
2466    int
2467    main ()
2468    {
2469    exit (42);
2470      ;
2471      return 0;
2472    }
2473    _ACEOF
2474    rm -f conftest.$ac_objext
2475    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476      (eval $ac_compile) 2>&5
2477      ac_status=$?
2478      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479      (exit $ac_status); } &&
2480             { ac_try='test -s conftest.$ac_objext'
2481      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482      (eval $ac_try) 2>&5
2483      ac_status=$?
2484      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485      (exit $ac_status); }; }; then
2486      :
2487    else
2488      echo "$as_me: failed program was:" >&5
2489    cat conftest.$ac_ext >&5
2490    continue
2491    fi
2492    rm -f conftest.$ac_objext conftest.$ac_ext
2493      cat >conftest.$ac_ext <<_ACEOF
2494    #line $LINENO "configure"
2495    #include "confdefs.h"
2496    $ac_declaration
2497    #ifdef F77_DUMMY_MAIN
2498    #  ifdef __cplusplus
2499         extern "C"
2500    #  endif
2501       int F77_DUMMY_MAIN() { return 1; }
2502    #endif
2503    int
2504    main ()
2505    {
2506    exit (42);
2507      ;
2508      return 0;
2509    }
2510    _ACEOF
2511    rm -f conftest.$ac_objext
2512    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513      (eval $ac_compile) 2>&5
2514      ac_status=$?
2515      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516      (exit $ac_status); } &&
2517             { ac_try='test -s conftest.$ac_objext'
2518      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519      (eval $ac_try) 2>&5
2520      ac_status=$?
2521      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522      (exit $ac_status); }; }; then
2523      break
2524    else
2525      echo "$as_me: failed program was:" >&5
2526    cat conftest.$ac_ext >&5
2527    fi
2528    rm -f conftest.$ac_objext conftest.$ac_ext
2529    done
2530    rm -f conftest*
2531    if test -n "$ac_declaration"; then
2532      echo '#ifdef __cplusplus' >>confdefs.h
2533      echo $ac_declaration      >>confdefs.h
2534      echo '#endif'             >>confdefs.h
2535    fi
2536    
2537    else
2538      echo "$as_me: failed program was:" >&5
2539    cat conftest.$ac_ext >&5
2540    fi
2541    rm -f conftest.$ac_objext conftest.$ac_ext
2542    ac_ext=c
2543    ac_cpp='$CPP $CPPFLAGS'
2544    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547    
2548  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
2549  echo "configure:1361: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
2550    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2554    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2555  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2556  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2557    CPP=    CPP=
2558  fi  fi
2559  if test -z "$CPP"; then  if test -z "$CPP"; then
2560  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2561    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2562  else  else
2563      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2564    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2565    CPP="${CC-cc} -E"      do
2566          ac_preproc_ok=false
2567    for ac_c_preproc_warn_flag in '' yes
2568    do
2569      # Use a header file that comes with gcc, so configuring glibc
2570      # with a fresh cross-compiler works.
2571    # 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,
2572    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2573    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2574  #line 1376 "configure"  #line $LINENO "configure"
2575  #include "confdefs.h"  #include "confdefs.h"
2576  #include <assert.h>  #include <assert.h>
2577  Syntax Error                       Syntax error
2578  EOF  _ACEOF
2579  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580  { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2582  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2583      rm -f conftest.er1
2584      cat conftest.err >&5
2585      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586      (exit $ac_status); } >/dev/null; then
2587      if test -s conftest.err; then
2588        ac_cpp_err=$ac_c_preproc_warn_flag
2589      else
2590        ac_cpp_err=
2591      fi
2592    else
2593      ac_cpp_err=yes
2594    fi
2595    if test -z "$ac_cpp_err"; then
2596    :    :
2597  else  else
2598    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2599    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2600    rm -rf conftest*    # Broken: fails on valid input.
2601    CPP="${CC-cc} -E -traditional-cpp"  continue
2602    cat > conftest.$ac_ext <<EOF  fi
2603  #line 1393 "configure"  rm -f conftest.err conftest.$ac_ext
2604  #include "confdefs.h"  
2605  #include <assert.h>    # OK, works on sane cases.  Now check whether non-existent headers
2606  Syntax Error    # can be detected and how.
2607  EOF    cat >conftest.$ac_ext <<_ACEOF
2608  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  #line $LINENO "configure"
2609  { (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  #include "confdefs.h"
2610  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  #include <ac_nonexistent.h>
2611  if test -z "$ac_err"; then  _ACEOF
2612    :  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2613      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2614      ac_status=$?
2615      egrep -v '^ *\+' conftest.er1 >conftest.err
2616      rm -f conftest.er1
2617      cat conftest.err >&5
2618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619      (exit $ac_status); } >/dev/null; then
2620      if test -s conftest.err; then
2621        ac_cpp_err=$ac_c_preproc_warn_flag
2622      else
2623        ac_cpp_err=
2624      fi
2625  else  else
2626    echo "$ac_err" >&5    ac_cpp_err=yes
2627    echo "configure: failed program was:" >&5  fi
2628    if test -z "$ac_cpp_err"; then
2629      # Broken: success on invalid input.
2630    continue
2631    else
2632      echo "$as_me: failed program was:" >&5
2633    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2634    rm -rf conftest*    # Passes both tests.
2635    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2636    cat > conftest.$ac_ext <<EOF  break
2637  #line 1410 "configure"  fi
2638    rm -f conftest.err conftest.$ac_ext
2639    
2640    done
2641    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2642    rm -f conftest.err conftest.$ac_ext
2643    if $ac_preproc_ok; then
2644      break
2645    fi
2646    
2647        done
2648        ac_cv_prog_CPP=$CPP
2649    
2650    fi
2651      CPP=$ac_cv_prog_CPP
2652    else
2653      ac_cv_prog_CPP=$CPP
2654    fi
2655    echo "$as_me:$LINENO: result: $CPP" >&5
2656    echo "${ECHO_T}$CPP" >&6
2657    ac_preproc_ok=false
2658    for ac_c_preproc_warn_flag in '' yes
2659    do
2660      # Use a header file that comes with gcc, so configuring glibc
2661      # with a fresh cross-compiler works.
2662      # On the NeXT, cc -E runs the code through the compiler's parser,
2663      # not just through cpp. "Syntax error" is here to catch this case.
2664      cat >conftest.$ac_ext <<_ACEOF
2665    #line $LINENO "configure"
2666  #include "confdefs.h"  #include "confdefs.h"
2667  #include <assert.h>  #include <assert.h>
2668  Syntax Error                       Syntax error
2669  EOF  _ACEOF
2670  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671  { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2672  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2673  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2674      rm -f conftest.er1
2675      cat conftest.err >&5
2676      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677      (exit $ac_status); } >/dev/null; then
2678      if test -s conftest.err; then
2679        ac_cpp_err=$ac_c_preproc_warn_flag
2680      else
2681        ac_cpp_err=
2682      fi
2683    else
2684      ac_cpp_err=yes
2685    fi
2686    if test -z "$ac_cpp_err"; then
2687    :    :
2688  else  else
2689    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2690    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2691    rm -rf conftest*    # Broken: fails on valid input.
2692    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
2693  fi  fi
2694  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2695    
2696      # OK, works on sane cases.  Now check whether non-existent headers
2697      # can be detected and how.
2698      cat >conftest.$ac_ext <<_ACEOF
2699    #line $LINENO "configure"
2700    #include "confdefs.h"
2701    #include <ac_nonexistent.h>
2702    _ACEOF
2703    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2704      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2705      ac_status=$?
2706      egrep -v '^ *\+' conftest.er1 >conftest.err
2707      rm -f conftest.er1
2708      cat conftest.err >&5
2709      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710      (exit $ac_status); } >/dev/null; then
2711      if test -s conftest.err; then
2712        ac_cpp_err=$ac_c_preproc_warn_flag
2713      else
2714        ac_cpp_err=
2715      fi
2716    else
2717      ac_cpp_err=yes
2718  fi  fi
2719  rm -f conftest*  if test -z "$ac_cpp_err"; then
2720    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2721    continue
2722    else
2723      echo "$as_me: failed program was:" >&5
2724      cat conftest.$ac_ext >&5
2725      # Passes both tests.
2726    ac_preproc_ok=:
2727    break
2728  fi  fi
2729    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2730    
2731    done
2732    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2733    rm -f conftest.err conftest.$ac_ext
2734    if $ac_preproc_ok; then
2735      :
2736  else  else
2737    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2738    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2739       { (exit 1); exit 1; }; }
2740  fi  fi
2741  echo "$ac_t""$CPP" 1>&6  
2742    ac_ext=c
2743    ac_cpp='$CPP $CPPFLAGS'
2744    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747    
2748    
2749    
# Line 1468  fi Line 2777  fi
2777    
2778  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
2779  do  do
2780  # 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.
2781  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2782  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2783  echo "configure:1475: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
2785    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2786  else  else
2787    if test -n "$AWK"; then    if test -n "$AWK"; then
2788    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789  else  else
2790    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791    ac_dummy="$PATH"  for as_dir in $PATH
2792    for ac_dir in $ac_dummy; do  do
2793      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2794      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2795        ac_cv_prog_AWK="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2796        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797      fi      ac_cv_prog_AWK="$ac_prog"
2798    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    IFS="$ac_save_ifs"      break 2
2800      fi
2801    done
2802    done
2803    
2804  fi  fi
2805  fi  fi
2806  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
2807  if test -n "$AWK"; then  if test -n "$AWK"; then
2808    echo "$ac_t""$AWK" 1>&6    echo "$as_me:$LINENO: result: $AWK" >&5
2809    echo "${ECHO_T}$AWK" >&6
2810  else  else
2811    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2812    echo "${ECHO_T}no" >&6
2813  fi  fi
2814    
2815  test -n "$AWK" && break    test -n "$AWK" && break
2816  done  done
2817  test -n "$AWK" || AWK=""""  test -n "$AWK" || AWK=""""
2818    
2819    
2820  # gcc on ppc cannot compile our new_init.c with full opts --CM  # gcc on ppc cannot compile our new_init.c with full opts --CM
2821  TONIFLAGS=""  TONIFLAGS=""
2822  case $use in  case $use in
2823       *linux)       *linux)
2824          case $use in          case $use in
2825                  amd64*)                  amd64*)
2826                          TCFLAGS="$TCFLAGS -m64";;                            TCFLAGS="$TCFLAGS -m64";;
2827                  alpha*)                  alpha*)
2828                          TCFLAGS="$TCFLAGS -mieee";;                          TCFLAGS="$TCFLAGS -mieee";;
2829  #               m68k*)  #               m68k*)
# Line 1519  case $use in Line 2834  case $use in
2834                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi                          if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi
2835                          ;;                          ;;
2836                  arm*)                  arm*)
2837                          TCFLAGS="$TCFLAGS -mlong-calls";;                                TCFLAGS="$TCFLAGS -mlong-calls";;
2838                  powerpc*)                  powerpc*)
2839                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then                          if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then
2840                             echo Reducing optimization for buggy gcc-3.2                             echo Reducing optimization for buggy gcc-3.2
2841                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O -fomit-frame-pointer" ; fi                             if test "$enable_debug" != "yes" ; then TONIFLAGS="-O -fomit-frame-pointer" ; fi
# Line 1543  fi Line 2858  fi
2858  # 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
2859  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
2860    
2861  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
2862  echo "configure:1548: checking system version (for dynamic loading)" >&5  echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
2863  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
2864    
2865  for ac_prog in makeinfo  for ac_prog in makeinfo
2866  do  do
2867  # 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.
2868  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2869  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2870  echo "configure:1556: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2872    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2873  else  else
2874    if test -n "$MAKEINFO"; then    if test -n "$MAKEINFO"; then
2875    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.    ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2876  else  else
2877    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878    ac_dummy="$PATH"  for as_dir in $PATH
2879    for ac_dir in $ac_dummy; do  do
2880      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2881      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2882        ac_cv_prog_MAKEINFO="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2883        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884      fi      ac_cv_prog_MAKEINFO="$ac_prog"
2885    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    IFS="$ac_save_ifs"      break 2
2887      fi
2888    done
2889    done
2890    
2891  fi  fi
2892  fi  fi
2893  MAKEINFO="$ac_cv_prog_MAKEINFO"  MAKEINFO=$ac_cv_prog_MAKEINFO
2894  if test -n "$MAKEINFO"; then  if test -n "$MAKEINFO"; then
2895    echo "$ac_t""$MAKEINFO" 1>&6    echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2896    echo "${ECHO_T}$MAKEINFO" >&6
2897  else  else
2898    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2899    echo "${ECHO_T}no" >&6
2900  fi  fi
2901    
2902  test -n "$MAKEINFO" && break    test -n "$MAKEINFO" && break
2903  done  done
2904  test -n "$MAKEINFO" || MAKEINFO=""false""  test -n "$MAKEINFO" || MAKEINFO=""false""
2905    
# Line 1589  if test -f /usr/lib/NextStep/software_ve Line 2910  if test -f /usr/lib/NextStep/software_ve
2910  else  else
2911      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
2912      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
2913          echo "$ac_t""unknown (can't find uname command)" 1>&6          echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5
2914    echo "${ECHO_T}unknown (can't find uname command)" >&6
2915          system=unknown          system=unknown
2916      else      else
2917          # Special check for weird MP-RAS system (uname returns weird          # Special check for weird MP-RAS system (uname returns weird
2918          # results, and the version is kept in special file).          # results, and the version is kept in special file).
2919        
2920          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
2921              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
2922          fi          fi
2923          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
2924              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
2925          fi          fi
2926          echo "$ac_t""$system" 1>&6          echo "$as_me:$LINENO: result: $system" >&5
2927    echo "${ECHO_T}$system" >&6
2928      fi      fi
2929  fi  fi
2930    
# Line 1616  rm -f makedefsafter Line 2939  rm -f makedefsafter
2939  MP_INLCUDE=""  MP_INLCUDE=""
2940  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
2941    
2942   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
2943  echo "configure:1621: 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
2944   echo   echo
2945   echo "#"   echo "#"
2946   echo "#"   echo "#"
# Line 1637  echo "configure:1621: checking use_gmp=y Line 2960  echo "configure:1621: checking use_gmp=y
2960   else   else
2961     cd $GMPDIR && ./configure && cd ..     cd $GMPDIR && ./configure && cd ..
2962   fi   fi
2963  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"  #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
2964    
2965   echo "#"   echo "#"
2966   echo "#"   echo "#"
# Line 1648  echo "configure:1621: checking use_gmp=y Line 2971  echo "configure:1621: checking use_gmp=y
2971    
2972   PATCHED_SYMBOLS=""   PATCHED_SYMBOLS=""
2973   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
2974          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`  
2975  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2976  echo "configure:1654: checking for gmp.h" >&5  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2977  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_stdc+set}" = set; then
2978    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2979    else
2980      cat >conftest.$ac_ext <<_ACEOF
2981    #line $LINENO "configure"
2982    #include "confdefs.h"
2983    #include <stdlib.h>
2984    #include <stdarg.h>
2985    #include <string.h>
2986    #include <float.h>
2987    
2988    _ACEOF
2989    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991      ac_status=$?
2992      egrep -v '^ *\+' conftest.er1 >conftest.err
2993      rm -f conftest.er1
2994      cat conftest.err >&5
2995      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996      (exit $ac_status); } >/dev/null; then
2997      if test -s conftest.err; then
2998        ac_cpp_err=$ac_c_preproc_warn_flag
2999      else
3000        ac_cpp_err=
3001      fi
3002  else  else
3003    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
3004  #line 1659 "configure"  fi
3005  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
3006  #include <gmp.h>    ac_cv_header_stdc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1664: \"$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"  
3007  else  else
3008    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3009    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3010    rm -rf conftest*    ac_cv_header_stdc=no
3011    eval "ac_cv_header_$ac_safe=no"  fi
3012    rm -f conftest.err conftest.$ac_ext
3013    
3014    if test $ac_cv_header_stdc = yes; then
3015      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3016      cat >conftest.$ac_ext <<_ACEOF
3017    #line $LINENO "configure"
3018    #include "confdefs.h"
3019    #include <string.h>
3020    
3021    _ACEOF
3022    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023      egrep "memchr" >/dev/null 2>&1; then
3024      :
3025    else
3026      ac_cv_header_stdc=no
3027  fi  fi
3028  rm -f conftest*  rm -f conftest*
3029    
3030  fi  fi
3031  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
3032    echo "$ac_t""yes" 1>&6  if test $ac_cv_header_stdc = yes; then
3033    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3034  echo "configure:1681: checking for __gmpz_init in -lgmp" >&5    cat >conftest.$ac_ext <<_ACEOF
3035  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
3036  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  #include "confdefs.h"
3037    echo $ac_n "(cached) $ac_c" 1>&6  #include <stdlib.h>
3038    
3039    _ACEOF
3040    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041      egrep "free" >/dev/null 2>&1; then
3042      :
3043  else  else
3044    ac_save_LIBS="$LIBS"    ac_cv_header_stdc=no
3045  LIBS="-lgmp  $LIBS"  fi
3046  cat > conftest.$ac_ext <<EOF  rm -f conftest*
3047  #line 1689 "configure"  
3048    fi
3049    
3050    if test $ac_cv_header_stdc = yes; then
3051      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3052      if test "$cross_compiling" = yes; then
3053      :
3054    else
3055      cat >conftest.$ac_ext <<_ACEOF
3056    #line $LINENO "configure"
3057  #include "confdefs.h"  #include "confdefs.h"
3058  /* Override any gcc2 internal prototype to avoid an error.  */  #include <ctype.h>
3059  /* We use char because int might match the return type of a gcc2  #if ((' ' & 0x0FF) == 0x020)
3060      builtin and then its argument prototype would still apply.  */  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3061  char __gmpz_init();  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3062    #else
3063    # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3064                         || ('j' <= (c) && (c) <= 'r') \
3065                         || ('s' <= (c) && (c) <= 'z'))
3066    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3067    #endif
3068    
3069  int main() {  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3070  __gmpz_init()  int
3071  ; return 0; }  main ()
3072  EOF  {
3073  if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    int i;
3074    rm -rf conftest*    for (i = 0; i < 256; i++)
3075    eval "ac_cv_lib_$ac_lib_var=yes"      if (XOR (islower (i), ISLOWER (i))
3076            || toupper (i) != TOUPPER (i))
3077          exit(2);
3078      exit (0);
3079    }
3080    _ACEOF
3081    rm -f conftest$ac_exeext
3082    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3083      (eval $ac_link) 2>&5
3084      ac_status=$?
3085      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3087      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088      (eval $ac_try) 2>&5
3089      ac_status=$?
3090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091      (exit $ac_status); }; }; then
3092      :
3093  else  else
3094    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3095    echo "$as_me: failed program was:" >&5
3096    cat conftest.$ac_ext >&5
3097    ( exit $ac_status )
3098    ac_cv_header_stdc=no
3099    fi
3100    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3101    fi
3102    fi
3103    fi
3104    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3105    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3106    if test $ac_cv_header_stdc = yes; then
3107    
3108    cat >>confdefs.h <<\_ACEOF
3109    #define STDC_HEADERS 1
3110    _ACEOF
3111    
3112    fi
3113    
3114    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3115    
3116    
3117    
3118    
3119    
3120    
3121    
3122    
3123    
3124    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3125                      inttypes.h stdint.h unistd.h
3126    do
3127    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3128    echo "$as_me:$LINENO: checking for $ac_header" >&5
3129    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3130    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3131      echo $ECHO_N "(cached) $ECHO_C" >&6
3132    else
3133      cat >conftest.$ac_ext <<_ACEOF
3134    #line $LINENO "configure"
3135    #include "confdefs.h"
3136    $ac_includes_default
3137    
3138    #include <$ac_header>
3139    _ACEOF
3140    rm -f conftest.$ac_objext
3141    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142      (eval $ac_compile) 2>&5
3143      ac_status=$?
3144      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145      (exit $ac_status); } &&
3146             { ac_try='test -s conftest.$ac_objext'
3147      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148      (eval $ac_try) 2>&5
3149      ac_status=$?
3150      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151      (exit $ac_status); }; }; then
3152      eval "$as_ac_Header=yes"
3153    else
3154      echo "$as_me: failed program was:" >&5
3155    cat conftest.$ac_ext >&5
3156    eval "$as_ac_Header=no"
3157    fi
3158    rm -f conftest.$ac_objext conftest.$ac_ext
3159    fi
3160    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3161    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3162    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3163      cat >>confdefs.h <<_ACEOF
3164    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3165    _ACEOF
3166    
3167    fi
3168    
3169    done
3170    
3171    
3172    if test "${ac_cv_header_gmp_h+set}" = set; then
3173      echo "$as_me:$LINENO: checking for gmp.h" >&5
3174    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3175    if test "${ac_cv_header_gmp_h+set}" = set; then
3176      echo $ECHO_N "(cached) $ECHO_C" >&6
3177    fi
3178    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3179    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3180    else
3181      # Is the header compilable?
3182    echo "$as_me:$LINENO: checking gmp.h usability" >&5
3183    echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3184    cat >conftest.$ac_ext <<_ACEOF
3185    #line $LINENO "configure"
3186    #include "confdefs.h"
3187    $ac_includes_default
3188    #include <gmp.h>
3189    _ACEOF
3190    rm -f conftest.$ac_objext
3191    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192      (eval $ac_compile) 2>&5
3193      ac_status=$?
3194      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195      (exit $ac_status); } &&
3196             { ac_try='test -s conftest.$ac_objext'
3197      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198      (eval $ac_try) 2>&5
3199      ac_status=$?
3200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201      (exit $ac_status); }; }; then
3202      ac_header_compiler=yes
3203    else
3204      echo "$as_me: failed program was:" >&5
3205    cat conftest.$ac_ext >&5
3206    ac_header_compiler=no
3207    fi
3208    rm -f conftest.$ac_objext conftest.$ac_ext
3209    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3210    echo "${ECHO_T}$ac_header_compiler" >&6
3211    
3212    # Is the header present?
3213    echo "$as_me:$LINENO: checking gmp.h presence" >&5
3214    echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
3215    cat >conftest.$ac_ext <<_ACEOF
3216    #line $LINENO "configure"
3217    #include "confdefs.h"
3218    #include <gmp.h>
3219    _ACEOF
3220    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3221      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3222      ac_status=$?
3223      egrep -v '^ *\+' conftest.er1 >conftest.err
3224      rm -f conftest.er1
3225      cat conftest.err >&5
3226      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227      (exit $ac_status); } >/dev/null; then
3228      if test -s conftest.err; then
3229        ac_cpp_err=$ac_c_preproc_warn_flag
3230      else
3231        ac_cpp_err=
3232      fi
3233    else
3234      ac_cpp_err=yes
3235    fi
3236    if test -z "$ac_cpp_err"; then
3237      ac_header_preproc=yes
3238    else
3239      echo "$as_me: failed program was:" >&5
3240    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3241    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_lib_$ac_lib_var=no"  
3242  fi  fi
3243  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3244  LIBS="$ac_save_LIBS"  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3245    echo "${ECHO_T}$ac_header_preproc" >&6
3246    
3247    # So?  What about this header?
3248    case $ac_header_compiler:$ac_header_preproc in
3249      yes:no )
3250        { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3251    echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3252        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3253    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3254      no:yes )
3255        { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
3256    echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
3257        { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
3258    echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
3259        { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
3260    echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;};;
3261    esac
3262    echo "$as_me:$LINENO: checking for gmp.h" >&5
3263    echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3264    if test "${ac_cv_header_gmp_h+set}" = set; then
3265      echo $ECHO_N "(cached) $ECHO_C" >&6
3266    else
3267      ac_cv_header_gmp_h=$ac_header_preproc
3268    fi
3269    echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3270    echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3271    
3272  fi  fi
3273  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test $ac_cv_header_gmp_h = yes; then
3274    echo "$ac_t""yes" 1>&6    echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
3275    echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
3276    if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
3277      echo $ECHO_N "(cached) $ECHO_C" >&6
3278    else
3279      ac_check_lib_save_LIBS=$LIBS
3280    LIBS="-lgmp  $LIBS"
3281    
3282    cat >conftest.$ac_ext <<_ACEOF
3283    #line $LINENO "configure"
3284    #include "confdefs.h"
3285    
3286    /* Override any gcc2 internal prototype to avoid an error.  */
3287    #ifdef __cplusplus
3288    extern "C"
3289    #endif
3290    /* We use char because int might match the return type of a gcc2
3291       builtin and then its argument prototype would still apply.  */
3292    char __gmpz_init ();
3293    #ifdef F77_DUMMY_MAIN
3294    #  ifdef __cplusplus
3295         extern "C"
3296    #  endif
3297       int F77_DUMMY_MAIN() { return 1; }
3298    #endif
3299    int
3300    main ()
3301    {
3302    __gmpz_init ();
3303      ;
3304      return 0;
3305    }
3306    _ACEOF
3307    rm -f conftest.$ac_objext conftest$ac_exeext
3308    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309      (eval $ac_link) 2>&5
3310      ac_status=$?
3311      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312      (exit $ac_status); } &&
3313             { ac_try='test -s conftest$ac_exeext'
3314      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315      (eval $ac_try) 2>&5
3316      ac_status=$?
3317      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318      (exit $ac_status); }; }; then
3319      ac_cv_lib_gmp___gmpz_init=yes
3320    else
3321      echo "$as_me: failed program was:" >&5
3322    cat conftest.$ac_ext >&5
3323    ac_cv_lib_gmp___gmpz_init=no
3324    fi
3325    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326    LIBS=$ac_check_lib_save_LIBS
3327    fi
3328    echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
3329    echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
3330    if test $ac_cv_lib_gmp___gmpz_init = yes; then
3331    MPFILES=$GMPDIR/mpn/mul_n.o    MPFILES=$GMPDIR/mpn/mul_n.o
3332                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n
3333                          if test "$use" = "m68k-linux" ; then                          if test "$use" = "m68k-linux" ; then
# Line 1723  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 3340  if eval "test \"`echo '$ac_cv_lib_'$ac_l
3340                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`
3341                          rm -f foo.c                          rm -f foo.c
3342  else  else
3343    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3344  fi  fi
3345    
3346  else  else
3347    echo "$ac_t""no" 1>&6    echo "Cannot use dynamic gmp lib" ; exit 1
 echo "Cannot use dynamic gmp lib" ; exit 1  
3348  fi  fi
3349    
3350    
3351  else                      
3352    else
3353    
3354          cp $GMPDIR/gmp.h h/gmp.h          cp $GMPDIR/gmp.h h/gmp.h
3355          MP_INCLUDE=h/gmp.h          MP_INCLUDE=h/gmp.h
# Line 1741  else Line 3357  else
3357    
3358  fi  fi
3359    
3360   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5
3361  echo "configure:1746: checking "for size of gmp limbs"" >&5  echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6
3362   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3363    mpsize=0    mpsize=0
3364  else  else
3365    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3366  #line 1751 "configure"  #line $LINENO "configure"
3367  #include "confdefs.h"  #include "confdefs.h"
3368  #include <stdio.h>  #include <stdio.h>
3369          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1757  else Line 3373  else
3373          fclose(fp);          fclose(fp);
3374          return 0;          return 0;
3375          }          }
3376  EOF  _ACEOF
3377  if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3378  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3379      (eval $ac_link) 2>&5
3380      ac_status=$?
3381      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3383      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384      (eval $ac_try) 2>&5
3385      ac_status=$?
3386      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387      (exit $ac_status); }; }; then
3388    mpsize=`cat conftest1`    mpsize=`cat conftest1`
3389  else  else
3390    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
3391    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
3392    rm -fr conftest*  cat conftest.$ac_ext >&5
3393    mpsize=0  ( exit $ac_status )
3394    mpsize=0
3395  fi  fi
3396  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3397  fi  fi
   
3398   if test "$mpsize" = "0" ; then   if test "$mpsize" = "0" ; then
3399          echo "Cannot determine mpsize"          echo "Cannot determine mpsize"
3400          exit 1          exit 1
3401   fi   fi
3402   cat >> confdefs.h <<EOF   cat >>confdefs.h <<_ACEOF
3403  #define MP_LIMB_BYTES $mpsize  #define MP_LIMB_BYTES $mpsize
3404  EOF  _ACEOF
3405    
3406   echo "$ac_t""$mpsize" 1>&6   echo "$as_me:$LINENO: result: $mpsize" >&5
3407    echo "${ECHO_T}$mpsize" >&6
3408    
3409   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5
3410  echo "configure:1785: checking "_SHORT_LIMB"" >&5  echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6
3411   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3412    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3413    echo "${ECHO_T}no" >&6
3414  else  else
3415    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3416  #line 1790 "configure"  #line $LINENO "configure"
3417  #include "confdefs.h"  #include "confdefs.h"
3418  #include <stdio.h>  #include <stdio.h>
3419          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1797  else Line 3424  else
3424          return 1;          return 1;
3425          #endif          #endif
3426          }          }
3427  EOF  _ACEOF
3428  if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3429  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3431      ac_status=$?
3432      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3434      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435      (eval $ac_try) 2>&5
3436      ac_status=$?
3437      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438      (exit $ac_status); }; }; then
3439      cat >>confdefs.h <<\_ACEOF
3440  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
3441  EOF  _ACEOF
3442   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3443  else  echo "${ECHO_T}yes" >&6
3444    echo "configure: failed program was:" >&5  else
3445    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3446    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3447    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3448    ( exit $ac_status )
3449    echo "$as_me:$LINENO: result: no" >&5
3450    echo "${ECHO_T}no" >&6
3451  fi  fi
3452  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3453  fi  fi
3454     echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5
3455   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6  echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6
 echo "configure:1818: checking "_LONG_LONG_LIMB"" >&5  
3456   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3457    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
3458    echo "${ECHO_T}no" >&6
3459  else  else
3460    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3461  #line 1823 "configure"  #line $LINENO "configure"
3462  #include "confdefs.h"  #include "confdefs.h"
3463  #include <stdio.h>  #include <stdio.h>
3464          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1830  else Line 3469  else
3469          return 1;          return 1;
3470          #endif          #endif
3471          }          }
3472  EOF  _ACEOF
3473  if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
3474  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3475    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
3476      ac_status=$?
3477      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3479      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480      (eval $ac_try) 2>&5
3481      ac_status=$?
3482      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483      (exit $ac_status); }; }; then
3484      cat >>confdefs.h <<\_ACEOF
3485  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
3486  EOF  _ACEOF
3487   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
3488  else  echo "${ECHO_T}yes" >&6
3489    echo "configure: failed program was:" >&5  else
3490    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
3491    rm -fr conftest*  echo "$as_me: failed program was:" >&5
3492    echo "$ac_t""no" 1>&6  cat conftest.$ac_ext >&5
3493    ( exit $ac_status )
3494    echo "$as_me:$LINENO: result: no" >&5
3495    echo "${ECHO_T}no" >&6
3496  fi  fi
3497  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3498  fi  fi
3499    
   
3500   GMP=1   GMP=1
3501   cat >> confdefs.h <<\EOF   cat >>confdefs.h <<\_ACEOF
3502  #define GMP 1  #define GMP 1
3503  EOF  _ACEOF
3504    
3505    
3506    
   
   
3507   echo > makedefsafter   echo > makedefsafter
3508   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
3509   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter   echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
# Line 1863  fi Line 3513  fi
3513    
3514  #  #
3515  # X windows  # X windows
3516  #  #
3517    
3518    echo "$as_me:$LINENO: checking for X" >&5
3519    echo $ECHO_N "checking for X... $ECHO_C" >&6
3520    
 # If we find X, set shell vars x_includes and x_libraries to the  
 # paths, otherwise set no_x=yes.  
 # Uses ac_ vars as temps to allow command line to override cache and checks.  
 # --without-x overrides everything else, but does not touch the cache.  
 echo $ac_n "checking for X""... $ac_c" 1>&6  
 echo "configure:1874: checking for X" >&5  
3521    
3522  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
3523  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
3524    withval="$with_x"    withval="$with_x"
   :  
 fi  
3525    
3526    fi;
3527  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3528  if test "x$with_x" = xno; then  if test "x$with_x" = xno; then
3529    # The user explicitly disabled X.    # The user explicitly disabled X.
# Line 1887  else Line 3533  else
3533      # Both variables are already set.      # Both variables are already set.
3534      have_x=yes      have_x=yes
3535    else    else
3536  if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then      if test "${ac_cv_have_x+set}" = set; then
3537    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3538  else  else
3539    # One or both of the vars are not set, and there is no cached value.    # One or both of the vars are not set, and there is no cached value.
3540  ac_x_includes=NO ac_x_libraries=NO  ac_x_includes=no ac_x_libraries=no
3541  rm -fr conftestdir  rm -fr conftest.dir
3542  if mkdir conftestdir; then  if mkdir conftest.dir; then
3543    cd conftestdir    cd conftest.dir
3544    # Make sure to not put "make" in the Imakefile rules, since we grep it out.    # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3545    cat > Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
3546  acfindx:  acfindx:
3547          @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'          @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3548  EOF  _ACEOF
3549    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3550      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3552      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3553      for ac_extension in a so sl; do      for ac_extension in a so sl; do
3554        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3555          test -f $ac_im_libdir/libX11.$ac_extension; then           test -f $ac_im_libdir/libX11.$ac_extension; then
3556          ac_im_usrlibdir=$ac_im_libdir; break          ac_im_usrlibdir=$ac_im_libdir; break
3557        fi        fi
3558      done      done
3559      # Screen out bogus values from the imake configuration.  They are      # Screen out bogus values from the imake configuration.  They are
3560      # bogus both because they are the default anyway, and because      # bogus both because they are the default anyway, and because
3561      # using them would break gcc on systems where it needs fixed includes.      # using them would break gcc on systems where it needs fixed includes.
3562      case "$ac_im_incroot" in      case $ac_im_incroot in
3563          /usr/include) ;;          /usr/include) ;;
3564          *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;          *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3565      esac      esac
3566      case "$ac_im_usrlibdir" in      case $ac_im_usrlibdir in
3567          /usr/lib | /lib) ;;          /usr/lib | /lib) ;;
3568          *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;          *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3569      esac      esac
3570    fi    fi
3571    cd ..    cd ..
3572    rm -fr conftestdir    rm -fr conftest.dir
3573  fi  fi
3574    
3575  if test "$ac_x_includes" = NO; then  # Standard set of common directories for X headers.
3576    # Guess where to find include files, by looking for this one X11 .h file.  # Check X11 before X11Rn because it is often a symlink to the current release.
3577    test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h  ac_x_header_dirs='
3578    /usr/X11/include
3579    /usr/X11R6/include
3580    /usr/X11R5/include
3581    /usr/X11R4/include
3582    
3583    /usr/include/X11
3584    /usr/include/X11R6
3585    /usr/include/X11R5
3586    /usr/include/X11R4
3587    
3588    /usr/local/X11/include
3589    /usr/local/X11R6/include
3590    /usr/local/X11R5/include
3591    /usr/local/X11R4/include
3592    
3593    /usr/local/include/X11
3594    /usr/local/include/X11R6
3595    /usr/local/include/X11R5
3596    /usr/local/include/X11R4
3597    
3598    /usr/X386/include
3599    /usr/x386/include
3600    /usr/XFree86/include/X11
3601    
3602    /usr/include
3603    /usr/local/include
3604    /usr/unsupported/include
3605    /usr/athena/include
3606    /usr/local/x11r5/include
3607    /usr/lpp/Xamples/include
3608    
3609    /usr/openwin/include
3610    /usr/openwin/share/include'
3611    
3612    if test "$ac_x_includes" = no; then
3613      # Guess where to find include files, by looking for Intrinsic.h.
3614    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
3615  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3616  #line 1936 "configure"  #line $LINENO "configure"
3617  #include "confdefs.h"  #include "confdefs.h"
3618  #include <$x_direct_test_include>  #include <X11/Intrinsic.h>
3619  EOF  _ACEOF
3620  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621  { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
3623  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
3624    rm -rf conftest*    rm -f conftest.er1
3625      cat conftest.err >&5
3626      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627      (exit $ac_status); } >/dev/null; then
3628      if test -s conftest.err; then
3629        ac_cpp_err=$ac_c_preproc_warn_flag
3630      else
3631        ac_cpp_err=
3632      fi
3633    else
3634      ac_cpp_err=yes
3635    fi
3636    if test -z "$ac_cpp_err"; then
3637    # We can compile using X headers with no special include directory.    # We can compile using X headers with no special include directory.
3638  ac_x_includes=  ac_x_includes=
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*    for ac_dir in $ac_x_header_dirs; do
3643    # Look for the header file in a standard set of common directories.    if test -r "$ac_dir/X11/Intrinsic.h"; then
3644  # Check X11 before X11Rn because it is often a symlink to the current release.      ac_x_includes=$ac_dir
3645    for ac_dir in               \      break
3646      /usr/X11/include          \    fi
3647      /usr/X11R6/include        \  done
     /usr/X11R5/include        \  
     /usr/X11R4/include        \  
                               \  
     /usr/include/X11          \  
     /usr/include/X11R6        \  
     /usr/include/X11R5        \  
     /usr/include/X11R4        \  
                               \  
     /usr/local/X11/include    \  
     /usr/local/X11R6/include  \  
     /usr/local/X11R5/include  \  
     /usr/local/X11R4/include  \  
                               \  
     /usr/local/include/X11    \  
     /usr/local/include/X11R6  \  
     /usr/local/include/X11R5  \  
     /usr/local/include/X11R4  \  
                               \  
     /usr/X386/include         \  
     /usr/x386/include         \  
     /usr/XFree86/include/X11  \  
                               \  
     /usr/include              \  
     /usr/local/include        \  
     /usr/unsupported/include  \  
     /usr/athena/include       \  
     /usr/local/x11r5/include  \  
     /usr/lpp/Xamples/include  \  
                               \  
     /usr/openwin/include      \  
     /usr/openwin/share/include \  
     ; \  
   do  
     if test -r "$ac_dir/$x_direct_test_include"; then  
       ac_x_includes=$ac_dir  
       break  
     fi  
   done  
3648  fi  fi
3649  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3650  fi # $ac_x_includes = NO  fi # $ac_x_includes = no
3651    
3652  if test "$ac_x_libraries" = NO; then  if test "$ac_x_libraries" = no; then
3653    # Check for the libraries.    # Check for the libraries.
   
   test -z "$x_direct_test_library" && x_direct_test_library=Xt  
   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc  
   
3654    # See if we find them without any special options.    # See if we find them without any special options.
3655    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
3656    ac_save_LIBS="$LIBS"    ac_save_LIBS=$LIBS
3657    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-lXt $LIBS"
3658  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3659  #line 2010 "configure"  #line $LINENO "configure"
3660  #include "confdefs.h"  #include "confdefs.h"
3661    #include <X11/Intrinsic.h>
3662  int main() {  #ifdef F77_DUMMY_MAIN
3663  ${x_direct_test_function}()  #  ifdef __cplusplus
3664  ; return 0; }       extern "C"
3665  EOF  #  endif
3666  if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then     int F77_DUMMY_MAIN() { return 1; }
3667    rm -rf conftest*  #endif
3668    LIBS="$ac_save_LIBS"  int
3669    main ()
3670    {
3671    XtMalloc (0)
3672      ;
3673      return 0;
3674    }
3675    _ACEOF
3676    rm -f conftest.$ac_objext conftest$ac_exeext
3677    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678      (eval $ac_link) 2>&5
3679      ac_status=$?
3680      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681      (exit $ac_status); } &&
3682             { ac_try='test -s conftest$ac_exeext'
3683      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684      (eval $ac_try) 2>&5
3685      ac_status=$?
3686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687      (exit $ac_status); }; }; then
3688      LIBS=$ac_save_LIBS
3689  # We can link X programs with no special library path.  # We can link X programs with no special library path.
3690  ac_x_libraries=  ac_x_libraries=
3691  else  else
3692    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3693    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3694    rm -rf conftest*  LIBS=$ac_save_LIBS
3695    LIBS="$ac_save_LIBS"  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 # First see if replacing the include by lib works.  
 # Check X11 before X11Rn because it is often a symlink to the current release.  
 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \  
     /usr/X11/lib          \  
     /usr/X11R6/lib        \  
     /usr/X11R5/lib        \  
     /usr/X11R4/lib        \  
                           \  
     /usr/lib/X11          \  
     /usr/lib/X11R6        \  
     /usr/lib/X11R5        \  
     /usr/lib/X11R4        \  
                           \  
     /usr/local/X11/lib    \  
     /usr/local/X11R6/lib  \  
     /usr/local/X11R5/lib  \  
     /usr/local/X11R4/lib  \  
                           \  
     /usr/local/lib/X11    \  
     /usr/local/lib/X11R6  \  
     /usr/local/lib/X11R5  \  
     /usr/local/lib/X11R4  \  
                           \  
     /usr/X386/lib         \  
     /usr/x386/lib         \  
     /usr/XFree86/lib/X11  \  
                           \  
     /usr/lib              \  
     /usr/local/lib        \  
     /usr/unsupported/lib  \  
     /usr/athena/lib       \  
     /usr/local/x11r5/lib  \  
     /usr/lpp/Xamples/lib  \  
     /lib/usr/lib/X11      \  
                           \  
     /usr/openwin/lib      \  
     /usr/openwin/share/lib \  
     ; \  
3696  do  do
3697      # Don't even attempt the hair of trying to link an X program!
3698    for ac_extension in a so sl; do    for ac_extension in a so sl; do
3699      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then      if test -r $ac_dir/libXt.$ac_extension; then
3700        ac_x_libraries=$ac_dir        ac_x_libraries=$ac_dir
3701        break 2        break 2
3702      fi      fi
3703    done    done
3704  done  done
3705  fi  fi
3706  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3707  fi # $ac_x_libraries = NO  fi # $ac_x_libraries = no
3708    
3709  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3710    # Didn't find X anywhere.  Cache the known absence of X.    # Didn't find X anywhere.  Cache the known absence of X.
3711    ac_cv_have_x="have_x=no"    ac_cv_have_x="have_x=no"
3712  else  else
# Line 2082  else Line 3715  else
3715                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"                  ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3716  fi  fi
3717  fi  fi
3718    
3719    fi    fi
3720    eval "$ac_cv_have_x"    eval "$ac_cv_have_x"
3721  fi # $with_x != no  fi # $with_x != no
3722    
3723  if test "$have_x" != yes; then  if test "$have_x" != yes; then
3724    echo "$ac_t""$have_x" 1>&6    echo "$as_me:$LINENO: result: $have_x" >&5
3725    echo "${ECHO_T}$have_x" >&6
3726    no_x=yes    no_x=yes
3727  else  else
3728    # If each of the values was on the command line, it overrides each guess.    # If each of the values was on the command line, it overrides each guess.
# Line 2096  else Line 3731  else
3731    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
3732    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
3733                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3734    echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3735    echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3736  fi  fi
3737    
3738  if test "$no_x" = yes; then  if test "$no_x" = yes; then
3739    # Not all programs may use this symbol, but it does not hurt to define it.    # Not all programs may use this symbol, but it does not hurt to define it.
3740    cat >> confdefs.h <<\EOF  
3741    cat >>confdefs.h <<\_ACEOF
3742  #define X_DISPLAY_MISSING 1  #define X_DISPLAY_MISSING 1
3743  EOF  _ACEOF
3744    
3745    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=    X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3746  else  else
# Line 2116  else Line 3753  else
3753      X_LIBS="$X_LIBS -L$x_libraries"      X_LIBS="$X_LIBS -L$x_libraries"
3754      # For Solaris; some versions of Sun CC require a space after -R and      # For Solaris; some versions of Sun CC require a space after -R and
3755      # others require no space.  Words are not sufficient . . . .      # others require no space.  Words are not sufficient . . . .
3756      case "`(uname -sr) 2>/dev/null`" in      case `(uname -sr) 2>/dev/null` in
3757      "SunOS 5"*)      "SunOS 5"*)
3758        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3759  echo "configure:2123: checking whether -R must be followed by a space" >&5  echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3760        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3761        cat > conftest.$ac_ext <<EOF        cat >conftest.$ac_ext <<_ACEOF
3762  #line 2126 "configure"  #line $LINENO "configure"
3763  #include "confdefs.h"  #include "confdefs.h"
3764    
3765  int main() {  #ifdef F77_DUMMY_MAIN
3766    #  ifdef __cplusplus
3767         extern "C"
3768    #  endif
3769       int F77_DUMMY_MAIN() { return 1; }
3770    #endif
3771    int
3772    main ()
3773    {
3774    
3775  ; return 0; }    ;
3776  EOF    return 0;
3777  if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3778    rm -rf conftest*  _ACEOF
3779    rm -f conftest.$ac_objext conftest$ac_exeext
3780    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781      (eval $ac_link) 2>&5
3782      ac_status=$?
3783      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784      (exit $ac_status); } &&
3785             { ac_try='test -s conftest$ac_exeext'
3786      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787      (eval $ac_try) 2>&5
3788      ac_status=$?
3789      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790      (exit $ac_status); }; }; then
3791    ac_R_nospace=yes    ac_R_nospace=yes
3792  else  else
3793    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3794    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3795    rm -rf conftest*  ac_R_nospace=no
   ac_R_nospace=no  
3796  fi  fi
3797  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798        if test $ac_R_nospace = yes; then        if test $ac_R_nospace = yes; then
3799          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
3800    echo "${ECHO_T}no" >&6
3801          X_LIBS="$X_LIBS -R$x_libraries"          X_LIBS="$X_LIBS -R$x_libraries"
3802        else        else
3803          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
3804          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
3805  #line 2149 "configure"  #line $LINENO "configure"
3806  #include "confdefs.h"  #include "confdefs.h"
3807    
3808  int main() {  #ifdef F77_DUMMY_MAIN
3809    #  ifdef __cplusplus
3810         extern "C"
3811    #  endif
3812       int F77_DUMMY_MAIN() { return 1; }
3813    #endif
3814    int
3815    main ()
3816    {
3817    
3818  ; return 0; }    ;
3819  EOF    return 0;
3820  if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3821    rm -rf conftest*  _ACEOF
3822    rm -f conftest.$ac_objext conftest$ac_exeext
3823    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824      (eval $ac_link) 2>&5
3825      ac_status=$?
3826      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827      (exit $ac_status); } &&
3828             { ac_try='test -s conftest$ac_exeext'
3829      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830      (eval $ac_try) 2>&5
3831      ac_status=$?
3832      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833      (exit $ac_status); }; }; then
3834    ac_R_space=yes    ac_R_space=yes
3835  else  else
3836    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3837    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3838    rm -rf conftest*  ac_R_space=no
   ac_R_space=no  
3839  fi  fi
3840  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841          if test $ac_R_space = yes; then          if test $ac_R_space = yes; then
3842            echo "$ac_t""yes" 1>&6            echo "$as_me:$LINENO: result: yes" >&5
3843    echo "${ECHO_T}yes" >&6
3844            X_LIBS="$X_LIBS -R $x_libraries"            X_LIBS="$X_LIBS -R $x_libraries"
3845          else          else
3846            echo "$ac_t""neither works" 1>&6            echo "$as_me:$LINENO: result: neither works" >&5
3847    echo "${ECHO_T}neither works" >&6
3848          fi          fi
3849        fi        fi
3850        LIBS="$ac_xsave_LIBS"        LIBS=$ac_xsave_LIBS
3851      esac      esac
3852    fi    fi
3853    
# Line 2180  rm -f conftest* Line 3858  rm -f conftest*
3858    if test "$ISC" = yes; then    if test "$ISC" = yes; then
3859      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3860    else    else
3861      # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X      # Martyn Johnson says this is needed for Ultrix, if the X
3862      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And Karl Berry says
3863      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
3864      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3865  echo "configure:2188: checking for dnet_ntoa in -ldnet" >&5      cat >conftest.$ac_ext <<_ACEOF
3866  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  #line $LINENO "configure"
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   ac_save_LIBS="$LIBS"  
 LIBS="-ldnet  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 2196 "configure"  
3867  #include "confdefs.h"  #include "confdefs.h"
3868    
3869  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3870    #ifdef __cplusplus
3871    extern "C"
3872    #endif
3873  /* 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
3874      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3875  char dnet_ntoa();  char XOpenDisplay ();
3876    #ifdef F77_DUMMY_MAIN
3877  int main() {  #  ifdef __cplusplus
3878  dnet_ntoa()       extern "C"
3879  ; return 0; }  #  endif
3880  EOF     int F77_DUMMY_MAIN() { return 1; }
3881  if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3882    rm -rf conftest*  int
3883    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3884    {
3885    XOpenDisplay ();
3886      ;
3887      return 0;
3888    }
3889    _ACEOF
3890    rm -f conftest.$ac_objext conftest$ac_exeext
3891    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3892      (eval $ac_link) 2>&5
3893      ac_status=$?
3894      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895      (exit $ac_status); } &&
3896             { ac_try='test -s conftest$ac_exeext'
3897      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898      (eval $ac_try) 2>&5
3899      ac_status=$?
3900      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901      (exit $ac_status); }; }; then
3902      :
3903  else  else
3904    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3905    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3906    rm -rf conftest*  echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3907    eval "ac_cv_lib_$ac_lib_var=no"  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3908  fi  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3909  rm -f conftest*    echo $ECHO_N "(cached) $ECHO_C" >&6
3910  LIBS="$ac_save_LIBS"  else
3911      ac_check_lib_save_LIBS=$LIBS
3912    LIBS="-ldnet  $LIBS"
3913    cat >conftest.$ac_ext <<_ACEOF
3914    #line $LINENO "configure"
3915    #include "confdefs.h"
3916    
3917  fi  /* Override any gcc2 internal prototype to avoid an error.  */
3918  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #ifdef __cplusplus
3919    echo "$ac_t""yes" 1>&6  extern "C"
3920    #endif
3921    /* We use char because int might match the return type of a gcc2
3922       builtin and then its argument prototype would still apply.  */
3923    char dnet_ntoa ();
3924    #ifdef F77_DUMMY_MAIN
3925    #  ifdef __cplusplus
3926         extern "C"
3927    #  endif
3928       int F77_DUMMY_MAIN() { return 1; }
3929    #endif
3930    int
3931    main ()
3932    {
3933    dnet_ntoa ();
3934      ;
3935      return 0;
3936    }
3937    _ACEOF
3938    rm -f conftest.$ac_objext conftest$ac_exeext
3939    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940      (eval $ac_link) 2>&5
3941      ac_status=$?
3942      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943      (exit $ac_status); } &&
3944             { ac_try='test -s conftest$ac_exeext'
3945      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946      (eval $ac_try) 2>&5
3947      ac_status=$?
3948      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949      (exit $ac_status); }; }; then
3950      ac_cv_lib_dnet_dnet_ntoa=yes
3951    else
3952      echo "$as_me: failed program was:" >&5
3953    cat conftest.$ac_ext >&5
3954    ac_cv_lib_dnet_dnet_ntoa=no
3955    fi
3956    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3957    LIBS=$ac_check_lib_save_LIBS
3958    fi
3959    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3960    echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3961    if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3962    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 else  
   echo "$ac_t""no" 1>&6  
3963  fi  fi
3964    
3965      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3966        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3967  echo "configure:2229: checking for dnet_ntoa in -ldnet_stub" >&5  echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3968  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3969  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  
3970  else  else
3971    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3972  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
3973  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3974  #line 2237 "configure"  #line $LINENO "configure"
3975  #include "confdefs.h"  #include "confdefs.h"
3976    
3977  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3978    #ifdef __cplusplus
3979    extern "C"
3980    #endif
3981  /* 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
3982      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3983  char dnet_ntoa();  char dnet_ntoa ();
3984    #ifdef F77_DUMMY_MAIN
3985  int main() {  #  ifdef __cplusplus
3986  dnet_ntoa()       extern "C"
3987  ; return 0; }  #  endif
3988  EOF     int F77_DUMMY_MAIN() { return 1; }
3989  if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
3990    rm -rf conftest*  int
3991    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
3992  else  {
3993    echo "configure: failed program was:" >&5  dnet_ntoa ();
3994    cat conftest.$ac_ext >&5    ;
3995    rm -rf conftest*    return 0;
3996    eval "ac_cv_lib_$ac_lib_var=no"  }
3997  fi  _ACEOF
3998  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
3999  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4000      (eval $ac_link) 2>&5
4001  fi    ac_status=$?
4002  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4004             { ac_try='test -s conftest$ac_exeext'
4005      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006      (eval $ac_try) 2>&5
4007      ac_status=$?
4008      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009      (exit $ac_status); }; }; then
4010      ac_cv_lib_dnet_stub_dnet_ntoa=yes
4011    else
4012      echo "$as_me: failed program was:" >&5
4013    cat conftest.$ac_ext >&5
4014    ac_cv_lib_dnet_stub_dnet_ntoa=no
4015    fi
4016    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4017    LIBS=$ac_check_lib_save_LIBS
4018    fi
4019    echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4020    echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4021    if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4022    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"    X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 else  
   echo "$ac_t""no" 1>&6  
4023  fi  fi
4024    
4025      fi      fi
4026    fi
4027    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4028        LIBS="$ac_xsave_LIBS"
4029    
4030      # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,      # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4031      # to get the SysV transport functions.      # to get the SysV transport functions.
4032      # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)      # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4033      # needs -lnsl.      # needs -lnsl.
4034      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
4035      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to T.E. Dickey.
4036      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      # The functions gethostbyname, getservbyname, and inet_addr are
4037  echo "configure:2277: checking for gethostbyname" >&5      # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4038  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then      echo "$as_me:$LINENO: checking for gethostbyname" >&5
4039    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4040    if test "${ac_cv_func_gethostbyname+set}" = set; then
4041      echo $ECHO_N "(cached) $ECHO_C" >&6
4042  else  else
4043    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4044  #line 2282 "configure"  #line $LINENO "configure"
4045  #include "confdefs.h"  #include "confdefs.h"
4046  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4047      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
4048  #include <assert.h>  #include <assert.h>
4049  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4050    #ifdef __cplusplus
4051    extern "C"
4052    #endif
4053  /* 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
4054      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4055  char gethostbyname();  char gethostbyname ();
4056    char (*f) ();
4057  int main() {  
4058    #ifdef F77_DUMMY_MAIN
4059    #  ifdef __cplusplus
4060         extern "C"
4061    #  endif
4062       int F77_DUMMY_MAIN() { return 1; }
4063    #endif
4064    int
4065    main ()
4066    {
4067  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4068      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4069      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4070  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4071  choke me  choke me
4072  #else  #else
4073  gethostbyname();  f = gethostbyname;
4074  #endif  #endif
4075    
4076  ; return 0; }    ;
4077  EOF    return 0;
4078  if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4079    rm -rf conftest*  _ACEOF
4080    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4081  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4082    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4083    cat conftest.$ac_ext >&5    ac_status=$?
4084    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
4086             { ac_try='test -s conftest$ac_exeext'
4087      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088      (eval $ac_try) 2>&5
4089      ac_status=$?
4090      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091      (exit $ac_status); }; }; then
4092      ac_cv_func_gethostbyname=yes
4093    else
4094      echo "$as_me: failed program was:" >&5
4095    cat conftest.$ac_ext >&5
4096    ac_cv_func_gethostbyname=no
4097  fi  fi
4098  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi  
   
 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4099  fi  fi
4100    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4101    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4102    
4103      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4104        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4105  echo "configure:2326: checking for gethostbyname in -lnsl" >&5  echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4106  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4107  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  
4108  else  else
4109    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4110  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4111  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4112  #line 2334 "configure"  #line $LINENO "configure"
4113  #include "confdefs.h"  #include "confdefs.h"
4114    
4115  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4116    #ifdef __cplusplus
4117    extern "C"
4118    #endif
4119  /* 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
4120      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4121  char gethostbyname();  char gethostbyname ();
4122    #ifdef F77_DUMMY_MAIN
4123  int main() {  #  ifdef __cplusplus
4124  gethostbyname()       extern "C"
4125  ; return 0; }  #  endif
4126  EOF     int F77_DUMMY_MAIN() { return 1; }
4127  if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4128    rm -rf conftest*  int
4129    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4130  else  {
4131    echo "configure: failed program was:" >&5  gethostbyname ();
4132    cat conftest.$ac_ext >&5    ;
4133    rm -rf conftest*    return 0;
4134    eval "ac_cv_lib_$ac_lib_var=no"  }
4135    _ACEOF
4136    rm -f conftest.$ac_objext conftest$ac_exeext
4137    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4138      (eval $ac_link) 2>&5
4139      ac_status=$?
4140      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141      (exit $ac_status); } &&
4142             { ac_try='test -s conftest$ac_exeext'
4143      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144      (eval $ac_try) 2>&5
4145      ac_status=$?
4146      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147      (exit $ac_status); }; }; then
4148      ac_cv_lib_nsl_gethostbyname=yes
4149    else
4150      echo "$as_me: failed program was:" >&5
4151    cat conftest.$ac_ext >&5
4152    ac_cv_lib_nsl_gethostbyname=no
4153    fi
4154    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4155    LIBS=$ac_check_lib_save_LIBS
4156    fi
4157    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4158    echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4159    if test $ac_cv_lib_nsl_gethostbyname = yes; then
4160      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4161  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
4162    
4163  fi        if test $ac_cv_lib_nsl_gethostbyname = no; then
4164  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then          echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4165    echo "$ac_t""yes" 1>&6  echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4166    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4167  else    echo $ECHO_N "(cached) $ECHO_C" >&6
4168    echo "$ac_t""no" 1>&6  else
4169      ac_check_lib_save_LIBS=$LIBS
4170    LIBS="-lbsd  $LIBS"
4171    cat >conftest.$ac_ext <<_ACEOF
4172    #line $LINENO "configure"
4173    #include "confdefs.h"
4174    
4175    /* Override any gcc2 internal prototype to avoid an error.  */
4176    #ifdef __cplusplus
4177    extern "C"
4178    #endif
4179    /* We use char because int might match the return type of a gcc2
4180       builtin and then its argument prototype would still apply.  */
4181    char gethostbyname ();
4182    #ifdef F77_DUMMY_MAIN
4183    #  ifdef __cplusplus
4184         extern "C"
4185    #  endif
4186       int F77_DUMMY_MAIN() { return 1; }
4187    #endif
4188    int
4189    main ()
4190    {
4191    gethostbyname ();
4192      ;
4193      return 0;
4194    }
4195    _ACEOF
4196    rm -f conftest.$ac_objext conftest$ac_exeext
4197    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198      (eval $ac_link) 2>&5
4199      ac_status=$?
4200      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201      (exit $ac_status); } &&
4202             { ac_try='test -s conftest$ac_exeext'
4203      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204      (eval $ac_try) 2>&5
4205      ac_status=$?
4206      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207      (exit $ac_status); }; }; then
4208      ac_cv_lib_bsd_gethostbyname=yes
4209    else
4210      echo "$as_me: failed program was:" >&5
4211    cat conftest.$ac_ext >&5
4212    ac_cv_lib_bsd_gethostbyname=no
4213    fi
4214    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4215    LIBS=$ac_check_lib_save_LIBS
4216    fi
4217    echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4218    echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4219    if test $ac_cv_lib_bsd_gethostbyname = yes; then
4220      X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4221  fi  fi
4222    
4223          fi
4224      fi      fi
4225    
4226      # lieder@skyler.mavd.honeywell.com says without -lsocket,      # lieder@skyler.mavd.honeywell.com says without -lsocket,
4227      # socket/setsockopt and other routines are undefined under SCO ODT      # socket/setsockopt and other routines are undefined under SCO ODT
4228      # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary      # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4229      # on later versions), says simon@lia.di.epfl.ch: it contains      # on later versions), says Simon Leinen: it contains gethostby*
4230      # gethostby* variants that don't use the nameserver (or something).      # variants that don't use the nameserver (or something).  -lsocket
4231      # -lsocket must be given before -lnsl if both are needed.      # must be given before -lnsl if both are needed.  We assume that
4232      # We assume that if connect needs -lnsl, so does gethostbyname.      # if connect needs -lnsl, so does gethostbyname.
4233      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for connect" >&5
4234  echo "configure:2375: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
4235  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
4236    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4237  else  else
4238    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4239  #line 2380 "configure"  #line $LINENO "configure"
4240  #include "confdefs.h"  #include "confdefs.h"
4241  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4242      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
4243  #include <assert.h>  #include <assert.h>
4244  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4245    #ifdef __cplusplus
4246    extern "C"
4247    #endif
4248  /* 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
4249      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4250  char connect();  char connect ();
4251    char (*f) ();
4252  int main() {  
4253    #ifdef F77_DUMMY_MAIN
4254    #  ifdef __cplusplus
4255         extern "C"
4256    #  endif
4257       int F77_DUMMY_MAIN() { return 1; }
4258    #endif
4259    int
4260    main ()
4261    {
4262  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4263      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4264      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4265  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
4266  choke me  choke me
4267  #else  #else
4268  connect();  f = connect;
4269  #endif  #endif
4270    
4271  ; return 0; }    ;
4272  EOF    return 0;
4273  if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4274    rm -rf conftest*  _ACEOF
4275    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4276  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4278    cat conftest.$ac_ext >&5    ac_status=$?
4279    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
4281  fi           { ac_try='test -s conftest$ac_exeext'
4282  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283      (eval $ac_try) 2>&5
4284      ac_status=$?
4285      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286      (exit $ac_status); }; }; then
4287      ac_cv_func_connect=yes
4288    else
4289      echo "$as_me: failed program was:" >&5
4290    cat conftest.$ac_ext >&5
4291    ac_cv_func_connect=no
4292  fi  fi
4293    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4294  fi  fi
4295    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4296    echo "${ECHO_T}$ac_cv_func_connect" >&6
4297    
4298      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
4299        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4300  echo "configure:2424: checking for connect in -lsocket" >&5  echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4301  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_connect+set}" = set; then
4302  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  
4303  else  else
4304    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4305  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4306  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4307  #line 2432 "configure"  #line $LINENO "configure"
4308  #include "confdefs.h"  #include "confdefs.h"
4309    
4310  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4311    #ifdef __cplusplus
4312    extern "C"
4313    #endif
4314  /* 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
4315      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4316  char connect();  char connect ();
4317    #ifdef F77_DUMMY_MAIN
4318  int main() {  #  ifdef __cplusplus
4319  connect()       extern "C"
4320  ; return 0; }  #  endif
4321  EOF     int F77_DUMMY_MAIN() { return 1; }
4322  if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4323    rm -rf conftest*  int
4324    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4325  else  {
4326    echo "configure: failed program was:" >&5  connect ();
4327    cat conftest.$ac_ext >&5    ;
4328    rm -rf conftest*    return 0;
4329    eval "ac_cv_lib_$ac_lib_var=no"  }
4330  fi  _ACEOF
4331  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4332  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333      (eval $ac_link) 2>&5
4334  fi    ac_status=$?
4335  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4337             { ac_try='test -s conftest$ac_exeext'
4338      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339      (eval $ac_try) 2>&5
4340      ac_status=$?
4341      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342      (exit $ac_status); }; }; then
4343      ac_cv_lib_socket_connect=yes
4344    else
4345      echo "$as_me: failed program was:" >&5
4346    cat conftest.$ac_ext >&5
4347    ac_cv_lib_socket_connect=no
4348    fi
4349    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4350    LIBS=$ac_check_lib_save_LIBS
4351    fi
4352    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4353    echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4354    if test $ac_cv_lib_socket_connect = yes; then
4355    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"    X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 else  
   echo "$ac_t""no" 1>&6  
4356  fi  fi
4357    
4358      fi      fi
4359    
4360      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # Guillermo Gomez says -lposix is necessary on A/UX.
4361      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for remove" >&5
4362  echo "configure:2467: checking for remove" >&5  echo $ECHO_N "checking for remove... $ECHO_C" >&6
4363  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if test "${ac_cv_func_remove+set}" = set; then
4364    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4365  else  else
4366    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4367  #line 2472 "configure"  #line $LINENO "configure"
4368  #include "confdefs.h"  #include "confdefs.h"
4369  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4370      which can conflict with char remove(); below.  */      which can conflict with char remove (); below.  */
4371  #include <assert.h>  #include <assert.h>
4372  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4373    #ifdef __cplusplus
4374    extern "C"
4375    #endif
4376  /* 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
4377      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4378  char remove();  char remove ();
4379    char (*f) ();
4380  int main() {  
4381    #ifdef F77_DUMMY_MAIN
4382    #  ifdef __cplusplus
4383         extern "C"
4384    #  endif
4385       int F77_DUMMY_MAIN() { return 1; }
4386    #endif
4387    int
4388    main ()
4389    {
4390  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4391      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4392      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4393  #if defined (__stub_remove) || defined (__stub___remove)  #if defined (__stub_remove) || defined (__stub___remove)
4394  choke me  choke me
4395  #else  #else
4396  remove();  f = remove;
4397  #endif  #endif
4398    
4399  ; return 0; }    ;
4400  EOF    return 0;
4401  if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4402    rm -rf conftest*  _ACEOF
4403    eval "ac_cv_func_remove=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4404  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4406    cat conftest.$ac_ext >&5    ac_status=$?
4407    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408    eval "ac_cv_func_remove=no"    (exit $ac_status); } &&
4409             { ac_try='test -s conftest$ac_exeext'
4410      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411      (eval $ac_try) 2>&5
4412      ac_status=$?
4413      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414      (exit $ac_status); }; }; then
4415      ac_cv_func_remove=yes
4416    else
4417      echo "$as_me: failed program was:" >&5
4418    cat conftest.$ac_ext >&5
4419    ac_cv_func_remove=no
4420  fi  fi
4421  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi  
   
 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4422  fi  fi
4423    echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4424    echo "${ECHO_T}$ac_cv_func_remove" >&6
4425    
4426      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
4427        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4428  echo "configure:2516: checking for remove in -lposix" >&5  echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4429  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_posix_remove+set}" = set; then
4430  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  
4431  else  else
4432    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4433  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
4434  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4435  #line 2524 "configure"  #line $LINENO "configure"
4436  #include "confdefs.h"  #include "confdefs.h"
4437    
4438  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4439    #ifdef __cplusplus
4440    extern "C"
4441    #endif
4442  /* 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
4443      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4444  char remove();  char remove ();
4445    #ifdef F77_DUMMY_MAIN
4446  int main() {  #  ifdef __cplusplus
4447  remove()       extern "C"
4448  ; return 0; }  #  endif
4449  EOF     int F77_DUMMY_MAIN() { return 1; }
4450  if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4451    rm -rf conftest*  int
4452    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4453  else  {
4454    echo "configure: failed program was:" >&5  remove ();
4455    cat conftest.$ac_ext >&5    ;
4456    rm -rf conftest*    return 0;
4457    eval "ac_cv_lib_$ac_lib_var=no"  }
4458  fi  _ACEOF
4459  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4460  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461      (eval $ac_link) 2>&5
4462  fi    ac_status=$?
4463  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4465             { ac_try='test -s conftest$ac_exeext'
4466      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467      (eval $ac_try) 2>&5
4468      ac_status=$?
4469      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470      (exit $ac_status); }; }; then
4471      ac_cv_lib_posix_remove=yes
4472    else
4473      echo "$as_me: failed program was:" >&5
4474    cat conftest.$ac_ext >&5
4475    ac_cv_lib_posix_remove=no
4476    fi
4477    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4478    LIBS=$ac_check_lib_save_LIBS
4479    fi
4480    echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4481    echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4482    if test $ac_cv_lib_posix_remove = yes; then
4483    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 else  
   echo "$ac_t""no" 1>&6  
4484  fi  fi
4485    
4486      fi      fi
4487    
4488      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4489      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for shmat" >&5
4490  echo "configure:2559: checking for shmat" >&5  echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4491  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if test "${ac_cv_func_shmat+set}" = set; then
4492    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4493  else  else
4494    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
4495  #line 2564 "configure"  #line $LINENO "configure"
4496  #include "confdefs.h"  #include "confdefs.h"
4497  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4498      which can conflict with char shmat(); below.  */      which can conflict with char shmat (); below.  */
4499  #include <assert.h>  #include <assert.h>
4500  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4501    #ifdef __cplusplus
4502    extern "C"
4503    #endif
4504  /* 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
4505      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4506  char shmat();  char shmat ();
4507    char (*f) ();
4508  int main() {  
4509    #ifdef F77_DUMMY_MAIN
4510    #  ifdef __cplusplus
4511         extern "C"
4512    #  endif
4513       int F77_DUMMY_MAIN() { return 1; }
4514    #endif
4515    int
4516    main ()
4517    {
4518  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
4519      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
4520      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
4521  #if defined (__stub_shmat) || defined (__stub___shmat)  #if defined (__stub_shmat) || defined (__stub___shmat)
4522  choke me  choke me
4523  #else  #else
4524  shmat();  f = shmat;
4525  #endif  #endif
4526    
4527  ; return 0; }    ;
4528  EOF    return 0;
4529  if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
4530    rm -rf conftest*  _ACEOF
4531    eval "ac_cv_func_shmat=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
4532  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
4534    cat conftest.$ac_ext >&5    ac_status=$?
4535    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536    eval "ac_cv_func_shmat=no"    (exit $ac_status); } &&
4537  fi           { ac_try='test -s conftest$ac_exeext'
4538  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539      (eval $ac_try) 2>&5
4540      ac_status=$?
4541      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542      (exit $ac_status); }; }; then
4543      ac_cv_func_shmat=yes
4544    else
4545      echo "$as_me: failed program was:" >&5
4546    cat conftest.$ac_ext >&5
4547    ac_cv_func_shmat=no
4548  fi  fi
4549    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   :  
 else  
   echo "$ac_t""no" 1>&6  
4550  fi  fi
4551    echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4552    echo "${ECHO_T}$ac_cv_func_shmat" >&6
4553    
4554      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
4555        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4556  echo "configure:2608: checking for shmat in -lipc" >&5  echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4557  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4558  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  
4559  else  else
4560    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4561  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
4562  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4563  #line 2616 "configure"  #line $LINENO "configure"
4564  #include "confdefs.h"  #include "confdefs.h"
4565    
4566  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4567    #ifdef __cplusplus
4568    extern "C"
4569    #endif
4570  /* 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
4571      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4572  char shmat();  char shmat ();
4573    #ifdef F77_DUMMY_MAIN
4574  int main() {  #  ifdef __cplusplus
4575  shmat()       extern "C"
4576  ; return 0; }  #  endif
4577  EOF     int F77_DUMMY_MAIN() { return 1; }
4578  if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4579    rm -rf conftest*  int
4580    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4581  else  {
4582    echo "configure: failed program was:" >&5  shmat ();
4583    cat conftest.$ac_ext >&5    ;
4584    rm -rf conftest*    return 0;
4585    eval "ac_cv_lib_$ac_lib_var=no"  }
4586  fi  _ACEOF
4587  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4588  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4589      (eval $ac_link) 2>&5
4590  fi    ac_status=$?
4591  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4593             { ac_try='test -s conftest$ac_exeext'
4594      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595      (eval $ac_try) 2>&5
4596      ac_status=$?
4597      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598      (exit $ac_status); }; }; then
4599      ac_cv_lib_ipc_shmat=yes
4600    else
4601      echo "$as_me: failed program was:" >&5
4602    cat conftest.$ac_ext >&5
4603    ac_cv_lib_ipc_shmat=no
4604    fi
4605    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4606    LIBS=$ac_check_lib_save_LIBS
4607    fi
4608    echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4609    echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4610    if test $ac_cv_lib_ipc_shmat = yes; then
4611    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 else  
   echo "$ac_t""no" 1>&6  
4612  fi  fi
4613    
4614      fi      fi
4615    fi    fi
4616    
4617    # Check for libraries that X11R6 Xt/Xaw programs need.    # Check for libraries that X11R6 Xt/Xaw programs need.
4618    ac_save_LDFLAGS="$LDFLAGS"    ac_save_LDFLAGS=$LDFLAGS
4619    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"    test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4620    # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to    # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4621    # check for ICE first), but we must link in the order -lSM -lICE or    # check for ICE first), but we must link in the order -lSM -lICE or
4622    # we get undefined symbols.  So assume we have SM if we have ICE.    # we get undefined symbols.  So assume we have SM if we have ICE.
4623    # These have to be linked with before -lX11, unlike the other    # These have to be linked with before -lX11, unlike the other
4624    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
4625    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    # John Interrante, Karl Berry
4626    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4627  echo "configure:2660: checking for IceConnectionNumber in -lICE" >&5  echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4628  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4629  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  
4630  else  else
4631    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4632  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4633  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4634  #line 2668 "configure"  #line $LINENO "configure"
4635  #include "confdefs.h"  #include "confdefs.h"
4636    
4637  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4638    #ifdef __cplusplus
4639    extern "C"
4640    #endif
4641  /* 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
4642      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4643  char IceConnectionNumber();  char IceConnectionNumber ();
4644    #ifdef F77_DUMMY_MAIN
4645  int main() {  #  ifdef __cplusplus
4646  IceConnectionNumber()       extern "C"
4647  ; return 0; }  #  endif
4648  EOF     int F77_DUMMY_MAIN() { return 1; }
4649  if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
4650    rm -rf conftest*  int
4651    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
4652  else  {
4653    echo "configure: failed program was:" >&5  IceConnectionNumber ();
4654    cat conftest.$ac_ext >&5    ;
4655    rm -rf conftest*    return 0;
4656    eval "ac_cv_lib_$ac_lib_var=no"  }
4657  fi  _ACEOF
4658  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
4659  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660      (eval $ac_link) 2>&5
4661  fi    ac_status=$?
4662  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
4664             { ac_try='test -s conftest$ac_exeext'
4665      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666      (eval $ac_try) 2>&5
4667      ac_status=$?
4668      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669      (exit $ac_status); }; }; then
4670      ac_cv_lib_ICE_IceConnectionNumber=yes
4671    else
4672      echo "$as_me: failed program was:" >&5
4673    cat conftest.$ac_ext >&5
4674    ac_cv_lib_ICE_IceConnectionNumber=no
4675    fi
4676    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677    LIBS=$ac_check_lib_save_LIBS
4678    fi
4679    echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4680    echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4681    if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4682    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"    X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else  
   echo "$ac_t""no" 1>&6  
4683  fi  fi
4684    
4685    LDFLAGS="$ac_save_LDFLAGS"    LDFLAGS=$ac_save_LDFLAGS
4686    
4687  fi  fi
4688    
# Line 2705  echo $X_EXTRA_LIBS Line 4692  echo $X_EXTRA_LIBS
4692  echo $X_PRE_LIBS  echo $X_PRE_LIBS
4693    
4694  miss=0  miss=0
4695  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXmu" >&5
4696  echo "configure:2710: checking for main in -lXmu" >&5  echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
4697  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xmu_main+set}" = set; then
4698  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  
4699  else  else
4700    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4701  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
4702  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4703  #line 2718 "configure"  #line $LINENO "configure"
4704  #include "confdefs.h"  #include "confdefs.h"
4705    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2725: \"$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"  
4706    
4707  fi  #ifdef F77_DUMMY_MAIN
4708  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4709    echo "$ac_t""yes" 1>&6       extern "C"
4710    #  endif
4711       int F77_DUMMY_MAIN() { return 1; }
4712    #endif
4713    int
4714    main ()
4715    {
4716    main ();
4717      ;
4718      return 0;
4719    }
4720    _ACEOF
4721    rm -f conftest.$ac_objext conftest$ac_exeext
4722    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723      (eval $ac_link) 2>&5
4724      ac_status=$?
4725      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726      (exit $ac_status); } &&
4727             { ac_try='test -s conftest$ac_exeext'
4728      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729      (eval $ac_try) 2>&5
4730      ac_status=$?
4731      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732      (exit $ac_status); }; }; then
4733      ac_cv_lib_Xmu_main=yes
4734    else
4735      echo "$as_me: failed program was:" >&5
4736    cat conftest.$ac_ext >&5
4737    ac_cv_lib_Xmu_main=no
4738    fi
4739    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4740    LIBS=$ac_check_lib_save_LIBS
4741    fi
4742    echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
4743    echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
4744    if test $ac_cv_lib_Xmu_main = yes; then
4745    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXmu"
4746  else  else
4747    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4748  fi  fi
4749    
4750  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXt" >&5
4751  echo "configure:2747: checking for main in -lXt" >&5  echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
4752  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xt_main+set}" = set; then
4753  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  
4754  else  else
4755    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4756  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
4757  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4758  #line 2755 "configure"  #line $LINENO "configure"
4759  #include "confdefs.h"  #include "confdefs.h"
4760    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2762: \"$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"  
4761    
4762  fi  #ifdef F77_DUMMY_MAIN
4763  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4764    echo "$ac_t""yes" 1>&6       extern "C"
4765    #  endif
4766       int F77_DUMMY_MAIN() { return 1; }
4767    #endif
4768    int
4769    main ()
4770    {
4771    main ();
4772      ;
4773      return 0;
4774    }
4775    _ACEOF
4776    rm -f conftest.$ac_objext conftest$ac_exeext
4777    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778      (eval $ac_link) 2>&5
4779      ac_status=$?
4780      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781      (exit $ac_status); } &&
4782             { ac_try='test -s conftest$ac_exeext'
4783      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784      (eval $ac_try) 2>&5
4785      ac_status=$?
4786      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787      (exit $ac_status); }; }; then
4788      ac_cv_lib_Xt_main=yes
4789    else
4790      echo "$as_me: failed program was:" >&5
4791    cat conftest.$ac_ext >&5
4792    ac_cv_lib_Xt_main=no
4793    fi
4794    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4795    LIBS=$ac_check_lib_save_LIBS
4796    fi
4797    echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
4798    echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
4799    if test $ac_cv_lib_Xt_main = yes; then
4800    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXt"
4801  else  else
4802    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4803  fi  fi
4804    
4805  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXext" >&5
4806  echo "configure:2784: checking for main in -lXext" >&5  echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
4807  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xext_main+set}" = set; then
4808  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  
4809  else  else
4810    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4811  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
4812  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4813  #line 2792 "configure"  #line $LINENO "configure"
4814  #include "confdefs.h"  #include "confdefs.h"
4815    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2799: \"$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"  
4816    
4817  fi  #ifdef F77_DUMMY_MAIN
4818  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4819    echo "$ac_t""yes" 1>&6       extern "C"
4820    #  endif
4821       int F77_DUMMY_MAIN() { return 1; }
4822    #endif
4823    int
4824    main ()
4825    {
4826    main ();
4827      ;
4828      return 0;
4829    }
4830    _ACEOF
4831    rm -f conftest.$ac_objext conftest$ac_exeext
4832    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833      (eval $ac_link) 2>&5
4834      ac_status=$?
4835      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836      (exit $ac_status); } &&
4837             { ac_try='test -s conftest$ac_exeext'
4838      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839      (eval $ac_try) 2>&5
4840      ac_status=$?
4841      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842      (exit $ac_status); }; }; then
4843      ac_cv_lib_Xext_main=yes
4844    else
4845      echo "$as_me: failed program was:" >&5
4846    cat conftest.$ac_ext >&5
4847    ac_cv_lib_Xext_main=no
4848    fi
4849    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4850    LIBS=$ac_check_lib_save_LIBS
4851    fi
4852    echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
4853    echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
4854    if test $ac_cv_lib_Xext_main = yes; then
4855    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXext"
4856  else  else
4857    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4858  fi  fi
4859    
4860  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
4861  echo "configure:2821: checking for main in -lXaw" >&5  echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
4862  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_Xaw_main+set}" = set; then
4863  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  
4864  else  else
4865    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4866  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
4867  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4868  #line 2829 "configure"  #line $LINENO "configure"
4869  #include "confdefs.h"  #include "confdefs.h"
4870    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2836: \"$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"  
4871    
4872  fi  #ifdef F77_DUMMY_MAIN
4873  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4874    echo "$ac_t""yes" 1>&6       extern "C"
4875    #  endif
4876       int F77_DUMMY_MAIN() { return 1; }
4877    #endif
4878    int
4879    main ()
4880    {
4881    main ();
4882      ;
4883      return 0;
4884    }
4885    _ACEOF
4886    rm -f conftest.$ac_objext conftest$ac_exeext
4887    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888      (eval $ac_link) 2>&5
4889      ac_status=$?
4890      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891      (exit $ac_status); } &&
4892             { ac_try='test -s conftest$ac_exeext'
4893      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894      (eval $ac_try) 2>&5
4895      ac_status=$?
4896      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897      (exit $ac_status); }; }; then
4898      ac_cv_lib_Xaw_main=yes
4899    else
4900      echo "$as_me: failed program was:" >&5
4901    cat conftest.$ac_ext >&5
4902    ac_cv_lib_Xaw_main=no
4903    fi
4904    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4905    LIBS=$ac_check_lib_save_LIBS
4906    fi
4907    echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
4908    echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
4909    if test $ac_cv_lib_Xaw_main = yes; then
4910    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXaw"
4911  else  else
4912    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4913  fi  fi
4914    
4915  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lX11" >&5
4916  echo "configure:2858: checking for main in -lX11" >&5  echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
4917  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_X11_main+set}" = set; then
4918  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  
4919  else  else
4920    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4921  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
4922  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4923  #line 2866 "configure"  #line $LINENO "configure"
4924  #include "confdefs.h"  #include "confdefs.h"
4925    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:2873: \"$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"  
4926    
4927  fi  #ifdef F77_DUMMY_MAIN
4928  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
4929    echo "$ac_t""yes" 1>&6       extern "C"
4930    #  endif
4931       int F77_DUMMY_MAIN() { return 1; }
4932    #endif
4933    int
4934    main ()
4935    {
4936    main ();
4937      ;
4938      return 0;
4939    }
4940    _ACEOF
4941    rm -f conftest.$ac_objext conftest$ac_exeext
4942    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943      (eval $ac_link) 2>&5
4944      ac_status=$?
4945      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946      (exit $ac_status); } &&
4947             { ac_try='test -s conftest$ac_exeext'
4948      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949      (eval $ac_try) 2>&5
4950      ac_status=$?
4951      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952      (exit $ac_status); }; }; then
4953      ac_cv_lib_X11_main=yes
4954    else
4955      echo "$as_me: failed program was:" >&5
4956    cat conftest.$ac_ext >&5
4957    ac_cv_lib_X11_main=no
4958    fi
4959    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4960    LIBS=$ac_check_lib_save_LIBS
4961    fi
4962    echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
4963    echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
4964    if test $ac_cv_lib_X11_main = yes; then
4965    X_LIBS="$X_LIBS -lX11"    X_LIBS="$X_LIBS -lX11"
4966  else  else
4967    echo "$ac_t""no" 1>&6    miss=1
 miss=1  
4968  fi  fi
4969    
4970    
4971  if test "$miss" = "1" ; then  if test "$miss" = "1" ; then
4972          X_CFLAGS=          X_CFLAGS=
4973          X_LIBS=          X_LIBS=
# Line 2907  fi Line 4984  fi
4984    
4985  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
4986    
4987          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4988  echo "configure:2912: checking for dlopen in -ldl" >&5  echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4989  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4990  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  
4991  else  else
4992    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
4993  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
4994  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
4995  #line 2920 "configure"  #line $LINENO "configure"
4996  #include "confdefs.h"  #include "confdefs.h"
4997    
4998  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4999    #ifdef __cplusplus
5000    extern "C"
5001    #endif
5002  /* 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
5003      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5004  char dlopen();  char dlopen ();
5005    #ifdef F77_DUMMY_MAIN
5006  int main() {  #  ifdef __cplusplus
5007  dlopen()       extern "C"
5008  ; return 0; }  #  endif
5009  EOF     int F77_DUMMY_MAIN() { return 1; }
5010  if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
5011    rm -rf conftest*  int
5012    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
5013  else  {
5014    echo "configure: failed program was:" >&5  dlopen ();
5015    cat conftest.$ac_ext >&5    ;
5016    rm -rf conftest*    return 0;
5017    eval "ac_cv_lib_$ac_lib_var=no"  }
5018  fi  _ACEOF
5019  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5020  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5021      (eval $ac_link) 2>&5
5022  fi    ac_status=$?
5023  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
5025             { ac_try='test -s conftest$ac_exeext'
5026      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027      (eval $ac_try) 2>&5
5028      ac_status=$?
5029      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030      (exit $ac_status); }; }; then
5031      ac_cv_lib_dl_dlopen=yes
5032    else
5033      echo "$as_me: failed program was:" >&5
5034    cat conftest.$ac_ext >&5
5035    ac_cv_lib_dl_dlopen=no
5036    fi
5037    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5038    LIBS=$ac_check_lib_save_LIBS
5039    fi
5040    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5041    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5042    if test $ac_cv_lib_dl_dlopen = yes; then
5043    have_dl=1    have_dl=1
5044  else  else
5045    echo "$ac_t""no" 1>&6    have_dl=0
 have_dl=0  
5046  fi  fi
5047    
5048          if test "$have_dl" = "0" ; then          if test "$have_dl" = "0" ; then
# Line 2954  fi Line 5051  fi
5051          fi          fi
5052    
5053          TLIBS="$TLIBS -ldl -rdynamic"          TLIBS="$TLIBS -ldl -rdynamic"
5054          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5055  #define USE_DLOPEN 1  #define USE_DLOPEN 1
5056  EOF  _ACEOF
5057    
5058  fi  fi
5059    
5060  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5061          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          if test "${ac_cv_header_bfd_h+set}" = set; then
5062  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking for bfd.h" >&5
5063  echo "configure:2967: checking for bfd.h" >&5  echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5064  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if test "${ac_cv_header_bfd_h+set}" = set; then
5065    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5066  else  fi
5067    cat > conftest.$ac_ext <<EOF  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5068  #line 2972 "configure"  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5069    else
5070      # Is the header compilable?
5071    echo "$as_me:$LINENO: checking bfd.h usability" >&5
5072    echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6
5073    cat >conftest.$ac_ext <<_ACEOF
5074    #line $LINENO "configure"
5075  #include "confdefs.h"  #include "confdefs.h"
5076    $ac_includes_default
5077  #include <bfd.h>  #include <bfd.h>
5078  EOF  _ACEOF
5079  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  rm -f conftest.$ac_objext
5080  { (eval echo configure:2977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_compile) 2>&5
5082  if test -z "$ac_err"; then    ac_status=$?
5083    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084    eval "ac_cv_header_$ac_safe=yes"    (exit $ac_status); } &&
5085             { ac_try='test -s conftest.$ac_objext'
5086      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087      (eval $ac_try) 2>&5
5088      ac_status=$?
5089      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090      (exit $ac_status); }; }; then
5091      ac_header_compiler=yes
5092    else
5093      echo "$as_me: failed program was:" >&5
5094    cat conftest.$ac_ext >&5
5095    ac_header_compiler=no
5096    fi
5097    rm -f conftest.$ac_objext conftest.$ac_ext
5098    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099    echo "${ECHO_T}$ac_header_compiler" >&6
5100    
5101    # Is the header present?
5102    echo "$as_me:$LINENO: checking bfd.h presence" >&5
5103    echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6
5104    cat >conftest.$ac_ext <<_ACEOF
5105    #line $LINENO "configure"
5106    #include "confdefs.h"
5107    #include <bfd.h>
5108    _ACEOF
5109    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111      ac_status=$?
5112      egrep -v '^ *\+' conftest.er1 >conftest.err
5113      rm -f conftest.er1
5114      cat conftest.err >&5
5115      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116      (exit $ac_status); } >/dev/null; then
5117      if test -s conftest.err; then
5118        ac_cpp_err=$ac_c_preproc_warn_flag
5119      else
5120        ac_cpp_err=
5121      fi
5122    else
5123      ac_cpp_err=yes
5124    fi
5125    if test -z "$ac_cpp_err"; then
5126      ac_header_preproc=yes
5127  else  else
5128    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
5129    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5130    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
5131  fi  fi
5132  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
5133    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5134    echo "${ECHO_T}$ac_header_preproc" >&6
5135    
5136    # So?  What about this header?
5137    case $ac_header_compiler:$ac_header_preproc in
5138      yes:no )
5139        { echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
5140    echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5141        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5142    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5143      no:yes )
5144        { echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
5145    echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
5146        { echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
5147    echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
5148        { echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
5149    echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;};;
5150    esac
5151    echo "$as_me:$LINENO: checking for bfd.h" >&5
5152    echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6
5153    if test "${ac_cv_header_bfd_h+set}" = set; then
5154      echo $ECHO_N "(cached) $ECHO_C" >&6
5155    else
5156      ac_cv_header_bfd_h=$ac_header_preproc
5157  fi  fi
5158  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
5159    echo "$ac_t""yes" 1>&6  echo "${ECHO_T}$ac_cv_header_bfd_h" >&6
5160    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6  
5161  echo "configure:2994: checking for bfd_init in -lbfd" >&5  fi
5162  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  if test $ac_cv_header_bfd_h = yes; then
5163  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
5164    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6
5165    if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
5166      echo $ECHO_N "(cached) $ECHO_C" >&6
5167  else  else
5168    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
5169  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
5170  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
5171  #line 3002 "configure"  #line $LINENO "configure"
5172  #include "confdefs.h"  #include "confdefs.h"
5173    
5174  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5175    #ifdef __cplusplus
5176    extern "C"
5177    #endif
5178  /* 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
5179      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5180  char bfd_init();  char bfd_init ();
5181    #ifdef F77_DUMMY_MAIN
5182  int main() {  #  ifdef __cplusplus
5183  bfd_init()       extern "C"
5184  ; return 0; }  #  endif
5185  EOF     int F77_DUMMY_MAIN() { return 1; }
5186  if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
5187    rm -rf conftest*  int
5188    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
5189  else  {
5190    echo "configure: failed program was:" >&5  bfd_init ();
5191    cat conftest.$ac_ext >&5    ;
5192    rm -rf conftest*    return 0;
5193    eval "ac_cv_lib_$ac_lib_var=no"  }
5194  fi  _ACEOF
5195  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
5196  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197      (eval $ac_link) 2>&5
5198  fi    ac_status=$?
5199  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
5201             { ac_try='test -s conftest$ac_exeext'
5202      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203      (eval $ac_try) 2>&5
5204      ac_status=$?
5205      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206      (exit $ac_status); }; }; then
5207      ac_cv_lib_bfd_bfd_init=yes
5208    else
5209      echo "$as_me: failed program was:" >&5
5210    cat conftest.$ac_ext >&5
5211    ac_cv_lib_bfd_bfd_init=no
5212    fi
5213    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214    LIBS=$ac_check_lib_save_LIBS
5215    fi
5216    echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
5217    echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6
5218    if test $ac_cv_lib_bfd_bfd_init = yes; then
5219    #    #
5220                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
5221                  #                  #
5222                          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
5223  echo "configure:3032: checking if need to define CONST for bfd" >&5  echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6
5224                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
5225    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5226    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5227  else  else
5228    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5229  #line 3037 "configure"  #line $LINENO "configure"
5230  #include "confdefs.h"  #include "confdefs.h"
5231  #define IN_GCC  #define IN_GCC
5232                                      #include <bfd.h>                                      #include <bfd.h>
5233                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
5234  EOF  _ACEOF
5235  if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5236  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237    echo "$ac_t""no" 1>&6    (eval $ac_link) 2>&5
5238  else    ac_status=$?
5239    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5241    rm -fr conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242    if test "$cross_compiling" = yes; then    (eval $ac_try) 2>&5
5243    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    ac_status=$?
5244      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245      (exit $ac_status); }; }; then
5246      echo "$as_me:$LINENO: result: no" >&5
5247    echo "${ECHO_T}no" >&6
5248    else
5249      echo "$as_me: program exited with status $ac_status" >&5
5250    echo "$as_me: failed program was:" >&5
5251    cat conftest.$ac_ext >&5
5252    ( exit $ac_status )
5253    if test "$cross_compiling" = yes; then
5254      echo "$as_me:$LINENO: result: cannot use bfd" >&5
5255    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5256  else  else
5257    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5258  #line 3054 "configure"  #line $LINENO "configure"
5259  #include "confdefs.h"  #include "confdefs.h"
5260  #define CONST const  #define CONST const
5261                                              #define IN_GCC                                              #define IN_GCC
5262                                              #include <bfd.h>                                              #include <bfd.h>
5263                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
5264  EOF  _ACEOF
5265  if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5266  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5268                                          cat >> confdefs.h <<\EOF    ac_status=$?
5269      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5271      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272      (eval $ac_try) 2>&5
5273      ac_status=$?
5274      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275      (exit $ac_status); }; }; then
5276      echo "$as_me:$LINENO: result: yes" >&5
5277    echo "${ECHO_T}yes" >&6
5278                                            cat >>confdefs.h <<\_ACEOF
5279  #define NEED_CONST 1  #define NEED_CONST 1
5280  EOF  _ACEOF
5281    
5282  else  else
5283    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5284    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5285    rm -fr conftest*  cat conftest.$ac_ext >&5
5286    echo "$ac_t""cannot use bfd" 1>&6 exit 1;  ( exit $ac_status )
5287    echo "$as_me:$LINENO: result: cannot use bfd" >&5
5288    echo "${ECHO_T}cannot use bfd" >&6 exit 1;
5289  fi  fi
5290  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5291  fi  fi
   
5292  fi  fi
5293  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5294  fi  fi
5295    
                           
 else  
   echo "$ac_t""no" 1>&6  
5296  fi  fi
5297    
 else  
   echo "$ac_t""no" 1>&6  
5298  fi  fi
5299    
5300    
5301          cat >> confdefs.h <<\EOF  
5302            cat >>confdefs.h <<\_ACEOF
5303  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5304  EOF  _ACEOF
5305    
5306    
5307  #  #
5308  # BFD boolean syntax  # BFD boolean syntax
5309  #  #
5310    
5311          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5
5312  echo "configure:3101: checking for useable bfd_boolean" >&5  echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6
5313          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5314    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
5315    echo "${ECHO_T}no" >&6
5316  else  else
5317    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5318  #line 3106 "configure"  #line $LINENO "configure"
5319  #include "confdefs.h"  #include "confdefs.h"
5320  #define IN_GCC  #define IN_GCC
5321                      #include <bfd.h>                      #include <bfd.h>
5322                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
5323                      int main() {return 0;}                      int main() {return 0;}
5324  EOF  _ACEOF
5325  if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5326  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327    echo "$ac_t""yes" 1>&6    (eval $ac_link) 2>&5
5328                  cat >> confdefs.h <<\EOF    ac_status=$?
5329      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5331      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332      (eval $ac_try) 2>&5
5333      ac_status=$?
5334      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335      (exit $ac_status); }; }; then
5336      echo "$as_me:$LINENO: result: yes" >&5
5337    echo "${ECHO_T}yes" >&6
5338                    cat >>confdefs.h <<\_ACEOF
5339  #define HAVE_BFD_BOOLEAN 1  #define HAVE_BFD_BOOLEAN 1
5340  EOF  _ACEOF
5341    
5342  else  else
5343    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5344    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5345    rm -fr conftest*  cat conftest.$ac_ext >&5
5346    echo "$ac_t""no" 1>&6  ( exit $ac_status )
5347    echo "$as_me:$LINENO: result: no" >&5
5348    echo "${ECHO_T}no" >&6
5349  fi  fi
5350  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5351  fi  fi
5352    
5353    
   
5354  #  #
5355  # FIXME: Need to workaround mingw before this point -- CM  # FIXME: Need to workaround mingw before this point -- CM
5356  #  #
# Line 3139  fi Line 5363  fi
5363                  else                  else
5364                     echo Guessing path to libbfd.a due to gcc bug                     echo Guessing path to libbfd.a due to gcc bug
5365                     TLIBS="$TLIBS /usr/lib/libbfd.a"                     TLIBS="$TLIBS /usr/lib/libbfd.a"
5366                  fi                    fi
5367                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then                  if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then
5368                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"                     TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`"
5369                  else                  else
5370                     echo Guessing path to libiberty.a due to gcc bug                     echo Guessing path to libiberty.a due to gcc bug
5371                     TLIBS="$TLIBS /usr/lib/libiberty.a"                     TLIBS="$TLIBS /usr/lib/libiberty.a"
5372                  fi                    fi
5373          else          else
5374                  TLIBS="$TLIBS -lbfd -liberty"                  TLIBS="$TLIBS -lbfd -liberty"
5375          fi          fi
# Line 3159  if test "$enable_locbfd" = "yes" ; then Line 5383  if test "$enable_locbfd" = "yes" ; then
5383          echo "#"          echo "#"
5384          echo "#"          echo "#"
5385          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..          cd binutils/libiberty && chmod +x configure && ./configure && cd ../..
5386  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty "
5387          echo "#"          echo "#"
5388          echo "#"          echo "#"
5389          echo "#"          echo "#"
# Line 3173  if test "$enable_locbfd" = "yes" ; then Line 5397  if test "$enable_locbfd" = "yes" ; then
5397          echo "#"          echo "#"
5398          echo "#"          echo "#"
5399          cd binutils/bfd && chmod +x configure && ./configure && cd ../..          cd binutils/bfd && chmod +x configure && ./configure && cd ../..
5400  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "  #       MY_SUBDIRS="$MY_SUBDIRS binutils/bfd "
5401          echo "#"          echo "#"
5402          echo "#"          echo "#"
5403          echo "#"          echo "#"
# Line 3181  if test "$enable_locbfd" = "yes" ; then Line 5405  if test "$enable_locbfd" = "yes" ; then
5405          echo "# ------------------------"          echo "# ------------------------"
5406          echo "#"          echo "#"
5407          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"          TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"
5408          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
5409  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
5410  EOF  _ACEOF
5411    
5412          BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h"          BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h"
5413            
5414  fi  fi
5415    
5416  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)  #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
# Line 3195  fi Line 5419  fi
5419  # mechanism, in the PAGE macro.  This offset is subtracted from  # mechanism, in the PAGE macro.  This offset is subtracted from
5420  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
5421    
5422  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for long" >&5
5423  echo "configure:3200: checking size of long" >&5  echo $ECHO_N "checking for long... $ECHO_C" >&6
5424  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if test "${ac_cv_type_long+set}" = set; then
5425    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5426  else  else
5427      cat >conftest.$ac_ext <<_ACEOF
5428    #line $LINENO "configure"
5429    #include "confdefs.h"
5430    $ac_includes_default
5431    #ifdef F77_DUMMY_MAIN
5432    #  ifdef __cplusplus
5433         extern "C"
5434    #  endif
5435       int F77_DUMMY_MAIN() { return 1; }
5436    #endif
5437    int
5438    main ()
5439    {
5440    if ((long *) 0)
5441      return 0;
5442    if (sizeof (long))
5443      return 0;
5444      ;
5445      return 0;
5446    }
5447    _ACEOF
5448    rm -f conftest.$ac_objext
5449    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450      (eval $ac_compile) 2>&5
5451      ac_status=$?
5452      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453      (exit $ac_status); } &&
5454             { ac_try='test -s conftest.$ac_objext'
5455      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456      (eval $ac_try) 2>&5
5457      ac_status=$?
5458      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459      (exit $ac_status); }; }; then
5460      ac_cv_type_long=yes
5461    else
5462      echo "$as_me: failed program was:" >&5
5463    cat conftest.$ac_ext >&5
5464    ac_cv_type_long=no
5465    fi
5466    rm -f conftest.$ac_objext conftest.$ac_ext
5467    fi
5468    echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5469    echo "${ECHO_T}$ac_cv_type_long" >&6
5470    
5471    echo "$as_me:$LINENO: checking size of long" >&5
5472    echo $ECHO_N "checking size of long... $ECHO_C" >&6
5473    if test "${ac_cv_sizeof_long+set}" = set; then
5474      echo $ECHO_N "(cached) $ECHO_C" >&6
5475    else
5476      if test "$ac_cv_type_long" = yes; then
5477      # The cast to unsigned long works around a bug in the HP C Compiler
5478      # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479      # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480      # This bug is HP SR number 8606223364.
5481    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
5482    ac_cv_sizeof_long=0    # Depending upon the size, compute the lo and hi bounds.
5483    cat >conftest.$ac_ext <<_ACEOF
5484    #line $LINENO "configure"
5485    #include "confdefs.h"
5486    $ac_includes_default
5487    #ifdef F77_DUMMY_MAIN
5488    #  ifdef __cplusplus
5489         extern "C"
5490    #  endif
5491       int F77_DUMMY_MAIN() { return 1; }
5492    #endif
5493    int
5494    main ()
5495    {
5496    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5497    test_array [0] = 0
5498    
5499      ;
5500      return 0;
5501    }
5502    _ACEOF
5503    rm -f conftest.$ac_objext
5504    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505      (eval $ac_compile) 2>&5
5506      ac_status=$?
5507      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508      (exit $ac_status); } &&
5509             { ac_try='test -s conftest.$ac_objext'
5510      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511      (eval $ac_try) 2>&5
5512      ac_status=$?
5513      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514      (exit $ac_status); }; }; then
5515      ac_lo=0 ac_mid=0
5516      while :; do
5517        cat >conftest.$ac_ext <<_ACEOF
5518    #line $LINENO "configure"
5519    #include "confdefs.h"
5520    $ac_includes_default
5521    #ifdef F77_DUMMY_MAIN
5522    #  ifdef __cplusplus
5523         extern "C"
5524    #  endif
5525       int F77_DUMMY_MAIN() { return 1; }
5526    #endif
5527    int
5528    main ()
5529    {
5530    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5531    test_array [0] = 0
5532    
5533      ;
5534      return 0;
5535    }
5536    _ACEOF
5537    rm -f conftest.$ac_objext
5538    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539      (eval $ac_compile) 2>&5
5540      ac_status=$?
5541      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542      (exit $ac_status); } &&
5543             { ac_try='test -s conftest.$ac_objext'
5544      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545      (eval $ac_try) 2>&5
5546      ac_status=$?
5547      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548      (exit $ac_status); }; }; then
5549      ac_hi=$ac_mid; break
5550    else
5551      echo "$as_me: failed program was:" >&5
5552    cat conftest.$ac_ext >&5
5553    ac_lo=`expr $ac_mid + 1`
5554                        if test $ac_lo -le $ac_mid; then
5555                          ac_lo= ac_hi=
5556                          break
5557                        fi
5558                        ac_mid=`expr 2 '*' $ac_mid + 1`
5559    fi
5560    rm -f conftest.$ac_objext conftest.$ac_ext
5561      done
5562  else  else
5563    cat > conftest.$ac_ext <<EOF    echo "$as_me: failed program was:" >&5
5564  #line 3208 "configure"  cat conftest.$ac_ext >&5
5565  #include "confdefs.h"  cat >conftest.$ac_ext <<_ACEOF
5566    #line $LINENO "configure"
5567    #include "confdefs.h"
5568    $ac_includes_default
5569    #ifdef F77_DUMMY_MAIN
5570    #  ifdef __cplusplus
5571         extern "C"
5572    #  endif
5573       int F77_DUMMY_MAIN() { return 1; }
5574    #endif
5575    int
5576    main ()
5577    {
5578    static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5579    test_array [0] = 0
5580    
5581      ;
5582      return 0;
5583    }
5584    _ACEOF
5585    rm -f conftest.$ac_objext
5586    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587      (eval $ac_compile) 2>&5
5588      ac_status=$?
5589      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590      (exit $ac_status); } &&
5591             { ac_try='test -s conftest.$ac_objext'
5592      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593      (eval $ac_try) 2>&5
5594      ac_status=$?
5595      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596      (exit $ac_status); }; }; then
5597      ac_hi=-1 ac_mid=-1
5598      while :; do
5599        cat >conftest.$ac_ext <<_ACEOF
5600    #line $LINENO "configure"
5601    #include "confdefs.h"
5602    $ac_includes_default
5603    #ifdef F77_DUMMY_MAIN
5604    #  ifdef __cplusplus
5605         extern "C"
5606    #  endif
5607       int F77_DUMMY_MAIN() { return 1; }
5608    #endif
5609    int
5610    main ()
5611    {
5612    static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5613    test_array [0] = 0
5614    
5615      ;
5616      return 0;
5617    }
5618    _ACEOF
5619    rm -f conftest.$ac_objext
5620    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621      (eval $ac_compile) 2>&5
5622      ac_status=$?
5623      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624      (exit $ac_status); } &&
5625             { ac_try='test -s conftest.$ac_objext'
5626      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627      (eval $ac_try) 2>&5
5628      ac_status=$?
5629      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630      (exit $ac_status); }; }; then
5631      ac_lo=$ac_mid; break
5632    else
5633      echo "$as_me: failed program was:" >&5
5634    cat conftest.$ac_ext >&5
5635    ac_hi=`expr '(' $ac_mid ')' - 1`
5636                           if test $ac_mid -le $ac_hi; then
5637                             ac_lo= ac_hi=
5638                             break
5639                           fi
5640                           ac_mid=`expr 2 '*' $ac_mid`
5641    fi
5642    rm -f conftest.$ac_objext conftest.$ac_ext
5643      done
5644    else
5645      echo "$as_me: failed program was:" >&5
5646    cat conftest.$ac_ext >&5
5647    ac_lo= ac_hi=
5648    fi
5649    rm -f conftest.$ac_objext conftest.$ac_ext
5650    fi
5651    rm -f conftest.$ac_objext conftest.$ac_ext
5652    # Binary search between lo and hi bounds.
5653    while test "x$ac_lo" != "x$ac_hi"; do
5654      ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5655      cat >conftest.$ac_ext <<_ACEOF
5656    #line $LINENO "configure"
5657    #include "confdefs.h"
5658    $ac_includes_default
5659    #ifdef F77_DUMMY_MAIN
5660    #  ifdef __cplusplus
5661         extern "C"
5662    #  endif
5663       int F77_DUMMY_MAIN() { return 1; }
5664    #endif
5665    int
5666    main ()
5667    {
5668    static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5669    test_array [0] = 0
5670    
5671      ;
5672      return 0;
5673    }
5674    _ACEOF
5675    rm -f conftest.$ac_objext
5676    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677      (eval $ac_compile) 2>&5
5678      ac_status=$?
5679      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680      (exit $ac_status); } &&
5681             { ac_try='test -s conftest.$ac_objext'
5682      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683      (eval $ac_try) 2>&5
5684      ac_status=$?
5685      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686      (exit $ac_status); }; }; then
5687      ac_hi=$ac_mid
5688    else
5689      echo "$as_me: failed program was:" >&5
5690    cat conftest.$ac_ext >&5
5691    ac_lo=`expr '(' $ac_mid ')' + 1`
5692    fi
5693    rm -f conftest.$ac_objext conftest.$ac_ext
5694    done
5695    case $ac_lo in
5696    ?*) ac_cv_sizeof_long=$ac_lo;;
5697    '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5698    echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5699       { (exit 1); exit 1; }; } ;;
5700    esac
5701    else
5702      if test "$cross_compiling" = yes; then
5703      { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5704    echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5705       { (exit 1); exit 1; }; }
5706    else
5707      cat >conftest.$ac_ext <<_ACEOF
5708    #line $LINENO "configure"
5709    #include "confdefs.h"
5710    $ac_includes_default
5711    long longval () { return (long) (sizeof (long)); }
5712    unsigned long ulongval () { return (long) (sizeof (long)); }
5713  #include <stdio.h>  #include <stdio.h>
5714  #include <sys/types.h>  #include <stdlib.h>
5715  main()  #ifdef F77_DUMMY_MAIN
5716    #  ifdef __cplusplus
5717         extern "C"
5718    #  endif
5719       int F77_DUMMY_MAIN() { return 1; }
5720    #endif
5721    int
5722    main ()
5723  {  {
5724    FILE *f=fopen("conftestval", "w");  
5725    if (!f) exit(1);    FILE *f = fopen ("conftest.val", "w");
5726    fprintf(f, "%d\n", sizeof(long));    if (! f)
5727    exit(0);      exit (1);
5728      if (((long) (sizeof (long))) < 0)
5729        {
5730          long i = longval ();
5731          if (i != ((long) (sizeof (long))))
5732            exit (1);
5733          fprintf (f, "%ld\n", i);
5734        }
5735      else
5736        {
5737          unsigned long i = ulongval ();
5738          if (i != ((long) (sizeof (long))))
5739            exit (1);
5740          fprintf (f, "%lu\n", i);
5741        }
5742      exit (ferror (f) || fclose (f) != 0);
5743    
5744      ;
5745      return 0;
5746  }  }
5747  EOF  _ACEOF
5748  if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5749  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750    ac_cv_sizeof_long=`cat conftestval`    (eval $ac_link) 2>&5
5751      ac_status=$?
5752      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5754      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755      (eval $ac_try) 2>&5
5756      ac_status=$?
5757      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758      (exit $ac_status); }; }; then
5759      ac_cv_sizeof_long=`cat conftest.val`
5760    else
5761      echo "$as_me: program exited with status $ac_status" >&5
5762    echo "$as_me: failed program was:" >&5
5763    cat conftest.$ac_ext >&5
5764    ( exit $ac_status )
5765    { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5766    echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5767       { (exit 1); exit 1; }; }
5768    fi
5769    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770    fi
5771    fi
5772    rm -f conftest.val
5773  else  else
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -fr conftest*  
5774    ac_cv_sizeof_long=0    ac_cv_sizeof_long=0
5775  fi  fi
 rm -fr conftest*  
 fi  
   
5776  fi  fi
5777  echo "$ac_t""$ac_cv_sizeof_long" 1>&6  echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5778  cat >> confdefs.h <<EOF  echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5779    cat >>confdefs.h <<_ACEOF
5780  #define SIZEOF_LONG $ac_cv_sizeof_long  #define SIZEOF_LONG $ac_cv_sizeof_long
5781  EOF  _ACEOF
5782    
5783    
5784  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking sizeof struct contblock" >&5
5785  echo "configure:3240: checking sizeof struct contblock" >&5  echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6
5786    echo `pwd`
5787  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5788    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
5789  else  else
5790    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5791  #line 3245 "configure"  #line $LINENO "configure"
5792  #include "confdefs.h"  #include "confdefs.h"
5793  #include <stdio.h>  #include <stdio.h>
5794          #define EXTER          #define EXTER
5795          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
5796          #include "`pwd`/h/enum.h"          #include "h/enum.h"
5797          #include "`pwd`/h/object.h"          #include "h/object.h"
5798          int main(int argc,char **argv,char **envp) {          int main(int argc,char **argv,char **envp) {
5799          FILE *f=fopen("conftest1","w");          FILE *f=fopen("conftest1","w");
5800          fprintf(f,"%u",sizeof(struct contblock));          fprintf(f,"%u",sizeof(struct contblock));
5801          fclose(f);          fclose(f);
5802          return 0;          return 0;
5803          }          }
5804  EOF  _ACEOF
5805  if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5806  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807      (eval $ac_link) 2>&5
5808      ac_status=$?
5809      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5811      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812      (eval $ac_try) 2>&5
5813      ac_status=$?
5814      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815      (exit $ac_status); }; }; then
5816    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
5817  else  else
5818    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
5819    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
5820    rm -fr conftest*  cat conftest.$ac_ext >&5
5821    echo Cannot find sizeof struct contblock;exit 1  ( exit $ac_status )
5822  fi  echo Cannot find sizeof struct contblock;exit 1
5823  rm -fr conftest*  fi
5824  fi  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5825    fi
5826  echo "$ac_t""$sizeof_contblock" 1>&6  echo "$as_me:$LINENO: result: $sizeof_contblock" >&5
5827  cat >> confdefs.h <<EOF  echo "${ECHO_T}$sizeof_contblock" >&6
5828    cat >>confdefs.h <<_ACEOF
5829  #define SIZEOF_CONTBLOCK $sizeof_contblock  #define SIZEOF_CONTBLOCK $sizeof_contblock
5830  EOF  _ACEOF
5831    
5832    
5833    
5834    
5835  for ac_hdr in endian.h  
5836    for ac_header in endian.h
5837  do  do
5838  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840  echo "configure:3282: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
5841  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5842    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
5843      echo $ECHO_N "(cached) $ECHO_C" >&6
5844    fi
5845    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5846    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5847    else
5848      # Is the header compilable?
5849    echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5851    cat >conftest.$ac_ext <<_ACEOF
5852    #line $LINENO "configure"
5853    #include "confdefs.h"
5854    $ac_includes_default
5855    #include <$ac_header>
5856    _ACEOF
5857    rm -f conftest.$ac_objext
5858    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859      (eval $ac_compile) 2>&5
5860      ac_status=$?
5861      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862      (exit $ac_status); } &&
5863             { ac_try='test -s conftest.$ac_objext'
5864      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865      (eval $ac_try) 2>&5
5866      ac_status=$?
5867      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868      (exit $ac_status); }; }; then
5869      ac_header_compiler=yes
5870    else
5871      echo "$as_me: failed program was:" >&5
5872    cat conftest.$ac_ext >&5
5873    ac_header_compiler=no
5874    fi
5875    rm -f conftest.$ac_objext conftest.$ac_ext
5876    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5877    echo "${ECHO_T}$ac_header_compiler" >&6
5878    
5879    # Is the header present?
5880    echo "$as_me:$LINENO: checking $ac_header presence" >&5
5881    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5882    cat >conftest.$ac_ext <<_ACEOF
5883    #line $LINENO "configure"
5884    #include "confdefs.h"
5885    #include <$ac_header>
5886    _ACEOF
5887    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5888      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5889      ac_status=$?
5890      egrep -v '^ *\+' conftest.er1 >conftest.err
5891      rm -f conftest.er1
5892      cat conftest.err >&5
5893      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894      (exit $ac_status); } >/dev/null; then
5895      if test -s conftest.err; then
5896        ac_cpp_err=$ac_c_preproc_warn_flag
5897      else
5898        ac_cpp_err=
5899      fi
5900  else  else
5901    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
5902  #line 3287 "configure"  fi
5903  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
5904  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3292: \"$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"  
5905  else  else
5906    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
5907    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5908    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
5909  fi  fi
5910  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
5911    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
5913    cat >> confdefs.h <<EOF  
5914  #define $ac_tr_hdr 1  # So?  What about this header?
5915  EOF  case $ac_header_compiler:$ac_header_preproc in
5916   echo $ac_n "checking "endianness"""... $ac_c" 1>&6    yes:no )
5917  echo "configure:3313: checking "endianness"" >&5      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5918    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5920    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5921      no:yes )
5922        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5923    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5924        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5925    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5926        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5927    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5928    esac
5929    echo "$as_me:$LINENO: checking for $ac_header" >&5
5930    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5931    if eval "test \"\${$as_ac_Header+set}\" = set"; then
5932      echo $ECHO_N "(cached) $ECHO_C" >&6
5933    else
5934      eval "$as_ac_Header=$ac_header_preproc"
5935    fi
5936    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5937    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5938    
5939    fi
5940    if test `eval echo '${'$as_ac_Header'}'` = yes; then
5941      cat >>confdefs.h <<_ACEOF
5942    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5943    _ACEOF
5944     echo "$as_me:$LINENO: checking \"endianness\"" >&5
5945    echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6
5946          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
5947    echo "$ac_t""big" 1>&6    echo "$as_me:$LINENO: result: big" >&5
5948    echo "${ECHO_T}big" >&6
5949  else  else
5950    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5951  #line 3318 "configure"  #line $LINENO "configure"
5952  #include "confdefs.h"  #include "confdefs.h"
5953  #define __ARMEB__  #define __ARMEB__
5954                  #include <endian.h>                  #include <endian.h>
5955                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
5956  EOF  _ACEOF
5957  if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
5958  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
5960      ac_status=$?
5961      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5963      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964      (eval $ac_try) 2>&5
5965      ac_status=$?
5966      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967      (exit $ac_status); }; }; then
5968      cat >>confdefs.h <<\_ACEOF
5969  #define LITTLE_END 1  #define LITTLE_END 1
5970  EOF  _ACEOF
5971   echo "$ac_t""little" 1>&6   echo "$as_me:$LINENO: result: little" >&5
5972  else  echo "${ECHO_T}little" >&6
5973    echo "configure: failed program was:" >&5  else
5974    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
5975    rm -fr conftest*  echo "$as_me: failed program was:" >&5
5976    echo "$ac_t""big" 1>&6  cat conftest.$ac_ext >&5
5977    ( exit $ac_status )
5978    echo "$as_me:$LINENO: result: big" >&5
5979    echo "${ECHO_T}big" >&6
5980  fi  fi
5981  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5982  fi  fi
   
 else  
   echo "$ac_t""no" 1>&6  
5983  fi  fi
5984    
5985  done  done
5986    
5987    
5988    
5989  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5
5990  echo "configure:3347: checking "finding DBEGIN"" >&5  echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6
5991  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5992    dbegin=0    dbegin=0
5993  else  else
5994    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
5995  #line 3352 "configure"  #line $LINENO "configure"
5996  #include "confdefs.h"  #include "confdefs.h"
5997  #include <stdio.h>  #include <stdio.h>
5998              #include <stdlib.h>              #include <stdlib.h>
# Line 3364  main() Line 6008  main()
6008    fclose(fp);    fclose(fp);
6009    return 0;    return 0;
6010  }  }
6011  EOF  _ACEOF
6012  if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6013  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014      (eval $ac_link) 2>&5
6015      ac_status=$?
6016      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6018      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019      (eval $ac_try) 2>&5
6020      ac_status=$?
6021      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022      (exit $ac_status); }; }; then
6023    dbegin=`cat conftest1`    dbegin=`cat conftest1`
6024  else  else
6025    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6026    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6027    rm -fr conftest*  cat conftest.$ac_ext >&5
6028    dbegin=0  ( exit $ac_status )
6029    dbegin=0
6030  fi  fi
6031  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6032  fi  fi
6033    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
6034  #define DBEGIN $dbegin \  #define DBEGIN $dbegin \
6035  /* where data begins */  /* where data begins */
6036    
6037  EOF  _ACEOF
6038    
6039  echo "$ac_t""got $dbegin" 1>&6  echo "$as_me:$LINENO: result: got $dbegin" >&5
6040    echo "${ECHO_T}got $dbegin" >&6
6041    
6042    
6043  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5
6044  echo "configure:3391: checking "finding CSTACK_ADDRESS"" >&5  echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6
6045  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6046    cstack_address=0    cstack_address=0
6047  else  else
6048    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6049  #line 3396 "configure"  #line $LINENO "configure"
6050  #include "confdefs.h"  #include "confdefs.h"
6051  #include <stdio.h>  #include <stdio.h>
6052  main()  main()
# Line 3403  main() Line 6057  main()
6057    fclose(fp);    fclose(fp);
6058    return 0;    return 0;
6059  }  }
6060  EOF  _ACEOF
6061  if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6062  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063      (eval $ac_link) 2>&5
6064      ac_status=$?
6065      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6067      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068      (eval $ac_try) 2>&5
6069      ac_status=$?
6070      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071      (exit $ac_status); }; }; then
6072    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
6073  else  else
6074    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6075    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6076    rm -fr conftest*  cat conftest.$ac_ext >&5
6077    cstack_address=0  ( exit $ac_status )
6078    cstack_address=0
6079  fi  fi
6080  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6081  fi  fi
6082    cat >>confdefs.h <<_ACEOF
 cat >> confdefs.h <<EOF  
6083  #define CSTACK_ADDRESS $cstack_address \  #define CSTACK_ADDRESS $cstack_address \
6084    
6085  EOF  _ACEOF
6086    
6087  echo "$ac_t""got $cstack_address" 1>&6  echo "$as_me:$LINENO: result: got $cstack_address" >&5
6088    echo "${ECHO_T}got $cstack_address" >&6
6089    
6090    
6091    
6092  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5
6093  echo "configure:3430: checking "sizeof long long int"" >&5  echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6
6094  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6095    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
6096    echo "${ECHO_T}no" >&6
6097    
6098  else  else
6099    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6100  #line 3436 "configure"  #line $LINENO "configure"
6101  #include "confdefs.h"  #include "confdefs.h"
6102  #include <stdio.h>  #include <stdio.h>
6103  main()  main()
# Line 3441  main() Line 6106  main()
6106    return 1;    return 1;
6107  }  }
6108    
6109  EOF  _ACEOF
6110  if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6111  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
6113      ac_status=$?
6114      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6116      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117      (eval $ac_try) 2>&5
6118      ac_status=$?
6119      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120      (exit $ac_status); }; }; then
6121      cat >>confdefs.h <<\_ACEOF
6122  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
6123  EOF  _ACEOF
6124    
6125  echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: yes" >&5
6126    echo "${ECHO_T}yes" >&6
6127  else  else
6128    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6129    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6130    rm -fr conftest*  cat conftest.$ac_ext >&5
6131    echo "$ac_t""no" 1>&6  ( exit $ac_status )
6132    echo "$as_me:$LINENO: result: no" >&5
6133    echo "${ECHO_T}no" >&6
6134  fi  fi
6135  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6136  fi  fi
6137    
6138    
6139    
   
6140  # readline  # readline
6141  # Check whether --enable-readline or --disable-readline was given.  # Check whether --enable-readline or --disable-readline was given.
6142  if test "${enable_readline+set}" = set; then  if test "${enable_readline+set}" = set; then
6143    enableval="$enable_readline"    enableval="$enable_readline"
6144    :  
6145  else  else
6146    enable_readline="yes"    enable_readline="yes"
6147  fi  fi;
   
6148    
6149  # ansi lisp  # ansi lisp
6150  # Check whether --enable-ansi or --disable-ansi was given.  # Check whether --enable-ansi or --disable-ansi was given.
6151  if test "${enable_ansi+set}" = set; then  if test "${enable_ansi+set}" = set; then
6152    enableval="$enable_ansi"    enableval="$enable_ansi"
6153    :  
6154  else  else
6155    enable_ansi="no"    enable_ansi="no"
6156  fi  fi;
   
6157    
6158  if test "$enable_ansi" = "yes" ; then  if test "$enable_ansi" = "yes" ; then
6159          SYSTEM=ansi_gcl          SYSTEM=ansi_gcl
6160          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
6161  #define ANSI_COMMON_LISP 1  #define ANSI_COMMON_LISP 1
6162  EOF  _ACEOF
6163    
6164  else  else
6165          SYSTEM=gcl          SYSTEM=gcl
# Line 3496  FLISP="saved_$SYSTEM" Line 6170  FLISP="saved_$SYSTEM"
6170    
6171    
6172  # pagewidth  # pagewidth
6173  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for pagewidth" >&5
6174  echo "configure:3501: checking for pagewidth" >&5  echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6
6175  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
6176    PAGEWIDTH=0    PAGEWIDTH=0
6177  else  else
6178    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6179  #line 3506 "configure"  #line $LINENO "configure"
6180  #include "confdefs.h"  #include "confdefs.h"
6181  #include <stdio.h>  #include <stdio.h>
6182              #include <unistd.h>              #include <unistd.h>
6183  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
6184              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
6185              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
6186              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
6187              return 0;}              return 0;}
6188  EOF  _ACEOF
6189  if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
6190  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191      (eval $ac_link) 2>&5
6192      ac_status=$?
6193      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6195      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196      (eval $ac_try) 2>&5
6197      ac_status=$?
6198      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199      (exit $ac_status); }; }; then
6200    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
6201  else  else
6202    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
6203    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
6204    rm -fr conftest*  cat conftest.$ac_ext >&5
6205    PAGEWIDTH=0  ( exit $ac_status )
6206  fi  PAGEWIDTH=0
6207  rm -fr conftest*  fi
6208  fi  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6209    fi
6210  echo "$ac_t""$PAGEWIDTH" 1>&6  echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5
6211  cat >> confdefs.h <<EOF  echo "${ECHO_T}$PAGEWIDTH" >&6
6212    cat >>confdefs.h <<_ACEOF
6213  #define PAGEWIDTH $PAGEWIDTH  #define PAGEWIDTH $PAGEWIDTH
6214  EOF  _ACEOF
6215    
6216    
6217    
# Line 3536  EOF Line 6220  EOF
6220    
6221    
6222  # Check if Posix compliant getcwd exists, if not we'll use getwd.  # Check if Posix compliant getcwd exists, if not we'll use getwd.
6223    
6224  for ac_func in getcwd  for ac_func in getcwd
6225  do  do
6226  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6227  echo "configure:3543: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6228  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6229    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6230      echo $ECHO_N "(cached) $ECHO_C" >&6
6231  else  else
6232    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6233  #line 3548 "configure"  #line $LINENO "configure"
6234  #include "confdefs.h"  #include "confdefs.h"
6235  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6236      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6237  #include <assert.h>  #include <assert.h>
6238  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6239    #ifdef __cplusplus
6240    extern "C"
6241    #endif
6242  /* 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
6243      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6244  char $ac_func();  char $ac_func ();
6245    char (*f) ();
6246  int main() {  
6247    #ifdef F77_DUMMY_MAIN
6248    #  ifdef __cplusplus
6249         extern "C"
6250    #  endif
6251       int F77_DUMMY_MAIN() { return 1; }
6252    #endif
6253    int
6254    main ()
6255    {
6256  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6257      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6258      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6259  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6260  choke me  choke me
6261  #else  #else
6262  $ac_func();  f = $ac_func;
6263  #endif  #endif
6264    
6265  ; return 0; }    ;
6266  EOF    return 0;
6267  if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6268    rm -rf conftest*  _ACEOF
6269    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6270  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6272    cat conftest.$ac_ext >&5    ac_status=$?
6273    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6275  fi           { ac_try='test -s conftest$ac_exeext'
6276  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277  fi    (eval $ac_try) 2>&5
6278      ac_status=$?
6279      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280      (exit $ac_status); }; }; then
6281      eval "$as_ac_var=yes"
6282    else
6283      echo "$as_me: failed program was:" >&5
6284    cat conftest.$ac_ext >&5
6285    eval "$as_ac_var=no"
6286    fi
6287    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6288    fi
6289    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6290    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6291    if test `eval echo '${'$as_ac_var'}'` = yes; then
6292      cat >>confdefs.h <<_ACEOF
6293    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6294    _ACEOF
6295    
 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  
6296  fi  fi
6297  done  done
6298    
6299    
6300  for ac_func in getwd  for ac_func in getwd
6301  do  do
6302  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6303  echo "configure:3598: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6304  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6305    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_var+set}\" = set"; then
6306      echo $ECHO_N "(cached) $ECHO_C" >&6
6307  else  else
6308    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6309  #line 3603 "configure"  #line $LINENO "configure"
6310  #include "confdefs.h"  #include "confdefs.h"
6311  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6312      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
6313  #include <assert.h>  #include <assert.h>
6314  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6315    #ifdef __cplusplus
6316    extern "C"
6317    #endif
6318  /* 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
6319      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6320  char $ac_func();  char $ac_func ();
6321    char (*f) ();
6322  int main() {  
6323    #ifdef F77_DUMMY_MAIN
6324    #  ifdef __cplusplus
6325         extern "C"
6326    #  endif
6327       int F77_DUMMY_MAIN() { return 1; }
6328    #endif
6329    int
6330    main ()
6331    {
6332  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6333      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6334      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6335  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6336  choke me  choke me
6337  #else  #else
6338  $ac_func();  f = $ac_func;
6339  #endif  #endif
6340    
6341  ; return 0; }    ;
6342  EOF    return 0;
6343  if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6344    rm -rf conftest*  _ACEOF
6345    eval "ac_cv_func_$ac_func=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6346  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6347    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6348    cat conftest.$ac_ext >&5    ac_status=$?
6349    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350    eval "ac_cv_func_$ac_func=no"    (exit $ac_status); } &&
6351  fi           { ac_try='test -s conftest$ac_exeext'
6352  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353  fi    (eval $ac_try) 2>&5
6354      ac_status=$?
6355      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356      (exit $ac_status); }; }; then
6357      eval "$as_ac_var=yes"
6358    else
6359      echo "$as_me: failed program was:" >&5
6360    cat conftest.$ac_ext >&5
6361    eval "$as_ac_var=no"
6362    fi
6363    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6364    fi
6365    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6366    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6367    if test `eval echo '${'$as_ac_var'}'` = yes; then
6368      cat >>confdefs.h <<_ACEOF
6369    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6370    _ACEOF
6371    
 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  
6372  fi  fi
6373  done  done
6374    
6375  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for uname" >&5
6376  echo "configure:3651: checking for uname" >&5  echo $ECHO_N "checking for uname... $ECHO_C" >&6
6377  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if test "${ac_cv_func_uname+set}" = set; then
6378    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6379  else  else
6380    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6381  #line 3656 "configure"  #line $LINENO "configure"
6382  #include "confdefs.h"  #include "confdefs.h"
6383  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6384      which can conflict with char uname(); below.  */      which can conflict with char uname (); below.  */
6385  #include <assert.h>  #include <assert.h>
6386  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6387    #ifdef __cplusplus
6388    extern "C"
6389    #endif
6390  /* 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
6391      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6392  char uname();  char uname ();
6393    char (*f) ();
6394  int main() {  
6395    #ifdef F77_DUMMY_MAIN
6396    #  ifdef __cplusplus
6397         extern "C"
6398    #  endif
6399       int F77_DUMMY_MAIN() { return 1; }
6400    #endif
6401    int
6402    main ()
6403    {
6404  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6405      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6406      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6407  #if defined (__stub_uname) || defined (__stub___uname)  #if defined (__stub_uname) || defined (__stub___uname)
6408  choke me  choke me
6409  #else  #else
6410  uname();  f = uname;
6411  #endif  #endif
6412    
6413  ; return 0; }    ;
6414  EOF    return 0;
6415  if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6416    rm -rf conftest*  _ACEOF
6417    eval "ac_cv_func_uname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6418  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6420    cat conftest.$ac_ext >&5    ac_status=$?
6421    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422    eval "ac_cv_func_uname=no"    (exit $ac_status); } &&
6423  fi           { ac_try='test -s conftest$ac_exeext'
6424  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425  fi    (eval $ac_try) 2>&5
6426      ac_status=$?
6427  if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6429      ac_cv_func_uname=yes
6430    else
6431      echo "$as_me: failed program was:" >&5
6432    cat conftest.$ac_ext >&5
6433    ac_cv_func_uname=no
6434    fi
6435    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6436    fi
6437    echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
6438    echo "${ECHO_T}$ac_cv_func_uname" >&6
6439    if test $ac_cv_func_uname = yes; then
6440    :    :
6441  else  else
6442    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6443  #define NO_UNAME 1  #define NO_UNAME 1
6444  EOF  _ACEOF
6445    
6446  fi  fi
6447    
6448  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday" >&5
6449  echo "configure:3703: checking for gettimeofday" >&5  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6450  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_gettimeofday+set}" = set; then
6451    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6452  else  else
6453    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6454  #line 3708 "configure"  #line $LINENO "configure"
6455  #include "confdefs.h"  #include "confdefs.h"
6456  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6457      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6458  #include <assert.h>  #include <assert.h>
6459  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6460    #ifdef __cplusplus
6461    extern "C"
6462    #endif
6463  /* 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
6464      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6465  char gettimeofday();  char gettimeofday ();
6466    char (*f) ();
6467  int main() {  
6468    #ifdef F77_DUMMY_MAIN
6469    #  ifdef __cplusplus
6470         extern "C"
6471    #  endif
6472       int F77_DUMMY_MAIN() { return 1; }
6473    #endif
6474    int
6475    main ()
6476    {
6477  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6478      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6479      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6480  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6481  choke me  choke me
6482  #else  #else
6483  gettimeofday();  f = gettimeofday;
6484  #endif  #endif
6485    
6486  ; return 0; }    ;
6487  EOF    return 0;
6488  if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6489    rm -rf conftest*  _ACEOF
6490    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6491  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6492    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6493    cat conftest.$ac_ext >&5    ac_status=$?
6494    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6496  fi           { ac_try='test -s conftest$ac_exeext'
6497  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498  fi    (eval $ac_try) 2>&5
6499      ac_status=$?
6500  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6502      ac_cv_func_gettimeofday=yes
6503    else
6504      echo "$as_me: failed program was:" >&5
6505    cat conftest.$ac_ext >&5
6506    ac_cv_func_gettimeofday=no
6507    fi
6508    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6509    fi
6510    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6511    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6512    if test $ac_cv_func_gettimeofday = yes; then
6513    :    :
6514  else  else
6515    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6516  #define NO_GETTOD 1  #define NO_GETTOD 1
6517  EOF  _ACEOF
6518    
6519  fi  fi
6520    
6521    
6522    
6523  for ac_hdr in sys/ioctl.h  
6524    for ac_header in sys/ioctl.h
6525  do  do
6526  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528  echo "configure:3760: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6529  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531      echo $ECHO_N "(cached) $ECHO_C" >&6
6532    fi
6533    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6535    else
6536      # Is the header compilable?
6537    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6538    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6539    cat >conftest.$ac_ext <<_ACEOF
6540    #line $LINENO "configure"
6541    #include "confdefs.h"
6542    $ac_includes_default
6543    #include <$ac_header>
6544    _ACEOF
6545    rm -f conftest.$ac_objext
6546    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547      (eval $ac_compile) 2>&5
6548      ac_status=$?
6549      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550      (exit $ac_status); } &&
6551             { ac_try='test -s conftest.$ac_objext'
6552      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553      (eval $ac_try) 2>&5
6554      ac_status=$?
6555      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556      (exit $ac_status); }; }; then
6557      ac_header_compiler=yes
6558    else
6559      echo "$as_me: failed program was:" >&5
6560    cat conftest.$ac_ext >&5
6561    ac_header_compiler=no
6562    fi
6563    rm -f conftest.$ac_objext conftest.$ac_ext
6564    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565    echo "${ECHO_T}$ac_header_compiler" >&6
6566    
6567    # Is the header present?
6568    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6570    cat >conftest.$ac_ext <<_ACEOF
6571    #line $LINENO "configure"
6572    #include "confdefs.h"
6573    #include <$ac_header>
6574    _ACEOF
6575    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6576      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6577      ac_status=$?
6578      egrep -v '^ *\+' conftest.er1 >conftest.err
6579      rm -f conftest.er1
6580      cat conftest.err >&5
6581      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582      (exit $ac_status); } >/dev/null; then
6583      if test -s conftest.err; then
6584        ac_cpp_err=$ac_c_preproc_warn_flag
6585      else
6586        ac_cpp_err=
6587      fi
6588  else  else
6589    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
6590  #line 3765 "configure"  fi
6591  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
6592  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3770: \"$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"  
6593  else  else
6594    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
6595    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6596    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
6597  fi  fi
6598  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
6599    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6600      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
6601    cat >> confdefs.h <<EOF  
6602  #define $ac_tr_hdr 1  # So?  What about this header?
6603  EOF  case $ac_header_compiler:$ac_header_preproc in
6604      yes:no )
6605        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6606    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6607        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6608    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6609      no:yes )
6610        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6611    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6612        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6613    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6614        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6615    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6616    esac
6617    echo "$as_me:$LINENO: checking for $ac_header" >&5
6618    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6619    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6620      echo $ECHO_N "(cached) $ECHO_C" >&6
6621  else  else
6622    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
6623    fi
6624    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6625    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626    
6627    fi
6628    if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629      cat >>confdefs.h <<_ACEOF
6630    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631    _ACEOF
6632    
6633  fi  fi
6634    
6635  done  done
6636    
6637    
# Line 3805  done Line 6647  done
6647  #          declare it.  #          declare it.
6648  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6649    
6650  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5
6651  echo "configure:3810: checking for BSDgettimeofday" >&5  echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6
6652  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if test "${ac_cv_func_BSDgettimeofday+set}" = set; then
6653    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6654  else  else
6655    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6656  #line 3815 "configure"  #line $LINENO "configure"
6657  #include "confdefs.h"  #include "confdefs.h"
6658  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6659      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday (); below.  */
6660  #include <assert.h>  #include <assert.h>
6661  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6662    #ifdef __cplusplus
6663    extern "C"
6664    #endif
6665  /* 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
6666      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6667  char BSDgettimeofday();  char BSDgettimeofday ();
6668    char (*f) ();
6669  int main() {  
6670    #ifdef F77_DUMMY_MAIN
6671    #  ifdef __cplusplus
6672         extern "C"
6673    #  endif
6674       int F77_DUMMY_MAIN() { return 1; }
6675    #endif
6676    int
6677    main ()
6678    {
6679  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6680      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6681      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6682  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)  #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
6683  choke me  choke me
6684  #else  #else
6685  BSDgettimeofday();  f = BSDgettimeofday;
6686  #endif  #endif
6687    
6688  ; return 0; }    ;
6689  EOF    return 0;
6690  if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6691    rm -rf conftest*  _ACEOF
6692    eval "ac_cv_func_BSDgettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6693  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6695    cat conftest.$ac_ext >&5    ac_status=$?
6696    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697    eval "ac_cv_func_BSDgettimeofday=no"    (exit $ac_status); } &&
6698  fi           { ac_try='test -s conftest$ac_exeext'
6699  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700  fi    (eval $ac_try) 2>&5
6701      ac_status=$?
6702  if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6704    cat >> confdefs.h <<\EOF    ac_cv_func_BSDgettimeofday=yes
6705    else
6706      echo "$as_me: failed program was:" >&5
6707    cat conftest.$ac_ext >&5
6708    ac_cv_func_BSDgettimeofday=no
6709    fi
6710    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6711    fi
6712    echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5
6713    echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6
6714    if test $ac_cv_func_BSDgettimeofday = yes; then
6715      cat >>confdefs.h <<\_ACEOF
6716  #define HAVE_BSDGETTIMEOFDAY 1  #define HAVE_BSDGETTIMEOFDAY 1
6717  EOF  _ACEOF
6718    
6719  else  else
6720    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for gettimeofday" >&5
6721  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6722  echo "configure:3859: checking for gettimeofday" >&5  if test "${ac_cv_func_gettimeofday+set}" = set; then
6723  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  
6724  else  else
6725    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
6726  #line 3864 "configure"  #line $LINENO "configure"
6727  #include "confdefs.h"  #include "confdefs.h"
6728  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6729      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday (); below.  */
6730  #include <assert.h>  #include <assert.h>
6731  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6732    #ifdef __cplusplus
6733    extern "C"
6734    #endif
6735  /* 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
6736      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6737  char gettimeofday();  char gettimeofday ();
6738    char (*f) ();
6739  int main() {  
6740    #ifdef F77_DUMMY_MAIN
6741    #  ifdef __cplusplus
6742         extern "C"
6743    #  endif
6744       int F77_DUMMY_MAIN() { return 1; }
6745    #endif
6746    int
6747    main ()
6748    {
6749  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
6750      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
6751      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
6752  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6753  choke me  choke me
6754  #else  #else
6755  gettimeofday();  f = gettimeofday;
6756  #endif  #endif
6757    
6758  ; return 0; }    ;
6759  EOF    return 0;
6760  if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
6761    rm -rf conftest*  _ACEOF
6762    eval "ac_cv_func_gettimeofday=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
6763  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
6765    cat conftest.$ac_ext >&5    ac_status=$?
6766    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767    eval "ac_cv_func_gettimeofday=no"    (exit $ac_status); } &&
6768  fi           { ac_try='test -s conftest$ac_exeext'
6769  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770  fi    (eval $ac_try) 2>&5
6771      ac_status=$?
6772  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
6774      ac_cv_func_gettimeofday=yes
6775    else
6776      echo "$as_me: failed program was:" >&5
6777    cat conftest.$ac_ext >&5
6778    ac_cv_func_gettimeofday=no
6779    fi
6780    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6781    fi
6782    echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
6783    echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6784    if test $ac_cv_func_gettimeofday = yes; then
6785    :    :
6786  else  else
6787    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
6788  #define NO_GETTOD 1  #define NO_GETTOD 1
6789  EOF  _ACEOF
6790    
6791  fi  fi
6792    
6793  fi  fi
6794    
6795    
6796  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
6797  echo "configure:3914: checking for gettimeofday declaration" >&5  echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
6798    
6799  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6800  #line 3917 "configure"  #line $LINENO "configure"
6801  #include "confdefs.h"  #include "confdefs.h"
6802  #include <sys/time.h>  #include <sys/time.h>
6803  EOF  
6804    _ACEOF
6805  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6806    egrep "gettimeofday" >/dev/null 2>&1; then    egrep "gettimeofday" >/dev/null 2>&1; then
6807    rm -rf conftest*    echo "$as_me:$LINENO: result: present" >&5
6808    echo "$ac_t""present" 1>&6  echo "${ECHO_T}present" >&6
6809  else  else
6810    rm -rf conftest*    echo "$as_me:$LINENO: result: missing" >&5
6811    echo "$ac_t""missing" 1>&6  echo "${ECHO_T}missing" >&6
6812                   cat >> confdefs.h <<\EOF                   cat >>confdefs.h <<\_ACEOF
6813  #define GETTOD_NOT_DECLARED 1  #define GETTOD_NOT_DECLARED 1
6814  EOF  _ACEOF
6815    
6816  fi  fi
6817  rm -f conftest*  rm -f conftest*
6818    
6819    
6820    
6821  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sin in -lm" >&5
6822  echo "configure:3938: checking for sin in -lm" >&5  echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6823  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_m_sin+set}" = set; then
6824  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  
6825  else  else
6826    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6827  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
6828  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6829  #line 3946 "configure"  #line $LINENO "configure"
6830  #include "confdefs.h"  #include "confdefs.h"
6831    
6832  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6833    #ifdef __cplusplus
6834    extern "C"
6835    #endif
6836  /* 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
6837      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6838  char sin();  char sin ();
6839    #ifdef F77_DUMMY_MAIN
6840  int main() {  #  ifdef __cplusplus
6841  sin()       extern "C"
6842  ; return 0; }  #  endif
6843  EOF     int F77_DUMMY_MAIN() { return 1; }
6844  if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  #endif
6845    rm -rf conftest*  int
6846    eval "ac_cv_lib_$ac_lib_var=yes"  main ()
6847  else  {
6848    echo "configure: failed program was:" >&5  sin ();
6849    cat conftest.$ac_ext >&5    ;
6850    rm -rf conftest*    return 0;
6851    eval "ac_cv_lib_$ac_lib_var=no"  }
6852  fi  _ACEOF
6853  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext
6854  LIBS="$ac_save_LIBS"  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855      (eval $ac_link) 2>&5
6856  fi    ac_status=$?
6857  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858    echo "$ac_t""yes" 1>&6    (exit $ac_status); } &&
6859             { ac_try='test -s conftest$ac_exeext'
6860      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861      (eval $ac_try) 2>&5
6862      ac_status=$?
6863      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864      (exit $ac_status); }; }; then
6865      ac_cv_lib_m_sin=yes
6866    else
6867      echo "$as_me: failed program was:" >&5
6868    cat conftest.$ac_ext >&5
6869    ac_cv_lib_m_sin=no
6870    fi
6871    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6872    LIBS=$ac_check_lib_save_LIBS
6873    fi
6874    echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6875    echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6876    if test $ac_cv_lib_m_sin = yes; then
6877    LIBS="${LIBS} -lm"    LIBS="${LIBS} -lm"
6878  else  else
6879    echo "$ac_t""no" 1>&6    true
 true  
6880  fi  fi
6881    
6882  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -lmingwex" >&5
6883  echo "configure:3979: checking for main in -lmingwex" >&5  echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6
6884  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_mingwex_main+set}" = set; then
6885  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  
6886  else  else
6887    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
6888  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
6889  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
6890  #line 3987 "configure"  #line $LINENO "configure"
6891  #include "confdefs.h"  #include "confdefs.h"
6892    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:3994: \"$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"  
6893    
6894  fi  #ifdef F77_DUMMY_MAIN
6895  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
6896    echo "$ac_t""yes" 1>&6       extern "C"
6897    #  endif
6898       int F77_DUMMY_MAIN() { return 1; }
6899    #endif
6900    int
6901    main ()
6902    {
6903    main ();
6904      ;
6905      return 0;
6906    }
6907    _ACEOF
6908    rm -f conftest.$ac_objext conftest$ac_exeext
6909    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910      (eval $ac_link) 2>&5
6911      ac_status=$?
6912      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913      (exit $ac_status); } &&
6914             { ac_try='test -s conftest$ac_exeext'
6915      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916      (eval $ac_try) 2>&5
6917      ac_status=$?
6918      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919      (exit $ac_status); }; }; then
6920      ac_cv_lib_mingwex_main=yes
6921    else
6922      echo "$as_me: failed program was:" >&5
6923    cat conftest.$ac_ext >&5
6924    ac_cv_lib_mingwex_main=no
6925    fi
6926    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6927    LIBS=$ac_check_lib_save_LIBS
6928    fi
6929    echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5
6930    echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6
6931    if test $ac_cv_lib_mingwex_main = yes; then
6932    LIBS="${LIBS} -lmingwex"    LIBS="${LIBS} -lmingwex"
6933  else  else
6934    echo "$ac_t""no" 1>&6    true
 true  
6935  fi  fi
6936    
6937  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true)  # AC_CHECK_LIB(japi,j_start,LIBS="${LIBS} -ljapi -lws2_32",true)
6938  EXTRA_LOBJS=  EXTRA_LOBJS=
6939  if test "$try_japi" = "yes" ; then  if test "$try_japi" = "yes" ; then
6940     for ac_hdr in japi.h  
6941    for ac_header in japi.h
6942  do  do
6943  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6945  echo "configure:4022: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
6946  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6947    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6948      echo $ECHO_N "(cached) $ECHO_C" >&6
6949    fi
6950    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6951    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6952    else
6953      # Is the header compilable?
6954    echo "$as_me:$LINENO: checking $ac_header usability" >&5
6955    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6956    cat >conftest.$ac_ext <<_ACEOF
6957    #line $LINENO "configure"
6958    #include "confdefs.h"
6959    $ac_includes_default
6960    #include <$ac_header>
6961    _ACEOF
6962    rm -f conftest.$ac_objext
6963    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964      (eval $ac_compile) 2>&5
6965      ac_status=$?
6966      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967      (exit $ac_status); } &&
6968             { ac_try='test -s conftest.$ac_objext'
6969      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970      (eval $ac_try) 2>&5
6971      ac_status=$?
6972      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973      (exit $ac_status); }; }; then
6974      ac_header_compiler=yes
6975    else
6976      echo "$as_me: failed program was:" >&5
6977    cat conftest.$ac_ext >&5
6978    ac_header_compiler=no
6979    fi
6980    rm -f conftest.$ac_objext conftest.$ac_ext
6981    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6982    echo "${ECHO_T}$ac_header_compiler" >&6
6983    
6984    # Is the header present?
6985    echo "$as_me:$LINENO: checking $ac_header presence" >&5
6986    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6987    cat >conftest.$ac_ext <<_ACEOF
6988    #line $LINENO "configure"
6989    #include "confdefs.h"
6990    #include <$ac_header>
6991    _ACEOF
6992    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6993      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6994      ac_status=$?
6995      egrep -v '^ *\+' conftest.er1 >conftest.err
6996      rm -f conftest.er1
6997      cat conftest.err >&5
6998      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999      (exit $ac_status); } >/dev/null; then
7000      if test -s conftest.err; then
7001        ac_cpp_err=$ac_c_preproc_warn_flag
7002      else
7003        ac_cpp_err=
7004      fi
7005  else  else
7006    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7007  #line 4027 "configure"  fi
7008  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7009  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4032: \"$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"  
7010  else  else
7011    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7012    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7013    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
7014  fi  fi
7015  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
7016  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7017  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
7018    echo "$ac_t""yes" 1>&6  
7019      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
7020    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
7021  #define $ac_tr_hdr 1    yes:no )
7022  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7023   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7024        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7025    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7026      no:yes )
7027        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7028    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7029        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7030    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7031        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7032    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7033    esac
7034    echo "$as_me:$LINENO: checking for $ac_header" >&5
7035    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7036    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7037      echo $ECHO_N "(cached) $ECHO_C" >&6
7038    else
7039      eval "$as_ac_Header=$ac_header_preproc"
7040    fi
7041    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7042    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7043    
7044    fi
7045    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7046      cat >>confdefs.h <<_ACEOF
7047    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048    _ACEOF
7049     cat >>confdefs.h <<\_ACEOF
7050  #define HAVE_JAPI_H 1  #define HAVE_JAPI_H 1
7051  EOF  _ACEOF
7052    
7053                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"                                   EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
7054                                   LIBS="${LIBS} -ljapi -lws2_32"                                   LIBS="${LIBS} -ljapi -lws2_32"
 else  
   echo "$ac_t""no" 1>&6  
7055  fi  fi
7056    
7057  done  done
7058    
7059  fi  fi
7060  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
7061   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
7062     for ac_hdr in rpc/rpc.h  
7063    for ac_header in rpc/rpc.h
7064  do  do
7065  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7066  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067  echo "configure:4070: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7068  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070      echo $ECHO_N "(cached) $ECHO_C" >&6
7071    fi
7072    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7073    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7074    else
7075      # Is the header compilable?
7076    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7077    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7078    cat >conftest.$ac_ext <<_ACEOF
7079    #line $LINENO "configure"
7080    #include "confdefs.h"
7081    $ac_includes_default
7082    #include <$ac_header>
7083    _ACEOF
7084    rm -f conftest.$ac_objext
7085    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086      (eval $ac_compile) 2>&5
7087      ac_status=$?
7088      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089      (exit $ac_status); } &&
7090             { ac_try='test -s conftest.$ac_objext'
7091      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092      (eval $ac_try) 2>&5
7093      ac_status=$?
7094      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095      (exit $ac_status); }; }; then
7096      ac_header_compiler=yes
7097    else
7098      echo "$as_me: failed program was:" >&5
7099    cat conftest.$ac_ext >&5
7100    ac_header_compiler=no
7101    fi
7102    rm -f conftest.$ac_objext conftest.$ac_ext
7103    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7104    echo "${ECHO_T}$ac_header_compiler" >&6
7105    
7106    # Is the header present?
7107    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7108    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7109    cat >conftest.$ac_ext <<_ACEOF
7110    #line $LINENO "configure"
7111    #include "confdefs.h"
7112    #include <$ac_header>
7113    _ACEOF
7114    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7115      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7116      ac_status=$?
7117      egrep -v '^ *\+' conftest.er1 >conftest.err
7118      rm -f conftest.er1
7119      cat conftest.err >&5
7120      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121      (exit $ac_status); } >/dev/null; then
7122      if test -s conftest.err; then
7123        ac_cpp_err=$ac_c_preproc_warn_flag
7124      else
7125        ac_cpp_err=
7126      fi
7127  else  else
7128    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7129  #line 4075 "configure"  fi
7130  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7131  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4080: \"$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"  
7132  else  else
7133    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7134    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7135    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7136  fi  fi
7137  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7138    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7139      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7140    cat >> confdefs.h <<EOF  
7141  #define $ac_tr_hdr 1  # So?  What about this header?
7142  EOF  case $ac_header_compiler:$ac_header_preproc in
7143   cat >> confdefs.h <<\EOF    yes:no )
7144        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7145    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7146        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7147    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7148      no:yes )
7149        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7150    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7151        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7152    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7153        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7154    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7155    esac
7156    echo "$as_me:$LINENO: checking for $ac_header" >&5
7157    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7159      echo $ECHO_N "(cached) $ECHO_C" >&6
7160    else
7161      eval "$as_ac_Header=$ac_header_preproc"
7162    fi
7163    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7164    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7165    
7166    fi
7167    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7168      cat >>confdefs.h <<_ACEOF
7169    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170    _ACEOF
7171     cat >>confdefs.h <<\_ACEOF
7172  #define HAVE_XDR 1  #define HAVE_XDR 1
7173  EOF  _ACEOF
7174    
7175                                   LIBS="${LIBS} -loncrpc"                                   LIBS="${LIBS} -loncrpc"
 else  
   echo "$ac_t""no" 1>&6  
7176  fi  fi
7177    
7178  done  done
7179    
7180   fi   fi
7181  else  else
7182   if test "$try_xdr" = "yes" ; then   if test "$try_xdr" = "yes" ; then
7183     for ac_hdr in rpc/rpc.h  
7184    for ac_header in rpc/rpc.h
7185  do  do
7186  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7187  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7188  echo "configure:4117: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7189  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7190    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7191      echo $ECHO_N "(cached) $ECHO_C" >&6
7192    fi
7193    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7194    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7195    else
7196      # Is the header compilable?
7197    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7198    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7199    cat >conftest.$ac_ext <<_ACEOF
7200    #line $LINENO "configure"
7201    #include "confdefs.h"
7202    $ac_includes_default
7203    #include <$ac_header>
7204    _ACEOF
7205    rm -f conftest.$ac_objext
7206    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207      (eval $ac_compile) 2>&5
7208      ac_status=$?
7209      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210      (exit $ac_status); } &&
7211             { ac_try='test -s conftest.$ac_objext'
7212      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213      (eval $ac_try) 2>&5
7214      ac_status=$?
7215      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216      (exit $ac_status); }; }; then
7217      ac_header_compiler=yes
7218    else
7219      echo "$as_me: failed program was:" >&5
7220    cat conftest.$ac_ext >&5
7221    ac_header_compiler=no
7222    fi
7223    rm -f conftest.$ac_objext conftest.$ac_ext
7224    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7225    echo "${ECHO_T}$ac_header_compiler" >&6
7226    
7227    # Is the header present?
7228    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7229    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7230    cat >conftest.$ac_ext <<_ACEOF
7231    #line $LINENO "configure"
7232    #include "confdefs.h"
7233    #include <$ac_header>
7234    _ACEOF
7235    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7236      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7237      ac_status=$?
7238      egrep -v '^ *\+' conftest.er1 >conftest.err
7239      rm -f conftest.er1
7240      cat conftest.err >&5
7241      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242      (exit $ac_status); } >/dev/null; then
7243      if test -s conftest.err; then
7244        ac_cpp_err=$ac_c_preproc_warn_flag
7245      else
7246        ac_cpp_err=
7247      fi
7248  else  else
7249    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7250  #line 4122 "configure"  fi
7251  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7252  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4127: \"$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"  
7253  else  else
7254    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7255    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7256    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7257  fi  fi
7258  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7259    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7260      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7261    cat >> confdefs.h <<EOF  
7262  #define $ac_tr_hdr 1  # So?  What about this header?
7263  EOF  case $ac_header_compiler:$ac_header_preproc in
7264   cat >> confdefs.h <<\EOF    yes:no )
7265        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7266    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7267        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7269      no:yes )
7270        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7271    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7272        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7273    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7274        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7275    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7276    esac
7277    echo "$as_me:$LINENO: checking for $ac_header" >&5
7278    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7279    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7280      echo $ECHO_N "(cached) $ECHO_C" >&6
7281    else
7282      eval "$as_ac_Header=$ac_header_preproc"
7283    fi
7284    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7285    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7286    
7287    fi
7288    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7289      cat >>confdefs.h <<_ACEOF
7290    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291    _ACEOF
7292     cat >>confdefs.h <<\_ACEOF
7293  #define HAVE_XDR 1  #define HAVE_XDR 1
7294  EOF  _ACEOF
7295    
7296                                   LIBS="${LIBS} -lrpc"                                   LIBS="${LIBS} -lrpc"
 else  
   echo "$ac_t""no" 1>&6  
7297  fi  fi
7298    
7299  done  done
7300    
7301   fi   fi
7302  fi  fi
7303    
7304  # Should really find a way to check for prototypes, but this  # Should really find a way to check for prototypes, but this
7305  # basically works for now.  CM  # basically works for now.  CM
7306  #  #
7307  for ac_hdr in math.h  
7308    for ac_header in math.h
7309  do  do
7310  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7311  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312  echo "configure:4167: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7313  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7314    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7315      echo $ECHO_N "(cached) $ECHO_C" >&6
7316    fi
7317    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7318    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7319    else
7320      # Is the header compilable?
7321    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7322    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7323    cat >conftest.$ac_ext <<_ACEOF
7324    #line $LINENO "configure"
7325    #include "confdefs.h"
7326    $ac_includes_default
7327    #include <$ac_header>
7328    _ACEOF
7329    rm -f conftest.$ac_objext
7330    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331      (eval $ac_compile) 2>&5
7332      ac_status=$?
7333      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334      (exit $ac_status); } &&
7335             { ac_try='test -s conftest.$ac_objext'
7336      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337      (eval $ac_try) 2>&5
7338      ac_status=$?
7339      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340      (exit $ac_status); }; }; then
7341      ac_header_compiler=yes
7342    else
7343      echo "$as_me: failed program was:" >&5
7344    cat conftest.$ac_ext >&5
7345    ac_header_compiler=no
7346    fi
7347    rm -f conftest.$ac_objext conftest.$ac_ext
7348    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7349    echo "${ECHO_T}$ac_header_compiler" >&6
7350    
7351    # Is the header present?
7352    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7353    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7354    cat >conftest.$ac_ext <<_ACEOF
7355    #line $LINENO "configure"
7356    #include "confdefs.h"
7357    #include <$ac_header>
7358    _ACEOF
7359    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7360      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7361      ac_status=$?
7362      egrep -v '^ *\+' conftest.er1 >conftest.err
7363      rm -f conftest.er1
7364      cat conftest.err >&5
7365      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366      (exit $ac_status); } >/dev/null; then
7367      if test -s conftest.err; then
7368        ac_cpp_err=$ac_c_preproc_warn_flag
7369      else
7370        ac_cpp_err=
7371      fi
7372  else  else
7373    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7374  #line 4172 "configure"  fi
7375  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7376  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4177: \"$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"  
7377  else  else
7378    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7379    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7380    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
7381  fi  fi
7382  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
7383  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7384  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
7385    echo "$ac_t""yes" 1>&6  
7386      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
7387    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
7388  #define $ac_tr_hdr 1    yes:no )
7389  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7390   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7391        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7392    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7393      no:yes )
7394        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7395    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7396        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7397    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7398        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7400    esac
7401    echo "$as_me:$LINENO: checking for $ac_header" >&5
7402    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404      echo $ECHO_N "(cached) $ECHO_C" >&6
7405    else
7406      eval "$as_ac_Header=$ac_header_preproc"
7407    fi
7408    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7409    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7410    
7411    fi
7412    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7413      cat >>confdefs.h <<_ACEOF
7414    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7415    _ACEOF
7416     cat >>confdefs.h <<\_ACEOF
7417  #define HAVE_MATH_H 1  #define HAVE_MATH_H 1
7418  EOF  _ACEOF
7419    
 else  
   echo "$ac_t""no" 1>&6  
7420  fi  fi
7421    
7422  done  done
7423    
7424    
7425  #  #
7426  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM  # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
7427  #  #
7428  for ac_hdr in values.h  
7429    for ac_header in values.h
7430  do  do
7431  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7432  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433  echo "configure:4214: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7434  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7435    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7436      echo $ECHO_N "(cached) $ECHO_C" >&6
7437    fi
7438    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7440    else
7441      # Is the header compilable?
7442    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7443    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7444    cat >conftest.$ac_ext <<_ACEOF
7445    #line $LINENO "configure"
7446    #include "confdefs.h"
7447    $ac_includes_default
7448    #include <$ac_header>
7449    _ACEOF
7450    rm -f conftest.$ac_objext
7451    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452      (eval $ac_compile) 2>&5
7453      ac_status=$?
7454      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455      (exit $ac_status); } &&
7456             { ac_try='test -s conftest.$ac_objext'
7457      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458      (eval $ac_try) 2>&5
7459      ac_status=$?
7460      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461      (exit $ac_status); }; }; then
7462      ac_header_compiler=yes
7463    else
7464      echo "$as_me: failed program was:" >&5
7465    cat conftest.$ac_ext >&5
7466    ac_header_compiler=no
7467    fi
7468    rm -f conftest.$ac_objext conftest.$ac_ext
7469    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7470    echo "${ECHO_T}$ac_header_compiler" >&6
7471    
7472    # Is the header present?
7473    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7474    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7475    cat >conftest.$ac_ext <<_ACEOF
7476    #line $LINENO "configure"
7477    #include "confdefs.h"
7478    #include <$ac_header>
7479    _ACEOF
7480    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7481      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7482      ac_status=$?
7483      egrep -v '^ *\+' conftest.er1 >conftest.err
7484      rm -f conftest.er1
7485      cat conftest.err >&5
7486      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487      (exit $ac_status); } >/dev/null; then
7488      if test -s conftest.err; then
7489        ac_cpp_err=$ac_c_preproc_warn_flag
7490      else
7491        ac_cpp_err=
7492      fi
7493  else  else
7494    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7495  #line 4219 "configure"  fi
7496  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7497  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4224: \"$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"  
7498  else  else
7499    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7500    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7501    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
7502  fi  fi
7503  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
7504    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7505      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
7506    cat >> confdefs.h <<EOF  
7507  #define $ac_tr_hdr 1  # So?  What about this header?
7508  EOF  case $ac_header_compiler:$ac_header_preproc in
7509   cat >> confdefs.h <<\EOF    yes:no )
7510        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7511    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7512        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7513    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7514      no:yes )
7515        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7516    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7517        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7518    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7519        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7520    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7521    esac
7522    echo "$as_me:$LINENO: checking for $ac_header" >&5
7523    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7524    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7525      echo $ECHO_N "(cached) $ECHO_C" >&6
7526    else
7527      eval "$as_ac_Header=$ac_header_preproc"
7528    fi
7529    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7530    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7531    
7532    fi
7533    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7534      cat >>confdefs.h <<_ACEOF
7535    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536    _ACEOF
7537     cat >>confdefs.h <<\_ACEOF
7538  #define HAVE_VALUES_H 1  #define HAVE_VALUES_H 1
7539  EOF  _ACEOF
7540    
 else  
   echo "$ac_t""no" 1>&6  
7541  fi  fi
7542    
7543  done  done
7544    
7545    
7546  #  #
7547  # Sparc solaris keeps this in float.h, rework either/or with values.h later  # Sparc solaris keeps this in float.h, rework either/or with values.h later
7548  #  #
7549  for ac_hdr in float.h  
7550    for ac_header in float.h
7551  do  do
7552  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7553  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7554  echo "configure:4261: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
7555  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7556    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
7557      echo $ECHO_N "(cached) $ECHO_C" >&6
7558    fi
7559    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7560    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7561    else
7562      # Is the header compilable?
7563    echo "$as_me:$LINENO: checking $ac_header usability" >&5
7564    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7565    cat >conftest.$ac_ext <<_ACEOF
7566    #line $LINENO "configure"
7567    #include "confdefs.h"
7568    $ac_includes_default
7569    #include <$ac_header>
7570    _ACEOF
7571    rm -f conftest.$ac_objext
7572    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573      (eval $ac_compile) 2>&5
7574      ac_status=$?
7575      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576      (exit $ac_status); } &&
7577             { ac_try='test -s conftest.$ac_objext'
7578      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579      (eval $ac_try) 2>&5
7580      ac_status=$?
7581      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582      (exit $ac_status); }; }; then
7583      ac_header_compiler=yes
7584    else
7585      echo "$as_me: failed program was:" >&5
7586    cat conftest.$ac_ext >&5
7587    ac_header_compiler=no
7588    fi
7589    rm -f conftest.$ac_objext conftest.$ac_ext
7590    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7591    echo "${ECHO_T}$ac_header_compiler" >&6
7592    
7593    # Is the header present?
7594    echo "$as_me:$LINENO: checking $ac_header presence" >&5
7595    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7596    cat >conftest.$ac_ext <<_ACEOF
7597    #line $LINENO "configure"
7598    #include "confdefs.h"
7599    #include <$ac_header>
7600    _ACEOF
7601    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7602      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7603      ac_status=$?
7604      egrep -v '^ *\+' conftest.er1 >conftest.err
7605      rm -f conftest.er1
7606      cat conftest.err >&5
7607      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608      (exit $ac_status); } >/dev/null; then
7609      if test -s conftest.err; then
7610        ac_cpp_err=$ac_c_preproc_warn_flag
7611      else
7612        ac_cpp_err=
7613      fi
7614  else  else
7615    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
7616  #line 4266 "configure"  fi
7617  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
7618  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:4271: \"$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"  
7619  else  else
7620    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
7621    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7622    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
7623  fi  fi
7624  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
7625  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7626  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
7627    echo "$ac_t""yes" 1>&6  
7628      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
7629    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
7630  #define $ac_tr_hdr 1    yes:no )
7631  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7632   cat >> confdefs.h <<\EOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7633        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7634    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7635      no:yes )
7636        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7637    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7638        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7639    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7640        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7642    esac
7643    echo "$as_me:$LINENO: checking for $ac_header" >&5
7644    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7645    if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646      echo $ECHO_N "(cached) $ECHO_C" >&6
7647    else
7648      eval "$as_ac_Header=$ac_header_preproc"
7649    fi
7650    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7651    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7652    
7653    fi
7654    if test `eval echo '${'$as_ac_Header'}'` = yes; then
7655      cat >>confdefs.h <<_ACEOF
7656    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7657    _ACEOF
7658     cat >>confdefs.h <<\_ACEOF
7659  #define HAVE_FLOAT_H 1  #define HAVE_FLOAT_H 1
7660  EOF  _ACEOF
7661    
 else  
   echo "$ac_t""no" 1>&6  
7662  fi  fi
7663    
7664  done  done
7665    
7666    
# Line 4302  done Line 7669  done
7669  # a more comprehensive later, i.e. checking that the fpclass  # a more comprehensive later, i.e. checking that the fpclass
7670  # test makes sense.  CM  # test makes sense.  CM
7671  #  #
7672  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for isnormal" >&5
7673  echo "configure:4307: checking for isnormal" >&5  echo $ECHO_N "checking for isnormal... $ECHO_C" >&6
7674  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7675    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5
7676    echo "${ECHO_T}no" >&6
7677  else  else
7678    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7679  #line 4312 "configure"  #line $LINENO "configure"
7680  #include "confdefs.h"  #include "confdefs.h"
7681  #define _GNU_SOURCE  #define _GNU_SOURCE
7682              #include <math.h>              #include <math.h>
# Line 4316  else Line 7684  else
7684                  float f;                  float f;
7685                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
7686                  }                  }
7687  EOF  _ACEOF
7688  if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7689  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7691      ac_status=$?
7692      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7694      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695      (eval $ac_try) 2>&5
7696      ac_status=$?
7697      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698      (exit $ac_status); }; }; then
7699      cat >>confdefs.h <<\_ACEOF
7700  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
7701  EOF  _ACEOF
7702   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7703  else  echo "${ECHO_T}yes" >&6
7704    echo "configure: failed program was:" >&5  else
7705    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7706    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7707    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7708  echo "configure:4332: checking for fpclass in ieeefp.h" >&5  ( exit $ac_status )
7709    echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5
7710    echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6
7711                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7712    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7713    echo "${ECHO_T}no" >&6
7714  else  else
7715    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7716  #line 4337 "configure"  #line $LINENO "configure"
7717  #include "confdefs.h"  #include "confdefs.h"
7718  #include <ieeefp.h>  #include <ieeefp.h>
7719                              int main() {                              int main() {
7720                                  float f;                                  float f;
7721                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
7722                                  }                                  }
7723  EOF  _ACEOF
7724  if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7725  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7727      ac_status=$?
7728      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7730      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731      (eval $ac_try) 2>&5
7732      ac_status=$?
7733      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734      (exit $ac_status); }; }; then
7735      cat >>confdefs.h <<\_ACEOF
7736  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
7737  EOF  _ACEOF
7738   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7739    echo "${ECHO_T}yes" >&6
7740  else  else
7741    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7742    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7743    rm -fr conftest*  cat conftest.$ac_ext >&5
7744    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7745    HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5
7746    echo "${ECHO_T}no" >&6
7747  fi  fi
7748  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7749  fi  fi
7750    
           
7751  fi  fi
7752  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7753  fi  fi
7754    
7755    echo "$as_me:$LINENO: checking for isfinite" >&5
7756  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ECHO_N "checking for isfinite... $ECHO_C" >&6
 echo "configure:4367: checking for isfinite" >&5  
7757  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
7758    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5
7759    echo "${ECHO_T}no" >&6
7760  else  else
7761    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7762  #line 4372 "configure"  #line $LINENO "configure"
7763  #include "confdefs.h"  #include "confdefs.h"
7764  #define _GNU_SOURCE  #define _GNU_SOURCE
7765              #include <math.h>              #include <math.h>
# Line 4376  else Line 7767  else
7767                  float f;                  float f;
7768                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
7769                  }                  }
7770  EOF  _ACEOF
7771  if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7772  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7774      ac_status=$?
7775      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7777      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778      (eval $ac_try) 2>&5
7779      ac_status=$?
7780      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781      (exit $ac_status); }; }; then
7782      cat >>confdefs.h <<\_ACEOF
7783  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
7784  EOF  _ACEOF
7785   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7786  else  echo "${ECHO_T}yes" >&6
7787    echo "configure: failed program was:" >&5  else
7788    cat conftest.$ac_ext >&5    echo "$as_me: program exited with status $ac_status" >&5
7789    rm -fr conftest*  echo "$as_me: failed program was:" >&5
7790    echo $ac_n "checking for finite()""... $ac_c" 1>&6  cat conftest.$ac_ext >&5
7791  echo "configure:4392: checking for finite()" >&5  ( exit $ac_status )
7792    echo "$as_me:$LINENO: checking for finite()" >&5
7793    echo $ECHO_N "checking for finite()... $ECHO_C" >&6
7794                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
7795    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7796    echo "${ECHO_T}no" >&6
7797  else  else
7798    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7799  #line 4397 "configure"  #line $LINENO "configure"
7800  #include "confdefs.h"  #include "confdefs.h"
7801  #include <math.h>  #include <math.h>
7802                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 4401  else Line 7804  else
7804                                  float f;                                  float f;
7805                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
7806                                  }                                  }
7807  EOF  _ACEOF
7808  if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
7809  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810    cat >> confdefs.h <<\EOF    (eval $ac_link) 2>&5
7811      ac_status=$?
7812      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7814      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815      (eval $ac_try) 2>&5
7816      ac_status=$?
7817      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818      (exit $ac_status); }; }; then
7819      cat >>confdefs.h <<\_ACEOF
7820  #define HAVE_FINITE 1  #define HAVE_FINITE 1
7821  EOF  _ACEOF
7822   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
7823    echo "${ECHO_T}yes" >&6
7824  else  else
7825    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
7826    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
7827    rm -fr conftest*  cat conftest.$ac_ext >&5
7828    HAVE_FINITE=0 echo "$ac_t""no" 1>&6  ( exit $ac_status )
7829    HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5
7830    echo "${ECHO_T}no" >&6
7831  fi  fi
7832  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7833  fi  fi
7834    
           
7835  fi  fi
7836  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7837  fi  fi
7838    
7839    
7840    
   
7841  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7842  #       Check for the existence of the -lsocket and -lnsl libraries.  #       Check for the existence of the -lsocket and -lnsl libraries.
7843  #       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 4442  fi Line 7855  fi
7855  #          To get around this problem, check for both libraries together  #          To get around this problem, check for both libraries together
7856  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
7857  #--------------------------------------------------------------------  #--------------------------------------------------------------------
7858  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for sockets" >&5
7859  echo "configure:4447: checking for sockets" >&5  echo $ECHO_N "checking for sockets... $ECHO_C" >&6
7860  tcl_checkBoth=0  tcl_checkBoth=0
7861  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for connect" >&5
7862  echo "configure:4450: checking for connect" >&5  echo $ECHO_N "checking for connect... $ECHO_C" >&6
7863  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if test "${ac_cv_func_connect+set}" = set; then
7864    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7865  else  else
7866    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7867  #line 4455 "configure"  #line $LINENO "configure"
7868  #include "confdefs.h"  #include "confdefs.h"
7869  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7870      which can conflict with char connect(); below.  */      which can conflict with char connect (); below.  */
7871  #include <assert.h>  #include <assert.h>
7872  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7873    #ifdef __cplusplus
7874    extern "C"
7875    #endif
7876  /* 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
7877      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7878  char connect();  char connect ();
7879    char (*f) ();
7880  int main() {  
7881    #ifdef F77_DUMMY_MAIN
7882    #  ifdef __cplusplus
7883         extern "C"
7884    #  endif
7885       int F77_DUMMY_MAIN() { return 1; }
7886    #endif
7887    int
7888    main ()
7889    {
7890  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
7891      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
7892      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
7893  #if defined (__stub_connect) || defined (__stub___connect)  #if defined (__stub_connect) || defined (__stub___connect)
7894  choke me  choke me
7895  #else  #else
7896  connect();  f = connect;
7897  #endif  #endif
7898    
7899  ; return 0; }    ;
7900  EOF    return 0;
7901  if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
7902    rm -rf conftest*  _ACEOF
7903    eval "ac_cv_func_connect=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
7904  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
7906    cat conftest.$ac_ext >&5    ac_status=$?
7907    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908    eval "ac_cv_func_connect=no"    (exit $ac_status); } &&
7909  fi           { ac_try='test -s conftest$ac_exeext'
7910  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911  fi    (eval $ac_try) 2>&5
7912      ac_status=$?
7913  if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
7915      ac_cv_func_connect=yes
7916    else
7917      echo "$as_me: failed program was:" >&5
7918    cat conftest.$ac_ext >&5
7919    ac_cv_func_connect=no
7920    fi
7921    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7922    fi
7923    echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7924    echo "${ECHO_T}$ac_cv_func_connect" >&6
7925    if test $ac_cv_func_connect = yes; then
7926    tcl_checkSocket=0    tcl_checkSocket=0
7927  else  else
7928    echo "$ac_t""no" 1>&6    tcl_checkSocket=1
 tcl_checkSocket=1  
7929  fi  fi
7930    
7931  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
7932      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for main in -lsocket" >&5
7933  echo "configure:4500: checking for main in -lsocket" >&5  echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
7934  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_socket_main+set}" = set; then
7935  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  
7936  else  else
7937    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
7938  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
7939  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
7940  #line 4508 "configure"  #line $LINENO "configure"
7941  #include "confdefs.h"  #include "confdefs.h"
7942    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4515: \"$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"  
7943    
7944  fi  #ifdef F77_DUMMY_MAIN
7945  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
7946    echo "$ac_t""yes" 1>&6       extern "C"
7947    #  endif
7948       int F77_DUMMY_MAIN() { return 1; }
7949    #endif
7950    int
7951    main ()
7952    {
7953    main ();
7954      ;
7955      return 0;
7956    }
7957    _ACEOF
7958    rm -f conftest.$ac_objext conftest$ac_exeext
7959    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960      (eval $ac_link) 2>&5
7961      ac_status=$?
7962      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963      (exit $ac_status); } &&
7964             { ac_try='test -s conftest$ac_exeext'
7965      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966      (eval $ac_try) 2>&5
7967      ac_status=$?
7968      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969      (exit $ac_status); }; }; then
7970      ac_cv_lib_socket_main=yes
7971    else
7972      echo "$as_me: failed program was:" >&5
7973    cat conftest.$ac_ext >&5
7974    ac_cv_lib_socket_main=no
7975    fi
7976    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977    LIBS=$ac_check_lib_save_LIBS
7978    fi
7979    echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
7980    echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
7981    if test $ac_cv_lib_socket_main = yes; then
7982    TLIBS="$TLIBS -lsocket"    TLIBS="$TLIBS -lsocket"
7983  else  else
7984    echo "$ac_t""no" 1>&6    tcl_checkBoth=1
 tcl_checkBoth=1  
7985  fi  fi
7986    
7987  fi  fi
# Line 4538  fi Line 7990  fi
7990  if test "$tcl_checkBoth" = 1; then  if test "$tcl_checkBoth" = 1; then
7991      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
7992      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
7993      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo "$as_me:$LINENO: checking for accept" >&5
7994  echo "configure:4543: checking for accept" >&5  echo $ECHO_N "checking for accept... $ECHO_C" >&6
7995  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if test "${ac_cv_func_accept+set}" = set; then
7996    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7997  else  else
7998    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
7999  #line 4548 "configure"  #line $LINENO "configure"
8000  #include "confdefs.h"  #include "confdefs.h"
8001  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8002      which can conflict with char accept(); below.  */      which can conflict with char accept (); below.  */
8003  #include <assert.h>  #include <assert.h>
8004  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8005    #ifdef __cplusplus
8006    extern "C"
8007    #endif
8008  /* 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
8009      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8010  char accept();  char accept ();
8011    char (*f) ();
8012  int main() {  
8013    #ifdef F77_DUMMY_MAIN
8014    #  ifdef __cplusplus
8015         extern "C"
8016    #  endif
8017       int F77_DUMMY_MAIN() { return 1; }
8018    #endif
8019    int
8020    main ()
8021    {
8022  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8023      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8024      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8025  #if defined (__stub_accept) || defined (__stub___accept)  #if defined (__stub_accept) || defined (__stub___accept)
8026  choke me  choke me
8027  #else  #else
8028  accept();  f = accept;
8029  #endif  #endif
8030    
8031  ; return 0; }    ;
8032  EOF    return 0;
8033  if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8034    rm -rf conftest*  _ACEOF
8035    eval "ac_cv_func_accept=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8036  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8038    cat conftest.$ac_ext >&5    ac_status=$?
8039    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040    eval "ac_cv_func_accept=no"    (exit $ac_status); } &&
8041  fi           { ac_try='test -s conftest$ac_exeext'
8042  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043  fi    (eval $ac_try) 2>&5
8044      ac_status=$?
8045  if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8047      ac_cv_func_accept=yes
8048    else
8049      echo "$as_me: failed program was:" >&5
8050    cat conftest.$ac_ext >&5
8051    ac_cv_func_accept=no
8052    fi
8053    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8054    fi
8055    echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
8056    echo "${ECHO_T}$ac_cv_func_accept" >&6
8057    if test $ac_cv_func_accept = yes; then
8058    tcl_checkNsl=0    tcl_checkNsl=0
8059  else  else
8060    echo "$ac_t""no" 1>&6    TLIBS=$tk_oldLibs
 TLIBS=$tk_oldLibs  
8061  fi  fi
8062    
8063  fi  fi
8064  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for gethostbyname" >&5
8065  echo "configure:4593: checking for gethostbyname" >&5  echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8066  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if test "${ac_cv_func_gethostbyname+set}" = set; then
8067    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8068  else  else
8069    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8070  #line 4598 "configure"  #line $LINENO "configure"
8071  #include "confdefs.h"  #include "confdefs.h"
8072  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8073      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname (); below.  */
8074  #include <assert.h>  #include <assert.h>
8075  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8076    #ifdef __cplusplus
8077    extern "C"
8078    #endif
8079  /* 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
8080      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8081  char gethostbyname();  char gethostbyname ();
8082    char (*f) ();
8083  int main() {  
8084    #ifdef F77_DUMMY_MAIN
8085    #  ifdef __cplusplus
8086         extern "C"
8087    #  endif
8088       int F77_DUMMY_MAIN() { return 1; }
8089    #endif
8090    int
8091    main ()
8092    {
8093  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8094      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8095      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8096  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8097  choke me  choke me
8098  #else  #else
8099  gethostbyname();  f = gethostbyname;
8100  #endif  #endif
8101    
8102  ; return 0; }    ;
8103  EOF    return 0;
8104  if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8105    rm -rf conftest*  _ACEOF
8106    eval "ac_cv_func_gethostbyname=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8107  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8109    cat conftest.$ac_ext >&5    ac_status=$?
8110    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111    eval "ac_cv_func_gethostbyname=no"    (exit $ac_status); } &&
8112  fi           { ac_try='test -s conftest$ac_exeext'
8113  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114  fi    (eval $ac_try) 2>&5
8115      ac_status=$?
8116  if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8118      ac_cv_func_gethostbyname=yes
8119    else
8120      echo "$as_me: failed program was:" >&5
8121    cat conftest.$ac_ext >&5
8122    ac_cv_func_gethostbyname=no
8123    fi
8124    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8125    fi
8126    echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8127    echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8128    if test $ac_cv_func_gethostbyname = yes; then
8129    :    :
8130  else  else
8131    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: checking for main in -lnsl" >&5
8132  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
8133  echo "configure:4639: checking for main in -lnsl" >&5  if test "${ac_cv_lib_nsl_main+set}" = set; then
8134  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  
8135  else  else
8136    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8137  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
8138  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8139  #line 4647 "configure"  #line $LINENO "configure"
8140  #include "confdefs.h"  #include "confdefs.h"
8141    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4654: \"$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"  
8142    
8143  fi  #ifdef F77_DUMMY_MAIN
8144  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
8145    echo "$ac_t""yes" 1>&6       extern "C"
8146    #  endif
8147       int F77_DUMMY_MAIN() { return 1; }
8148    #endif
8149    int
8150    main ()
8151    {
8152    main ();
8153      ;
8154      return 0;
8155    }
8156    _ACEOF
8157    rm -f conftest.$ac_objext conftest$ac_exeext
8158    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159      (eval $ac_link) 2>&5
8160      ac_status=$?
8161      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162      (exit $ac_status); } &&
8163             { ac_try='test -s conftest$ac_exeext'
8164      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165      (eval $ac_try) 2>&5
8166      ac_status=$?
8167      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168      (exit $ac_status); }; }; then
8169      ac_cv_lib_nsl_main=yes
8170    else
8171      echo "$as_me: failed program was:" >&5
8172    cat conftest.$ac_ext >&5
8173    ac_cv_lib_nsl_main=no
8174    fi
8175    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8176    LIBS=$ac_check_lib_save_LIBS
8177    fi
8178    echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
8179    echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
8180    if test $ac_cv_lib_nsl_main = yes; then
8181    TLIBS="$TLIBS -lnsl"    TLIBS="$TLIBS -lnsl"
 else  
   echo "$ac_t""no" 1>&6  
8182  fi  fi
8183    
8184  fi  fi
8185    
8186    
8187  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
8188          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo "$as_me:$LINENO: checking for main in -lreadline" >&5
8189  echo "configure:4679: checking for main in -lreadline" >&5  echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
8190  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_readline_main+set}" = set; then
8191  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  
8192  else  else
8193    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
8194  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
8195  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8196  #line 4687 "configure"  #line $LINENO "configure"
8197  #include "confdefs.h"  #include "confdefs.h"
8198    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:4694: \"$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"  
8199    
8200  fi  #ifdef F77_DUMMY_MAIN
8201  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
8202    echo "$ac_t""yes" 1>&6       extern "C"
8203    cat >> confdefs.h <<\EOF  #  endif
8204       int F77_DUMMY_MAIN() { return 1; }
8205    #endif
8206    int
8207    main ()
8208    {
8209    main ();
8210      ;
8211      return 0;
8212    }
8213    _ACEOF
8214    rm -f conftest.$ac_objext conftest$ac_exeext
8215    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216      (eval $ac_link) 2>&5
8217      ac_status=$?
8218      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219      (exit $ac_status); } &&
8220             { ac_try='test -s conftest$ac_exeext'
8221      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222      (eval $ac_try) 2>&5
8223      ac_status=$?
8224      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225      (exit $ac_status); }; }; then
8226      ac_cv_lib_readline_main=yes
8227    else
8228      echo "$as_me: failed program was:" >&5
8229    cat conftest.$ac_ext >&5
8230    ac_cv_lib_readline_main=no
8231    fi
8232    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8233    LIBS=$ac_check_lib_save_LIBS
8234    fi
8235    echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
8236    echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
8237    if test $ac_cv_lib_readline_main = yes; then
8238      cat >>confdefs.h <<\_ACEOF
8239  #define HAVE_READLINE 1  #define HAVE_READLINE 1
8240  EOF  _ACEOF
8241    
8242                  TLIBS="$TLIBS -lreadline -lncurses"                  TLIBS="$TLIBS -lreadline -lncurses"
8243                  RL_OBJS=gcl_readline.o                  RL_OBJS=gcl_readline.o
8244                  RL_LIB=lsp/gcl_readline.o                  RL_LIB=lsp/gcl_readline.o
 else  
   echo "$ac_t""no" 1>&6  
8245  fi  fi
8246    
8247  fi  fi
# Line 4721  fi Line 8249  fi
8249    
8250    
8251    
8252  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
8253  echo "configure:4726: checking For network code for nsocket.c" >&5  echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6
8254  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8255  #line 4728 "configure"  #line $LINENO "configure"
8256  #include "confdefs.h"  #include "confdefs.h"
8257    
8258  #include <sys/time.h>  #include <sys/time.h>
# Line 4735  cat > conftest.$ac_ext <<EOF Line 8263  cat > conftest.$ac_ext <<EOF
8263  #include <fcntl.h>  #include <fcntl.h>
8264  #include <stdio.h>  #include <stdio.h>
8265    
8266  /************* for the sockets ******************/  /************* for the sockets ******************/
8267  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */  #include <sys/socket.h>         /* struct sockaddr, SOCK_STREAM, ... */
8268  #ifndef NO_UNAME  #ifndef NO_UNAME
8269  #   include <sys/utsname.h>     /* uname system call. */  #   include <sys/utsname.h>     /* uname system call. */
# Line 4744  cat > conftest.$ac_ext <<EOF Line 8272  cat > conftest.$ac_ext <<EOF
8272  #include <arpa/inet.h>          /* inet_ntoa() */  #include <arpa/inet.h>          /* inet_ntoa() */
8273  #include <netdb.h>              /* gethostbyname() */  #include <netdb.h>              /* gethostbyname() */
8274    
8275  int main() {  #ifdef F77_DUMMY_MAIN
8276    #  ifdef __cplusplus
8277         extern "C"
8278    #  endif
8279       int F77_DUMMY_MAIN() { return 1; }
8280    #endif
8281    int
8282    main ()
8283    {
8284   connect(0,(struct sockaddr *)0,0);   connect(0,(struct sockaddr *)0,0);
8285      gethostbyname("jil");      gethostbyname("jil");
8286      socket(AF_INET, SOCK_STREAM, 0);      socket(AF_INET, SOCK_STREAM, 0);
8287            
8288  ; return 0; }    ;
8289  EOF    return 0;
8290  if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8291    rm -rf conftest*  _ACEOF
8292    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext conftest$ac_exeext
8293    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294      (eval $ac_link) 2>&5
8295      ac_status=$?
8296      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297      (exit $ac_status); } &&
8298             { ac_try='test -s conftest$ac_exeext'
8299      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300      (eval $ac_try) 2>&5
8301      ac_status=$?
8302      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303      (exit $ac_status); }; }; then
8304      cat >>confdefs.h <<\_ACEOF
8305  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
8306  EOF  _ACEOF
8307    
8308   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8309    echo "${ECHO_T}yes" >&6
8310  else  else
8311    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8312    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8313    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8314    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8315  fi  fi
8316  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8317    
8318    
8319  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for listen using fcntl" >&5
8320  echo "configure:4772: checking check for listen using fcntl" >&5  echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6
8321  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8322  #line 4774 "configure"  #line $LINENO "configure"
8323  #include "confdefs.h"  #include "confdefs.h"
8324  #include <stdio.h>  #include <stdio.h>
8325  #include <fcntl.h>  #include <fcntl.h>
8326    
8327  int main() {  #ifdef F77_DUMMY_MAIN
8328    #  ifdef __cplusplus
8329         extern "C"
8330    #  endif
8331       int F77_DUMMY_MAIN() { return 1; }
8332    #endif
8333    int
8334    main ()
8335    {
8336  FILE *fp=fopen("configure.in","r");  FILE *fp=fopen("configure.in","r");
8337    int orig;    int orig;
8338    orig = fcntl(fileno(fp), F_GETFL);    orig = fcntl(fileno(fp), F_GETFL);
8339    if (! (orig & O_NONBLOCK )) return 0;    if (! (orig & O_NONBLOCK )) return 0;
8340    
8341  ; return 0; }    ;
8342  EOF    return 0;
8343  if { (eval echo configure:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8344    rm -rf conftest*  _ACEOF
8345    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8346    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347      (eval $ac_compile) 2>&5
8348      ac_status=$?
8349      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350      (exit $ac_status); } &&
8351             { ac_try='test -s conftest.$ac_objext'
8352      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353      (eval $ac_try) 2>&5
8354      ac_status=$?
8355      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356      (exit $ac_status); }; }; then
8357      cat >>confdefs.h <<\_ACEOF
8358  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
8359  EOF  _ACEOF
8360    
8361   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8362    echo "${ECHO_T}yes" >&6
8363  else  else
8364    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8365    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8366    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8367    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8368  fi  fi
8369  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8370    
8371    
8372    
8373    
8374  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for profil" >&5
8375  echo "configure:4806: checking for profil" >&5  echo $ECHO_N "checking for profil... $ECHO_C" >&6
8376  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if test "${ac_cv_func_profil+set}" = set; then
8377    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8378  else  else
8379    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8380  #line 4811 "configure"  #line $LINENO "configure"
8381  #include "confdefs.h"  #include "confdefs.h"
8382  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8383      which can conflict with char profil(); below.  */      which can conflict with char profil (); below.  */
8384  #include <assert.h>  #include <assert.h>
8385  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8386    #ifdef __cplusplus
8387    extern "C"
8388    #endif
8389  /* 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
8390      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8391  char profil();  char profil ();
8392    char (*f) ();
8393  int main() {  
8394    #ifdef F77_DUMMY_MAIN
8395    #  ifdef __cplusplus
8396         extern "C"
8397    #  endif
8398       int F77_DUMMY_MAIN() { return 1; }
8399    #endif
8400    int
8401    main ()
8402    {
8403  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8404      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8405      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8406  #if defined (__stub_profil) || defined (__stub___profil)  #if defined (__stub_profil) || defined (__stub___profil)
8407  choke me  choke me
8408  #else  #else
8409  profil();  f = profil;
8410  #endif  #endif
8411    
8412  ; return 0; }    ;
8413  EOF    return 0;
8414  if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8415    rm -rf conftest*  _ACEOF
8416    eval "ac_cv_func_profil=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8417  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8419    cat conftest.$ac_ext >&5    ac_status=$?
8420    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421    eval "ac_cv_func_profil=no"    (exit $ac_status); } &&
8422  fi           { ac_try='test -s conftest$ac_exeext'
8423  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424  fi    (eval $ac_try) 2>&5
8425      ac_status=$?
8426  if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8428      ac_cv_func_profil=yes
8429    else
8430      echo "$as_me: failed program was:" >&5
8431    cat conftest.$ac_ext >&5
8432    ac_cv_func_profil=no
8433    fi
8434    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8435    fi
8436    echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5
8437    echo "${ECHO_T}$ac_cv_func_profil" >&6
8438    if test $ac_cv_func_profil = yes; then
8439    :    :
8440  else  else
8441    echo "$ac_t""no" 1>&6    cat >>confdefs.h <<\_ACEOF
 cat >> confdefs.h <<\EOF  
8442  #define NO_PROFILE 1  #define NO_PROFILE 1
8443  EOF  _ACEOF
8444    
8445  fi  fi
8446    
8447    
8448  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for setenv" >&5
8449  echo "configure:4859: checking for setenv" >&5  echo $ECHO_N "checking for setenv... $ECHO_C" >&6
8450  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if test "${ac_cv_func_setenv+set}" = set; then
8451    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8452  else  else
8453    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8454  #line 4864 "configure"  #line $LINENO "configure"
8455  #include "confdefs.h"  #include "confdefs.h"
8456  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8457      which can conflict with char setenv(); below.  */      which can conflict with char setenv (); below.  */
8458  #include <assert.h>  #include <assert.h>
8459  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8460    #ifdef __cplusplus
8461    extern "C"
8462    #endif
8463  /* 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
8464      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8465  char setenv();  char setenv ();
8466    char (*f) ();
8467  int main() {  
8468    #ifdef F77_DUMMY_MAIN
8469    #  ifdef __cplusplus
8470         extern "C"
8471    #  endif
8472       int F77_DUMMY_MAIN() { return 1; }
8473    #endif
8474    int
8475    main ()
8476    {
8477  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8478      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8479      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8480  #if defined (__stub_setenv) || defined (__stub___setenv)  #if defined (__stub_setenv) || defined (__stub___setenv)
8481  choke me  choke me
8482  #else  #else
8483  setenv();  f = setenv;
8484  #endif  #endif
8485    
8486  ; return 0; }    ;
8487  EOF    return 0;
8488  if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8489    rm -rf conftest*  _ACEOF
8490    eval "ac_cv_func_setenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8491  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8493    cat conftest.$ac_ext >&5    ac_status=$?
8494    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495    eval "ac_cv_func_setenv=no"    (exit $ac_status); } &&
8496  fi           { ac_try='test -s conftest$ac_exeext'
8497  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498  fi    (eval $ac_try) 2>&5
8499      ac_status=$?
8500  if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8502    cat >> confdefs.h <<\EOF    ac_cv_func_setenv=yes
8503    else
8504      echo "$as_me: failed program was:" >&5
8505    cat conftest.$ac_ext >&5
8506    ac_cv_func_setenv=no
8507    fi
8508    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509    fi
8510    echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
8511    echo "${ECHO_T}$ac_cv_func_setenv" >&6
8512    if test $ac_cv_func_setenv = yes; then
8513      cat >>confdefs.h <<\_ACEOF
8514  #define HAVE_SETENV 1  #define HAVE_SETENV 1
8515  EOF  _ACEOF
8516    
8517  else  else
8518    echo "$ac_t""no" 1>&6    no_setenv=1
 no_setenv=1  
8519  fi  fi
8520    
8521    
8522  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
8523  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for putenv" >&5
8524  echo "configure:4913: checking for putenv" >&5  echo $ECHO_N "checking for putenv... $ECHO_C" >&6
8525  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if test "${ac_cv_func_putenv+set}" = set; then
8526    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8527  else  else
8528    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8529  #line 4918 "configure"  #line $LINENO "configure"
8530  #include "confdefs.h"  #include "confdefs.h"
8531  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8532      which can conflict with char putenv(); below.  */      which can conflict with char putenv (); below.  */
8533  #include <assert.h>  #include <assert.h>
8534  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8535    #ifdef __cplusplus
8536    extern "C"
8537    #endif
8538  /* 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
8539      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8540  char putenv();  char putenv ();
8541    char (*f) ();
8542  int main() {  
8543    #ifdef F77_DUMMY_MAIN
8544    #  ifdef __cplusplus
8545         extern "C"
8546    #  endif
8547       int F77_DUMMY_MAIN() { return 1; }
8548    #endif
8549    int
8550    main ()
8551    {
8552  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8553      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8554      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8555  #if defined (__stub_putenv) || defined (__stub___putenv)  #if defined (__stub_putenv) || defined (__stub___putenv)
8556  choke me  choke me
8557  #else  #else
8558  putenv();  f = putenv;
8559  #endif  #endif
8560    
8561  ; return 0; }    ;
8562  EOF    return 0;
8563  if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8564    rm -rf conftest*  _ACEOF
8565    eval "ac_cv_func_putenv=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8566  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8567    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8568    cat conftest.$ac_ext >&5    ac_status=$?
8569    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570    eval "ac_cv_func_putenv=no"    (exit $ac_status); } &&
8571  fi           { ac_try='test -s conftest$ac_exeext'
8572  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573  fi    (eval $ac_try) 2>&5
8574      ac_status=$?
8575  if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8577    cat >> confdefs.h <<\EOF    ac_cv_func_putenv=yes
8578    else
8579      echo "$as_me: failed program was:" >&5
8580    cat conftest.$ac_ext >&5
8581    ac_cv_func_putenv=no
8582    fi
8583    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8584    fi
8585    echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
8586    echo "${ECHO_T}$ac_cv_func_putenv" >&6
8587    if test $ac_cv_func_putenv = yes; then
8588      cat >>confdefs.h <<\_ACEOF
8589  #define HAVE_PUTENV 1  #define HAVE_PUTENV 1
8590  EOF  _ACEOF
8591    
 else  
   echo "$ac_t""no" 1>&6  
8592  fi  fi
8593    
8594    
8595  fi  fi
8596    
8597  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for _cleanup" >&5
8598  echo "configure:4967: checking for _cleanup" >&5  echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6
8599  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if test "${ac_cv_func__cleanup+set}" = set; then
8600    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8601  else  else
8602    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
8603  #line 4972 "configure"  #line $LINENO "configure"
8604  #include "confdefs.h"  #include "confdefs.h"
8605  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8606      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup (); below.  */
8607  #include <assert.h>  #include <assert.h>
8608  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8609    #ifdef __cplusplus
8610    extern "C"
8611    #endif
8612  /* 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
8613      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8614  char _cleanup();  char _cleanup ();
8615    char (*f) ();
8616  int main() {  
8617    #ifdef F77_DUMMY_MAIN
8618    #  ifdef __cplusplus
8619         extern "C"
8620    #  endif
8621       int F77_DUMMY_MAIN() { return 1; }
8622    #endif
8623    int
8624    main ()
8625    {
8626  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
8627      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
8628      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
8629  #if defined (__stub__cleanup) || defined (__stub____cleanup)  #if defined (__stub__cleanup) || defined (__stub____cleanup)
8630  choke me  choke me
8631  #else  #else
8632  _cleanup();  f = _cleanup;
8633  #endif  #endif
8634    
8635  ; return 0; }    ;
8636  EOF    return 0;
8637  if { (eval echo configure:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
8638    rm -rf conftest*  _ACEOF
8639    eval "ac_cv_func__cleanup=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
8640  else  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
8642    cat conftest.$ac_ext >&5    ac_status=$?
8643    rm -rf conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644    eval "ac_cv_func__cleanup=no"    (exit $ac_status); } &&
8645  fi           { ac_try='test -s conftest$ac_exeext'
8646  rm -f conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  fi    (eval $ac_try) 2>&5
8648      ac_status=$?
8649  if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
8651    cat >> confdefs.h <<\EOF    ac_cv_func__cleanup=yes
8652    else
8653      echo "$as_me: failed program was:" >&5
8654    cat conftest.$ac_ext >&5
8655    ac_cv_func__cleanup=no
8656    fi
8657    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8658    fi
8659    echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5
8660    echo "${ECHO_T}$ac_cv_func__cleanup" >&6
8661    if test $ac_cv_func__cleanup = yes; then
8662      cat >>confdefs.h <<\_ACEOF
8663  #define USE_CLEANUP 1  #define USE_CLEANUP 1
8664  EOF  _ACEOF
8665    
 else  
   echo "$ac_t""no" 1>&6  
8666  fi  fi
8667    
8668    
8669  gcl_ok=no  gcl_ok=no
8670    
8671  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8672  #line 5021 "configure"  #line $LINENO "configure"
8673  #include "confdefs.h"  #include "confdefs.h"
8674  #include <ctype.h>  #include <ctype.h>
8675  EOF  
8676    _ACEOF
8677  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8678    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then    egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then
   rm -rf conftest*  
8679    gcl_ok=yes    gcl_ok=yes
8680  else  else
   rm -rf conftest*  
8681    gcl_ok=noo    gcl_ok=noo
8682  fi  fi
8683  rm -f conftest*  rm -f conftest*
8684    
8685  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
8686  cat >> confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
8687  #define ENDIAN_ALREADY_DEFINED 1  #define ENDIAN_ALREADY_DEFINED 1
8688  EOF  _ACEOF
8689    
8690  fi  fi
8691    
# Line 5044  fi Line 8695  fi
8695    
8696    
8697  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
8698  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
8699  echo "configure:5049: 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
8700    
8701  case $system in  case $system in
8702         OSF*)         OSF*)
8703          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8704  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8705  EOF  _ACEOF
8706    
8707          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8708    echo "${ECHO_T}FIONBIO" >&6
8709          ;;          ;;
8710      SunOS-4*)      SunOS-4*)
8711          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8712  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8713  EOF  _ACEOF
8714    
8715          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8716    echo "${ECHO_T}FIONBIO" >&6
8717          ;;          ;;
8718      ULTRIX-4.*)      ULTRIX-4.*)
8719          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8720  #define USE_FIONBIO 1  #define USE_FIONBIO 1
8721  EOF  _ACEOF
8722    
8723          echo "$ac_t""FIONBIO" 1>&6          echo "$as_me:$LINENO: result: FIONBIO" >&5
8724    echo "${ECHO_T}FIONBIO" >&6
8725          ;;          ;;
8726      *)      *)
8727          echo "$ac_t""O_NONBLOCK" 1>&6          echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
8728    echo "${ECHO_T}O_NONBLOCK" >&6
8729          ;;          ;;
8730  esac  esac
8731    
8732    
8733  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5
8734  echo "configure:5080: checking check for SV_ONSTACK" >&5  echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6
8735  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8736  #line 5082 "configure"  #line $LINENO "configure"
8737  #include "confdefs.h"  #include "confdefs.h"
8738  #include <signal.h>  #include <signal.h>
8739  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
8740    
8741  int main() {  #ifdef F77_DUMMY_MAIN
8742    #  ifdef __cplusplus
8743         extern "C"
8744    #  endif
8745       int F77_DUMMY_MAIN() { return 1; }
8746    #endif
8747    int
8748    main ()
8749    {
8750    
8751  ; return 0; }    ;
8752  EOF    return 0;
8753  if { (eval echo configure:5091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8754    rm -rf conftest*  _ACEOF
8755    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8756    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757      (eval $ac_compile) 2>&5
8758      ac_status=$?
8759      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760      (exit $ac_status); } &&
8761             { ac_try='test -s conftest.$ac_objext'
8762      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763      (eval $ac_try) 2>&5
8764      ac_status=$?
8765      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766      (exit $ac_status); }; }; then
8767      cat >>confdefs.h <<\_ACEOF
8768  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
8769  EOF  _ACEOF
8770    
8771    
8772   echo "$ac_t""yes" 1>&6   echo "$as_me:$LINENO: result: yes" >&5
8773    echo "${ECHO_T}yes" >&6
8774  else  else
8775    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8776    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8777    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8778    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8779  fi  fi
8780  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8781    
8782  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGSYS" >&5
8783  echo "configure:5108: checking check for SIGSYS" >&5  echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6
8784  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8785  #line 5110 "configure"  #line $LINENO "configure"
8786  #include "confdefs.h"  #include "confdefs.h"
8787  #include <signal.h>  #include <signal.h>
8788  int joe=SIGSYS;  int joe=SIGSYS;
8789    
8790  int main() {  #ifdef F77_DUMMY_MAIN
8791    #  ifdef __cplusplus
8792         extern "C"
8793    #  endif
8794       int F77_DUMMY_MAIN() { return 1; }
8795    #endif
8796    int
8797    main ()
8798    {
8799    
8800  ; return 0; }    ;
8801  EOF    return 0;
8802  if { (eval echo configure:5119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8803    rm -rf conftest*  _ACEOF
8804    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8805    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806      (eval $ac_compile) 2>&5
8807      ac_status=$?
8808      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809      (exit $ac_status); } &&
8810             { ac_try='test -s conftest.$ac_objext'
8811      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812      (eval $ac_try) 2>&5
8813      ac_status=$?
8814      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815      (exit $ac_status); }; }; then
8816      cat >>confdefs.h <<\_ACEOF
8817  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
8818  EOF  _ACEOF
8819    
8820    
8821     echo "$as_me:$LINENO: result: yes" >&5
8822   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8823  else  else
8824    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8825    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8826    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8827    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8828  fi  fi
8829  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8830    
8831    
8832  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking check for SIGEMT" >&5
8833  echo "configure:5137: checking check for SIGEMT" >&5  echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6
8834  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
8835  #line 5139 "configure"  #line $LINENO "configure"
8836  #include "confdefs.h"  #include "confdefs.h"
8837  #include <signal.h>  #include <signal.h>
8838  int joe=SIGEMT;  int joe=SIGEMT;
8839    
8840  int main() {  #ifdef F77_DUMMY_MAIN
8841    #  ifdef __cplusplus
8842         extern "C"
8843    #  endif
8844       int F77_DUMMY_MAIN() { return 1; }
8845    #endif
8846    int
8847    main ()
8848    {
8849    
8850  ; return 0; }    ;
8851  EOF    return 0;
8852  if { (eval echo configure:5148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
8853    rm -rf conftest*  _ACEOF
8854    cat >> confdefs.h <<\EOF  rm -f conftest.$ac_objext
8855    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8856      (eval $ac_compile) 2>&5
8857      ac_status=$?
8858      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859      (exit $ac_status); } &&
8860             { ac_try='test -s conftest.$ac_objext'
8861      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862      (eval $ac_try) 2>&5
8863      ac_status=$?
8864      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865      (exit $ac_status); }; }; then
8866      cat >>confdefs.h <<\_ACEOF
8867  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
8868  EOF  _ACEOF
8869    
8870    
8871     echo "$as_me:$LINENO: result: yes" >&5
8872   echo "$ac_t""yes" 1>&6  echo "${ECHO_T}yes" >&6
8873  else  else
8874    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8875    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
8876    rm -rf conftest*  echo "$as_me:$LINENO: result: no" >&5
8877    echo "$ac_t""no" 1>&6  echo "${ECHO_T}no" >&6
8878  fi  fi
8879  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
8880    
8881    
8882    
8883    
8884  #if test $use = "386-linux" ; then  #if test $use = "386-linux" ; then
8885          for ac_hdr in asm/sigcontext.h  
8886    for ac_header in asm/sigcontext.h
8887  do  do
8888  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8890  echo "configure:5172: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
8891  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8892    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893      echo $ECHO_N "(cached) $ECHO_C" >&6
8894    fi
8895    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8896    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897    else
8898      # Is the header compilable?
8899    echo "$as_me:$LINENO: checking $ac_header usability" >&5
8900    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8901    cat >conftest.$ac_ext <<_ACEOF
8902    #line $LINENO "configure"
8903    #include "confdefs.h"
8904    $ac_includes_default
8905    #include <$ac_header>
8906    _ACEOF
8907    rm -f conftest.$ac_objext
8908    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909      (eval $ac_compile) 2>&5
8910      ac_status=$?
8911      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912      (exit $ac_status); } &&
8913             { ac_try='test -s conftest.$ac_objext'
8914      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915      (eval $ac_try) 2>&5
8916      ac_status=$?
8917      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918      (exit $ac_status); }; }; then
8919      ac_header_compiler=yes
8920    else
8921      echo "$as_me: failed program was:" >&5
8922    cat conftest.$ac_ext >&5
8923    ac_header_compiler=no
8924    fi
8925    rm -f conftest.$ac_objext conftest.$ac_ext
8926    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8927    echo "${ECHO_T}$ac_header_compiler" >&6
8928    
8929    # Is the header present?
8930    echo "$as_me:$LINENO: checking $ac_header presence" >&5
8931    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8932    cat >conftest.$ac_ext <<_ACEOF
8933    #line $LINENO "configure"
8934    #include "confdefs.h"
8935    #include <$ac_header>
8936    _ACEOF
8937    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8938      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8939      ac_status=$?
8940      egrep -v '^ *\+' conftest.er1 >conftest.err
8941      rm -f conftest.er1
8942      cat conftest.err >&5
8943      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944      (exit $ac_status); } >/dev/null; then
8945      if test -s conftest.err; then
8946        ac_cpp_err=$ac_c_preproc_warn_flag
8947      else
8948        ac_cpp_err=
8949      fi
8950  else  else
8951    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
8952  #line 5177 "configure"  fi
8953  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
8954  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:5182: \"$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"  
8955  else  else
8956    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
8957    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8958    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
8959  fi  fi
8960  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
8961    echo "$ac_t""yes" 1>&6  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8962      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo "${ECHO_T}$ac_header_preproc" >&6
8963    cat >> confdefs.h <<EOF  
8964  #define $ac_tr_hdr 1  # So?  What about this header?
8965  EOF  case $ac_header_compiler:$ac_header_preproc in
8966      yes:no )
8967        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8968    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8969        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8970    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8971      no:yes )
8972        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8973    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8974        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8975    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8976        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8977    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8978    esac
8979    echo "$as_me:$LINENO: checking for $ac_header" >&5
8980    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8981    if eval "test \"\${$as_ac_Header+set}\" = set"; then
8982      echo $ECHO_N "(cached) $ECHO_C" >&6
8983  else  else
8984    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
8985  fi  fi
8986    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8987    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8988    
8989    fi
8990    if test `eval echo '${'$as_ac_Header'}'` = yes; then
8991      cat >>confdefs.h <<_ACEOF
8992    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993    _ACEOF
8994    
8995    fi
8996    
8997  done  done
8998    
8999          for ac_hdr in asm/signal.h  
9000    for ac_header in asm/signal.h
9001  do  do
9002  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9003  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9004  echo "configure:5212: checking for $ac_hdr" >&5    echo "$as_me:$LINENO: checking for $ac_header" >&5
9005  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9006    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9007      echo $ECHO_N "(cached) $ECHO_C" >&6
9008    fi
9009    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9010    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9011    else
9012      # Is the header compilable?
9013    echo "$as_me:$LINENO: checking $ac_header usability" >&5
9014    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9015    cat >conftest.$ac_ext <<_ACEOF
9016    #line $LINENO "configure"
9017    #include "confdefs.h"
9018    $ac_includes_default
9019    #include <$ac_header>
9020    _ACEOF
9021    rm -f conftest.$ac_objext
9022    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9023      (eval $ac_compile) 2>&5
9024      ac_status=$?
9025      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026      (exit $ac_status); } &&
9027             { ac_try='test -s conftest.$ac_objext'
9028      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029      (eval $ac_try) 2>&5
9030      ac_status=$?
9031      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032      (exit $ac_status); }; }; then
9033      ac_header_compiler=yes
9034    else
9035      echo "$as_me: failed program was:" >&5
9036    cat conftest.$ac_ext >&5
9037    ac_header_compiler=no
9038    fi
9039    rm -f conftest.$ac_objext conftest.$ac_ext
9040    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9041    echo "${ECHO_T}$ac_header_compiler" >&6
9042    
9043    # Is the header present?
9044    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9045    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9046    cat >conftest.$ac_ext <<_ACEOF
9047    #line $LINENO "configure"
9048    #include "confdefs.h"
9049    #include <$ac_header>
9050    _ACEOF
9051    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9052      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9053      ac_status=$?
9054      egrep -v '^ *\+' conftest.er1 >conftest.err
9055      rm -f conftest.er1
9056      cat conftest.err >&5
9057      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058      (exit $ac_status); } >/dev/null; then
9059      if test -s conftest.err; then
9060        ac_cpp_err=$ac_c_preproc_warn_flag
9061      else
9062        ac_cpp_err=
9063      fi
9064  else  else
9065    cat > conftest.$ac_ext <<EOF    ac_cpp_err=yes
9066  #line 5217 "configure"  fi
9067  #include "confdefs.h"  if test -z "$ac_cpp_err"; then
9068  #include <$ac_hdr>    ac_header_preproc=yes
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:5222: \"$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"  
9069  else  else
9070    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
9071    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
9072    rm -rf conftest*    ac_header_preproc=no
   eval "ac_cv_header_$ac_safe=no"  
9073  fi  fi
9074  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
9075  fi  echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9076  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "${ECHO_T}$ac_header_preproc" >&6
9077    echo "$ac_t""yes" 1>&6  
9078      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  # So?  What about this header?
9079    cat >> confdefs.h <<EOF  case $ac_header_compiler:$ac_header_preproc in
9080  #define $ac_tr_hdr 1    yes:no )
9081  EOF      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9082    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9083        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9084    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9085      no:yes )
9086        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9089    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9090        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9091    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9092    esac
9093    echo "$as_me:$LINENO: checking for $ac_header" >&5
9094    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9095    if eval "test \"\${$as_ac_Header+set}\" = set"; then
9096      echo $ECHO_N "(cached) $ECHO_C" >&6
9097  else  else
9098    echo "$ac_t""no" 1>&6    eval "$as_ac_Header=$ac_header_preproc"
9099  fi  fi
9100    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9102    
9103    fi
9104    if test `eval echo '${'$as_ac_Header'}'` = yes; then
9105      cat >>confdefs.h <<_ACEOF
9106    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9107    _ACEOF
9108    
9109    fi
9110    
9111  done  done
9112    
9113          cat > conftest.$ac_ext <<EOF          cat >conftest.$ac_ext <<_ACEOF
9114  #line 5249 "configure"  #line $LINENO "configure"
9115  #include "confdefs.h"  #include "confdefs.h"
9116  #include <signal.h>  #include <signal.h>
9117                          long code;                            long code;
9118          
9119  int main() {  #ifdef F77_DUMMY_MAIN
9120    #  ifdef __cplusplus
9121         extern "C"
9122    #  endif
9123       int F77_DUMMY_MAIN() { return 1; }
9124    #endif
9125    int
9126    main ()
9127    {
9128    
9129          void *p = ((void *)(((struct sigcontext_struct *)(&code))));          void *p = ((void *)(((struct sigcontext_struct *)(&code))));
9130          
9131  ; return 0; }    ;
9132  EOF    return 0;
9133  if { (eval echo configure:5260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
9134    rm -rf conftest*  _ACEOF
9135      rm -f conftest.$ac_objext
9136    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137      (eval $ac_compile) 2>&5
9138      ac_status=$?
9139      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140      (exit $ac_status); } &&
9141             { ac_try='test -s conftest.$ac_objext'
9142      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143      (eval $ac_try) 2>&5
9144      ac_status=$?
9145      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146      (exit $ac_status); }; }; then
9147    
9148          sigcontext_struct_works=1;          sigcontext_struct_works=1;
9149          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9150  #define SIGNAL_H_HAS_SIGCONTEXT 1  #define SIGNAL_H_HAS_SIGCONTEXT 1
9151  EOF  _ACEOF
9152    
9153            echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5
9154    echo "${ECHO_T}\"sigcontext in signal.h\"" >&6
9155    
         echo "$ac_t"""sigcontext in signal.h"" 1>&6  
         
9156  else  else
9157    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9158    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
9159    rm -rf conftest*  sigcontext_struct_works=0;
9160    sigcontext_struct_works=0;           echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5
9161           echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6  echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6
9162          
9163  fi  fi
9164  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
9165         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
9166         cat > conftest.$ac_ext <<EOF         cat >conftest.$ac_ext <<_ACEOF
9167  #line 5281 "configure"  #line $LINENO "configure"
9168  #include "confdefs.h"  #include "confdefs.h"
9169  #include <signal.h>  #include <signal.h>
9170               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H
9171               #include <asm/sigcontext.h>               #include <asm/sigcontext.h>
9172               #endif               #endif
9173               #ifdef HAVE_ASM_SIGNAL_H                         #ifdef HAVE_ASM_SIGNAL_H
9174               #include <asm/signal.h>               #include <asm/signal.h>
9175               #endif               #endif
9176               long code;               long code;
9177              
9178  int main() {  #ifdef F77_DUMMY_MAIN
9179    #  ifdef __cplusplus
9180         extern "C"
9181    #  endif
9182       int F77_DUMMY_MAIN() { return 1; }
9183    #endif
9184    int
9185    main ()
9186    {
9187    
9188          void *p = ((void *)(((struct sigcontext *)(&code))));          void *p = ((void *)(((struct sigcontext *)(&code))));
9189            
9190  ; return 0; }    ;
9191  EOF    return 0;
9192  if { (eval echo configure:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
9193    rm -rf conftest*  _ACEOF
9194      rm -f conftest.$ac_objext
9195    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196      (eval $ac_compile) 2>&5
9197      ac_status=$?
9198      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199      (exit $ac_status); } &&
9200             { ac_try='test -s conftest.$ac_objext'
9201      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202      (eval $ac_try) 2>&5
9203      ac_status=$?
9204      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205      (exit $ac_status); }; }; then
9206    
9207          sigcontext_works=1 ;          sigcontext_works=1 ;
9208          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9209  #define HAVE_SIGCONTEXT 1  #define HAVE_SIGCONTEXT 1
9210  EOF  _ACEOF
9211    
9212            echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5
9213    echo "${ECHO_T}\"use struct sigcontext\"" >&6
9214    
         echo "$ac_t"""use struct sigcontext"" 1>&6  
           
9215  else  else
9216    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9217    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
9218    rm -rf conftest*  
9219              sigcontext_works=0 ;
9220          sigcontext_works=0 ;  
       
9221  fi  fi
9222  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
9223    
9224    
9225         fi         fi
9226  #       echo 'foo() {}' > conftest1.c  #       echo 'foo() {}' > conftest1.c
9227  #       $CC -S conftest1.c  #       $CC -S conftest1.c
9228  #       use_underscore=0          #       use_underscore=0
9229  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi  #       if fgrep _foo conftest1.s ; then use_underscore=1 ; fi
9230  #       if test $use_underscore = 0 ; then  #       if test $use_underscore = 0 ; then
9231  #            MPI_FILE=mpi-386_no_under.o  #            MPI_FILE=mpi-386_no_under.o
# Line 5336  rm -f conftest* Line 9243  rm -f conftest*
9243    
9244  # 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.
9245  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
9246  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
9247  echo "configure:5341: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9248  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if test "${ac_cv_path_EMACS+set}" = set; then
9249    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9250  else  else
9251    case "$EMACS" in    case $EMACS in
9252    /*)    [\\/]* | ?:[\\/]*)
9253    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.
9254    ;;    ;;
   ?:/*)                    
   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.  
   ;;  
9255    *)    *)
9256    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257    ac_dummy="$PATH"  for as_dir in $PATH
9258    for ac_dir in $ac_dummy; do  do
9259      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
9260      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
9261        ac_cv_path_EMACS="$ac_dir/$ac_word"    for ac_exec_ext in '' $ac_executable_extensions; do
9262        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263      fi      ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
9264    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9265    IFS="$ac_save_ifs"      break 2
9266      fi
9267    done
9268    done
9269    
9270    ;;    ;;
9271  esac  esac
9272  fi  fi
9273  EMACS="$ac_cv_path_EMACS"  EMACS=$ac_cv_path_EMACS
9274    
9275  if test -n "$EMACS"; then  if test -n "$EMACS"; then
9276    echo "$ac_t""$EMACS" 1>&6    echo "$as_me:$LINENO: result: $EMACS" >&5
9277    echo "${ECHO_T}$EMACS" >&6
9278  else  else
9279    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
9280    echo "${ECHO_T}no" >&6
9281  fi  fi
9282    
9283    
# Line 5384  cat >> conftest.el <<EOF Line 9295  cat >> conftest.el <<EOF
9295    (message ans))    (message ans))
9296  EOF  EOF
9297    
9298  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs site lisp directory" >&5
9299  echo "configure:5389: checking emacs site lisp directory" >&5  echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6
9300  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then
9301          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 `
9302  else  else
9303          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
9304  fi  fi
9305  echo "$ac_t""$EMACS_SITE_LISP" 1>&6  echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5
9306    echo "${ECHO_T}$EMACS_SITE_LISP" >&6
9307    
9308    
9309  # check for where the emacs site lisp default.el is  # check for where the emacs site lisp default.el is
# Line 5406  cat >> conftest.el <<EOF Line 9318  cat >> conftest.el <<EOF
9318    (message ans))    (message ans))
9319  EOF  EOF
9320    
9321  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs default.el" >&5
9322  echo "configure:5411: checking emacs default.el" >&5  echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6
9323  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
9324          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 `
9325  else  else
# Line 5418  if  test -f "${EMACS_DEFAULT_EL}"  ; the Line 9330  if  test -f "${EMACS_DEFAULT_EL}"  ; the
9330       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el       EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
9331    fi    fi
9332  fi  fi
9333  echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6  echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5
9334    echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6
9335    
9336    
9337    
# Line 5429  cat >> conftest.el <<EOF Line 9342  cat >> conftest.el <<EOF
9342  (let ((ans "") file (tem Info-default-directory-list))  (let ((ans "") file (tem Info-default-directory-list))
9343   (while tem   (while tem
9344     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))     (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
9345            (setq ans (file-name-as-directory (car tem)))                    (setq ans (file-name-as-directory (car tem)))
9346            (setq tem nil) ))            (setq tem nil) ))
9347     (setq tem (cdr tem)))     (setq tem (cdr tem)))
9348    (message ans))    (message ans))
9349  EOF  EOF
9350    
9351  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking emacs info/dir" >&5
9352  echo "configure:5440: checking emacs info/dir" >&5  echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6
9353  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
9354      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
9355  else  else
# Line 5450  if test -f /usr/info/dir ; then Line 9363  if test -f /usr/info/dir ; then
9363  else true;  else true;
9364  fi  fi
9365  fi  fi
9366  echo "$ac_t""$INFO_DIR" 1>&6  echo "$as_me:$LINENO: result: $INFO_DIR" >&5
9367    echo "${ECHO_T}$INFO_DIR" >&6
9368    
9369    
9370  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for tcl/tk" >&5
9371  echo "configure:5458: checking for tcl/tk" >&5  echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6
9372    
9373    
9374  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 5464  cat >> conftest.tcl <<EOF Line 9378  cat >> conftest.tcl <<EOF
9378  set dir [set tcl_library]  set dir [set tcl_library]
9379  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
9380        puts  [set dir]        puts  [set dir]
9381        exit              exit
9382    }    }
9383  set dir [file dirname [set tcl_library]]  set dir [file dirname [set tcl_library]]
9384  if { [file exists [file join [set dir] tclConfig.sh]] } {  if { [file exists [file join [set dir] tclConfig.sh]] } {
# Line 5476  EOF Line 9390  EOF
9390    
9391  # 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.
9392  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
9393  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
9394  echo "configure:5481: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9395  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if test "${ac_cv_prog_TCLSH+set}" = set; then
9396    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9397  else  else
9398    if test -n "$TCLSH"; then    if test -n "$TCLSH"; then
9399    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.    ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9400  else  else
9401    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402    ac_dummy="$PATH"  for as_dir in $PATH
9403    for ac_dir in $ac_dummy; do  do
9404      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
9405      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
9406        ac_cv_prog_TCLSH="tclsh"    for ac_exec_ext in '' $ac_executable_extensions; do
9407        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9408      fi      ac_cv_prog_TCLSH="tclsh"
9409    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9410    IFS="$ac_save_ifs"      break 2
9411      fi
9412    done
9413    done
9414    
9415    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"    test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9416  fi  fi
9417  fi  fi
9418  TCLSH="$ac_cv_prog_TCLSH"  TCLSH=$ac_cv_prog_TCLSH
9419  if test -n "$TCLSH"; then  if test -n "$TCLSH"; then
9420    echo "$ac_t""$TCLSH" 1>&6    echo "$as_me:$LINENO: result: $TCLSH" >&5
9421    echo "${ECHO_T}$TCLSH" >&6
9422  else  else
9423    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
9424    echo "${ECHO_T}no" >&6
9425  fi  fi
9426    
9427  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})  #AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH})
# Line 5567  if test -f ${TK_CONFIG_PREFIX}/../includ Line 9487  if test -f ${TK_CONFIG_PREFIX}/../includ
9487    else    else
9488    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then    if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9489      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9490    fi        fi
9491  fi  fi
9492  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then  if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9493    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include    TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
# Line 5576  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 9496  if test -f ${TCL_CONFIG_PREFIX}/../inclu
9496      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}      TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9497    fi    fi
9498  fi  fi
9499  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for main in -llieee" >&5
9500  echo "configure:5581: checking for main in -llieee" >&5  echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6
9501  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_lieee_main+set}" = set; then
9502  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  
9503  else  else
9504    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
9505  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
9506  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
9507  #line 5589 "configure"  #line $LINENO "configure"
9508  #include "confdefs.h"  #include "confdefs.h"
9509    
 int main() {  
 main()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:5596: \"$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"  
9510    
9511  fi  #ifdef F77_DUMMY_MAIN
9512  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  #  ifdef __cplusplus
9513    echo "$ac_t""yes" 1>&6       extern "C"
9514    #  endif
9515       int F77_DUMMY_MAIN() { return 1; }
9516    #endif
9517    int
9518    main ()
9519    {
9520    main ();
9521      ;
9522      return 0;
9523    }
9524    _ACEOF
9525    rm -f conftest.$ac_objext conftest$ac_exeext
9526    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527      (eval $ac_link) 2>&5
9528      ac_status=$?
9529      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530      (exit $ac_status); } &&
9531             { ac_try='test -s conftest$ac_exeext'
9532      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533      (eval $ac_try) 2>&5
9534      ac_status=$?
9535      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536      (exit $ac_status); }; }; then
9537      ac_cv_lib_lieee_main=yes
9538    else
9539      echo "$as_me: failed program was:" >&5
9540    cat conftest.$ac_ext >&5
9541    ac_cv_lib_lieee_main=no
9542    fi
9543    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9544    LIBS=$ac_check_lib_save_LIBS
9545    fi
9546    echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5
9547    echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6
9548    if test $ac_cv_lib_lieee_main = yes; then
9549    have_ieee=1    have_ieee=1
9550  else  else
9551    echo "$ac_t""no" 1>&6    have_ieee=0
 have_ieee=0  
9552  fi  fi
9553    
9554  if test "$have_ieee" = "0" ; then  if test "$have_ieee" = "0" ; then
# Line 5641  fi Line 9579  fi
9579    
9580    
9581  if test -d "${TK_CONFIG_PREFIX}" ; then  if test -d "${TK_CONFIG_PREFIX}" ; then
9582  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
9583    echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6
9584  else  else
9585  echo "$ac_t""not found" 1>&6  echo "$as_me:$LINENO: result: not found" >&5
9586    echo "${ECHO_T}not found" >&6
9587  fi  fi
9588    
9589  NOTIFY=$enable_notify  NOTIFY=$enable_notify
9590    
9591    
9592          
9593    
9594    
9595  # for sgbc the mprotect capabilities.  # for sgbc the mprotect capabilities.
9596    
9597  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
9598    
9599  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking alloca" >&5
9600  echo "configure:5661: checking alloca" >&5  echo $ECHO_N "checking alloca... $ECHO_C" >&6
9601  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
9602    gcl_ok=no    gcl_ok=no
9603  else  else
9604    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9605  #line 5666 "configure"  #line $LINENO "configure"
9606  #include "confdefs.h"  #include "confdefs.h"
9607  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
9608  EOF  _ACEOF
9609  if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9610  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611      (eval $ac_link) 2>&5
9612      ac_status=$?
9613      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9615      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616      (eval $ac_try) 2>&5
9617      ac_status=$?
9618      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619      (exit $ac_status); }; }; then
9620    :    :
9621  else  else
9622    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9623    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9624    rm -fr conftest*  cat conftest.$ac_ext >&5
9625    gcl_ok=yes  ( exit $ac_status )
9626    gcl_ok=yes
9627  fi  fi
9628  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9629  fi  fi
   
9630  if test $gcl_ok = yes ; then  if test $gcl_ok = yes ; then
9631      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9632      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9633        cat >>confdefs.h <<\_ACEOF
9634  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9635  EOF  _ACEOF
9636    
9637  else  else
9638    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
9639    gcl_ok=no    gcl_ok=no
9640  else  else
9641    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
9642  #line 5693 "configure"  #line $LINENO "configure"
9643  #include "confdefs.h"  #include "confdefs.h"
9644  #include <alloca.h>  #include <alloca.h>
9645    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
9646  EOF  _ACEOF
9647  if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
9648  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649      (eval $ac_link) 2>&5
9650      ac_status=$?
9651      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9653      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654      (eval $ac_try) 2>&5
9655      ac_status=$?
9656      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657      (exit $ac_status); }; }; then
9658    :    :
9659  else  else
9660    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
9661    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
9662    rm -fr conftest*  cat conftest.$ac_ext >&5
9663    gcl_ok=yes  ( exit $ac_status )
9664    gcl_ok=yes
9665  fi  fi
9666  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9667  fi  fi
   
9668   if test $gcl_ok = yes ; then   if test $gcl_ok = yes ; then
9669      echo "$ac_t""yes" 1>&6      echo "$as_me:$LINENO: result: yes" >&5
9670      cat >> confdefs.h <<\EOF  echo "${ECHO_T}yes" >&6
9671        cat >>confdefs.h <<\_ACEOF
9672  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9673  EOF  _ACEOF
9674    
9675      cat >> confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
9676  #define NEED_ALLOCA_H 1  #define NEED_ALLOCA_H 1
9677  EOF  _ACEOF
9678    
9679   fi   fi
9680  fi  fi
9681  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
9682    echo "${ECHO_T}no" >&6 ; fi
9683    
9684    
9685    
# Line 5734  if test $gcl_ok = no ; then     echo "$a Line 9695  if test $gcl_ok = no ; then     echo "$a
9695  # dlopen etc  # dlopen etc
9696  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)  # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
9697  # 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
9698  #  #
9699    
9700  # what machine this is, and include then a machine specific hdr.  # what machine this is, and include then a machine specific hdr.
9701  # and machine specific defs.  # and machine specific defs.
# Line 5754  if test $gcl_ok = no ; then     echo "$a Line 9715  if test $gcl_ok = no ; then     echo "$a
9715    
9716  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
9717  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
9718  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
9719  echo "configure:5759: checking Checking for buggy gcc version from redhat" >&5  echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6
9720  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
9721     then     then
9722          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
9723          cat >> confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
9724  #define BROKEN_O4_OPT 1  #define BROKEN_O4_OPT 1
9725  EOF  _ACEOF
9726    
9727    
           
9728          echo ODIR_DEBUG=-O >> makedefsafter          echo ODIR_DEBUG=-O >> makedefsafter
9729          echo >> makedefsafter          echo >> makedefsafter
9730          echo "$ac_t""yes .. turning off -O4" 1>&6          echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5
9731    echo "${ECHO_T}yes .. turning off -O4" >&6
9732     else     else
9733          echo "$ac_t""no" 1>&6          echo "$as_me:$LINENO: result: no" >&5
9734  fi  echo "${ECHO_T}no" >&6
9735    fi
9736    
9737  LIBS="$LIBS $TLIBS"  LIBS="$LIBS $TLIBS"
9738    
# Line 5788  O2FLAGS=$TO2FLAGS Line 9751  O2FLAGS=$TO2FLAGS
9751    
9752  if test -f h/$use.defs  ; then  if test -f h/$use.defs  ; then
9753    
9754      
9755    trap '' 1 2 15    ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp"
9756  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
9757  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
9758  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
9759  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
9760  # 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
9761    # want to keep, you may remove or edit it.
9762  #  #
9763  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
9764  # 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.  
9765  #  #
9766  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
9767    # loading this file, other *unset* `ac_cv_foo' will be assigned the
9768    # following values.
9769    
9770    _ACEOF
9771    
9772  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
9773  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
9774  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
9775  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
9776  # 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.
9777  (set) 2>&1 |  {
9778    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
9779    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
9780      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
9781      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
9782      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
9783        -e "s/'/'\\\\''/g" \        sed -n \
9784        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
9785      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9786    *)        ;;
9787      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
9788      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.
9789      ;;        sed -n \
9790    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9791  if cmp -s $cache_file confcache; then        ;;
9792    :      esac;
9793  else  } |
9794      sed '
9795         t clear
9796         : clear
9797         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9798         t end
9799         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9800         : end' >>confcache
9801    if cmp -s $cache_file confcache; then :; else
9802    if test -w $cache_file; then    if test -w $cache_file; then
9803      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9804      cat confcache > $cache_file      cat confcache >$cache_file
9805    else    else
9806      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
9807    fi    fi
9808  fi  fi
9809  rm -f confcache  rm -f confcache
9810    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
9811  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
9812  # Let make expand exec_prefix.  # Let make expand exec_prefix.
9813  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9814    
9815  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
9816  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9817  # 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
9818    # (actually we leave an empty line to preserve line numbers).
9819  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
9820    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
9821    s/:*\$(srcdir):*/:/;
9822    s/:*\${srcdir}:*/:/;
9823    s/:*@srcdir@:*/:/;
9824    s/^\([^=]*=[    ]*\):*/\1/;
9825    s/:*$//;
9826    s/^[^=]*=[      ]*$//;
9827    }'
9828  fi  fi
9829    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
9830  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
9831    
 # Without the "./", some shells look in PATH for config.status.  
 : ${CONFIG_STATUS=./config.status}  
9832    
9833  echo creating $CONFIG_STATUS  : ${CONFIG_STATUS=./config.status}
9834  rm -f $CONFIG_STATUS  ac_clean_files_save=$ac_clean_files
9835  cat > $CONFIG_STATUS <<EOF  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9836  #! /bin/sh  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9837  # Generated automatically by configure.  echo "$as_me: creating $CONFIG_STATUS" >&6;}
9838    cat >$CONFIG_STATUS <<_ACEOF
9839    #! $SHELL
9840    # Generated by $as_me.
9841  # 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  
 #  
9842  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
9843  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
9844    
9845  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
9846  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
9847    _ACEOF
9848    
9849    cat >>$CONFIG_STATUS <<\_ACEOF
9850    
9851    ## --------------------- ##
9852    ## M4sh Initialization.  ##
9853    ## --------------------- ##
9854    
9855    # Be Bourne compatible
9856    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9857      emulate sh
9858      NULLCMD=:
9859    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9860      set -o posix
9861    fi
9862    
9863    # NLS nuisances.
9864    # Support unset when possible.
9865    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9866      as_unset=unset
9867    else
9868      as_unset=false
9869    fi
9870    
9871    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9872        { $as_unset LANG || test "${LANG+set}" != set; } ||
9873          { LANG=C; export LANG; }
9874    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9875        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9876          { LC_ALL=C; export LC_ALL; }
9877    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9878        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9879          { LC_TIME=C; export LC_TIME; }
9880    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9881        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9882          { LC_CTYPE=C; export LC_CTYPE; }
9883    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9884        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9885          { LANGUAGE=C; export LANGUAGE; }
9886    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9887        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9888          { LC_COLLATE=C; export LC_COLLATE; }
9889    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9890        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9891          { LC_NUMERIC=C; export LC_NUMERIC; }
9892    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9893        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9894          { LC_MESSAGES=C; export LC_MESSAGES; }
9895    
9896    
9897    # Name of the executable.
9898    as_me=`(basename "$0") 2>/dev/null ||
9899    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9900             X"$0" : 'X\(//\)$' \| \
9901             X"$0" : 'X\(/\)$' \| \
9902             .     : '\(.\)' 2>/dev/null ||
9903    echo X/"$0" |
9904        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9905              /^X\/\(\/\/\)$/{ s//\1/; q; }
9906              /^X\/\(\/\).*/{ s//\1/; q; }
9907              s/.*/./; q'`
9908    
9909    # PATH needs CR, and LINENO needs CR and PATH.
9910    # Avoid depending upon Character Ranges.
9911    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9912    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9913    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9914    as_cr_digits='0123456789'
9915    as_cr_alnum=$as_cr_Letters$as_cr_digits
9916    
9917    # The user is always right.
9918    if test "${PATH_SEPARATOR+set}" != set; then
9919      echo "#! /bin/sh" >conftest.sh
9920      echo  "exit 0"   >>conftest.sh
9921      chmod +x conftest.sh
9922      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9923        PATH_SEPARATOR=';'
9924      else
9925        PATH_SEPARATOR=:
9926      fi
9927      rm -f conftest.sh
9928    fi
9929    
9930    
9931      as_lineno_1=$LINENO
9932      as_lineno_2=$LINENO
9933      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9934      test "x$as_lineno_1" != "x$as_lineno_2" &&
9935      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9936      # Find who we are.  Look in the path if we contain no path at all
9937      # relative or not.
9938      case $0 in
9939        *[\\/]* ) as_myself=$0 ;;
9940        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941    for as_dir in $PATH
9942    do
9943      IFS=$as_save_IFS
9944      test -z "$as_dir" && as_dir=.
9945      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9946    done
9947    
9948           ;;
9949      esac
9950      # We did not find ourselves, most probably we were run as `sh COMMAND'
9951      # in which case we are not to be found in the path.
9952      if test "x$as_myself" = x; then
9953        as_myself=$0
9954      fi
9955      if test ! -f "$as_myself"; then
9956        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9957    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9958       { (exit 1); exit 1; }; }
9959      fi
9960      case $CONFIG_SHELL in
9961      '')
9962        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9964    do
9965      IFS=$as_save_IFS
9966      test -z "$as_dir" && as_dir=.
9967      for as_base in sh bash ksh sh5; do
9968             case $as_dir in
9969             /*)
9970               if ("$as_dir/$as_base" -c '
9971      as_lineno_1=$LINENO
9972      as_lineno_2=$LINENO
9973      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9974      test "x$as_lineno_1" != "x$as_lineno_2" &&
9975      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9976                 CONFIG_SHELL=$as_dir/$as_base
9977                 export CONFIG_SHELL
9978                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9979               fi;;
9980             esac
9981           done
9982    done
9983    ;;
9984      esac
9985    
9986      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9987      # uniformly replaced by the line number.  The first 'sed' inserts a
9988      # line-number line before each line; the second 'sed' does the real
9989      # work.  The second script uses 'N' to pair each line-number line
9990      # with the numbered line, and appends trailing '-' during
9991      # substitution so that $LINENO is not a special case at line end.
9992      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9993      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9994      sed '=' <$as_myself |
9995        sed '
9996          N
9997          s,$,-,
9998          : loop
9999          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10000          t loop
10001          s,-$,,
10002          s,^['$as_cr_digits']*\n,,
10003        ' >$as_me.lineno &&
10004      chmod +x $as_me.lineno ||
10005        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10006    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10007       { (exit 1); exit 1; }; }
10008    
10009      # Don't try to exec as it changes $[0], causing all sort of problems
10010      # (the dirname of $[0] is not the place where we might find the
10011      # original and so on.  Autoconf is especially sensible to this).
10012      . ./$as_me.lineno
10013      # Exit status is that of the last command.
10014      exit
10015    }
10016    
10017    
10018    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10019      *c*,-n*) ECHO_N= ECHO_C='
10020    ' ECHO_T='      ' ;;
10021      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10022      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10023    esac
10024    
10025    if expr a : '\(a\)' >/dev/null 2>&1; then
10026      as_expr=expr
10027    else
10028      as_expr=false
10029    fi
10030    
10031    rm -f conf$$ conf$$.exe conf$$.file
10032    echo >conf$$.file
10033    if ln -s conf$$.file conf$$ 2>/dev/null; then
10034      # We could just check for DJGPP; but this test a) works b) is more generic
10035      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10036      if test -f conf$$.exe; then
10037        # Don't use ln at all; we don't have any links
10038        as_ln_s='cp -p'
10039      else
10040        as_ln_s='ln -s'
10041      fi
10042    elif ln conf$$.file conf$$ 2>/dev/null; then
10043      as_ln_s=ln
10044    else
10045      as_ln_s='cp -p'
10046    fi
10047    rm -f conf$$ conf$$.exe conf$$.file
10048    
10049    as_executable_p="test -f"
10050    
10051    # Sed expression to map a string onto a valid CPP name.
10052    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10053    
10054    # Sed expression to map a string onto a valid variable name.
10055    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10056    
10057    
10058    # IFS
10059    # We need space, tab and new line, in precisely that order.
10060    as_nl='
10061    '
10062    IFS="   $as_nl"
10063    
10064    # CDPATH.
10065    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10066    
10067    exec 6>&1
10068    
10069    # Open the log real soon, to keep \$[0] and so on meaningful, and to
10070    # report actual input values of CONFIG_FILES etc. instead of their
10071    # values after options handling.  Logging --version etc. is OK.
10072    exec 5>>config.log
10073    {
10074      echo
10075      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10076    ## Running $as_me. ##
10077    _ASBOX
10078    } >&5
10079    cat >&5 <<_CSEOF
10080    
10081    This file was extended by $as_me, which was
10082    generated by GNU Autoconf 2.53.  Invocation command line was
10083    
10084      CONFIG_FILES    = $CONFIG_FILES
10085      CONFIG_HEADERS  = $CONFIG_HEADERS
10086      CONFIG_LINKS    = $CONFIG_LINKS
10087      CONFIG_COMMANDS = $CONFIG_COMMANDS
10088      $ $0 $@
10089    
10090    _CSEOF
10091    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10092    echo >&5
10093    _ACEOF
10094    
10095    # Files that config.status was made for.
10096    if test -n "$ac_config_files"; then
10097      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10098    fi
10099    
10100    if test -n "$ac_config_headers"; then
10101      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10102    fi
10103    
10104    if test -n "$ac_config_links"; then
10105      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10106    fi
10107    
10108    if test -n "$ac_config_commands"; then
10109      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10110    fi
10111    
10112    cat >>$CONFIG_STATUS <<\_ACEOF
10113    
10114    ac_cs_usage="\
10115    \`$as_me' instantiates files from templates according to the
10116    current configuration.
10117    
10118    Usage: $0 [OPTIONS] [FILE]...
10119    
10120      -h, --help       print this help, then exit
10121      -V, --version    print version number, then exit
10122      -d, --debug      don't remove temporary files
10123          --recheck    update $as_me by reconfiguring in the same conditions
10124      --file=FILE[:TEMPLATE]
10125                       instantiate the configuration file FILE
10126      --header=FILE[:TEMPLATE]
10127                       instantiate the configuration header FILE
10128    
10129    Configuration files:
10130    $config_files
10131    
10132    Configuration headers:
10133    $config_headers
10134    
10135    Report bugs to <bug-autoconf@gnu.org>."
10136    _ACEOF
10137    
10138    cat >>$CONFIG_STATUS <<_ACEOF
10139    ac_cs_version="\\
10140    config.status
10141    configured by $0, generated by GNU Autoconf 2.53,
10142      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10143    
10144    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10145    Free Software Foundation, Inc.
10146    This config.status script is free software; the Free Software Foundation
10147    gives unlimited permission to copy, distribute and modify it."
10148    srcdir=$srcdir
10149    _ACEOF
10150    
10151    cat >>$CONFIG_STATUS <<\_ACEOF
10152    # If no file are specified by the user, then we need to provide default
10153    # value.  By we need to know if files were specified by the user.
10154    ac_need_defaults=:
10155    while test $# != 0
10156  do  do
10157    case "\$ac_option" in    case $1 in
10158      --*=*)
10159        ac_option=`expr "x$1" : 'x\([^=]*\)='`
10160        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10161        shift
10162        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10163        shift
10164        ;;
10165      -*);;
10166      *) # This is not an option, so the user has probably given explicit
10167         # arguments.
10168         ac_need_defaults=false;;
10169      esac
10170    
10171      case $1 in
10172      # Handling of the options.
10173    _ACEOF
10174    cat >>$CONFIG_STATUS <<_ACEOF
10175    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10176      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"
10177      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10178    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  _ACEOF
10179      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\_ACEOF
10180      exit 0 ;;    --version | --vers* | -V )
10181    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
10182      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
10183    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
10184        { { echo "$as_me:$LINENO: error: ambiguous option: $1
10185    Try \`$0 --help' for more information." >&5
10186    echo "$as_me: error: ambiguous option: $1
10187    Try \`$0 --help' for more information." >&2;}
10188       { (exit 1); exit 1; }; };;
10189      --help | --hel | -h )
10190        echo "$ac_cs_usage"; exit 0 ;;
10191      --debug | --d* | -d )
10192        debug=: ;;
10193      --file | --fil | --fi | --f )
10194        shift
10195        CONFIG_FILES="$CONFIG_FILES $1"
10196        ac_need_defaults=false;;
10197      --header | --heade | --head | --hea )
10198        shift
10199        CONFIG_HEADERS="$CONFIG_HEADERS $1"
10200        ac_need_defaults=false;;
10201    
10202      # This is an error.
10203      -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10204    Try \`$0 --help' for more information." >&5
10205    echo "$as_me: error: unrecognized option: $1
10206    Try \`$0 --help' for more information." >&2;}
10207       { (exit 1); exit 1; }; } ;;
10208    
10209      *) ac_config_targets="$ac_config_targets $1" ;;
10210    
10211    esac    esac
10212      shift
10213  done  done
10214    
10215  ac_given_srcdir=$srcdir  _ACEOF
10216    
10217    
10218    
 trap 'rm -fr `echo "makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp  h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
10219    
 # 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%@VERSION@%$VERSION%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%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
 s%@AWK@%$AWK%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@GMP@%$GMP%g  
 s%@GMPDIR@%$GMPDIR%g  
 s%@X_CFLAGS@%$X_CFLAGS%g  
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g  
 s%@X_LIBS@%$X_LIBS%g  
 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g  
 s%@BUILD_BFD@%$BUILD_BFD%g  
 s%@LITTLE_END@%$LITTLE_END%g  
 s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  
 s%@FLISP@%$FLISP%g  
 s%@SYSTEM@%$SYSTEM%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%@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%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g  
 s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g  
 s%@NIFLAGS@%$NIFLAGS%g  
 s%@O3FLAGS@%$O3FLAGS%g  
 s%@O2FLAGS@%$O2FLAGS%g  
 s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g  
 s%@use@%$use%g  
10220    
10221    cat >>$CONFIG_STATUS <<\_ACEOF
10222    for ac_config_target in $ac_config_targets
10223    do
10224      case "$ac_config_target" in
10225      # Handling of arguments.
10226      "makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;;
10227      "windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
10228      "windows/gcl.ansi.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.ansi.iss" ;;
10229      "windows/install.ansi.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.ansi.lsp" ;;
10230      "windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
10231      "h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
10232      *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10233    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10234       { (exit 1); exit 1; }; };;
10235      esac
10236    done
10237    
10238    # If the user did not use the arguments to specify the items to instantiate,
10239    # then the envvar interface is used.  Set only those that are not.
10240    # We use the long form for the default assignment because of an extremely
10241    # bizarre bug on SunOS 4.1.3.
10242    if $ac_need_defaults; then
10243      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10244      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10245    fi
10246    
10247    # Create a temporary directory, and hook for its removal unless debugging.
10248    $debug ||
10249    {
10250      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10251      trap '{ (exit 1); exit 1; }' 1 2 13 15
10252    }
10253    
10254    # Create a (secure) tmp directory for tmp files.
10255    : ${TMPDIR=/tmp}
10256    {
10257      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10258      test -n "$tmp" && test -d "$tmp"
10259    }  ||
10260    {
10261      tmp=$TMPDIR/cs$$-$RANDOM
10262      (umask 077 && mkdir $tmp)
10263    } ||
10264    {
10265       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10266       { (exit 1); exit 1; }
10267    }
10268    
10269    _ACEOF
10270    
10271    cat >>$CONFIG_STATUS <<_ACEOF
10272    
10273    #
10274    # CONFIG_FILES section.
10275    #
10276    
10277    # No need to generate the scripts if there are no CONFIG_FILES.
10278    # This happens for instance when ./config.status config.h
10279    if test -n "\$CONFIG_FILES"; then
10280      # Protect against being on the right side of a sed subst in config.status.
10281      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10282       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10283    s,@SHELL@,$SHELL,;t t
10284    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10285    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10286    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10287    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10288    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10289    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10290    s,@exec_prefix@,$exec_prefix,;t t
10291    s,@prefix@,$prefix,;t t
10292    s,@program_transform_name@,$program_transform_name,;t t
10293    s,@bindir@,$bindir,;t t
10294    s,@sbindir@,$sbindir,;t t
10295    s,@libexecdir@,$libexecdir,;t t
10296    s,@datadir@,$datadir,;t t
10297    s,@sysconfdir@,$sysconfdir,;t t
10298    s,@sharedstatedir@,$sharedstatedir,;t t
10299    s,@localstatedir@,$localstatedir,;t t
10300    s,@libdir@,$libdir,;t t
10301    s,@includedir@,$includedir,;t t
10302    s,@oldincludedir@,$oldincludedir,;t t
10303    s,@infodir@,$infodir,;t t
10304    s,@mandir@,$mandir,;t t
10305    s,@build_alias@,$build_alias,;t t
10306    s,@host_alias@,$host_alias,;t t
10307    s,@target_alias@,$target_alias,;t t
10308    s,@DEFS@,$DEFS,;t t
10309    s,@ECHO_C@,$ECHO_C,;t t
10310    s,@ECHO_N@,$ECHO_N,;t t
10311    s,@ECHO_T@,$ECHO_T,;t t
10312    s,@LIBS@,$LIBS,;t t
10313    s,@VERSION@,$VERSION,;t t
10314    s,@build@,$build,;t t
10315    s,@build_cpu@,$build_cpu,;t t
10316    s,@build_vendor@,$build_vendor,;t t
10317    s,@build_os@,$build_os,;t t
10318    s,@host@,$host,;t t
10319    s,@host_cpu@,$host_cpu,;t t
10320    s,@host_vendor@,$host_vendor,;t t
10321    s,@host_os@,$host_os,;t t
10322    s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t
10323    s,@CC@,$CC,;t t
10324    s,@CFLAGS@,$CFLAGS,;t t
10325    s,@LDFLAGS@,$LDFLAGS,;t t
10326    s,@CPPFLAGS@,$CPPFLAGS,;t t
10327    s,@ac_ct_CC@,$ac_ct_CC,;t t
10328    s,@EXEEXT@,$EXEEXT,;t t
10329    s,@OBJEXT@,$OBJEXT,;t t
10330    s,@CPP@,$CPP,;t t
10331    s,@AWK@,$AWK,;t t
10332    s,@MAKEINFO@,$MAKEINFO,;t t
10333    s,@GMP@,$GMP,;t t
10334    s,@GMPDIR@,$GMPDIR,;t t
10335    s,@X_CFLAGS@,$X_CFLAGS,;t t
10336    s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10337    s,@X_LIBS@,$X_LIBS,;t t
10338    s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10339    s,@BUILD_BFD@,$BUILD_BFD,;t t
10340    s,@LITTLE_END@,$LITTLE_END,;t t
10341    s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t
10342    s,@FLISP@,$FLISP,;t t
10343    s,@SYSTEM@,$SYSTEM,;t t
10344    s,@PAGEWIDTH@,$PAGEWIDTH,;t t
10345    s,@RL_OBJS@,$RL_OBJS,;t t
10346    s,@RL_LIB@,$RL_LIB,;t t
10347    s,@NO_PROFILE@,$NO_PROFILE,;t t
10348    s,@HAVE_SETENV@,$HAVE_SETENV,;t t
10349    s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
10350    s,@USE_CLEANUP@,$USE_CLEANUP,;t t
10351    s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t
10352    s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t
10353    s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t
10354    s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t
10355    s,@EMACS@,$EMACS,;t t
10356    s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t
10357    s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t
10358    s,@INFO_DIR@,$INFO_DIR,;t t
10359    s,@TCLSH@,$TCLSH,;t t
10360    s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t
10361    s,@TK_LIBRARY@,$TK_LIBRARY,;t t
10362    s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
10363    s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
10364    s,@TK_INCLUDE@,$TK_INCLUDE,;t t
10365    s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
10366    s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
10367    s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
10368    s,@TK_XLIBSW@,$TK_XLIBSW,;t t
10369    s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
10370    s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
10371    s,@TCL_LIBS@,$TCL_LIBS,;t t
10372    s,@NOTIFY@,$NOTIFY,;t t
10373    s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t
10374    s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t
10375    s,@NIFLAGS@,$NIFLAGS,;t t
10376    s,@O3FLAGS@,$O3FLAGS,;t t
10377    s,@O2FLAGS@,$O2FLAGS,;t t
10378    s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t
10379    s,@use@,$use,;t t
10380  CEOF  CEOF
 EOF  
10381    
10382  cat >> $CONFIG_STATUS <<\EOF  _ACEOF
10383    
10384  # Split the substitutions into bite-sized pieces for seds with    cat >>$CONFIG_STATUS <<\_ACEOF
10385  # small command number limits, like on Digital OSF/1 and HP-UX.    # Split the substitutions into bite-sized pieces for seds with
10386  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.
10387  ac_file=1 # Number of current file.    ac_max_sed_lines=48
10388  ac_beg=1 # First line for current file.    ac_sed_frag=1 # Number of current file.
10389  ac_end=$ac_max_sed_cmds # Line after last line for current file.    ac_beg=1 # First line for current file.
10390  ac_more_lines=:    ac_end=$ac_max_sed_lines # Line after last line for current file.
10391  ac_sed_cmds=""    ac_more_lines=:
10392  while $ac_more_lines; do    ac_sed_cmds=
10393    if test $ac_beg -gt 1; then    while $ac_more_lines; do
10394      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file      if test $ac_beg -gt 1; then
10395    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"  
10396      else      else
10397        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10398      fi      fi
10399      ac_file=`expr $ac_file + 1`      if test ! -s $tmp/subs.frag; then
10400      ac_beg=$ac_end        ac_more_lines=false
10401      ac_end=`expr $ac_end + $ac_max_sed_cmds`      else
10402          # The purpose of the label and of the branching condition is to
10403          # speed up the sed processing (if there are no `@' at all, there
10404          # is no need to browse any of the substitutions).
10405          # These are the two extra sed commands mentioned above.
10406          (echo ':t
10407      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10408          if test -z "$ac_sed_cmds"; then
10409            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10410          else
10411            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10412          fi
10413          ac_sed_frag=`expr $ac_sed_frag + 1`
10414          ac_beg=$ac_end
10415          ac_end=`expr $ac_end + $ac_max_sed_lines`
10416        fi
10417      done
10418      if test -z "$ac_sed_cmds"; then
10419        ac_sed_cmds=cat
10420    fi    fi
10421  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
   
 cat >> $CONFIG_STATUS <<EOF  
10422    
10423  CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/gcl.ansi.iss windows/install.ansi.lsp windows/install.lsp "}  _ACEOF
10424  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10425  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  
10426    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10427    case "$ac_file" in    case $ac_file in
10428    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10429         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10430    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10431            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10432      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10433            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10434      * )   ac_file_in=$ac_file.in ;;
10435      esac
10436    
10437      # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10438      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10439    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10440             X"$ac_file" : 'X\(//\)[^/]' \| \
10441             X"$ac_file" : 'X\(//\)$' \| \
10442             X"$ac_file" : 'X\(/\)' \| \
10443             .     : '\(.\)' 2>/dev/null ||
10444    echo X"$ac_file" |
10445        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10446              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10447              /^X\(\/\/\)$/{ s//\1/; q; }
10448              /^X\(\/\).*/{ s//\1/; q; }
10449              s/.*/./; q'`
10450      { case "$ac_dir" in
10451      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10452      *)                      as_incr_dir=.;;
10453    esac
10454    as_dummy="$ac_dir"
10455    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10456      case $as_mkdir_dir in
10457        # Skip DOS drivespec
10458        ?:) as_incr_dir=$as_mkdir_dir ;;
10459        *)
10460          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10461          test -d "$as_incr_dir" ||
10462            mkdir "$as_incr_dir" ||
10463            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10464    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10465       { (exit 1); exit 1; }; }
10466        ;;
10467    esac    esac
10468    done; }
10469    
10470    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    ac_builddir=.
10471    
10472    # Remove last slash and all that follows it.  Not all systems have dirname.  if test "$ac_dir" != .; then
10473    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10474    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    # A "../" for each directory in $ac_dir_suffix.
10475      # The file is in a subdirectory.    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10476      test ! -d "$ac_dir" && mkdir "$ac_dir"  else
10477      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"    ac_dir_suffix= ac_top_builddir=
10478      # A "../" for each directory in $ac_dir_suffix.  fi
     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`  
   else  
     ac_dir_suffix= ac_dots=  
   fi  
10479    
10480    case "$ac_given_srcdir" in  case $srcdir in
10481    .)  srcdir=.    .)  # No --srcdir option.  We are building in place.
10482        if test -z "$ac_dots"; then top_srcdir=.      ac_srcdir=.
10483        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;      if test -z "$ac_top_builddir"; then
10484    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;         ac_top_srcdir=.
10485        else
10486           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10487        fi ;;
10488      [\\/]* | ?:[\\/]* )  # Absolute path.
10489        ac_srcdir=$srcdir$ac_dir_suffix;
10490        ac_top_srcdir=$srcdir ;;
10491    *) # Relative path.    *) # Relative path.
10492      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10493      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
10494    esac  esac
10495    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10496    # absolute.
10497    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10498    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10499    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10500    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10501    
10502    
   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  
10503    
10504    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
10505    sed -e "$ac_comsub      { echo "$as_me:$LINENO: creating $ac_file" >&5
10506  s%@configure_input@%$configure_input%g  echo "$as_me: creating $ac_file" >&6;}
10507  s%@srcdir@%$srcdir%g      rm -f "$ac_file"
10508  s%@top_srcdir@%$top_srcdir%g    fi
10509  " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file    # Let's still pretend it is `configure' which instantiates (i.e., don't
10510  fi; done    # use $as_me), people would be surprised to read:
10511  rm -f conftest.s*    #    /* config.h.  Generated by config.status.  */
10512      if test x"$ac_file" = x-; then
10513        configure_input=
10514      else
10515        configure_input="$ac_file.  "
10516      fi
10517      configure_input=$configure_input"Generated from `echo $ac_file_in |
10518                                         sed 's,.*/,,'` by configure."
10519    
10520      # First look for the input files in the build tree, otherwise in the
10521      # src tree.
10522      ac_file_inputs=`IFS=:
10523        for f in $ac_file_in; do
10524          case $f in
10525          -) echo $tmp/stdin ;;
10526          [\\/$]*)
10527             # Absolute (can't be DOS-style, as IFS=:)
10528             test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10529    echo "$as_me: error: cannot find input file: $f" >&2;}
10530       { (exit 1); exit 1; }; }
10531             echo $f;;
10532          *) # Relative
10533             if test -f "$f"; then
10534               # Build tree
10535               echo $f
10536             elif test -f "$srcdir/$f"; then
10537               # Source tree
10538               echo $srcdir/$f
10539             else
10540               # /dev/null tree
10541               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10542    echo "$as_me: error: cannot find input file: $f" >&2;}
10543       { (exit 1); exit 1; }; }
10544             fi;;
10545          esac
10546        done` || { (exit 1); exit 1; }
10547    _ACEOF
10548    cat >>$CONFIG_STATUS <<_ACEOF
10549      sed "$ac_vpsub
10550    $extrasub
10551    _ACEOF
10552    cat >>$CONFIG_STATUS <<\_ACEOF
10553    :t
10554    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10555    s,@configure_input@,$configure_input,;t t
10556    s,@srcdir@,$ac_srcdir,;t t
10557    s,@abs_srcdir@,$ac_abs_srcdir,;t t
10558    s,@top_srcdir@,$ac_top_srcdir,;t t
10559    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10560    s,@builddir@,$ac_builddir,;t t
10561    s,@abs_builddir@,$ac_abs_builddir,;t t
10562    s,@top_builddir@,$ac_top_builddir,;t t
10563    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10564    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10565      rm -f $tmp/stdin
10566      if test x"$ac_file" != x-; then
10567        mv $tmp/out $ac_file
10568      else
10569        cat $tmp/out
10570        rm -f $tmp/out
10571      fi
10572    
10573    done
10574    _ACEOF
10575    cat >>$CONFIG_STATUS <<\_ACEOF
10576    
10577    #
10578    # CONFIG_HEADER section.
10579    #
10580    
10581  # 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
10582  # 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.
10583  #  #
10584  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
10585  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10586  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
10587  ac_dC='\3'  ac_dC=' '
10588  ac_dD='%g'  ac_dD=',;t'
10589  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10590  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10591  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
10592  ac_uC=' '  ac_uC=' '
10593  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'  
10594    
10595  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  
10596    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10597    case "$ac_file" in    case $ac_file in
10598    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
10599         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
10600    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10601            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10602      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10603            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10604      * )   ac_file_in=$ac_file.in ;;
10605    esac    esac
10606    
10607    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10608    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  
10609    
10610  EOF    # First look for the input files in the build tree, otherwise in the
10611      # src tree.
10612  # Transform confdefs.h into a sed script conftest.vals that substitutes    ac_file_inputs=`IFS=:
10613  # the proper values into config.h.in to produce config.h.  And first:      for f in $ac_file_in; do
10614  # Protect against being on the right side of a sed subst in config.status.        case $f in
10615  # Protect against being in an unquoted here document in config.status.        -) echo $tmp/stdin ;;
10616  rm -f conftest.vals        [\\/$]*)
10617  cat > conftest.hdr <<\EOF           # Absolute (can't be DOS-style, as IFS=:)
10618  s/[\\&%]/\\&/g           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10619  s%[\\$`]%\\&%g  echo "$as_me: error: cannot find input file: $f" >&2;}
10620  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; }; }
10621  s%ac_d%ac_u%gp           echo $f;;
10622  s%ac_u%ac_e%gp        *) # Relative
10623  EOF           if test -f "$f"; then
10624  sed -n -f conftest.hdr confdefs.h > conftest.vals             # Build tree
10625  rm -f conftest.hdr             echo $f
10626             elif test -f "$srcdir/$f"; then
10627               # Source tree
10628               echo $srcdir/$f
10629             else
10630               # /dev/null tree
10631               { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10632    echo "$as_me: error: cannot find input file: $f" >&2;}
10633       { (exit 1); exit 1; }; }
10634             fi;;
10635          esac
10636        done` || { (exit 1); exit 1; }
10637      # Remove the trailing spaces.
10638      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10639    
10640    _ACEOF
10641    
10642    # Transform confdefs.h into two sed scripts, `conftest.defines' and
10643    # `conftest.undefs', that substitutes the proper values into
10644    # config.h.in to produce config.h.  The first handles `#define'
10645    # templates, and the second `#undef' templates.
10646    # And first: Protect against being on the right side of a sed subst in
10647    # config.status.  Protect against being in an unquoted here document
10648    # in config.status.
10649    rm -f conftest.defines conftest.undefs
10650    # Using a here document instead of a string reduces the quoting nightmare.
10651    # Putting comments in sed scripts is not portable.
10652    #
10653    # `end' is used to avoid that the second main sed command (meant for
10654    # 0-ary CPP macros) applies to n-ary macro definitions.
10655    # See the Autoconf documentation for `clear'.
10656    cat >confdef2sed.sed <<\_ACEOF
10657    s/[\\&,]/\\&/g
10658    s,[\\$`],\\&,g
10659    t clear
10660    : clear
10661    s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10662    t end
10663    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10664    : end
10665    _ACEOF
10666    # If some macros were called several times there might be several times
10667    # the same #defines, which is useless.  Nevertheless, we may not want to
10668    # sort them, since we want the *last* AC-DEFINE to be honored.
10669    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10670    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10671    rm -f confdef2sed.sed
10672    
10673  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
10674  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
10675  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
10676  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\_ACEOF
10677  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10678  EOF  _ACEOF
10679    
10680  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
10681  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
10682    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10683    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10684    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10685    echo '  :' >>$CONFIG_STATUS
10686    rm -f conftest.tail
10687    while grep . conftest.defines >/dev/null
10688    do
10689      # Write a limited-size here document to $tmp/defines.sed.
10690      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10691      # Speed up: don't consider the non `#define' lines.
10692      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10693      # Work around the forget-to-reset-the-flag bug.
10694      echo 't clr' >>$CONFIG_STATUS
10695      echo ': clr' >>$CONFIG_STATUS
10696      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10697      echo 'CEOF
10698      sed -f $tmp/defines.sed $tmp/in >$tmp/out
10699      rm -f $tmp/in
10700      mv $tmp/out $tmp/in
10701    ' >>$CONFIG_STATUS
10702      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10703      rm -f conftest.defines
10704      mv conftest.tail conftest.defines
10705    done
10706    rm -f conftest.defines
10707    echo '  fi # egrep' >>$CONFIG_STATUS
10708    echo >>$CONFIG_STATUS
10709    
10710    # Break up conftest.undefs because some shells have a limit on the size
10711    # of here documents, and old seds have small limits too (100 cmds).
10712    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10713  rm -f conftest.tail  rm -f conftest.tail
10714  while :  while grep . conftest.undefs >/dev/null
10715  do  do
10716    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
10717    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10718    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
10719    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10720    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
10721    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
10722      echo ': clr' >>$CONFIG_STATUS
10723      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10724    echo 'CEOF    echo 'CEOF
10725    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10726    rm -f conftest.in    rm -f $tmp/in
10727    mv conftest.out conftest.in    mv $tmp/out $tmp/in
10728  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
10729    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10730    rm -f conftest.vals    rm -f conftest.undefs
10731    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
10732  done  done
10733  rm -f conftest.vals  rm -f conftest.undefs
10734    
10735  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
10736    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
10737    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
10738    cat conftest.in >> conftest.h    #    /* config.h.  Generated by config.status.  */
10739    rm -f conftest.in    if test x"$ac_file" = x-; then
10740    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  
10741    else    else
10742      # 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  
10743    fi    fi
10744  fi; done    cat $tmp/in >>$tmp/config.h
10745      rm -f $tmp/in
10746      if test x"$ac_file" != x-; then
10747        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10748          { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10749    echo "$as_me: $ac_file is unchanged" >&6;}
10750        else
10751          ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10752    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10753             X"$ac_file" : 'X\(//\)[^/]' \| \
10754             X"$ac_file" : 'X\(//\)$' \| \
10755             X"$ac_file" : 'X\(/\)' \| \
10756             .     : '\(.\)' 2>/dev/null ||
10757    echo X"$ac_file" |
10758        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10759              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10760              /^X\(\/\/\)$/{ s//\1/; q; }
10761              /^X\(\/\).*/{ s//\1/; q; }
10762              s/.*/./; q'`
10763          { case "$ac_dir" in
10764      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10765      *)                      as_incr_dir=.;;
10766    esac
10767    as_dummy="$ac_dir"
10768    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10769      case $as_mkdir_dir in
10770        # Skip DOS drivespec
10771        ?:) as_incr_dir=$as_mkdir_dir ;;
10772        *)
10773          as_incr_dir=$as_incr_dir/$as_mkdir_dir
10774          test -d "$as_incr_dir" ||
10775            mkdir "$as_incr_dir" ||
10776            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10777    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10778       { (exit 1); exit 1; }; }
10779        ;;
10780      esac
10781    done; }
10782    
10783  EOF        rm -f $ac_file
10784  cat >> $CONFIG_STATUS <<EOF        mv $tmp/config.h $ac_file
10785        fi
10786      else
10787        cat $tmp/config.h
10788        rm -f $tmp/config.h
10789      fi
10790    done
10791    _ACEOF
10792    
10793  EOF  cat >>$CONFIG_STATUS <<\_ACEOF
 cat >> $CONFIG_STATUS <<\EOF  
10794    
10795  exit 0  { (exit 0); exit 0; }
10796  EOF  _ACEOF
10797  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
10798  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
10799  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
10800    
10801    # configure is writing to config.log, and then calls config.status.
10802    # config.status does its own redirection, appending to config.log.
10803    # Unfortunately, on DOS this fails, as config.log is still kept open
10804    # by configure, so config.status won't be able to write to it; its
10805    # output is simply discarded.  So we exec the FD to /dev/null,
10806    # effectively closing config.log, so it can be properly (re)opened and
10807    # appended to by config.status.  When coming back to configure, we
10808    # need to make the FD available again.
10809    if test "$no_create" != yes; then
10810      ac_cs_success=:
10811      exec 5>/dev/null
10812      $SHELL $CONFIG_STATUS || ac_cs_success=false
10813      exec 5>>config.log
10814      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10815      # would make configure fail if this is the last instruction.
10816      $ac_cs_success || { (exit 1); exit 1; }
10817    fi
10818    
10819    echo makedefc    echo makedefc
10820    cat makedefc    cat makedefc

Legend:
Removed from v.1.107.4.1.2.2.2.5  
changed lines
  Added in v.1.107.4.1.2.2.2.6

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