1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for readline 1.0.
4#
5# Report bugs to <clisp-list>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and clisp-list about
270$0: your system, including any error possibly output before
271$0: this message. Then install a modern shell, or manually
272$0: run the script under such a shell if you do have one."
273  fi
274  exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292  { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301  return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309  set +e
310  as_fn_set_status $1
311  exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320  case $as_dir in #(
321  -*) as_dir=./$as_dir;;
322  esac
323  test -d "$as_dir" || eval $as_mkdir_p || {
324    as_dirs=
325    while :; do
326      case $as_dir in #(
327      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328      *) as_qdir=$as_dir;;
329      esac
330      as_dirs="'$as_qdir' $as_dirs"
331      as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333	 X"$as_dir" : 'X\(//\)[^/]' \| \
334	 X"$as_dir" : 'X\(//\)$' \| \
335	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338	    s//\1/
339	    q
340	  }
341	  /^X\(\/\/\)[^/].*/{
342	    s//\1/
343	    q
344	  }
345	  /^X\(\/\/\)$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\).*/{
350	    s//\1/
351	    q
352	  }
353	  s/.*/./; q'`
354      test -d "$as_dir" && break
355    done
356    test -z "$as_dirs" || eval "mkdir $as_dirs"
357  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367  test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376  eval 'as_fn_append ()
377  {
378    eval $1+=\$2
379  }'
380else
381  as_fn_append ()
382  {
383    eval $1=\$$1\$2
384  }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393  eval 'as_fn_arith ()
394  {
395    as_val=$(( $* ))
396  }'
397else
398  as_fn_arith ()
399  {
400    as_val=`expr "$@" || test $? -eq 1`
401  }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412  as_status=$1; test $as_status -eq 0 && as_status=1
413  if test "$4"; then
414    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416  fi
417  $as_echo "$as_me: error: $2" >&2
418  as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422   test "X`expr 00001 : '.*\(...\)'`" = X001; then
423  as_expr=expr
424else
425  as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429  as_basename=basename
430else
431  as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435  as_dirname=dirname
436else
437  as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442	 X"$0" : 'X\(//\)$' \| \
443	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445    sed '/^.*\/\([^/][^/]*\)\/*$/{
446	    s//\1/
447	    q
448	  }
449	  /^X\/\(\/\/\)$/{
450	    s//\1/
451	    q
452	  }
453	  /^X\/\(\/\).*/{
454	    s//\1/
455	    q
456	  }
457	  s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467  as_lineno_1=$LINENO as_lineno_1a=$LINENO
468  as_lineno_2=$LINENO as_lineno_2a=$LINENO
469  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
472  sed -n '
473    p
474    /[$]LINENO/=
475  ' <$as_myself |
476    sed '
477      s/[$]LINENO.*/&-/
478      t lineno
479      b
480      :lineno
481      N
482      :loop
483      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484      t loop
485      s/-\n.*//
486    ' >$as_me.lineno &&
487  chmod +x "$as_me.lineno" ||
488    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491  # already done that, so ensure we don't try to do so again and fall
492  # in an infinite loop.  This has already happened in practice.
493  _as_can_reexec=no; export _as_can_reexec
494  # Don't try to exec as it changes $[0], causing all sort of problems
495  # (the dirname of $[0] is not the place where we might find the
496  # original and so on.  Autoconf is especially sensitive to this).
497  . "./$as_me.lineno"
498  # Exit status is that of the last command.
499  exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505  case `echo 'xy\c'` in
506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507  xy)  ECHO_C='\c';;
508  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509       ECHO_T='	';;
510  esac;;
511*)
512  ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517  rm -f conf$$.dir/conf$$.file
518else
519  rm -f conf$$.dir
520  mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523  if ln -s conf$$.file conf$$ 2>/dev/null; then
524    as_ln_s='ln -s'
525    # ... but there are two gotchas:
526    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528    # In both cases, we have to default to `cp -pR'.
529    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530      as_ln_s='cp -pR'
531  elif ln conf$$.file conf$$ 2>/dev/null; then
532    as_ln_s=ln
533  else
534    as_ln_s='cp -pR'
535  fi
536else
537  as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543  as_mkdir_p='mkdir -p "$as_dir"'
544else
545  test -d ./-p && rmdir ./-p
546  as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='readline'
581PACKAGE_TARNAME='readline'
582PACKAGE_VERSION='1.0'
583PACKAGE_STRING='readline 1.0'
584PACKAGE_BUGREPORT='clisp-list'
585PACKAGE_URL=''
586
587ac_unique_file="readline.lisp"
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626HOST_CPU_C_ABI
627HOST_CPU
628host_os
629host_vendor
630host_cpu
631host
632build_os
633build_vendor
634build_cpu
635build
636INCTERMCAP
637LIBTERMCAP
638EGREP
639GREP
640LN_S
641LN
642CPP
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
650CLISP_CPPFLAGS
651CLISP_CFLAGS
652CLISP_LIBS
653CLISP_FILES
654CLISP_LINKKIT
655CLISP_LIBDIR
656CLISP
657cl_cv_clisp
658CLISP_DECOLONIZE
659target_alias
660host_alias
661build_alias
662LIBS
663ECHO_T
664ECHO_N
665ECHO_C
666DEFS
667mandir
668localedir
669libdir
670psdir
671pdfdir
672dvidir
673htmldir
674infodir
675docdir
676oldincludedir
677includedir
678localstatedir
679sharedstatedir
680sysconfdir
681datadir
682datarootdir
683libexecdir
684sbindir
685bindir
686program_transform_name
687prefix
688exec_prefix
689PACKAGE_URL
690PACKAGE_BUGREPORT
691PACKAGE_STRING
692PACKAGE_VERSION
693PACKAGE_TARNAME
694PACKAGE_NAME
695PATH_SEPARATOR
696SHELL
697am__quote'
698ac_subst_files=''
699ac_user_opts='
700enable_option_checking
701with_clisp
702with_readline
703with_libtermcap_prefix
704with_gnu_ld
705enable_rpath
706with_libreadline_prefix
707'
708      ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714LIBS
715CPPFLAGS
716CPP'
717
718
719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
722ac_unrecognized_opts=
723ac_unrecognized_sep=
724# The variables have the same names as the options, with
725# dashes changed to underlines.
726cache_file=/dev/null
727exec_prefix=NONE
728no_create=
729no_recursion=
730prefix=NONE
731program_prefix=NONE
732program_suffix=NONE
733program_transform_name=s,x,x,
734silent=
735site=
736srcdir=
737verbose=
738x_includes=NONE
739x_libraries=NONE
740
741# Installation directory options.
742# These are left unexpanded so users can "make install exec_prefix=/foo"
743# and all the variables that are supposed to be based on exec_prefix
744# by default will actually change.
745# Use braces instead of parens because sh, perl, etc. also accept them.
746# (The list follows the same order as the GNU Coding Standards.)
747bindir='${exec_prefix}/bin'
748sbindir='${exec_prefix}/sbin'
749libexecdir='${exec_prefix}/libexec'
750datarootdir='${prefix}/share'
751datadir='${datarootdir}'
752sysconfdir='${prefix}/etc'
753sharedstatedir='${prefix}/com'
754localstatedir='${prefix}/var'
755includedir='${prefix}/include'
756oldincludedir='/usr/include'
757docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758infodir='${datarootdir}/info'
759htmldir='${docdir}'
760dvidir='${docdir}'
761pdfdir='${docdir}'
762psdir='${docdir}'
763libdir='${exec_prefix}/lib'
764localedir='${datarootdir}/locale'
765mandir='${datarootdir}/man'
766
767ac_prev=
768ac_dashdash=
769for ac_option
770do
771  # If the previous option needs an argument, assign it.
772  if test -n "$ac_prev"; then
773    eval $ac_prev=\$ac_option
774    ac_prev=
775    continue
776  fi
777
778  case $ac_option in
779  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780  *=)   ac_optarg= ;;
781  *)    ac_optarg=yes ;;
782  esac
783
784  # Accept the important Cygnus configure options, so we can diagnose typos.
785
786  case $ac_dashdash$ac_option in
787  --)
788    ac_dashdash=yes ;;
789
790  -bindir | --bindir | --bindi | --bind | --bin | --bi)
791    ac_prev=bindir ;;
792  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793    bindir=$ac_optarg ;;
794
795  -build | --build | --buil | --bui | --bu)
796    ac_prev=build_alias ;;
797  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798    build_alias=$ac_optarg ;;
799
800  -cache-file | --cache-file | --cache-fil | --cache-fi \
801  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802    ac_prev=cache_file ;;
803  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805    cache_file=$ac_optarg ;;
806
807  --config-cache | -C)
808    cache_file=config.cache ;;
809
810  -datadir | --datadir | --datadi | --datad)
811    ac_prev=datadir ;;
812  -datadir=* | --datadir=* | --datadi=* | --datad=*)
813    datadir=$ac_optarg ;;
814
815  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816  | --dataroo | --dataro | --datar)
817    ac_prev=datarootdir ;;
818  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820    datarootdir=$ac_optarg ;;
821
822  -disable-* | --disable-*)
823    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824    # Reject names that are not valid shell variable names.
825    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826      as_fn_error $? "invalid feature name: $ac_useropt"
827    ac_useropt_orig=$ac_useropt
828    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829    case $ac_user_opts in
830      *"
831"enable_$ac_useropt"
832"*) ;;
833      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834	 ac_unrecognized_sep=', ';;
835    esac
836    eval enable_$ac_useropt=no ;;
837
838  -docdir | --docdir | --docdi | --doc | --do)
839    ac_prev=docdir ;;
840  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841    docdir=$ac_optarg ;;
842
843  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844    ac_prev=dvidir ;;
845  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846    dvidir=$ac_optarg ;;
847
848  -enable-* | --enable-*)
849    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850    # Reject names that are not valid shell variable names.
851    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852      as_fn_error $? "invalid feature name: $ac_useropt"
853    ac_useropt_orig=$ac_useropt
854    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855    case $ac_user_opts in
856      *"
857"enable_$ac_useropt"
858"*) ;;
859      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860	 ac_unrecognized_sep=', ';;
861    esac
862    eval enable_$ac_useropt=\$ac_optarg ;;
863
864  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866  | --exec | --exe | --ex)
867    ac_prev=exec_prefix ;;
868  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870  | --exec=* | --exe=* | --ex=*)
871    exec_prefix=$ac_optarg ;;
872
873  -gas | --gas | --ga | --g)
874    # Obsolete; use --with-gas.
875    with_gas=yes ;;
876
877  -help | --help | --hel | --he | -h)
878    ac_init_help=long ;;
879  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880    ac_init_help=recursive ;;
881  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882    ac_init_help=short ;;
883
884  -host | --host | --hos | --ho)
885    ac_prev=host_alias ;;
886  -host=* | --host=* | --hos=* | --ho=*)
887    host_alias=$ac_optarg ;;
888
889  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890    ac_prev=htmldir ;;
891  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892  | --ht=*)
893    htmldir=$ac_optarg ;;
894
895  -includedir | --includedir | --includedi | --included | --include \
896  | --includ | --inclu | --incl | --inc)
897    ac_prev=includedir ;;
898  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899  | --includ=* | --inclu=* | --incl=* | --inc=*)
900    includedir=$ac_optarg ;;
901
902  -infodir | --infodir | --infodi | --infod | --info | --inf)
903    ac_prev=infodir ;;
904  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905    infodir=$ac_optarg ;;
906
907  -libdir | --libdir | --libdi | --libd)
908    ac_prev=libdir ;;
909  -libdir=* | --libdir=* | --libdi=* | --libd=*)
910    libdir=$ac_optarg ;;
911
912  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913  | --libexe | --libex | --libe)
914    ac_prev=libexecdir ;;
915  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916  | --libexe=* | --libex=* | --libe=*)
917    libexecdir=$ac_optarg ;;
918
919  -localedir | --localedir | --localedi | --localed | --locale)
920    ac_prev=localedir ;;
921  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922    localedir=$ac_optarg ;;
923
924  -localstatedir | --localstatedir | --localstatedi | --localstated \
925  | --localstate | --localstat | --localsta | --localst | --locals)
926    ac_prev=localstatedir ;;
927  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929    localstatedir=$ac_optarg ;;
930
931  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932    ac_prev=mandir ;;
933  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934    mandir=$ac_optarg ;;
935
936  -nfp | --nfp | --nf)
937    # Obsolete; use --without-fp.
938    with_fp=no ;;
939
940  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941  | --no-cr | --no-c | -n)
942    no_create=yes ;;
943
944  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946    no_recursion=yes ;;
947
948  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950  | --oldin | --oldi | --old | --ol | --o)
951    ac_prev=oldincludedir ;;
952  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955    oldincludedir=$ac_optarg ;;
956
957  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958    ac_prev=prefix ;;
959  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960    prefix=$ac_optarg ;;
961
962  -program-prefix | --program-prefix | --program-prefi | --program-pref \
963  | --program-pre | --program-pr | --program-p)
964    ac_prev=program_prefix ;;
965  -program-prefix=* | --program-prefix=* | --program-prefi=* \
966  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967    program_prefix=$ac_optarg ;;
968
969  -program-suffix | --program-suffix | --program-suffi | --program-suff \
970  | --program-suf | --program-su | --program-s)
971    ac_prev=program_suffix ;;
972  -program-suffix=* | --program-suffix=* | --program-suffi=* \
973  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974    program_suffix=$ac_optarg ;;
975
976  -program-transform-name | --program-transform-name \
977  | --program-transform-nam | --program-transform-na \
978  | --program-transform-n | --program-transform- \
979  | --program-transform | --program-transfor \
980  | --program-transfo | --program-transf \
981  | --program-trans | --program-tran \
982  | --progr-tra | --program-tr | --program-t)
983    ac_prev=program_transform_name ;;
984  -program-transform-name=* | --program-transform-name=* \
985  | --program-transform-nam=* | --program-transform-na=* \
986  | --program-transform-n=* | --program-transform-=* \
987  | --program-transform=* | --program-transfor=* \
988  | --program-transfo=* | --program-transf=* \
989  | --program-trans=* | --program-tran=* \
990  | --progr-tra=* | --program-tr=* | --program-t=*)
991    program_transform_name=$ac_optarg ;;
992
993  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994    ac_prev=pdfdir ;;
995  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996    pdfdir=$ac_optarg ;;
997
998  -psdir | --psdir | --psdi | --psd | --ps)
999    ac_prev=psdir ;;
1000  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001    psdir=$ac_optarg ;;
1002
1003  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004  | -silent | --silent | --silen | --sile | --sil)
1005    silent=yes ;;
1006
1007  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008    ac_prev=sbindir ;;
1009  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010  | --sbi=* | --sb=*)
1011    sbindir=$ac_optarg ;;
1012
1013  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015  | --sharedst | --shareds | --shared | --share | --shar \
1016  | --sha | --sh)
1017    ac_prev=sharedstatedir ;;
1018  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021  | --sha=* | --sh=*)
1022    sharedstatedir=$ac_optarg ;;
1023
1024  -site | --site | --sit)
1025    ac_prev=site ;;
1026  -site=* | --site=* | --sit=*)
1027    site=$ac_optarg ;;
1028
1029  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030    ac_prev=srcdir ;;
1031  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032    srcdir=$ac_optarg ;;
1033
1034  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035  | --syscon | --sysco | --sysc | --sys | --sy)
1036    ac_prev=sysconfdir ;;
1037  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039    sysconfdir=$ac_optarg ;;
1040
1041  -target | --target | --targe | --targ | --tar | --ta | --t)
1042    ac_prev=target_alias ;;
1043  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044    target_alias=$ac_optarg ;;
1045
1046  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047    verbose=yes ;;
1048
1049  -version | --version | --versio | --versi | --vers | -V)
1050    ac_init_version=: ;;
1051
1052  -with-* | --with-*)
1053    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054    # Reject names that are not valid shell variable names.
1055    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056      as_fn_error $? "invalid package name: $ac_useropt"
1057    ac_useropt_orig=$ac_useropt
1058    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059    case $ac_user_opts in
1060      *"
1061"with_$ac_useropt"
1062"*) ;;
1063      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064	 ac_unrecognized_sep=', ';;
1065    esac
1066    eval with_$ac_useropt=\$ac_optarg ;;
1067
1068  -without-* | --without-*)
1069    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070    # Reject names that are not valid shell variable names.
1071    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072      as_fn_error $? "invalid package name: $ac_useropt"
1073    ac_useropt_orig=$ac_useropt
1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075    case $ac_user_opts in
1076      *"
1077"with_$ac_useropt"
1078"*) ;;
1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080	 ac_unrecognized_sep=', ';;
1081    esac
1082    eval with_$ac_useropt=no ;;
1083
1084  --x)
1085    # Obsolete; use --with-x.
1086    with_x=yes ;;
1087
1088  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089  | --x-incl | --x-inc | --x-in | --x-i)
1090    ac_prev=x_includes ;;
1091  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093    x_includes=$ac_optarg ;;
1094
1095  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097    ac_prev=x_libraries ;;
1098  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100    x_libraries=$ac_optarg ;;
1101
1102  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1103Try \`$0 --help' for more information"
1104    ;;
1105
1106  *=*)
1107    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108    # Reject names that are not valid shell variable names.
1109    case $ac_envvar in #(
1110      '' | [0-9]* | *[!_$as_cr_alnum]* )
1111      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1112    esac
1113    eval $ac_envvar=\$ac_optarg
1114    export $ac_envvar ;;
1115
1116  *)
1117    # FIXME: should be removed in autoconf 3.0.
1118    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1122    ;;
1123
1124  esac
1125done
1126
1127if test -n "$ac_prev"; then
1128  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129  as_fn_error $? "missing argument to $ac_option"
1130fi
1131
1132if test -n "$ac_unrecognized_opts"; then
1133  case $enable_option_checking in
1134    no) ;;
1135    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137  esac
1138fi
1139
1140# Check all directory arguments for consistency.
1141for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142		datadir sysconfdir sharedstatedir localstatedir includedir \
1143		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144		libdir localedir mandir
1145do
1146  eval ac_val=\$$ac_var
1147  # Remove trailing slashes.
1148  case $ac_val in
1149    */ )
1150      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151      eval $ac_var=\$ac_val;;
1152  esac
1153  # Be sure to have absolute directory names.
1154  case $ac_val in
1155    [\\/$]* | ?:[\\/]* )  continue;;
1156    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157  esac
1158  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1159done
1160
1161# There might be people who depend on the old broken behavior: `$host'
1162# used to hold the argument of --host etc.
1163# FIXME: To remove some day.
1164build=$build_alias
1165host=$host_alias
1166target=$target_alias
1167
1168# FIXME: To remove some day.
1169if test "x$host_alias" != x; then
1170  if test "x$build_alias" = x; then
1171    cross_compiling=maybe
1172  elif test "x$build_alias" != "x$host_alias"; then
1173    cross_compiling=yes
1174  fi
1175fi
1176
1177ac_tool_prefix=
1178test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179
1180test "$silent" = yes && exec 6>/dev/null
1181
1182
1183ac_pwd=`pwd` && test -n "$ac_pwd" &&
1184ac_ls_di=`ls -di .` &&
1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1186  as_fn_error $? "working directory cannot be determined"
1187test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188  as_fn_error $? "pwd does not report name of working directory"
1189
1190
1191# Find the source files, if location was not specified.
1192if test -z "$srcdir"; then
1193  ac_srcdir_defaulted=yes
1194  # Try the directory containing this script, then the parent directory.
1195  ac_confdir=`$as_dirname -- "$as_myself" ||
1196$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197	 X"$as_myself" : 'X\(//\)[^/]' \| \
1198	 X"$as_myself" : 'X\(//\)$' \| \
1199	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200$as_echo X"$as_myself" |
1201    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202	    s//\1/
1203	    q
1204	  }
1205	  /^X\(\/\/\)[^/].*/{
1206	    s//\1/
1207	    q
1208	  }
1209	  /^X\(\/\/\)$/{
1210	    s//\1/
1211	    q
1212	  }
1213	  /^X\(\/\).*/{
1214	    s//\1/
1215	    q
1216	  }
1217	  s/.*/./; q'`
1218  srcdir=$ac_confdir
1219  if test ! -r "$srcdir/$ac_unique_file"; then
1220    srcdir=..
1221  fi
1222else
1223  ac_srcdir_defaulted=no
1224fi
1225if test ! -r "$srcdir/$ac_unique_file"; then
1226  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1228fi
1229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230ac_abs_confdir=`(
1231	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1232	pwd)`
1233# When building in place, set srcdir=.
1234if test "$ac_abs_confdir" = "$ac_pwd"; then
1235  srcdir=.
1236fi
1237# Remove unnecessary trailing slashes from srcdir.
1238# Double slashes in file names in object file debugging info
1239# mess up M-x gdb in Emacs.
1240case $srcdir in
1241*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242esac
1243for ac_var in $ac_precious_vars; do
1244  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245  eval ac_env_${ac_var}_value=\$${ac_var}
1246  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248done
1249
1250#
1251# Report the --help message.
1252#
1253if test "$ac_init_help" = "long"; then
1254  # Omit some internal or obsolete options to make the list less imposing.
1255  # This message is too long to be a string in the A/UX 3.1 sh.
1256  cat <<_ACEOF
1257\`configure' configures readline 1.0 to adapt to many kinds of systems.
1258
1259Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262VAR=VALUE.  See below for descriptions of some of the useful variables.
1263
1264Defaults for the options are specified in brackets.
1265
1266Configuration:
1267  -h, --help              display this help and exit
1268      --help=short        display options specific to this package
1269      --help=recursive    display the short help of all the included packages
1270  -V, --version           display version information and exit
1271  -q, --quiet, --silent   do not print \`checking ...' messages
1272      --cache-file=FILE   cache test results in FILE [disabled]
1273  -C, --config-cache      alias for \`--cache-file=config.cache'
1274  -n, --no-create         do not create output files
1275      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1276
1277Installation directories:
1278  --prefix=PREFIX         install architecture-independent files in PREFIX
1279                          [$ac_default_prefix]
1280  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1281                          [PREFIX]
1282
1283By default, \`make install' will install all the files in
1284\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1285an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286for instance \`--prefix=\$HOME'.
1287
1288For better control, use the options below.
1289
1290Fine tuning of the installation directories:
1291  --bindir=DIR            user executables [EPREFIX/bin]
1292  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1293  --libexecdir=DIR        program executables [EPREFIX/libexec]
1294  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1295  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1296  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1297  --libdir=DIR            object code libraries [EPREFIX/lib]
1298  --includedir=DIR        C header files [PREFIX/include]
1299  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1300  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1301  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1302  --infodir=DIR           info documentation [DATAROOTDIR/info]
1303  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1304  --mandir=DIR            man documentation [DATAROOTDIR/man]
1305  --docdir=DIR            documentation root [DATAROOTDIR/doc/readline]
1306  --htmldir=DIR           html documentation [DOCDIR]
1307  --dvidir=DIR            dvi documentation [DOCDIR]
1308  --pdfdir=DIR            pdf documentation [DOCDIR]
1309  --psdir=DIR             ps documentation [DOCDIR]
1310_ACEOF
1311
1312  cat <<\_ACEOF
1313
1314System types:
1315  --build=BUILD     configure for building on BUILD [guessed]
1316  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1317_ACEOF
1318fi
1319
1320if test -n "$ac_init_help"; then
1321  case $ac_init_help in
1322     short | recursive ) echo "Configuration of readline 1.0:";;
1323   esac
1324  cat <<\_ACEOF
1325
1326Optional Features:
1327  --disable-option-checking  ignore unrecognized --enable/--with options
1328  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1329  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1330  --disable-rpath         do not hardcode runtime library paths
1331
1332Optional Packages:
1333  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1334  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1335  --with-clisp            use a specific CLISP installation
1336  --with-readline         use GNU readline (default is YES, if present)
1337  --with-libtermcap-prefix[=DIR]
1338                          search for ncurses and termcap in DIR
1339  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1340  --with-libreadline-prefix[=DIR]  search for libreadline in DIR/include and DIR/lib
1341  --without-libreadline-prefix     don't search for libreadline in includedir and libdir
1342
1343Some influential environment variables:
1344  CC          C compiler command
1345  CFLAGS      C compiler flags
1346  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1347              nonstandard directory <lib dir>
1348  LIBS        libraries to pass to the linker, e.g. -l<library>
1349  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1350              you have headers in a nonstandard directory <include dir>
1351  CPP         C preprocessor
1352
1353Use these variables to override the choices made by `configure' or to help
1354it to find libraries and programs with nonstandard names/locations.
1355
1356Report bugs to <clisp-list>.
1357_ACEOF
1358ac_status=$?
1359fi
1360
1361if test "$ac_init_help" = "recursive"; then
1362  # If there are subdirs, report their specific --help.
1363  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1364    test -d "$ac_dir" ||
1365      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1366      continue
1367    ac_builddir=.
1368
1369case "$ac_dir" in
1370.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371*)
1372  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1373  # A ".." for each directory in $ac_dir_suffix.
1374  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1375  case $ac_top_builddir_sub in
1376  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378  esac ;;
1379esac
1380ac_abs_top_builddir=$ac_pwd
1381ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382# for backward compatibility:
1383ac_top_builddir=$ac_top_build_prefix
1384
1385case $srcdir in
1386  .)  # We are building in place.
1387    ac_srcdir=.
1388    ac_top_srcdir=$ac_top_builddir_sub
1389    ac_abs_top_srcdir=$ac_pwd ;;
1390  [\\/]* | ?:[\\/]* )  # Absolute name.
1391    ac_srcdir=$srcdir$ac_dir_suffix;
1392    ac_top_srcdir=$srcdir
1393    ac_abs_top_srcdir=$srcdir ;;
1394  *) # Relative name.
1395    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396    ac_top_srcdir=$ac_top_build_prefix$srcdir
1397    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1398esac
1399ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400
1401    cd "$ac_dir" || { ac_status=$?; continue; }
1402    # Check for guested configure.
1403    if test -f "$ac_srcdir/configure.gnu"; then
1404      echo &&
1405      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406    elif test -f "$ac_srcdir/configure"; then
1407      echo &&
1408      $SHELL "$ac_srcdir/configure" --help=recursive
1409    else
1410      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411    fi || ac_status=$?
1412    cd "$ac_pwd" || { ac_status=$?; break; }
1413  done
1414fi
1415
1416test -n "$ac_init_help" && exit $ac_status
1417if $ac_init_version; then
1418  cat <<\_ACEOF
1419readline configure 1.0
1420generated by GNU Autoconf 2.69
1421
1422Copyright (C) 2012 Free Software Foundation, Inc.
1423This configure script is free software; the Free Software Foundation
1424gives unlimited permission to copy, distribute and modify it.
1425_ACEOF
1426  exit
1427fi
1428
1429## ------------------------ ##
1430## Autoconf initialization. ##
1431## ------------------------ ##
1432
1433# ac_fn_c_try_compile LINENO
1434# --------------------------
1435# Try to compile conftest.$ac_ext, and return whether this succeeded.
1436ac_fn_c_try_compile ()
1437{
1438  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439  rm -f conftest.$ac_objext
1440  if { { ac_try="$ac_compile"
1441case "(($ac_try" in
1442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443  *) ac_try_echo=$ac_try;;
1444esac
1445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446$as_echo "$ac_try_echo"; } >&5
1447  (eval "$ac_compile") 2>conftest.err
1448  ac_status=$?
1449  if test -s conftest.err; then
1450    grep -v '^ *+' conftest.err >conftest.er1
1451    cat conftest.er1 >&5
1452    mv -f conftest.er1 conftest.err
1453  fi
1454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455  test $ac_status = 0; } && {
1456	 test -z "$ac_c_werror_flag" ||
1457	 test ! -s conftest.err
1458       } && test -s conftest.$ac_objext; then :
1459  ac_retval=0
1460else
1461  $as_echo "$as_me: failed program was:" >&5
1462sed 's/^/| /' conftest.$ac_ext >&5
1463
1464	ac_retval=1
1465fi
1466  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1467  as_fn_set_status $ac_retval
1468
1469} # ac_fn_c_try_compile
1470
1471# ac_fn_c_try_cpp LINENO
1472# ----------------------
1473# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1474ac_fn_c_try_cpp ()
1475{
1476  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477  if { { ac_try="$ac_cpp conftest.$ac_ext"
1478case "(($ac_try" in
1479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480  *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1485  ac_status=$?
1486  if test -s conftest.err; then
1487    grep -v '^ *+' conftest.err >conftest.er1
1488    cat conftest.er1 >&5
1489    mv -f conftest.er1 conftest.err
1490  fi
1491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492  test $ac_status = 0; } > conftest.i && {
1493	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1494	 test ! -s conftest.err
1495       }; then :
1496  ac_retval=0
1497else
1498  $as_echo "$as_me: failed program was:" >&5
1499sed 's/^/| /' conftest.$ac_ext >&5
1500
1501    ac_retval=1
1502fi
1503  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1504  as_fn_set_status $ac_retval
1505
1506} # ac_fn_c_try_cpp
1507
1508# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1509# -------------------------------------------------------
1510# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1511# the include files in INCLUDES and setting the cache variable VAR
1512# accordingly.
1513ac_fn_c_check_header_mongrel ()
1514{
1515  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516  if eval \${$3+:} false; then :
1517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518$as_echo_n "checking for $2... " >&6; }
1519if eval \${$3+:} false; then :
1520  $as_echo_n "(cached) " >&6
1521fi
1522eval ac_res=\$$3
1523	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1524$as_echo "$ac_res" >&6; }
1525else
1526  # Is the header compilable?
1527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1528$as_echo_n "checking $2 usability... " >&6; }
1529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530/* end confdefs.h.  */
1531$4
1532#include <$2>
1533_ACEOF
1534if ac_fn_c_try_compile "$LINENO"; then :
1535  ac_header_compiler=yes
1536else
1537  ac_header_compiler=no
1538fi
1539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1541$as_echo "$ac_header_compiler" >&6; }
1542
1543# Is the header present?
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1545$as_echo_n "checking $2 presence... " >&6; }
1546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547/* end confdefs.h.  */
1548#include <$2>
1549_ACEOF
1550if ac_fn_c_try_cpp "$LINENO"; then :
1551  ac_header_preproc=yes
1552else
1553  ac_header_preproc=no
1554fi
1555rm -f conftest.err conftest.i conftest.$ac_ext
1556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1557$as_echo "$ac_header_preproc" >&6; }
1558
1559# So?  What about this header?
1560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1561  yes:no: )
1562    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1563$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1564    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1565$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1566    ;;
1567  no:yes:* )
1568    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1569$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1570    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1571$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1572    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1573$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1574    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1575$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1576    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1577$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1578( $as_echo "## ------------------------- ##
1579## Report this to clisp-list ##
1580## ------------------------- ##"
1581     ) | sed "s/^/$as_me: WARNING:     /" >&2
1582    ;;
1583esac
1584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if eval \${$3+:} false; then :
1587  $as_echo_n "(cached) " >&6
1588else
1589  eval "$3=\$ac_header_compiler"
1590fi
1591eval ac_res=\$$3
1592	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594fi
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597} # ac_fn_c_check_header_mongrel
1598
1599# ac_fn_c_try_run LINENO
1600# ----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602# that executables *can* be run.
1603ac_fn_c_try_run ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_link") 2>&5
1614  ac_status=$?
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617  { { case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_try") 2>&5
1624  ac_status=$?
1625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626  test $ac_status = 0; }; }; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: program exited with status $ac_status" >&5
1630       $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633       ac_retval=$ac_status
1634fi
1635  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637  as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_run
1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
1650if eval \${$3+:} false; then :
1651  $as_echo_n "(cached) " >&6
1652else
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659  eval "$3=yes"
1660else
1661  eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670} # ac_fn_c_check_header_compile
1671
1672# ac_fn_c_try_link LINENO
1673# -----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_link ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  rm -f conftest.$ac_objext conftest$ac_exeext
1679  if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_link") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && {
1695	 test -z "$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       } && test -s conftest$ac_exeext && {
1698	 test "$cross_compiling" = yes ||
1699	 test -x conftest$ac_exeext
1700       }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706	ac_retval=1
1707fi
1708  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710  # interfere with the next link command; also delete a directory that is
1711  # left behind by Apple's compiler.  We do this before executing the actions.
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_link
1717
1718# ac_fn_c_check_func LINENO FUNC VAR
1719# ----------------------------------
1720# Tests whether FUNC exists, setting the cache variable VAR accordingly
1721ac_fn_c_check_func ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733#define $2 innocuous_$2
1734
1735/* System header to define __stub macros and hopefully few prototypes,
1736    which can conflict with char $2 (); below.
1737    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738    <limits.h> exists even on freestanding compilers.  */
1739
1740#ifdef __STDC__
1741# include <limits.h>
1742#else
1743# include <assert.h>
1744#endif
1745
1746#undef $2
1747
1748/* Override any GCC internal prototype to avoid an error.
1749   Use char because int might match the return type of a GCC
1750   builtin and then its argument prototype would still apply.  */
1751#ifdef __cplusplus
1752extern "C"
1753#endif
1754char $2 ();
1755/* The GNU C library defines this for functions which it implements
1756    to always fail with ENOSYS.  Some functions are actually named
1757    something starting with __ and the normal name is an alias.  */
1758#if defined __stub_$2 || defined __stub___$2
1759choke me
1760#endif
1761
1762int
1763main ()
1764{
1765return $2 ();
1766  ;
1767  return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_link "$LINENO"; then :
1771  eval "$3=yes"
1772else
1773  eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext \
1776    conftest$ac_exeext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_func
1784
1785# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1786# ---------------------------------------------
1787# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1788# accordingly.
1789ac_fn_c_check_decl ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  as_decl_name=`echo $2|sed 's/ *(.*//'`
1793  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1796if eval \${$3+:} false; then :
1797  $as_echo_n "(cached) " >&6
1798else
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802int
1803main ()
1804{
1805#ifndef $as_decl_name
1806#ifdef __cplusplus
1807  (void) $as_decl_use;
1808#else
1809  (void) $as_decl_name;
1810#endif
1811#endif
1812
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"; then :
1818  eval "$3=yes"
1819else
1820  eval "$3=no"
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829} # ac_fn_c_check_decl
1830cat >config.log <<_ACEOF
1831This file contains any messages produced by compilers while
1832running configure, to aid debugging if configure makes a mistake.
1833
1834It was created by readline $as_me 1.0, which was
1835generated by GNU Autoconf 2.69.  Invocation command line was
1836
1837  $ $0 $@
1838
1839_ACEOF
1840exec 5>>config.log
1841{
1842cat <<_ASUNAME
1843## --------- ##
1844## Platform. ##
1845## --------- ##
1846
1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852
1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1855
1856/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1857/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1860/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1861/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1862/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1863
1864_ASUNAME
1865
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  test -z "$as_dir" && as_dir=.
1871    $as_echo "PATH: $as_dir"
1872  done
1873IFS=$as_save_IFS
1874
1875} >&5
1876
1877cat >&5 <<_ACEOF
1878
1879
1880## ----------- ##
1881## Core tests. ##
1882## ----------- ##
1883
1884_ACEOF
1885
1886
1887# Keep a trace of the command line.
1888# Strip out --no-create and --no-recursion so they do not pile up.
1889# Strip out --silent because we don't want to record it for future runs.
1890# Also quote any args containing shell meta-characters.
1891# Make two passes to allow for proper duplicate-argument suppression.
1892ac_configure_args=
1893ac_configure_args0=
1894ac_configure_args1=
1895ac_must_keep_next=false
1896for ac_pass in 1 2
1897do
1898  for ac_arg
1899  do
1900    case $ac_arg in
1901    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903    | -silent | --silent | --silen | --sile | --sil)
1904      continue ;;
1905    *\'*)
1906      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907    esac
1908    case $ac_pass in
1909    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1910    2)
1911      as_fn_append ac_configure_args1 " '$ac_arg'"
1912      if test $ac_must_keep_next = true; then
1913	ac_must_keep_next=false # Got value, back to normal.
1914      else
1915	case $ac_arg in
1916	  *=* | --config-cache | -C | -disable-* | --disable-* \
1917	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919	  | -with-* | --with-* | -without-* | --without-* | --x)
1920	    case "$ac_configure_args0 " in
1921	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922	    esac
1923	    ;;
1924	  -* ) ac_must_keep_next=true ;;
1925	esac
1926      fi
1927      as_fn_append ac_configure_args " '$ac_arg'"
1928      ;;
1929    esac
1930  done
1931done
1932{ ac_configure_args0=; unset ac_configure_args0;}
1933{ ac_configure_args1=; unset ac_configure_args1;}
1934
1935# When interrupted or exit'd, cleanup temporary files, and complete
1936# config.log.  We remove comments because anyway the quotes in there
1937# would cause problems or look ugly.
1938# WARNING: Use '\'' to represent an apostrophe within the trap.
1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940trap 'exit_status=$?
1941  # Save into config.log some information that might help in debugging.
1942  {
1943    echo
1944
1945    $as_echo "## ---------------- ##
1946## Cache variables. ##
1947## ---------------- ##"
1948    echo
1949    # The following way of writing the cache mishandles newlines in values,
1950(
1951  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952    eval ac_val=\$$ac_var
1953    case $ac_val in #(
1954    *${as_nl}*)
1955      case $ac_var in #(
1956      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958      esac
1959      case $ac_var in #(
1960      _ | IFS | as_nl) ;; #(
1961      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962      *) { eval $ac_var=; unset $ac_var;} ;;
1963      esac ;;
1964    esac
1965  done
1966  (set) 2>&1 |
1967    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968    *${as_nl}ac_space=\ *)
1969      sed -n \
1970	"s/'\''/'\''\\\\'\'''\''/g;
1971	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972      ;; #(
1973    *)
1974      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975      ;;
1976    esac |
1977    sort
1978)
1979    echo
1980
1981    $as_echo "## ----------------- ##
1982## Output variables. ##
1983## ----------------- ##"
1984    echo
1985    for ac_var in $ac_subst_vars
1986    do
1987      eval ac_val=\$$ac_var
1988      case $ac_val in
1989      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990      esac
1991      $as_echo "$ac_var='\''$ac_val'\''"
1992    done | sort
1993    echo
1994
1995    if test -n "$ac_subst_files"; then
1996      $as_echo "## ------------------- ##
1997## File substitutions. ##
1998## ------------------- ##"
1999      echo
2000      for ac_var in $ac_subst_files
2001      do
2002	eval ac_val=\$$ac_var
2003	case $ac_val in
2004	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005	esac
2006	$as_echo "$ac_var='\''$ac_val'\''"
2007      done | sort
2008      echo
2009    fi
2010
2011    if test -s confdefs.h; then
2012      $as_echo "## ----------- ##
2013## confdefs.h. ##
2014## ----------- ##"
2015      echo
2016      cat confdefs.h
2017      echo
2018    fi
2019    test "$ac_signal" != 0 &&
2020      $as_echo "$as_me: caught signal $ac_signal"
2021    $as_echo "$as_me: exit $exit_status"
2022  } >&5
2023  rm -f core *.core core.conftest.* &&
2024    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025    exit $exit_status
2026' 0
2027for ac_signal in 1 2 13 15; do
2028  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029done
2030ac_signal=0
2031
2032# confdefs.h avoids OS command line length limits that DEFS can exceed.
2033rm -f -r conftest* confdefs.h
2034
2035$as_echo "/* confdefs.h */" > confdefs.h
2036
2037# Predefined preprocessor variables.
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_NAME "$PACKAGE_NAME"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_VERSION "$PACKAGE_VERSION"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_STRING "$PACKAGE_STRING"
2053_ACEOF
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057_ACEOF
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_URL "$PACKAGE_URL"
2061_ACEOF
2062
2063
2064# Let the site file select an alternate cache file if it wants to.
2065# Prefer an explicitly selected file to automatically selected ones.
2066ac_site_file1=NONE
2067ac_site_file2=NONE
2068if test -n "$CONFIG_SITE"; then
2069  # We do not want a PATH search for config.site.
2070  case $CONFIG_SITE in #((
2071    -*)  ac_site_file1=./$CONFIG_SITE;;
2072    */*) ac_site_file1=$CONFIG_SITE;;
2073    *)   ac_site_file1=./$CONFIG_SITE;;
2074  esac
2075elif test "x$prefix" != xNONE; then
2076  ac_site_file1=$prefix/share/config.site
2077  ac_site_file2=$prefix/etc/config.site
2078else
2079  ac_site_file1=$ac_default_prefix/share/config.site
2080  ac_site_file2=$ac_default_prefix/etc/config.site
2081fi
2082for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2083do
2084  test "x$ac_site_file" = xNONE && continue
2085  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2087$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2088    sed 's/^/| /' "$ac_site_file" >&5
2089    . "$ac_site_file" \
2090      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092as_fn_error $? "failed to load site script $ac_site_file
2093See \`config.log' for more details" "$LINENO" 5; }
2094  fi
2095done
2096
2097if test -r "$cache_file"; then
2098  # Some versions of bash will fail to source /dev/null (special files
2099  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2100  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2101    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102$as_echo "$as_me: loading cache $cache_file" >&6;}
2103    case $cache_file in
2104      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105      *)                      . "./$cache_file";;
2106    esac
2107  fi
2108else
2109  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110$as_echo "$as_me: creating cache $cache_file" >&6;}
2111  >$cache_file
2112fi
2113
2114# Check that the precious variables saved in the cache have kept the same
2115# value.
2116ac_cache_corrupted=false
2117for ac_var in $ac_precious_vars; do
2118  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119  eval ac_new_set=\$ac_env_${ac_var}_set
2120  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121  eval ac_new_val=\$ac_env_${ac_var}_value
2122  case $ac_old_set,$ac_new_set in
2123    set,)
2124      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126      ac_cache_corrupted=: ;;
2127    ,set)
2128      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130      ac_cache_corrupted=: ;;
2131    ,);;
2132    *)
2133      if test "x$ac_old_val" != "x$ac_new_val"; then
2134	# differences in whitespace do not lead to failure.
2135	ac_old_val_w=`echo x $ac_old_val`
2136	ac_new_val_w=`echo x $ac_new_val`
2137	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140	  ac_cache_corrupted=:
2141	else
2142	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144	  eval $ac_var=\$ac_old_val
2145	fi
2146	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2147$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2148	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2149$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2150      fi;;
2151  esac
2152  # Pass precious variables to config.status.
2153  if test "$ac_new_set" = set; then
2154    case $ac_new_val in
2155    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156    *) ac_arg=$ac_var=$ac_new_val ;;
2157    esac
2158    case " $ac_configure_args " in
2159      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161    esac
2162  fi
2163done
2164if $ac_cache_corrupted; then
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170fi
2171## -------------------- ##
2172## Main body of script. ##
2173## -------------------- ##
2174
2175ac_ext=c
2176ac_cpp='$CPP $CPPFLAGS'
2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180
2181
2182
2183ac_config_headers="$ac_config_headers config.h"
2184
2185
2186
2187
2188  case $TERM in
2189    # for the most important terminal types we directly know the sequences
2190    xterm*|vt220*|vt100*)
2191      term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2192      term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2193      ;;
2194    # for all others, we try to use a possibly existing `tput' or `tcout' utility
2195    *)
2196      paths=`echo "$PATH" | sed -e 's/:/ /g'`
2197      for tool in tput tcout; do
2198        for dir in $paths; do
2199          if test -r "$dir/$tool"; then
2200            for seq in bold md smso; do # 'smso' is last
2201              bold="`$dir/$tool $seq 2>/dev/null`"
2202              if test -n "$bold"; then
2203                term_bold="$bold"
2204                break
2205              fi
2206            done
2207            if test -n "$term_bold"; then
2208              for seq in sgr0 me rmso reset; do # 'reset' is last
2209                norm="`$dir/$tool $seq 2>/dev/null`"
2210                if test -n "$norm"; then
2211                  term_norm="$norm"
2212                  break
2213                fi
2214              done
2215            fi
2216            break
2217          fi
2218        done
2219        if test -n "$term_bold" && test -n "$term_norm"; then
2220          break
2221        fi
2222      done
2223      ;;
2224  esac
2225
2226
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Common)${term_norm}" >&5
2228$as_echo "$as_me: ${term_bold}** Readline (Common)${term_norm}" >&6;}
2229
2230
2231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to remove colons from paths" >&5
2232$as_echo_n "checking how to remove colons from paths... " >&6; }
2233if ${cl_cv_decolonize+:} false; then :
2234  $as_echo_n "(cached) " >&6
2235else
2236  case $ac_cv_build in
2237       *-cygwin) cl_cv_decolonize='cygpath --unix $x' ;;
2238       *-mingw*)
2239         if test "$cross_compiling" = yes; then
2240           cl_cv_decolonize='cygpath --unix $x'
2241         else
2242           cl_cv_decolonize="echo \$x | sed -e 's,\\\\,/,g' -e 's,^\\(.\\):,/\1,'"
2243         fi
2244         ;;
2245       *) cl_cv_decolonize='echo $x' ;;
2246     esac
2247
2248fi
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_decolonize" >&5
2250$as_echo "$cl_cv_decolonize" >&6; }
2251  CLISP_DECOLONIZE=$cl_cv_decolonize
2252
2253
2254
2255
2256
2257# Check whether --with-clisp was given.
2258if test "${with_clisp+set}" = set; then :
2259  withval=$with_clisp; cl_use_clisp="$withval"
2260else
2261  cl_use_clisp=default
2262fi
2263
2264  cl_have_clisp=no
2265  if test "$cl_use_clisp" != "no"; then
2266    if test "$cl_use_clisp" = default -o "$cl_use_clisp" = yes; then
2267      # Extract the first word of "clisp", so it can be a program name with args.
2268set dummy clisp; ac_word=$2
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270$as_echo_n "checking for $ac_word... " >&6; }
2271if ${ac_cv_path_cl_cv_clisp+:} false; then :
2272  $as_echo_n "(cached) " >&6
2273else
2274  case $cl_cv_clisp in
2275  [\\/]* | ?:[\\/]*)
2276  ac_cv_path_cl_cv_clisp="$cl_cv_clisp" # Let the user override the test with a path.
2277  ;;
2278  *)
2279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284    for ac_exec_ext in '' $ac_executable_extensions; do
2285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286    ac_cv_path_cl_cv_clisp="$as_dir/$ac_word$ac_exec_ext"
2287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288    break 2
2289  fi
2290done
2291  done
2292IFS=$as_save_IFS
2293
2294  ;;
2295esac
2296fi
2297cl_cv_clisp=$ac_cv_path_cl_cv_clisp
2298if test -n "$cl_cv_clisp"; then
2299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp" >&5
2300$as_echo "$cl_cv_clisp" >&6; }
2301else
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2303$as_echo "no" >&6; }
2304fi
2305
2306
2307    else
2308      cl_cv_clisp="$cl_use_clisp"
2309    fi
2310    if test -n "$cl_cv_clisp"; then
2311      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLISP version" >&5
2312$as_echo_n "checking for CLISP version... " >&6; }
2313if ${cl_cv_clisp_version+:} false; then :
2314  $as_echo_n "(cached) " >&6
2315else
2316                             if $cl_cv_clisp --version 2>/dev/null | head -n 1 | grep "GNU CLISP" >/dev/null 2>&1; then
2317           cl_cv_clisp_version=`$cl_cv_clisp -q -norc -x '(lisp-implementation-version)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2318         else
2319           as_fn_error $? "'$cl_cv_clisp' is not a CLISP" "$LINENO" 5
2320         fi
2321
2322fi
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_version" >&5
2324$as_echo "$cl_cv_clisp_version" >&6; }
2325      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLISP libdir" >&5
2326$as_echo_n "checking for CLISP libdir... " >&6; }
2327if ${cl_cv_clisp_libdir+:} false; then :
2328  $as_echo_n "(cached) " >&6
2329else
2330  cl_cv_clisp_libdir=`$cl_cv_clisp -q -norc -x '(namestring *lib-directory*)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2331         x=$cl_cv_clisp_libdir
2332         cl_cv_clisp_libdir=`eval $cl_cv_decolonize`
2333         # cf src/clisp-link.in:linkkitdir
2334         missing=''
2335         for f in modules.c clisp.h; do
2336           test -r "${cl_cv_clisp_libdir}linkkit/$f" || missing=${missing}' '$f
2337         done
2338         test -n "${missing}" \
2339           && as_fn_error $? "missing ${missing} in '${cl_cv_clisp_libdir}linkkit'" "$LINENO" 5
2340
2341fi
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_libdir" >&5
2343$as_echo "$cl_cv_clisp_libdir" >&6; }
2344      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLISP linking set" >&5
2345$as_echo_n "checking for CLISP linking set... " >&6; }
2346if ${cl_cv_clisp_linkset+:} false; then :
2347  $as_echo_n "(cached) " >&6
2348else
2349  cl_cv_clisp_linkset=`$cl_cv_clisp -q -norc -x '(sys::program-name)' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2350         cl_cv_clisp_linkset=`dirname ${cl_cv_clisp_linkset}`
2351         missing=''
2352         # cf. src/clisp-link.in:check_linkset (we do not need to check for
2353         # lisp.run because cl_cv_clisp_linkset comes from SYS::PROGRAM-NAME)
2354         for f in lisp.a lispinit.mem modules.h modules.o makevars; do
2355           test -r "${cl_cv_clisp_linkset}/$f" || missing=${missing}' '$f
2356         done
2357         test -n "${missing}" \
2358           && as_fn_error $? "missing ${missing} in '${cl_cv_clisp_linkset}'" "$LINENO" 5
2359
2360fi
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_linkset" >&5
2362$as_echo "$cl_cv_clisp_linkset" >&6; }
2363      CLISP=$cl_cv_clisp
2364
2365      CLISP_LIBDIR="${cl_cv_clisp_libdir}"
2366
2367      CLISP_LINKKIT="${cl_cv_clisp_libdir}linkkit"
2368
2369      sed 's/^/CLISP_/' ${cl_cv_clisp_linkset}/makevars > conftestvars
2370      . ./conftestvars
2371      rm -f conftestvars
2372
2373
2374
2375
2376      test -d "$cl_cv_clisp_libdir" -a -d "$cl_cv_clisp_linkset" && cl_have_clisp=yes
2377    fi
2378  fi
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLISP" >&5
2380$as_echo_n "checking for CLISP... " >&6; }
2381if ${cl_cv_have_clisp+:} false; then :
2382  $as_echo_n "(cached) " >&6
2383else
2384  cl_cv_have_clisp=$cl_have_clisp
2385fi
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_have_clisp" >&5
2387$as_echo "$cl_cv_have_clisp" >&6; }
2388  required=true
2389  ${required} && test $cl_cv_have_clisp = no && as_fn_error $? "CLISP not found" "$LINENO" 5
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI in CLISP" >&5
2391$as_echo_n "checking for FFI in CLISP... " >&6; }
2392if ${cl_cv_clisp_FFI+:} false; then :
2393  $as_echo_n "(cached) " >&6
2394else
2395  cl_cv_clisp_FFI=`$cl_cv_clisp -q -norc -x '#+FFI "yes" #-FFI "no"' 2>/dev/null | sed -e 's/^"//' -e 's/"$//'`
2396fi
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_clisp_FFI" >&5
2398$as_echo "$cl_cv_clisp_FFI" >&6; }
2399     ${required} && test $cl_cv_clisp_FFI = no \
2400       && as_fn_error $? "no FFI in CLISP" "$LINENO" 5
2401
2402
2403ac_aux_dir=
2404for ac_dir in $cl_cv_clisp_libdir/build-aux "$srcdir"/$cl_cv_clisp_libdir/build-aux; do
2405  if test -f "$ac_dir/install-sh"; then
2406    ac_aux_dir=$ac_dir
2407    ac_install_sh="$ac_aux_dir/install-sh -c"
2408    break
2409  elif test -f "$ac_dir/install.sh"; then
2410    ac_aux_dir=$ac_dir
2411    ac_install_sh="$ac_aux_dir/install.sh -c"
2412    break
2413  elif test -f "$ac_dir/shtool"; then
2414    ac_aux_dir=$ac_dir
2415    ac_install_sh="$ac_aux_dir/shtool install -c"
2416    break
2417  fi
2418done
2419if test -z "$ac_aux_dir"; then
2420  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $cl_cv_clisp_libdir/build-aux \"$srcdir\"/$cl_cv_clisp_libdir/build-aux" "$LINENO" 5
2421fi
2422
2423# These three variables are undocumented and unsupported,
2424# and are intended to be withdrawn in a future Autoconf release.
2425# They can cause serious problems if a builder's source tree is in a directory
2426# whose full name contains unusual characters.
2427ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2428ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2429ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2430
2431
2432# Expand $ac_aux_dir to an absolute path.
2433am_aux_dir=`cd "$ac_aux_dir" && pwd`
2434
2435ac_ext=c
2436ac_cpp='$CPP $CPPFLAGS'
2437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440if test -n "$ac_tool_prefix"; then
2441  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2442set dummy ${ac_tool_prefix}gcc; ac_word=$2
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
2445if ${ac_cv_prog_CC+:} false; then :
2446  $as_echo_n "(cached) " >&6
2447else
2448  if test -n "$CC"; then
2449  ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    for ac_exec_ext in '' $ac_executable_extensions; do
2457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460    break 2
2461  fi
2462done
2463  done
2464IFS=$as_save_IFS
2465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471$as_echo "$CC" >&6; }
2472else
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474$as_echo "no" >&6; }
2475fi
2476
2477
2478fi
2479if test -z "$ac_cv_prog_CC"; then
2480  ac_ct_CC=$CC
2481  # Extract the first word of "gcc", so it can be a program name with args.
2482set dummy gcc; ac_word=$2
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484$as_echo_n "checking for $ac_word... " >&6; }
2485if ${ac_cv_prog_ac_ct_CC+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487else
2488  if test -n "$ac_ct_CC"; then
2489  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494  IFS=$as_save_IFS
2495  test -z "$as_dir" && as_dir=.
2496    for ac_exec_ext in '' $ac_executable_extensions; do
2497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498    ac_cv_prog_ac_ct_CC="gcc"
2499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2500    break 2
2501  fi
2502done
2503  done
2504IFS=$as_save_IFS
2505
2506fi
2507fi
2508ac_ct_CC=$ac_cv_prog_ac_ct_CC
2509if test -n "$ac_ct_CC"; then
2510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2511$as_echo "$ac_ct_CC" >&6; }
2512else
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514$as_echo "no" >&6; }
2515fi
2516
2517  if test "x$ac_ct_CC" = x; then
2518    CC=""
2519  else
2520    case $cross_compiling:$ac_tool_warned in
2521yes:)
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2524ac_tool_warned=yes ;;
2525esac
2526    CC=$ac_ct_CC
2527  fi
2528else
2529  CC="$ac_cv_prog_CC"
2530fi
2531
2532if test -z "$CC"; then
2533          if test -n "$ac_tool_prefix"; then
2534    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2535set dummy ${ac_tool_prefix}cc; ac_word=$2
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537$as_echo_n "checking for $ac_word... " >&6; }
2538if ${ac_cv_prog_CC+:} false; then :
2539  $as_echo_n "(cached) " >&6
2540else
2541  if test -n "$CC"; then
2542  ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549    for ac_exec_ext in '' $ac_executable_extensions; do
2550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551    ac_cv_prog_CC="${ac_tool_prefix}cc"
2552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553    break 2
2554  fi
2555done
2556  done
2557IFS=$as_save_IFS
2558
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2564$as_echo "$CC" >&6; }
2565else
2566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567$as_echo "no" >&6; }
2568fi
2569
2570
2571  fi
2572fi
2573if test -z "$CC"; then
2574  # Extract the first word of "cc", so it can be a program name with args.
2575set dummy cc; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if ${ac_cv_prog_CC+:} false; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  if test -n "$CC"; then
2582  ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
2584  ac_prog_rejected=no
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_exec_ext in '' $ac_executable_extensions; do
2591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2593       ac_prog_rejected=yes
2594       continue
2595     fi
2596    ac_cv_prog_CC="cc"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604if test $ac_prog_rejected = yes; then
2605  # We found a bogon in the path, so make sure we never use it.
2606  set dummy $ac_cv_prog_CC
2607  shift
2608  if test $# != 0; then
2609    # We chose a different compiler from the bogus one.
2610    # However, it has the same basename, so the bogon will be chosen
2611    # first if we set CC to just the basename; use the full file name.
2612    shift
2613    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2614  fi
2615fi
2616fi
2617fi
2618CC=$ac_cv_prog_CC
2619if test -n "$CC"; then
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621$as_echo "$CC" >&6; }
2622else
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624$as_echo "no" >&6; }
2625fi
2626
2627
2628fi
2629if test -z "$CC"; then
2630  if test -n "$ac_tool_prefix"; then
2631  for ac_prog in cl.exe
2632  do
2633    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2634set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636$as_echo_n "checking for $ac_word... " >&6; }
2637if ${ac_cv_prog_CC+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  if test -n "$CC"; then
2641  ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648    for ac_exec_ext in '' $ac_executable_extensions; do
2649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655  done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660CC=$ac_cv_prog_CC
2661if test -n "$CC"; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663$as_echo "$CC" >&6; }
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667fi
2668
2669
2670    test -n "$CC" && break
2671  done
2672fi
2673if test -z "$CC"; then
2674  ac_ct_CC=$CC
2675  for ac_prog in cl.exe
2676do
2677  # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if ${ac_cv_prog_ac_ct_CC+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test -n "$ac_ct_CC"; then
2685  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_exec_ext in '' $ac_executable_extensions; do
2693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_ac_ct_CC="$ac_prog"
2695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705if test -n "$ac_ct_CC"; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2707$as_echo "$ac_ct_CC" >&6; }
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714  test -n "$ac_ct_CC" && break
2715done
2716
2717  if test "x$ac_ct_CC" = x; then
2718    CC=""
2719  else
2720    case $cross_compiling:$ac_tool_warned in
2721yes:)
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726    CC=$ac_ct_CC
2727  fi
2728fi
2729
2730fi
2731
2732
2733test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735as_fn_error $? "no acceptable C compiler found in \$PATH
2736See \`config.log' for more details" "$LINENO" 5; }
2737
2738# Provide some information about the compiler.
2739$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2740set X $ac_compile
2741ac_compiler=$2
2742for ac_option in --version -v -V -qversion; do
2743  { { ac_try="$ac_compiler $ac_option >&5"
2744case "(($ac_try" in
2745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746  *) ac_try_echo=$ac_try;;
2747esac
2748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749$as_echo "$ac_try_echo"; } >&5
2750  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2751  ac_status=$?
2752  if test -s conftest.err; then
2753    sed '10a\
2754... rest of stderr output deleted ...
2755         10q' conftest.err >conftest.er1
2756    cat conftest.er1 >&5
2757  fi
2758  rm -f conftest.er1 conftest.err
2759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2760  test $ac_status = 0; }
2761done
2762
2763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h.  */
2765
2766int
2767main ()
2768{
2769
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774ac_clean_files_save=$ac_clean_files
2775ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2776# Try to create an executable without -o first, disregard a.out.
2777# It will help us diagnose broken compilers, and finding out an intuition
2778# of exeext.
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2780$as_echo_n "checking whether the C compiler works... " >&6; }
2781ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2782
2783# The possible output files:
2784ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2785
2786ac_rmfiles=
2787for ac_file in $ac_files
2788do
2789  case $ac_file in
2790    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2791    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792  esac
2793done
2794rm -f $ac_rmfiles
2795
2796if { { ac_try="$ac_link_default"
2797case "(($ac_try" in
2798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799  *) ac_try_echo=$ac_try;;
2800esac
2801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2802$as_echo "$ac_try_echo"; } >&5
2803  (eval "$ac_link_default") 2>&5
2804  ac_status=$?
2805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2806  test $ac_status = 0; }; then :
2807  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2810# so that the user can short-circuit this test for compilers unknown to
2811# Autoconf.
2812for ac_file in $ac_files ''
2813do
2814  test -f "$ac_file" || continue
2815  case $ac_file in
2816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2817	;;
2818    [ab].out )
2819	# We found the default executable, but exeext='' is most
2820	# certainly right.
2821	break;;
2822    *.* )
2823	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824	then :; else
2825	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826	fi
2827	# We set ac_cv_exeext here because the later test for it is not
2828	# safe: cross compilers may not add the suffix if given an `-o'
2829	# argument, so we may need to know it at that point already.
2830	# Even if this section looks crufty: it has the advantage of
2831	# actually working.
2832	break;;
2833    * )
2834	break;;
2835  esac
2836done
2837test "$ac_cv_exeext" = no && ac_cv_exeext=
2838
2839else
2840  ac_file=''
2841fi
2842if test -z "$ac_file"; then :
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845$as_echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850as_fn_error 77 "C compiler cannot create executables
2851See \`config.log' for more details" "$LINENO" 5; }
2852else
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854$as_echo "yes" >&6; }
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2857$as_echo_n "checking for C compiler default output file name... " >&6; }
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2859$as_echo "$ac_file" >&6; }
2860ac_exeext=$ac_cv_exeext
2861
2862rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2863ac_clean_files=$ac_clean_files_save
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2865$as_echo_n "checking for suffix of executables... " >&6; }
2866if { { ac_try="$ac_link"
2867case "(($ac_try" in
2868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869  *) ac_try_echo=$ac_try;;
2870esac
2871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872$as_echo "$ac_try_echo"; } >&5
2873  (eval "$ac_link") 2>&5
2874  ac_status=$?
2875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876  test $ac_status = 0; }; then :
2877  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2878# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2879# work properly (i.e., refer to `conftest.exe'), while it won't with
2880# `rm'.
2881for ac_file in conftest.exe conftest conftest.*; do
2882  test -f "$ac_file" || continue
2883  case $ac_file in
2884    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2885    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886	  break;;
2887    * ) break;;
2888  esac
2889done
2890else
2891  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2894See \`config.log' for more details" "$LINENO" 5; }
2895fi
2896rm -f conftest conftest$ac_cv_exeext
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2898$as_echo "$ac_cv_exeext" >&6; }
2899
2900rm -f conftest.$ac_ext
2901EXEEXT=$ac_cv_exeext
2902ac_exeext=$EXEEXT
2903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h.  */
2905#include <stdio.h>
2906int
2907main ()
2908{
2909FILE *f = fopen ("conftest.out", "w");
2910 return ferror (f) || fclose (f) != 0;
2911
2912  ;
2913  return 0;
2914}
2915_ACEOF
2916ac_clean_files="$ac_clean_files conftest.out"
2917# Check that the compiler produces executables we can run.  If not, either
2918# the compiler is broken, or we cross compile.
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2920$as_echo_n "checking whether we are cross compiling... " >&6; }
2921if test "$cross_compiling" != yes; then
2922  { { ac_try="$ac_link"
2923case "(($ac_try" in
2924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925  *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
2929  (eval "$ac_link") 2>&5
2930  ac_status=$?
2931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932  test $ac_status = 0; }
2933  if { ac_try='./conftest$ac_cv_exeext'
2934  { { case "(($ac_try" in
2935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936  *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939$as_echo "$ac_try_echo"; } >&5
2940  (eval "$ac_try") 2>&5
2941  ac_status=$?
2942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943  test $ac_status = 0; }; }; then
2944    cross_compiling=no
2945  else
2946    if test "$cross_compiling" = maybe; then
2947	cross_compiling=yes
2948    else
2949	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951as_fn_error $? "cannot run C compiled programs.
2952If you meant to cross compile, use \`--host'.
2953See \`config.log' for more details" "$LINENO" 5; }
2954    fi
2955  fi
2956fi
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2958$as_echo "$cross_compiling" >&6; }
2959
2960rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2961ac_clean_files=$ac_clean_files_save
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2963$as_echo_n "checking for suffix of object files... " >&6; }
2964if ${ac_cv_objext+:} false; then :
2965  $as_echo_n "(cached) " >&6
2966else
2967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968/* end confdefs.h.  */
2969
2970int
2971main ()
2972{
2973
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978rm -f conftest.o conftest.obj
2979if { { ac_try="$ac_compile"
2980case "(($ac_try" in
2981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982  *) ac_try_echo=$ac_try;;
2983esac
2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985$as_echo "$ac_try_echo"; } >&5
2986  (eval "$ac_compile") 2>&5
2987  ac_status=$?
2988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989  test $ac_status = 0; }; then :
2990  for ac_file in conftest.o conftest.obj conftest.*; do
2991  test -f "$ac_file" || continue;
2992  case $ac_file in
2993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2994    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995       break;;
2996  esac
2997done
2998else
2999  $as_echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004as_fn_error $? "cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details" "$LINENO" 5; }
3006fi
3007rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3010$as_echo "$ac_cv_objext" >&6; }
3011OBJEXT=$ac_cv_objext
3012ac_objext=$OBJEXT
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3014$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3015if ${ac_cv_c_compiler_gnu+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024#ifndef __GNUC__
3025       choke me
3026#endif
3027
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032if ac_fn_c_try_compile "$LINENO"; then :
3033  ac_compiler_gnu=yes
3034else
3035  ac_compiler_gnu=no
3036fi
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
3040fi
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3042$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3043if test $ac_compiler_gnu = yes; then
3044  GCC=yes
3045else
3046  GCC=
3047fi
3048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3051$as_echo_n "checking whether $CC accepts -g... " >&6; }
3052if ${ac_cv_prog_cc_g+:} false; then :
3053  $as_echo_n "(cached) " >&6
3054else
3055  ac_save_c_werror_flag=$ac_c_werror_flag
3056   ac_c_werror_flag=yes
3057   ac_cv_prog_cc_g=no
3058   CFLAGS="-g"
3059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070if ac_fn_c_try_compile "$LINENO"; then :
3071  ac_cv_prog_cc_g=yes
3072else
3073  CFLAGS=""
3074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085if ac_fn_c_try_compile "$LINENO"; then :
3086
3087else
3088  ac_c_werror_flag=$ac_save_c_werror_flag
3089	 CFLAGS="-g"
3090	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091/* end confdefs.h.  */
3092
3093int
3094main ()
3095{
3096
3097  ;
3098  return 0;
3099}
3100_ACEOF
3101if ac_fn_c_try_compile "$LINENO"; then :
3102  ac_cv_prog_cc_g=yes
3103fi
3104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105fi
3106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107fi
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109   ac_c_werror_flag=$ac_save_c_werror_flag
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3112$as_echo "$ac_cv_prog_cc_g" >&6; }
3113if test "$ac_test_CFLAGS" = set; then
3114  CFLAGS=$ac_save_CFLAGS
3115elif test $ac_cv_prog_cc_g = yes; then
3116  if test "$GCC" = yes; then
3117    CFLAGS="-g -O2"
3118  else
3119    CFLAGS="-g"
3120  fi
3121else
3122  if test "$GCC" = yes; then
3123    CFLAGS="-O2"
3124  else
3125    CFLAGS=
3126  fi
3127fi
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3129$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3130if ${ac_cv_prog_cc_c89+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  ac_cv_prog_cc_c89=no
3134ac_save_CC=$CC
3135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136/* end confdefs.h.  */
3137#include <stdarg.h>
3138#include <stdio.h>
3139struct stat;
3140/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3141struct buf { int x; };
3142FILE * (*rcsopen) (struct buf *, struct stat *, int);
3143static char *e (p, i)
3144     char **p;
3145     int i;
3146{
3147  return p[i];
3148}
3149static char *f (char * (*g) (char **, int), char **p, ...)
3150{
3151  char *s;
3152  va_list v;
3153  va_start (v,p);
3154  s = g (p, va_arg (v,int));
3155  va_end (v);
3156  return s;
3157}
3158
3159/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3160   function prototypes and stuff, but not '\xHH' hex character constants.
3161   These don't provoke an error unfortunately, instead are silently treated
3162   as 'x'.  The following induces an error, until -std is added to get
3163   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3164   array size at least.  It's necessary to write '\x00'==0 to get something
3165   that's true only with -std.  */
3166int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167
3168/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3169   inside strings and character constants.  */
3170#define FOO(x) 'x'
3171int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3172
3173int test (int i, double x);
3174struct s1 {int (*f) (int a);};
3175struct s2 {int (*f) (double a);};
3176int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3177int argc;
3178char **argv;
3179int
3180main ()
3181{
3182return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3183  ;
3184  return 0;
3185}
3186_ACEOF
3187for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3188	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3189do
3190  CC="$ac_save_CC $ac_arg"
3191  if ac_fn_c_try_compile "$LINENO"; then :
3192  ac_cv_prog_cc_c89=$ac_arg
3193fi
3194rm -f core conftest.err conftest.$ac_objext
3195  test "x$ac_cv_prog_cc_c89" != "xno" && break
3196done
3197rm -f conftest.$ac_ext
3198CC=$ac_save_CC
3199
3200fi
3201# AC_CACHE_VAL
3202case "x$ac_cv_prog_cc_c89" in
3203  x)
3204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3205$as_echo "none needed" >&6; } ;;
3206  xno)
3207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3208$as_echo "unsupported" >&6; } ;;
3209  *)
3210    CC="$CC $ac_cv_prog_cc_c89"
3211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3212$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3213esac
3214if test "x$ac_cv_prog_cc_c89" != xno; then :
3215
3216fi
3217
3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3230$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3231if ${am_cv_prog_cc_c_o+:} false; then :
3232  $as_echo_n "(cached) " >&6
3233else
3234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235/* end confdefs.h.  */
3236
3237int
3238main ()
3239{
3240
3241  ;
3242  return 0;
3243}
3244_ACEOF
3245  # Make sure it works both with $CC and with simple cc.
3246  # Following AC_PROG_CC_C_O, we do the test twice because some
3247  # compilers refuse to overwrite an existing .o file with -o,
3248  # though they will create one.
3249  am_cv_prog_cc_c_o=yes
3250  for am_i in 1 2; do
3251    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3252   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } \
3256         && test -f conftest2.$ac_objext; then
3257      : OK
3258    else
3259      am_cv_prog_cc_c_o=no
3260      break
3261    fi
3262  done
3263  rm -f core conftest*
3264  unset am_i
3265fi
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3267$as_echo "$am_cv_prog_cc_c_o" >&6; }
3268if test "$am_cv_prog_cc_c_o" != yes; then
3269   # Losing compiler, so override with the script.
3270   # FIXME: It is wrong to rewrite CC.
3271   # But if we don't then we get into trouble of one sort or another.
3272   # A longer-term fix would be to have automake use am__CC in this case,
3273   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3274   CC="$am_aux_dir/compile $CC"
3275fi
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282
3283ac_ext=c
3284ac_cpp='$CPP $CPPFLAGS'
3285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3289$as_echo_n "checking how to run the C preprocessor... " >&6; }
3290# On Suns, sometimes $CPP names a directory.
3291if test -n "$CPP" && test -d "$CPP"; then
3292  CPP=
3293fi
3294if test -z "$CPP"; then
3295  if ${ac_cv_prog_CPP+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298      # Double quotes because CPP needs to be expanded
3299    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3300    do
3301      ac_preproc_ok=false
3302for ac_c_preproc_warn_flag in '' yes
3303do
3304  # Use a header file that comes with gcc, so configuring glibc
3305  # with a fresh cross-compiler works.
3306  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3307  # <limits.h> exists even on freestanding compilers.
3308  # On the NeXT, cc -E runs the code through the compiler's parser,
3309  # not just through cpp. "Syntax error" is here to catch this case.
3310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h.  */
3312#ifdef __STDC__
3313# include <limits.h>
3314#else
3315# include <assert.h>
3316#endif
3317		     Syntax error
3318_ACEOF
3319if ac_fn_c_try_cpp "$LINENO"; then :
3320
3321else
3322  # Broken: fails on valid input.
3323continue
3324fi
3325rm -f conftest.err conftest.i conftest.$ac_ext
3326
3327  # OK, works on sane cases.  Now check whether nonexistent headers
3328  # can be detected and how.
3329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331#include <ac_nonexistent.h>
3332_ACEOF
3333if ac_fn_c_try_cpp "$LINENO"; then :
3334  # Broken: success on invalid input.
3335continue
3336else
3337  # Passes both tests.
3338ac_preproc_ok=:
3339break
3340fi
3341rm -f conftest.err conftest.i conftest.$ac_ext
3342
3343done
3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345rm -f conftest.i conftest.err conftest.$ac_ext
3346if $ac_preproc_ok; then :
3347  break
3348fi
3349
3350    done
3351    ac_cv_prog_CPP=$CPP
3352
3353fi
3354  CPP=$ac_cv_prog_CPP
3355else
3356  ac_cv_prog_CPP=$CPP
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3359$as_echo "$CPP" >&6; }
3360ac_preproc_ok=false
3361for ac_c_preproc_warn_flag in '' yes
3362do
3363  # Use a header file that comes with gcc, so configuring glibc
3364  # with a fresh cross-compiler works.
3365  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366  # <limits.h> exists even on freestanding compilers.
3367  # On the NeXT, cc -E runs the code through the compiler's parser,
3368  # not just through cpp. "Syntax error" is here to catch this case.
3369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h.  */
3371#ifdef __STDC__
3372# include <limits.h>
3373#else
3374# include <assert.h>
3375#endif
3376		     Syntax error
3377_ACEOF
3378if ac_fn_c_try_cpp "$LINENO"; then :
3379
3380else
3381  # Broken: fails on valid input.
3382continue
3383fi
3384rm -f conftest.err conftest.i conftest.$ac_ext
3385
3386  # OK, works on sane cases.  Now check whether nonexistent headers
3387  # can be detected and how.
3388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h.  */
3390#include <ac_nonexistent.h>
3391_ACEOF
3392if ac_fn_c_try_cpp "$LINENO"; then :
3393  # Broken: success on invalid input.
3394continue
3395else
3396  # Passes both tests.
3397ac_preproc_ok=:
3398break
3399fi
3400rm -f conftest.err conftest.i conftest.$ac_ext
3401
3402done
3403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3404rm -f conftest.i conftest.err conftest.$ac_ext
3405if $ac_preproc_ok; then :
3406
3407else
3408  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3411See \`config.log' for more details" "$LINENO" 5; }
3412fi
3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
3420
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to make hard links" >&5
3422$as_echo_n "checking how to make hard links... " >&6; }
3423if ${cl_cv_prog_LN+:} false; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  rm -f conftestdata conftestfile
3427     echo data > conftestfile
3428     if ln conftestfile conftestdata 2>/dev/null; then
3429       cl_cv_prog_LN=ln
3430     else
3431       cl_cv_prog_LN="cp -p"
3432     fi
3433     rm -f conftestdata conftestfile
3434
3435fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN" >&5
3437$as_echo "$cl_cv_prog_LN" >&6; }
3438  LN="$cl_cv_prog_LN"
3439
3440
3441
3442
3443      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3444$as_echo_n "checking whether ln -s works... " >&6; }
3445if ${cl_cv_prog_LN_S_works+:} false; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  rm -f conftestdata
3449     if ln -s X conftestdata 2>/dev/null; then
3450       cl_cv_prog_LN_S_works=yes
3451     else
3452       cl_cv_prog_LN_S_works=no
3453     fi
3454     rm -f conftestdata
3455
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN_S_works" >&5
3458$as_echo "$cl_cv_prog_LN_S_works" >&6; }
3459  if test $cl_cv_prog_LN_S_works = yes; then
3460    LN_S="ln -s"
3461  else
3462    LN_S="$cl_cv_prog_LN"
3463  fi
3464
3465
3466
3467
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3469$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3470if ${ac_cv_path_GREP+:} false; then :
3471  $as_echo_n "(cached) " >&6
3472else
3473  if test -z "$GREP"; then
3474  ac_path_GREP_found=false
3475  # Loop through the user's path and test for each of PROGNAME-LIST
3476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3478do
3479  IFS=$as_save_IFS
3480  test -z "$as_dir" && as_dir=.
3481    for ac_prog in grep ggrep; do
3482    for ac_exec_ext in '' $ac_executable_extensions; do
3483      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3484      as_fn_executable_p "$ac_path_GREP" || continue
3485# Check for GNU ac_path_GREP and select it if it is found.
3486  # Check for GNU $ac_path_GREP
3487case `"$ac_path_GREP" --version 2>&1` in
3488*GNU*)
3489  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3490*)
3491  ac_count=0
3492  $as_echo_n 0123456789 >"conftest.in"
3493  while :
3494  do
3495    cat "conftest.in" "conftest.in" >"conftest.tmp"
3496    mv "conftest.tmp" "conftest.in"
3497    cp "conftest.in" "conftest.nl"
3498    $as_echo 'GREP' >> "conftest.nl"
3499    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501    as_fn_arith $ac_count + 1 && ac_count=$as_val
3502    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3503      # Best one so far, save it but keep looking for a better one
3504      ac_cv_path_GREP="$ac_path_GREP"
3505      ac_path_GREP_max=$ac_count
3506    fi
3507    # 10*(2^10) chars as input seems more than enough
3508    test $ac_count -gt 10 && break
3509  done
3510  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511esac
3512
3513      $ac_path_GREP_found && break 3
3514    done
3515  done
3516  done
3517IFS=$as_save_IFS
3518  if test -z "$ac_cv_path_GREP"; then
3519    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3520  fi
3521else
3522  ac_cv_path_GREP=$GREP
3523fi
3524
3525fi
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3527$as_echo "$ac_cv_path_GREP" >&6; }
3528 GREP="$ac_cv_path_GREP"
3529
3530
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3532$as_echo_n "checking for egrep... " >&6; }
3533if ${ac_cv_path_EGREP+:} false; then :
3534  $as_echo_n "(cached) " >&6
3535else
3536  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3537   then ac_cv_path_EGREP="$GREP -E"
3538   else
3539     if test -z "$EGREP"; then
3540  ac_path_EGREP_found=false
3541  # Loop through the user's path and test for each of PROGNAME-LIST
3542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3544do
3545  IFS=$as_save_IFS
3546  test -z "$as_dir" && as_dir=.
3547    for ac_prog in egrep; do
3548    for ac_exec_ext in '' $ac_executable_extensions; do
3549      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3550      as_fn_executable_p "$ac_path_EGREP" || continue
3551# Check for GNU ac_path_EGREP and select it if it is found.
3552  # Check for GNU $ac_path_EGREP
3553case `"$ac_path_EGREP" --version 2>&1` in
3554*GNU*)
3555  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3556*)
3557  ac_count=0
3558  $as_echo_n 0123456789 >"conftest.in"
3559  while :
3560  do
3561    cat "conftest.in" "conftest.in" >"conftest.tmp"
3562    mv "conftest.tmp" "conftest.in"
3563    cp "conftest.in" "conftest.nl"
3564    $as_echo 'EGREP' >> "conftest.nl"
3565    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567    as_fn_arith $ac_count + 1 && ac_count=$as_val
3568    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3569      # Best one so far, save it but keep looking for a better one
3570      ac_cv_path_EGREP="$ac_path_EGREP"
3571      ac_path_EGREP_max=$ac_count
3572    fi
3573    # 10*(2^10) chars as input seems more than enough
3574    test $ac_count -gt 10 && break
3575  done
3576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577esac
3578
3579      $ac_path_EGREP_found && break 3
3580    done
3581  done
3582  done
3583IFS=$as_save_IFS
3584  if test -z "$ac_cv_path_EGREP"; then
3585    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3586  fi
3587else
3588  ac_cv_path_EGREP=$EGREP
3589fi
3590
3591   fi
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3594$as_echo "$ac_cv_path_EGREP" >&6; }
3595 EGREP="$ac_cv_path_EGREP"
3596
3597
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3599$as_echo_n "checking for ANSI C header files... " >&6; }
3600if ${ac_cv_header_stdc+:} false; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <stdlib.h>
3606#include <stdarg.h>
3607#include <string.h>
3608#include <float.h>
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618if ac_fn_c_try_compile "$LINENO"; then :
3619  ac_cv_header_stdc=yes
3620else
3621  ac_cv_header_stdc=no
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624
3625if test $ac_cv_header_stdc = yes; then
3626  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h.  */
3629#include <string.h>
3630
3631_ACEOF
3632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633  $EGREP "memchr" >/dev/null 2>&1; then :
3634
3635else
3636  ac_cv_header_stdc=no
3637fi
3638rm -f conftest*
3639
3640fi
3641
3642if test $ac_cv_header_stdc = yes; then
3643  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h.  */
3646#include <stdlib.h>
3647
3648_ACEOF
3649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650  $EGREP "free" >/dev/null 2>&1; then :
3651
3652else
3653  ac_cv_header_stdc=no
3654fi
3655rm -f conftest*
3656
3657fi
3658
3659if test $ac_cv_header_stdc = yes; then
3660  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661  if test "$cross_compiling" = yes; then :
3662  :
3663else
3664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666#include <ctype.h>
3667#include <stdlib.h>
3668#if ((' ' & 0x0FF) == 0x020)
3669# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3670# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3671#else
3672# define ISLOWER(c) \
3673		   (('a' <= (c) && (c) <= 'i') \
3674		     || ('j' <= (c) && (c) <= 'r') \
3675		     || ('s' <= (c) && (c) <= 'z'))
3676# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3677#endif
3678
3679#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3680int
3681main ()
3682{
3683  int i;
3684  for (i = 0; i < 256; i++)
3685    if (XOR (islower (i), ISLOWER (i))
3686	|| toupper (i) != TOUPPER (i))
3687      return 2;
3688  return 0;
3689}
3690_ACEOF
3691if ac_fn_c_try_run "$LINENO"; then :
3692
3693else
3694  ac_cv_header_stdc=no
3695fi
3696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3697  conftest.$ac_objext conftest.beam conftest.$ac_ext
3698fi
3699
3700fi
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3703$as_echo "$ac_cv_header_stdc" >&6; }
3704if test $ac_cv_header_stdc = yes; then
3705
3706$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3707
3708fi
3709
3710# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3711for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3712		  inttypes.h stdint.h unistd.h
3713do :
3714  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3715ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3716"
3717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3718  cat >>confdefs.h <<_ACEOF
3719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3720_ACEOF
3721
3722fi
3723
3724done
3725
3726
3727
3728  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3729if test "x$ac_cv_header_minix_config_h" = xyes; then :
3730  MINIX=yes
3731else
3732  MINIX=
3733fi
3734
3735
3736  if test "$MINIX" = yes; then
3737
3738$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3739
3740
3741$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3742
3743
3744$as_echo "#define _MINIX 1" >>confdefs.h
3745
3746
3747$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3748
3749  fi
3750
3751
3752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3753$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3754if ${ac_cv_safe_to_define___extensions__+:} false; then :
3755  $as_echo_n "(cached) " >&6
3756else
3757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h.  */
3759
3760#         define __EXTENSIONS__ 1
3761          $ac_includes_default
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771  ac_cv_safe_to_define___extensions__=yes
3772else
3773  ac_cv_safe_to_define___extensions__=no
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3778$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3779  test $ac_cv_safe_to_define___extensions__ = yes &&
3780    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3781
3782  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3783
3784  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3785
3786  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3787
3788  $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3789
3790  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
3791
3792  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3793
3794  $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3795
3796  $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3797
3798  $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3799
3800  $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3801
3802  $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3803
3804  $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3805
3806  $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3807
3808  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3809
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3811$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3812if ${ac_cv_should_define__xopen_source+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  ac_cv_should_define__xopen_source=no
3816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819          #include <wchar.h>
3820          mbstate_t x;
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830
3831else
3832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834
3835             #define _XOPEN_SOURCE 500
3836             #include <wchar.h>
3837             mbstate_t x;
3838int
3839main ()
3840{
3841
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_compile "$LINENO"; then :
3847  ac_cv_should_define__xopen_source=yes
3848fi
3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850fi
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852fi
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3854$as_echo "$ac_cv_should_define__xopen_source" >&6; }
3855  test $ac_cv_should_define__xopen_source = yes &&
3856    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3857
3858  $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Headers, Variables & Functions)${term_norm}" >&5
3874$as_echo "$as_me: ${term_bold}** Readline (Headers, Variables & Functions)${term_norm}" >&6;}
3875
3876
3877                termcap_prefix=""
3878
3879# Check whether --with-libtermcap-prefix was given.
3880if test "${with_libtermcap_prefix+set}" = set; then :
3881  withval=$with_libtermcap_prefix; case "$withval" in
3882       /*) termcap_prefix=$withval; ;;
3883     esac
3884
3885fi
3886
3887  if test x$termcap_prefix != x; then
3888    LDFLAGS_save=$LDFLAGS
3889    LDFLAGS=$LDFLAGS" -L$termcap_prefix/lib"
3890  fi
3891  LIBTERMCAP="broken"
3892  INCTERMCAP=""
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
3894$as_echo_n "checking for library containing tgetent... " >&6; }
3895if ${ac_cv_search_tgetent+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  ac_func_search_save_LIBS=$LIBS
3899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901
3902/* Override any GCC internal prototype to avoid an error.
3903   Use char because int might match the return type of a GCC
3904   builtin and then its argument prototype would still apply.  */
3905#ifdef __cplusplus
3906extern "C"
3907#endif
3908char tgetent ();
3909int
3910main ()
3911{
3912return tgetent ();
3913  ;
3914  return 0;
3915}
3916_ACEOF
3917for ac_lib in '' ncurses termcap tinfo; do
3918  if test -z "$ac_lib"; then
3919    ac_res="none required"
3920  else
3921    ac_res=-l$ac_lib
3922    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3923  fi
3924  if ac_fn_c_try_link "$LINENO"; then :
3925  ac_cv_search_tgetent=$ac_res
3926fi
3927rm -f core conftest.err conftest.$ac_objext \
3928    conftest$ac_exeext
3929  if ${ac_cv_search_tgetent+:} false; then :
3930  break
3931fi
3932done
3933if ${ac_cv_search_tgetent+:} false; then :
3934
3935else
3936  ac_cv_search_tgetent=no
3937fi
3938rm conftest.$ac_ext
3939LIBS=$ac_func_search_save_LIBS
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
3942$as_echo "$ac_cv_search_tgetent" >&6; }
3943ac_res=$ac_cv_search_tgetent
3944if test "$ac_res" != no; then :
3945  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3946  LIBTERMCAP=""
3947fi
3948
3949  if test x$termcap_prefix != x; then
3950    LDFLAGS=$LDFLAGS_save
3951    if test x$LIBTERMCAP != xbroken; then
3952      INCTERMCAP=-I$termcap_prefix/include
3953      LIBTERMCAP=-L$termcap_prefix/lib
3954    fi
3955  fi
3956
3957
3958
3959
3960      if test "X$prefix" = "XNONE"; then
3961    acl_final_prefix="$ac_default_prefix"
3962  else
3963    acl_final_prefix="$prefix"
3964  fi
3965  if test "X$exec_prefix" = "XNONE"; then
3966    acl_final_exec_prefix='${prefix}'
3967  else
3968    acl_final_exec_prefix="$exec_prefix"
3969  fi
3970  acl_save_prefix="$prefix"
3971  prefix="$acl_final_prefix"
3972  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3973  prefix="$acl_save_prefix"
3974
3975# Make sure we can run config.sub.
3976$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3977  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3978
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3980$as_echo_n "checking build system type... " >&6; }
3981if ${ac_cv_build+:} false; then :
3982  $as_echo_n "(cached) " >&6
3983else
3984  ac_build_alias=$build_alias
3985test "x$ac_build_alias" = x &&
3986  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3987test "x$ac_build_alias" = x &&
3988  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3989ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3990  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3991
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3994$as_echo "$ac_cv_build" >&6; }
3995case $ac_cv_build in
3996*-*-*) ;;
3997*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3998esac
3999build=$ac_cv_build
4000ac_save_IFS=$IFS; IFS='-'
4001set x $ac_cv_build
4002shift
4003build_cpu=$1
4004build_vendor=$2
4005shift; shift
4006# Remember, the first character of IFS is used to create $*,
4007# except with old shells:
4008build_os=$*
4009IFS=$ac_save_IFS
4010case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4011
4012
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4014$as_echo_n "checking host system type... " >&6; }
4015if ${ac_cv_host+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018  if test "x$host_alias" = x; then
4019  ac_cv_host=$ac_cv_build
4020else
4021  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4022    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4023fi
4024
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4027$as_echo "$ac_cv_host" >&6; }
4028case $ac_cv_host in
4029*-*-*) ;;
4030*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4031esac
4032host=$ac_cv_host
4033ac_save_IFS=$IFS; IFS='-'
4034set x $ac_cv_host
4035shift
4036host_cpu=$1
4037host_vendor=$2
4038shift; shift
4039# Remember, the first character of IFS is used to create $*,
4040# except with old shells:
4041host_os=$*
4042IFS=$ac_save_IFS
4043case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4044
4045
4046
4047
4048# Check whether --with-gnu-ld was given.
4049if test "${with_gnu_ld+set}" = set; then :
4050  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4051else
4052  with_gnu_ld=no
4053fi
4054
4055# Prepare PATH_SEPARATOR.
4056# The user is always right.
4057if test "${PATH_SEPARATOR+set}" != set; then
4058  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4059  # contains only /bin. Note that ksh looks also at the FPATH variable,
4060  # so we have to set that as well for the test.
4061  PATH_SEPARATOR=:
4062  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4063    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4064           || PATH_SEPARATOR=';'
4065       }
4066fi
4067
4068if test -n "$LD"; then
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
4070$as_echo_n "checking for ld... " >&6; }
4071elif test "$GCC" = yes; then
4072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4073$as_echo_n "checking for ld used by $CC... " >&6; }
4074elif test "$with_gnu_ld" = yes; then
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4076$as_echo_n "checking for GNU ld... " >&6; }
4077else
4078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4079$as_echo_n "checking for non-GNU ld... " >&6; }
4080fi
4081if test -n "$LD"; then
4082  # Let the user override the test with a path.
4083  :
4084else
4085  if ${acl_cv_path_LD+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088
4089    acl_cv_path_LD= # Final result of this test
4090    ac_prog=ld # Program to search in $PATH
4091    if test "$GCC" = yes; then
4092      # Check if gcc -print-prog-name=ld gives a path.
4093      case $host in
4094        *-*-mingw*)
4095          # gcc leaves a trailing carriage return which upsets mingw
4096          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4097        *)
4098          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
4099      esac
4100      case $acl_output in
4101        # Accept absolute paths.
4102        [\\/]* | ?:[\\/]*)
4103          re_direlt='/[^/][^/]*/\.\./'
4104          # Canonicalize the pathname of ld
4105          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
4106          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
4107            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
4108          done
4109          # Got the pathname. No search in PATH is needed.
4110          acl_cv_path_LD="$acl_output"
4111          ac_prog=
4112          ;;
4113        "")
4114          # If it fails, then pretend we aren't using GCC.
4115          ;;
4116        *)
4117          # If it is relative, then search for the first ld in PATH.
4118          with_gnu_ld=unknown
4119          ;;
4120      esac
4121    fi
4122    if test -n "$ac_prog"; then
4123      # Search for $ac_prog in $PATH.
4124      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125      for ac_dir in $PATH; do
4126        IFS="$acl_save_ifs"
4127        test -z "$ac_dir" && ac_dir=.
4128        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4129          acl_cv_path_LD="$ac_dir/$ac_prog"
4130          # Check to see if the program is GNU ld.  I'd rather use --version,
4131          # but apparently some variants of GNU ld only accept -v.
4132          # Break only if it was the GNU/non-GNU ld that we prefer.
4133          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4134            *GNU* | *'with BFD'*)
4135              test "$with_gnu_ld" != no && break
4136              ;;
4137            *)
4138              test "$with_gnu_ld" != yes && break
4139              ;;
4140          esac
4141        fi
4142      done
4143      IFS="$acl_save_ifs"
4144    fi
4145    case $host in
4146      *-*-aix*)
4147        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149#if defined __powerpc64__ || defined _ARCH_PPC64
4150                int ok;
4151               #else
4152                error fail
4153               #endif
4154
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"; then :
4157  # The compiler produces 64-bit code. Add option '-b64' so that the
4158           # linker groks 64-bit object files.
4159           case "$acl_cv_path_LD " in
4160             *" -b64 "*) ;;
4161             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
4162           esac
4163
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166        ;;
4167      sparc64-*-netbsd*)
4168        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170#if defined __sparcv9 || defined __arch64__
4171                int ok;
4172               #else
4173                error fail
4174               #endif
4175
4176_ACEOF
4177if ac_fn_c_try_compile "$LINENO"; then :
4178
4179else
4180  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
4181           # so that the linker groks 32-bit object files.
4182           case "$acl_cv_path_LD " in
4183             *" -m elf32_sparc "*) ;;
4184             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
4185           esac
4186
4187fi
4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189        ;;
4190    esac
4191
4192fi
4193
4194  LD="$acl_cv_path_LD"
4195fi
4196if test -n "$LD"; then
4197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4198$as_echo "$LD" >&6; }
4199else
4200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
4202  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4205$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4206if ${acl_cv_prog_gnu_ld+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4210case `$LD -v 2>&1 </dev/null` in
4211*GNU* | *'with BFD'*)
4212  acl_cv_prog_gnu_ld=yes
4213  ;;
4214*)
4215  acl_cv_prog_gnu_ld=no
4216  ;;
4217esac
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4220$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4221with_gnu_ld=$acl_cv_prog_gnu_ld
4222
4223
4224
4225
4226                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4227$as_echo_n "checking for shared library run path origin... " >&6; }
4228if ${acl_cv_rpath+:} false; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231
4232    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4233    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4234    . ./conftest.sh
4235    rm -f ./conftest.sh
4236    acl_cv_rpath=done
4237
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4240$as_echo "$acl_cv_rpath" >&6; }
4241  wl="$acl_cv_wl"
4242  acl_libext="$acl_cv_libext"
4243  acl_shlibext="$acl_cv_shlibext"
4244  acl_libname_spec="$acl_cv_libname_spec"
4245  acl_library_names_spec="$acl_cv_library_names_spec"
4246  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4247  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4248  acl_hardcode_direct="$acl_cv_hardcode_direct"
4249  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4250    # Check whether --enable-rpath was given.
4251if test "${enable_rpath+set}" = set; then :
4252  enableval=$enable_rpath; :
4253else
4254  enable_rpath=yes
4255fi
4256
4257
4258
4259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262#ifdef _MSC_VER
4263MicrosoftCompiler
4264#endif
4265
4266_ACEOF
4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268  $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
4269  gl_asmext='asm'
4270     gl_c_asm_opt='-c -Fa'
4271
4272else
4273  gl_asmext='s'
4274     gl_c_asm_opt='-S'
4275
4276fi
4277rm -f conftest*
4278
4279
4280
4281
4282
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
4284$as_echo_n "checking host CPU and C ABI... " >&6; }
4285if ${gl_cv_host_cpu_c_abi+:} false; then :
4286  $as_echo_n "(cached) " >&6
4287else
4288  case "$host_cpu" in
4289
4290       i[4567]86 )
4291         gl_cv_host_cpu_c_abi=i386
4292         ;;
4293
4294       x86_64 )
4295         # On x86_64 systems, the C compiler may be generating code in one of
4296         # these ABIs:
4297         # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
4298         # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
4299         #   with native Windows (mingw, MSVC).
4300         # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
4301         # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
4302         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304#if (defined __x86_64__ || defined __amd64__ \
4305                     || defined _M_X64 || defined _M_AMD64)
4306                 int ok;
4307                #else
4308                 error fail
4309                #endif
4310
4311_ACEOF
4312if ac_fn_c_try_compile "$LINENO"; then :
4313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315#if defined __ILP32__ || defined _ILP32
4316                    int ok;
4317                   #else
4318                    error fail
4319                   #endif
4320
4321_ACEOF
4322if ac_fn_c_try_compile "$LINENO"; then :
4323  gl_cv_host_cpu_c_abi=x86_64-x32
4324else
4325  gl_cv_host_cpu_c_abi=x86_64
4326fi
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328else
4329  gl_cv_host_cpu_c_abi=i386
4330fi
4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332         ;;
4333
4334       alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
4335         gl_cv_host_cpu_c_abi=alpha
4336         ;;
4337
4338       arm* | aarch64 )
4339         # Assume arm with EABI.
4340         # On arm64 systems, the C compiler may be generating code in one of
4341         # these ABIs:
4342         # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
4343         # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
4344         # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
4345         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347#ifdef __aarch64__
4348                 int ok;
4349                #else
4350                 error fail
4351                #endif
4352
4353_ACEOF
4354if ac_fn_c_try_compile "$LINENO"; then :
4355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h.  */
4357#if defined __ILP32__ || defined _ILP32
4358                   int ok;
4359                  #else
4360                   error fail
4361                  #endif
4362
4363_ACEOF
4364if ac_fn_c_try_compile "$LINENO"; then :
4365  gl_cv_host_cpu_c_abi=arm64-ilp32
4366else
4367  gl_cv_host_cpu_c_abi=arm64
4368fi
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370else
4371  # Don't distinguish little-endian and big-endian arm, since they
4372            # don't require different machine code for simple operations and
4373            # since the user can distinguish them through the preprocessor
4374            # defines __ARMEL__ vs. __ARMEB__.
4375            # But distinguish arm which passes floating-point arguments and
4376            # return values in integer registers (r0, r1, ...) - this is
4377            # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
4378            # passes them in float registers (s0, s1, ...) and double registers
4379            # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
4380            # sets the preprocessor defines __ARM_PCS (for the first case) and
4381            # __ARM_PCS_VFP (for the second case), but older GCC does not.
4382            echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
4383            # Look for a reference to the register d0 in the .s file.
4384            { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
4385  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4386  (eval $ac_try) 2>&5
4387  ac_status=$?
4388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389  test $ac_status = 0; }; } >/dev/null 2>&1
4390            if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
4391              gl_cv_host_cpu_c_abi=armhf
4392            else
4393              gl_cv_host_cpu_c_abi=arm
4394            fi
4395            rm -f conftest*
4396
4397fi
4398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399         ;;
4400
4401       hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
4402         # On hppa, the C compiler may be generating 32-bit code or 64-bit
4403         # code. In the latter case, it defines _LP64 and __LP64__.
4404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h.  */
4406#ifdef __LP64__
4407                 int ok;
4408                #else
4409                 error fail
4410                #endif
4411
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414  gl_cv_host_cpu_c_abi=hppa64
4415else
4416  gl_cv_host_cpu_c_abi=hppa
4417fi
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419         ;;
4420
4421       ia64* )
4422         # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
4423         # 32-bit code. In the latter case, it defines _ILP32.
4424         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426#ifdef _ILP32
4427                 int ok;
4428                #else
4429                 error fail
4430                #endif
4431
4432_ACEOF
4433if ac_fn_c_try_compile "$LINENO"; then :
4434  gl_cv_host_cpu_c_abi=ia64-ilp32
4435else
4436  gl_cv_host_cpu_c_abi=ia64
4437fi
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439         ;;
4440
4441       mips* )
4442         # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
4443         # at 32.
4444         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h.  */
4446#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
4447                 int ok;
4448                #else
4449                 error fail
4450                #endif
4451
4452_ACEOF
4453if ac_fn_c_try_compile "$LINENO"; then :
4454  gl_cv_host_cpu_c_abi=mips64
4455else
4456  # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
4457            # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
4458            # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
4459            # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
4460            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462#if (_MIPS_SIM == _ABIN32)
4463                    int ok;
4464                   #else
4465                    error fail
4466                   #endif
4467
4468_ACEOF
4469if ac_fn_c_try_compile "$LINENO"; then :
4470  gl_cv_host_cpu_c_abi=mipsn32
4471else
4472  gl_cv_host_cpu_c_abi=mips
4473fi
4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477         ;;
4478
4479       powerpc* )
4480         # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
4481         # No need to distinguish them here; the caller may distinguish
4482         # them based on the OS.
4483         # On powerpc64 systems, the C compiler may still be generating
4484         # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
4485         # be generating 64-bit code.
4486         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488#if defined __powerpc64__ || defined _ARCH_PPC64
4489                 int ok;
4490                #else
4491                 error fail
4492                #endif
4493
4494_ACEOF
4495if ac_fn_c_try_compile "$LINENO"; then :
4496  # On powerpc64, there are two ABIs on Linux: The AIX compatible
4497            # one and the ELFv2 one. The latter defines _CALL_ELF=2.
4498            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500#if defined _CALL_ELF && _CALL_ELF == 2
4501                    int ok;
4502                   #else
4503                    error fail
4504                   #endif
4505
4506_ACEOF
4507if ac_fn_c_try_compile "$LINENO"; then :
4508  gl_cv_host_cpu_c_abi=powerpc64-elfv2
4509else
4510  gl_cv_host_cpu_c_abi=powerpc64
4511fi
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513
4514else
4515  gl_cv_host_cpu_c_abi=powerpc
4516fi
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518         ;;
4519
4520       rs6000 )
4521         gl_cv_host_cpu_c_abi=powerpc
4522         ;;
4523
4524       riscv32 | riscv64 )
4525         # There are 2 architectures (with variants): rv32* and rv64*.
4526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528#if __riscv_xlen == 64
4529                  int ok;
4530                #else
4531                  error fail
4532                #endif
4533
4534_ACEOF
4535if ac_fn_c_try_compile "$LINENO"; then :
4536  cpu=riscv64
4537else
4538  cpu=riscv32
4539fi
4540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541         # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
4542         # Size of 'long' and 'void *':
4543         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545#if defined __LP64__
4546                  int ok;
4547                #else
4548                  error fail
4549                #endif
4550
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553  main_abi=lp64
4554else
4555  main_abi=ilp32
4556fi
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558         # Float ABIs:
4559         # __riscv_float_abi_double:
4560         #   'float' and 'double' are passed in floating-point registers.
4561         # __riscv_float_abi_single:
4562         #   'float' are passed in floating-point registers.
4563         # __riscv_float_abi_soft:
4564         #   No values are passed in floating-point registers.
4565         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h.  */
4567#if defined __riscv_float_abi_double
4568                  int ok;
4569                #else
4570                  error fail
4571                #endif
4572
4573_ACEOF
4574if ac_fn_c_try_compile "$LINENO"; then :
4575  float_abi=d
4576else
4577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h.  */
4579#if defined __riscv_float_abi_single
4580                     int ok;
4581                   #else
4582                     error fail
4583                   #endif
4584
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"; then :
4587  float_abi=f
4588else
4589  float_abi=''
4590fi
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593fi
4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595         gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
4596         ;;
4597
4598       s390* )
4599         # On s390x, the C compiler may be generating 64-bit (= s390x) code
4600         # or 31-bit (= s390) code.
4601         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603#if defined __LP64__ || defined __s390x__
4604                  int ok;
4605                #else
4606                  error fail
4607                #endif
4608
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"; then :
4611  gl_cv_host_cpu_c_abi=s390x
4612else
4613  gl_cv_host_cpu_c_abi=s390
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616         ;;
4617
4618       sparc | sparc64 )
4619         # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
4620         # C compiler still generates 32-bit code.
4621         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h.  */
4623#if defined __sparcv9 || defined __arch64__
4624                 int ok;
4625                #else
4626                 error fail
4627                #endif
4628
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631  gl_cv_host_cpu_c_abi=sparc64
4632else
4633  gl_cv_host_cpu_c_abi=sparc
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636         ;;
4637
4638       *)
4639         gl_cv_host_cpu_c_abi="$host_cpu"
4640         ;;
4641     esac
4642
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
4645$as_echo "$gl_cv_host_cpu_c_abi" >&6; }
4646
4647    HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
4648  HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
4649
4650
4651
4652  # This was
4653  #   AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
4654  #   AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
4655  # earlier, but KAI C++ 3.2d doesn't like this.
4656  sed -e 's/-/_/g' >> confdefs.h <<EOF
4657#ifndef __${HOST_CPU}__
4658#define __${HOST_CPU}__ 1
4659#endif
4660#ifndef __${HOST_CPU_C_ABI}__
4661#define __${HOST_CPU_C_ABI}__ 1
4662#endif
4663EOF
4664
4665
4666
4667
4668
4669
4670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
4671$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
4672if ${acl_cv_libdirstems+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  acl_libdirstem=lib
4676     acl_libdirstem2=
4677     case "$host_os" in
4678       solaris*)
4679                                                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4680$as_echo_n "checking for 64-bit host... " >&6; }
4681if ${gl_cv_solaris_64bit+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h.  */
4686#ifdef _LP64
4687                    int ok;
4688                   #else
4689                    error fail
4690                   #endif
4691
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694  gl_cv_solaris_64bit=yes
4695else
4696  gl_cv_solaris_64bit=no
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4702$as_echo "$gl_cv_solaris_64bit" >&6; }
4703         if test $gl_cv_solaris_64bit = yes; then
4704           acl_libdirstem=lib/64
4705           case "$host_cpu" in
4706             sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4707             i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4708           esac
4709         fi
4710         ;;
4711       *)
4712                           case "$gl_cv_host_cpu_c_abi" in
4713           i386 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | s390 | sparc)
4714             ;;
4715           *) # x86_64 | arm64 | hppa64 | ia64 | mips64 | powerpc64* | s390x | sparc64 | ...
4716                                                    searchpath=`(if test -f /usr/bin/gcc \
4717                             && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
4718                            LC_ALL=C /usr/bin/gcc -print-search-dirs; \
4719                          else \
4720                            LC_ALL=C $CC -print-search-dirs; \
4721                          fi) 2>/dev/null \
4722                         | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4723             if test -n "$searchpath"; then
4724               acl_save_IFS="${IFS= 	}"; IFS=":"
4725               for searchdir in $searchpath; do
4726                 if test -d "$searchdir"; then
4727                   case "$searchdir" in
4728                     */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4729                     */../ | */.. )
4730                       # Better ignore directories of this form. They are misleading.
4731                       ;;
4732                     *) searchdir=`cd "$searchdir" && pwd`
4733                        case "$searchdir" in
4734                          */lib64 ) acl_libdirstem=lib64 ;;
4735                        esac ;;
4736                   esac
4737                 fi
4738               done
4739               IFS="$acl_save_IFS"
4740             fi
4741             ;;
4742         esac
4743         ;;
4744     esac
4745     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4746     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
4747
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
4750$as_echo "$acl_cv_libdirstems" >&6; }
4751  # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
4752  acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
4753  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
4754
4755
4756
4757# Check whether --with-readline was given.
4758if test "${with_readline+set}" = set; then :
4759  withval=$with_readline; ac_cv_use_readline=$withval
4760else
4761  ac_cv_use_readline=default
4762fi
4763
4764  if test "$ac_cv_use_readline" = no; then
4765    { $as_echo "$as_me:${as_lineno-$LINENO}: not checking for readline" >&5
4766$as_echo "$as_me: not checking for readline" >&6;}
4767    ac_cv_have_readline='no, per user request'
4768  else
4769
4770    if test $ac_cv_search_tgetent = no; then
4771      ac_cv_have_readline='no, consider installing GNU ncurses'
4772    else
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782    use_additional=yes
4783
4784  acl_save_prefix="$prefix"
4785  prefix="$acl_final_prefix"
4786  acl_save_exec_prefix="$exec_prefix"
4787  exec_prefix="$acl_final_exec_prefix"
4788
4789    eval additional_includedir=\"$includedir\"
4790    eval additional_libdir=\"$libdir\"
4791
4792  exec_prefix="$acl_save_exec_prefix"
4793  prefix="$acl_save_prefix"
4794
4795
4796# Check whether --with-libreadline-prefix was given.
4797if test "${with_libreadline_prefix+set}" = set; then :
4798  withval=$with_libreadline_prefix;
4799    if test "X$withval" = "Xno"; then
4800      use_additional=no
4801    else
4802      if test "X$withval" = "X"; then
4803
4804  acl_save_prefix="$prefix"
4805  prefix="$acl_final_prefix"
4806  acl_save_exec_prefix="$exec_prefix"
4807  exec_prefix="$acl_final_exec_prefix"
4808
4809          eval additional_includedir=\"$includedir\"
4810          eval additional_libdir=\"$libdir\"
4811
4812  exec_prefix="$acl_save_exec_prefix"
4813  prefix="$acl_save_prefix"
4814
4815      else
4816        additional_includedir="$withval/include"
4817        additional_libdir="$withval/$acl_libdirstem"
4818        if test "$acl_libdirstem2" != "$acl_libdirstem" \
4819           && test ! -d "$withval/$acl_libdirstem"; then
4820          additional_libdir="$withval/$acl_libdirstem2"
4821        fi
4822      fi
4823    fi
4824
4825fi
4826
4827      LIBREADLINE=
4828  LTLIBREADLINE=
4829  INCREADLINE=
4830  LIBREADLINE_PREFIX=
4831      HAVE_LIBREADLINE=
4832  rpathdirs=
4833  ltrpathdirs=
4834  names_already_handled=
4835  names_next_round='readline '
4836  while test -n "$names_next_round"; do
4837    names_this_round="$names_next_round"
4838    names_next_round=
4839    for name in $names_this_round; do
4840      already_handled=
4841      for n in $names_already_handled; do
4842        if test "$n" = "$name"; then
4843          already_handled=yes
4844          break
4845        fi
4846      done
4847      if test -z "$already_handled"; then
4848        names_already_handled="$names_already_handled $name"
4849                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
4850        eval value=\"\$HAVE_LIB$uppername\"
4851        if test -n "$value"; then
4852          if test "$value" = yes; then
4853            eval value=\"\$LIB$uppername\"
4854            test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
4855            eval value=\"\$LTLIB$uppername\"
4856            test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
4857          else
4858                                    :
4859          fi
4860        else
4861                              found_dir=
4862          found_la=
4863          found_so=
4864          found_a=
4865          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4866          if test -n "$acl_shlibext"; then
4867            shrext=".$acl_shlibext"             # typically: shrext=.so
4868          else
4869            shrext=
4870          fi
4871          if test $use_additional = yes; then
4872            dir="$additional_libdir"
4873                                    if test -n "$acl_shlibext"; then
4874              if test -f "$dir/$libname$shrext"; then
4875                found_dir="$dir"
4876                found_so="$dir/$libname$shrext"
4877              else
4878                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4879                  ver=`(cd "$dir" && \
4880                        for f in "$libname$shrext".*; do echo "$f"; done \
4881                        | sed -e "s,^$libname$shrext\\\\.,," \
4882                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4883                        | sed 1q ) 2>/dev/null`
4884                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4885                    found_dir="$dir"
4886                    found_so="$dir/$libname$shrext.$ver"
4887                  fi
4888                else
4889                  eval library_names=\"$acl_library_names_spec\"
4890                  for f in $library_names; do
4891                    if test -f "$dir/$f"; then
4892                      found_dir="$dir"
4893                      found_so="$dir/$f"
4894                      break
4895                    fi
4896                  done
4897                fi
4898              fi
4899            fi
4900                        if test "X$found_dir" = "X"; then
4901              if test -f "$dir/$libname.$acl_libext"; then
4902                found_dir="$dir"
4903                found_a="$dir/$libname.$acl_libext"
4904              fi
4905            fi
4906            if test "X$found_dir" != "X"; then
4907              if test -f "$dir/$libname.la"; then
4908                found_la="$dir/$libname.la"
4909              fi
4910            fi
4911          fi
4912          if test "X$found_dir" = "X"; then
4913            for x in $LDFLAGS $LTLIBREADLINE; do
4914
4915  acl_save_prefix="$prefix"
4916  prefix="$acl_final_prefix"
4917  acl_save_exec_prefix="$exec_prefix"
4918  exec_prefix="$acl_final_exec_prefix"
4919  eval x=\"$x\"
4920  exec_prefix="$acl_save_exec_prefix"
4921  prefix="$acl_save_prefix"
4922
4923              case "$x" in
4924                -L*)
4925                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4926                                    if test -n "$acl_shlibext"; then
4927                    if test -f "$dir/$libname$shrext"; then
4928                      found_dir="$dir"
4929                      found_so="$dir/$libname$shrext"
4930                    else
4931                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4932                        ver=`(cd "$dir" && \
4933                              for f in "$libname$shrext".*; do echo "$f"; done \
4934                              | sed -e "s,^$libname$shrext\\\\.,," \
4935                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4936                              | sed 1q ) 2>/dev/null`
4937                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4938                          found_dir="$dir"
4939                          found_so="$dir/$libname$shrext.$ver"
4940                        fi
4941                      else
4942                        eval library_names=\"$acl_library_names_spec\"
4943                        for f in $library_names; do
4944                          if test -f "$dir/$f"; then
4945                            found_dir="$dir"
4946                            found_so="$dir/$f"
4947                            break
4948                          fi
4949                        done
4950                      fi
4951                    fi
4952                  fi
4953                                    if test "X$found_dir" = "X"; then
4954                    if test -f "$dir/$libname.$acl_libext"; then
4955                      found_dir="$dir"
4956                      found_a="$dir/$libname.$acl_libext"
4957                    fi
4958                  fi
4959                  if test "X$found_dir" != "X"; then
4960                    if test -f "$dir/$libname.la"; then
4961                      found_la="$dir/$libname.la"
4962                    fi
4963                  fi
4964                  ;;
4965              esac
4966              if test "X$found_dir" != "X"; then
4967                break
4968              fi
4969            done
4970          fi
4971          if test "X$found_dir" != "X"; then
4972                        LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
4973            if test "X$found_so" != "X"; then
4974                                                        if test "$enable_rpath" = no \
4975                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4976                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4977                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
4978              else
4979                                                                                haveit=
4980                for x in $ltrpathdirs; do
4981                  if test "X$x" = "X$found_dir"; then
4982                    haveit=yes
4983                    break
4984                  fi
4985                done
4986                if test -z "$haveit"; then
4987                  ltrpathdirs="$ltrpathdirs $found_dir"
4988                fi
4989                                if test "$acl_hardcode_direct" = yes; then
4990                                                      LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
4991                else
4992                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4993                                                            LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
4994                                                            haveit=
4995                    for x in $rpathdirs; do
4996                      if test "X$x" = "X$found_dir"; then
4997                        haveit=yes
4998                        break
4999                      fi
5000                    done
5001                    if test -z "$haveit"; then
5002                      rpathdirs="$rpathdirs $found_dir"
5003                    fi
5004                  else
5005                                                                                haveit=
5006                    for x in $LDFLAGS $LIBREADLINE; do
5007
5008  acl_save_prefix="$prefix"
5009  prefix="$acl_final_prefix"
5010  acl_save_exec_prefix="$exec_prefix"
5011  exec_prefix="$acl_final_exec_prefix"
5012  eval x=\"$x\"
5013  exec_prefix="$acl_save_exec_prefix"
5014  prefix="$acl_save_prefix"
5015
5016                      if test "X$x" = "X-L$found_dir"; then
5017                        haveit=yes
5018                        break
5019                      fi
5020                    done
5021                    if test -z "$haveit"; then
5022                      LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
5023                    fi
5024                    if test "$acl_hardcode_minus_L" != no; then
5025                                                                                        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
5026                    else
5027                                                                                                                                                                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
5028                    fi
5029                  fi
5030                fi
5031              fi
5032            else
5033              if test "X$found_a" != "X"; then
5034                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
5035              else
5036                                                LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
5037              fi
5038            fi
5039                        additional_includedir=
5040            case "$found_dir" in
5041              */$acl_libdirstem | */$acl_libdirstem/)
5042                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5043                if test "$name" = 'readline'; then
5044                  LIBREADLINE_PREFIX="$basedir"
5045                fi
5046                additional_includedir="$basedir/include"
5047                ;;
5048              */$acl_libdirstem2 | */$acl_libdirstem2/)
5049                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5050                if test "$name" = 'readline'; then
5051                  LIBREADLINE_PREFIX="$basedir"
5052                fi
5053                additional_includedir="$basedir/include"
5054                ;;
5055            esac
5056            if test "X$additional_includedir" != "X"; then
5057                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5058                haveit=
5059                if test "X$additional_includedir" = "X/usr/local/include"; then
5060                  if test -n "$GCC"; then
5061                    case $host_os in
5062                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5063                    esac
5064                  fi
5065                fi
5066                if test -z "$haveit"; then
5067                  for x in $CPPFLAGS $INCREADLINE; do
5068
5069  acl_save_prefix="$prefix"
5070  prefix="$acl_final_prefix"
5071  acl_save_exec_prefix="$exec_prefix"
5072  exec_prefix="$acl_final_exec_prefix"
5073  eval x=\"$x\"
5074  exec_prefix="$acl_save_exec_prefix"
5075  prefix="$acl_save_prefix"
5076
5077                    if test "X$x" = "X-I$additional_includedir"; then
5078                      haveit=yes
5079                      break
5080                    fi
5081                  done
5082                  if test -z "$haveit"; then
5083                    if test -d "$additional_includedir"; then
5084                                            INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
5085                    fi
5086                  fi
5087                fi
5088              fi
5089            fi
5090                        if test -n "$found_la"; then
5091                                                        save_libdir="$libdir"
5092              case "$found_la" in
5093                */* | *\\*) . "$found_la" ;;
5094                *) . "./$found_la" ;;
5095              esac
5096              libdir="$save_libdir"
5097                            for dep in $dependency_libs; do
5098                case "$dep" in
5099                  -L*)
5100                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5101                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5102                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5103                      haveit=
5104                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5105                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5106                        if test -n "$GCC"; then
5107                          case $host_os in
5108                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5109                          esac
5110                        fi
5111                      fi
5112                      if test -z "$haveit"; then
5113                        haveit=
5114                        for x in $LDFLAGS $LIBREADLINE; do
5115
5116  acl_save_prefix="$prefix"
5117  prefix="$acl_final_prefix"
5118  acl_save_exec_prefix="$exec_prefix"
5119  exec_prefix="$acl_final_exec_prefix"
5120  eval x=\"$x\"
5121  exec_prefix="$acl_save_exec_prefix"
5122  prefix="$acl_save_prefix"
5123
5124                          if test "X$x" = "X-L$additional_libdir"; then
5125                            haveit=yes
5126                            break
5127                          fi
5128                        done
5129                        if test -z "$haveit"; then
5130                          if test -d "$additional_libdir"; then
5131                                                        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$additional_libdir"
5132                          fi
5133                        fi
5134                        haveit=
5135                        for x in $LDFLAGS $LTLIBREADLINE; do
5136
5137  acl_save_prefix="$prefix"
5138  prefix="$acl_final_prefix"
5139  acl_save_exec_prefix="$exec_prefix"
5140  exec_prefix="$acl_final_exec_prefix"
5141  eval x=\"$x\"
5142  exec_prefix="$acl_save_exec_prefix"
5143  prefix="$acl_save_prefix"
5144
5145                          if test "X$x" = "X-L$additional_libdir"; then
5146                            haveit=yes
5147                            break
5148                          fi
5149                        done
5150                        if test -z "$haveit"; then
5151                          if test -d "$additional_libdir"; then
5152                                                        LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$additional_libdir"
5153                          fi
5154                        fi
5155                      fi
5156                    fi
5157                    ;;
5158                  -R*)
5159                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5160                    if test "$enable_rpath" != no; then
5161                                                                  haveit=
5162                      for x in $rpathdirs; do
5163                        if test "X$x" = "X$dir"; then
5164                          haveit=yes
5165                          break
5166                        fi
5167                      done
5168                      if test -z "$haveit"; then
5169                        rpathdirs="$rpathdirs $dir"
5170                      fi
5171                                                                  haveit=
5172                      for x in $ltrpathdirs; do
5173                        if test "X$x" = "X$dir"; then
5174                          haveit=yes
5175                          break
5176                        fi
5177                      done
5178                      if test -z "$haveit"; then
5179                        ltrpathdirs="$ltrpathdirs $dir"
5180                      fi
5181                    fi
5182                    ;;
5183                  -l*)
5184                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5185                    ;;
5186                  *.la)
5187                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5188                    ;;
5189                  *)
5190                                        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
5191                    LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
5192                    ;;
5193                esac
5194              done
5195            fi
5196          else
5197                                                            LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
5198            LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
5199          fi
5200        fi
5201      fi
5202    done
5203  done
5204  if test "X$rpathdirs" != "X"; then
5205    if test -n "$acl_hardcode_libdir_separator"; then
5206                        alldirs=
5207      for found_dir in $rpathdirs; do
5208        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5209      done
5210            acl_save_libdir="$libdir"
5211      libdir="$alldirs"
5212      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5213      libdir="$acl_save_libdir"
5214      LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
5215    else
5216            for found_dir in $rpathdirs; do
5217        acl_save_libdir="$libdir"
5218        libdir="$found_dir"
5219        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5220        libdir="$acl_save_libdir"
5221        LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
5222      done
5223    fi
5224  fi
5225  if test "X$ltrpathdirs" != "X"; then
5226            for found_dir in $ltrpathdirs; do
5227      LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
5228    done
5229  fi
5230
5231
5232
5233
5234
5235
5236      ac_save_CPPFLAGS="$CPPFLAGS"
5237      CPPFLAGS="$CPPFLAGS $INCREADLINE"
5238      for ac_header in readline/readline.h
5239do :
5240  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
5241if test "x$ac_cv_header_readline_readline_h" = xyes; then :
5242  cat >>confdefs.h <<_ACEOF
5243#define HAVE_READLINE_READLINE_H 1
5244_ACEOF
5245
5246fi
5247
5248done
5249
5250      if test "$ac_cv_header_readline_readline_h" != yes; then
5251        CPPFLAGS="$ac_save_CPPFLAGS"
5252        ac_cv_have_readline='no, consider installing GNU readline and its header files'
5253      else # have <readline/readline.h> => check library
5254        ac_save_LIBS="$LIBS"
5255        LIBS="$LIBREADLINE $LIBS"
5256        ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
5257if test "x$ac_cv_func_readline" = xyes; then :
5258
5259fi
5260        for ac_func in rl_filename_completion_function
5261do :
5262  ac_fn_c_check_func "$LINENO" "rl_filename_completion_function" "ac_cv_func_rl_filename_completion_function"
5263if test "x$ac_cv_func_rl_filename_completion_function" = xyes; then :
5264  cat >>confdefs.h <<_ACEOF
5265#define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1
5266_ACEOF
5267
5268fi
5269done
5270
5271        if test "$ac_cv_func_readline" != yes; then
5272          LIBS="$ac_save_LIBS"
5273          CPPFLAGS="$ac_save_CPPFLAGS"
5274          ac_cv_have_readline='no, consider installing GNU readline and its header files'
5275        else # have readline => check modern features
5276          if test $ac_cv_func_rl_filename_completion_function = no; then
5277            RL_FCF=filename_completion_function
5278          else
5279            RL_FCF=rl_filename_completion_function
5280          fi
5281
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filename_completion_function declaration" >&5
5283$as_echo_n "checking for filename_completion_function declaration... " >&6; }
5284  if ${cl_cv_proto_filename_completion_function+:} false; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287
5288
5289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290/* end confdefs.h.  */
5291
5292
5293               #include <stdio.h>
5294               #include <readline/readline.h>
5295
5296    extern
5297#ifdef __cplusplus
5298"C"
5299#endif
5300
5301    char* ${RL_FCF} (char *, int);
5302
5303int
5304main ()
5305{
5306
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312  cl_cv_proto_readline_const=""
5313else
5314  cl_cv_proto_readline_const="const"
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317
5318
5319
5320     cl_cv_proto_filename_completion_function="extern char* ${RL_FCF}($cl_cv_proto_readline_const char*, int);"
5321
5322fi
5323
5324  cl_cv_proto_filename_completion_function=`echo "$cl_cv_proto_filename_completion_function" | tr -s ' ' | sed -e 's/( /(/'`
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_proto_filename_completion_function" >&5
5326$as_echo "$cl_cv_proto_filename_completion_function" >&6; }
5327
5328          ac_fn_c_check_decl "$LINENO" "rl_already_prompted" "ac_cv_have_decl_rl_already_prompted" "#include <stdio.h>
5329             #include <readline/readline.h>
5330
5331"
5332if test "x$ac_cv_have_decl_rl_already_prompted" = xyes; then :
5333  ac_have_decl=1
5334else
5335  ac_have_decl=0
5336fi
5337
5338cat >>confdefs.h <<_ACEOF
5339#define HAVE_DECL_RL_ALREADY_PROMPTED $ac_have_decl
5340_ACEOF
5341ac_fn_c_check_decl "$LINENO" "rl_readline_name" "ac_cv_have_decl_rl_readline_name" "#include <stdio.h>
5342             #include <readline/readline.h>
5343
5344"
5345if test "x$ac_cv_have_decl_rl_readline_name" = xyes; then :
5346  ac_have_decl=1
5347else
5348  ac_have_decl=0
5349fi
5350
5351cat >>confdefs.h <<_ACEOF
5352#define HAVE_DECL_RL_READLINE_NAME $ac_have_decl
5353_ACEOF
5354ac_fn_c_check_decl "$LINENO" "rl_gnu_readline_p" "ac_cv_have_decl_rl_gnu_readline_p" "#include <stdio.h>
5355             #include <readline/readline.h>
5356
5357"
5358if test "x$ac_cv_have_decl_rl_gnu_readline_p" = xyes; then :
5359  ac_have_decl=1
5360else
5361  ac_have_decl=0
5362fi
5363
5364cat >>confdefs.h <<_ACEOF
5365#define HAVE_DECL_RL_GNU_READLINE_P $ac_have_decl
5366_ACEOF
5367ac_fn_c_check_decl "$LINENO" "rl_deprep_term_function" "ac_cv_have_decl_rl_deprep_term_function" "#include <stdio.h>
5368             #include <readline/readline.h>
5369
5370"
5371if test "x$ac_cv_have_decl_rl_deprep_term_function" = xyes; then :
5372  ac_have_decl=1
5373else
5374  ac_have_decl=0
5375fi
5376
5377cat >>confdefs.h <<_ACEOF
5378#define HAVE_DECL_RL_DEPREP_TERM_FUNCTION $ac_have_decl
5379_ACEOF
5380
5381          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline 4.1 or newer" >&5
5382$as_echo_n "checking for readline 4.1 or newer... " >&6; }
5383          if test "$ac_cv_have_decl_rl_already_prompted" = yes \
5384             -a "$ac_cv_have_decl_rl_gnu_readline_p" = yes; then
5385                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found GNU readline 4.1 or newer" >&5
5386$as_echo "found GNU readline 4.1 or newer" >&6; }
5387            ac_cv_have_readline=yes
5388          else
5389            { $as_echo "$as_me:${as_lineno-$LINENO}: result: readline is too old and will not be used" >&5
5390$as_echo "readline is too old and will not be used" >&6; }
5391            LIBS="$ac_save_LIBS"
5392            CPPFLAGS="$ac_save_CPPFLAGS"
5393            ac_cv_have_readline='no, consider installing GNU readline 4.1 or newer'
5394          fi
5395        fi
5396      fi
5397    fi
5398    if test "$ac_cv_have_readline" = yes; then
5399
5400cat >>confdefs.h <<_ACEOF
5401#define READLINE_FILE_COMPLETE ${RL_FCF}
5402_ACEOF
5403
5404
5405cat >>confdefs.h <<_ACEOF
5406#define READLINE_CONST $cl_cv_proto_readline_const
5407_ACEOF
5408
5409
5410$as_echo "#define HAVE_READLINE /**/" >>confdefs.h
5411
5412    elif test "$ac_cv_use_readline" = yes; then
5413      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5415as_fn_error $? "despite --with-readline, GNU readline was not found (try --with-libreadline-prefix)
5416See \`config.log' for more details" "$LINENO" 5; }
5417    fi
5418  fi
5419
5420if test "$ac_cv_have_decl_rl_already_prompted" = "no"; then
5421  as_fn_error $? "cannot find a modern gnu readline" "$LINENO" 5
5422fi
5423ac_fn_c_check_decl "$LINENO" "rl_library_version" "ac_cv_have_decl_rl_library_version" "#include <stdio.h>
5424 #include <readline/readline.h>
5425"
5426if test "x$ac_cv_have_decl_rl_library_version" = xyes; then :
5427  ac_have_decl=1
5428else
5429  ac_have_decl=0
5430fi
5431
5432cat >>confdefs.h <<_ACEOF
5433#define HAVE_DECL_RL_LIBRARY_VERSION $ac_have_decl
5434_ACEOF
5435ac_fn_c_check_decl "$LINENO" "rl_readline_version" "ac_cv_have_decl_rl_readline_version" "#include <stdio.h>
5436 #include <readline/readline.h>
5437"
5438if test "x$ac_cv_have_decl_rl_readline_version" = xyes; then :
5439  ac_have_decl=1
5440else
5441  ac_have_decl=0
5442fi
5443
5444cat >>confdefs.h <<_ACEOF
5445#define HAVE_DECL_RL_READLINE_VERSION $ac_have_decl
5446_ACEOF
5447ac_fn_c_check_decl "$LINENO" "rl_editing_mode" "ac_cv_have_decl_rl_editing_mode" "#include <stdio.h>
5448 #include <readline/readline.h>
5449"
5450if test "x$ac_cv_have_decl_rl_editing_mode" = xyes; then :
5451  ac_have_decl=1
5452else
5453  ac_have_decl=0
5454fi
5455
5456cat >>confdefs.h <<_ACEOF
5457#define HAVE_DECL_RL_EDITING_MODE $ac_have_decl
5458_ACEOF
5459ac_fn_c_check_decl "$LINENO" "rl_insert_mode" "ac_cv_have_decl_rl_insert_mode" "#include <stdio.h>
5460 #include <readline/readline.h>
5461"
5462if test "x$ac_cv_have_decl_rl_insert_mode" = xyes; then :
5463  ac_have_decl=1
5464else
5465  ac_have_decl=0
5466fi
5467
5468cat >>confdefs.h <<_ACEOF
5469#define HAVE_DECL_RL_INSERT_MODE $ac_have_decl
5470_ACEOF
5471ac_fn_c_check_decl "$LINENO" "rl_readline_state" "ac_cv_have_decl_rl_readline_state" "#include <stdio.h>
5472 #include <readline/readline.h>
5473"
5474if test "x$ac_cv_have_decl_rl_readline_state" = xyes; then :
5475  ac_have_decl=1
5476else
5477  ac_have_decl=0
5478fi
5479
5480cat >>confdefs.h <<_ACEOF
5481#define HAVE_DECL_RL_READLINE_STATE $ac_have_decl
5482_ACEOF
5483ac_fn_c_check_decl "$LINENO" "rl_line_buffer" "ac_cv_have_decl_rl_line_buffer" "#include <stdio.h>
5484 #include <readline/readline.h>
5485"
5486if test "x$ac_cv_have_decl_rl_line_buffer" = xyes; then :
5487  ac_have_decl=1
5488else
5489  ac_have_decl=0
5490fi
5491
5492cat >>confdefs.h <<_ACEOF
5493#define HAVE_DECL_RL_LINE_BUFFER $ac_have_decl
5494_ACEOF
5495ac_fn_c_check_decl "$LINENO" "rl_point" "ac_cv_have_decl_rl_point" "#include <stdio.h>
5496 #include <readline/readline.h>
5497"
5498if test "x$ac_cv_have_decl_rl_point" = xyes; then :
5499  ac_have_decl=1
5500else
5501  ac_have_decl=0
5502fi
5503
5504cat >>confdefs.h <<_ACEOF
5505#define HAVE_DECL_RL_POINT $ac_have_decl
5506_ACEOF
5507ac_fn_c_check_decl "$LINENO" "rl_end" "ac_cv_have_decl_rl_end" "#include <stdio.h>
5508 #include <readline/readline.h>
5509"
5510if test "x$ac_cv_have_decl_rl_end" = xyes; then :
5511  ac_have_decl=1
5512else
5513  ac_have_decl=0
5514fi
5515
5516cat >>confdefs.h <<_ACEOF
5517#define HAVE_DECL_RL_END $ac_have_decl
5518_ACEOF
5519ac_fn_c_check_decl "$LINENO" "rl_mark" "ac_cv_have_decl_rl_mark" "#include <stdio.h>
5520 #include <readline/readline.h>
5521"
5522if test "x$ac_cv_have_decl_rl_mark" = xyes; then :
5523  ac_have_decl=1
5524else
5525  ac_have_decl=0
5526fi
5527
5528cat >>confdefs.h <<_ACEOF
5529#define HAVE_DECL_RL_MARK $ac_have_decl
5530_ACEOF
5531ac_fn_c_check_decl "$LINENO" "rl_done" "ac_cv_have_decl_rl_done" "#include <stdio.h>
5532 #include <readline/readline.h>
5533"
5534if test "x$ac_cv_have_decl_rl_done" = xyes; then :
5535  ac_have_decl=1
5536else
5537  ac_have_decl=0
5538fi
5539
5540cat >>confdefs.h <<_ACEOF
5541#define HAVE_DECL_RL_DONE $ac_have_decl
5542_ACEOF
5543ac_fn_c_check_decl "$LINENO" "rl_num_chars_to_read" "ac_cv_have_decl_rl_num_chars_to_read" "#include <stdio.h>
5544 #include <readline/readline.h>
5545"
5546if test "x$ac_cv_have_decl_rl_num_chars_to_read" = xyes; then :
5547  ac_have_decl=1
5548else
5549  ac_have_decl=0
5550fi
5551
5552cat >>confdefs.h <<_ACEOF
5553#define HAVE_DECL_RL_NUM_CHARS_TO_READ $ac_have_decl
5554_ACEOF
5555ac_fn_c_check_decl "$LINENO" "rl_pending_input" "ac_cv_have_decl_rl_pending_input" "#include <stdio.h>
5556 #include <readline/readline.h>
5557"
5558if test "x$ac_cv_have_decl_rl_pending_input" = xyes; then :
5559  ac_have_decl=1
5560else
5561  ac_have_decl=0
5562fi
5563
5564cat >>confdefs.h <<_ACEOF
5565#define HAVE_DECL_RL_PENDING_INPUT $ac_have_decl
5566_ACEOF
5567ac_fn_c_check_decl "$LINENO" "rl_dispatching" "ac_cv_have_decl_rl_dispatching" "#include <stdio.h>
5568 #include <readline/readline.h>
5569"
5570if test "x$ac_cv_have_decl_rl_dispatching" = xyes; then :
5571  ac_have_decl=1
5572else
5573  ac_have_decl=0
5574fi
5575
5576cat >>confdefs.h <<_ACEOF
5577#define HAVE_DECL_RL_DISPATCHING $ac_have_decl
5578_ACEOF
5579ac_fn_c_check_decl "$LINENO" "rl_erase_empty_line" "ac_cv_have_decl_rl_erase_empty_line" "#include <stdio.h>
5580 #include <readline/readline.h>
5581"
5582if test "x$ac_cv_have_decl_rl_erase_empty_line" = xyes; then :
5583  ac_have_decl=1
5584else
5585  ac_have_decl=0
5586fi
5587
5588cat >>confdefs.h <<_ACEOF
5589#define HAVE_DECL_RL_ERASE_EMPTY_LINE $ac_have_decl
5590_ACEOF
5591ac_fn_c_check_decl "$LINENO" "rl_prompt" "ac_cv_have_decl_rl_prompt" "#include <stdio.h>
5592 #include <readline/readline.h>
5593"
5594if test "x$ac_cv_have_decl_rl_prompt" = xyes; then :
5595  ac_have_decl=1
5596else
5597  ac_have_decl=0
5598fi
5599
5600cat >>confdefs.h <<_ACEOF
5601#define HAVE_DECL_RL_PROMPT $ac_have_decl
5602_ACEOF
5603ac_fn_c_check_decl "$LINENO" "rl_terminal_name" "ac_cv_have_decl_rl_terminal_name" "#include <stdio.h>
5604 #include <readline/readline.h>
5605"
5606if test "x$ac_cv_have_decl_rl_terminal_name" = xyes; then :
5607  ac_have_decl=1
5608else
5609  ac_have_decl=0
5610fi
5611
5612cat >>confdefs.h <<_ACEOF
5613#define HAVE_DECL_RL_TERMINAL_NAME $ac_have_decl
5614_ACEOF
5615ac_fn_c_check_decl "$LINENO" "rl_display_prompt" "ac_cv_have_decl_rl_display_prompt" "#include <stdio.h>
5616 #include <readline/readline.h>
5617"
5618if test "x$ac_cv_have_decl_rl_display_prompt" = xyes; then :
5619  ac_have_decl=1
5620else
5621  ac_have_decl=0
5622fi
5623
5624cat >>confdefs.h <<_ACEOF
5625#define HAVE_DECL_RL_DISPLAY_PROMPT $ac_have_decl
5626_ACEOF
5627ac_fn_c_check_decl "$LINENO" "rl_instream" "ac_cv_have_decl_rl_instream" "#include <stdio.h>
5628 #include <readline/readline.h>
5629"
5630if test "x$ac_cv_have_decl_rl_instream" = xyes; then :
5631  ac_have_decl=1
5632else
5633  ac_have_decl=0
5634fi
5635
5636cat >>confdefs.h <<_ACEOF
5637#define HAVE_DECL_RL_INSTREAM $ac_have_decl
5638_ACEOF
5639ac_fn_c_check_decl "$LINENO" "rl_outstream" "ac_cv_have_decl_rl_outstream" "#include <stdio.h>
5640 #include <readline/readline.h>
5641"
5642if test "x$ac_cv_have_decl_rl_outstream" = xyes; then :
5643  ac_have_decl=1
5644else
5645  ac_have_decl=0
5646fi
5647
5648cat >>confdefs.h <<_ACEOF
5649#define HAVE_DECL_RL_OUTSTREAM $ac_have_decl
5650_ACEOF
5651ac_fn_c_check_decl "$LINENO" "rl_last_func" "ac_cv_have_decl_rl_last_func" "#include <stdio.h>
5652 #include <readline/readline.h>
5653"
5654if test "x$ac_cv_have_decl_rl_last_func" = xyes; then :
5655  ac_have_decl=1
5656else
5657  ac_have_decl=0
5658fi
5659
5660cat >>confdefs.h <<_ACEOF
5661#define HAVE_DECL_RL_LAST_FUNC $ac_have_decl
5662_ACEOF
5663ac_fn_c_check_decl "$LINENO" "rl_startup_hook" "ac_cv_have_decl_rl_startup_hook" "#include <stdio.h>
5664 #include <readline/readline.h>
5665"
5666if test "x$ac_cv_have_decl_rl_startup_hook" = xyes; then :
5667  ac_have_decl=1
5668else
5669  ac_have_decl=0
5670fi
5671
5672cat >>confdefs.h <<_ACEOF
5673#define HAVE_DECL_RL_STARTUP_HOOK $ac_have_decl
5674_ACEOF
5675ac_fn_c_check_decl "$LINENO" "rl_pre_input_hook" "ac_cv_have_decl_rl_pre_input_hook" "#include <stdio.h>
5676 #include <readline/readline.h>
5677"
5678if test "x$ac_cv_have_decl_rl_pre_input_hook" = xyes; then :
5679  ac_have_decl=1
5680else
5681  ac_have_decl=0
5682fi
5683
5684cat >>confdefs.h <<_ACEOF
5685#define HAVE_DECL_RL_PRE_INPUT_HOOK $ac_have_decl
5686_ACEOF
5687ac_fn_c_check_decl "$LINENO" "rl_prefer_env_winsize" "ac_cv_have_decl_rl_prefer_env_winsize" "#include <stdio.h>
5688 #include <readline/readline.h>
5689"
5690if test "x$ac_cv_have_decl_rl_prefer_env_winsize" = xyes; then :
5691  ac_have_decl=1
5692else
5693  ac_have_decl=0
5694fi
5695
5696cat >>confdefs.h <<_ACEOF
5697#define HAVE_DECL_RL_PREFER_ENV_WINSIZE $ac_have_decl
5698_ACEOF
5699ac_fn_c_check_decl "$LINENO" "rl_gnu_readline_p" "ac_cv_have_decl_rl_gnu_readline_p" "#include <stdio.h>
5700 #include <readline/readline.h>
5701"
5702if test "x$ac_cv_have_decl_rl_gnu_readline_p" = xyes; then :
5703  ac_have_decl=1
5704else
5705  ac_have_decl=0
5706fi
5707
5708cat >>confdefs.h <<_ACEOF
5709#define HAVE_DECL_RL_GNU_READLINE_P $ac_have_decl
5710_ACEOF
5711ac_fn_c_check_decl "$LINENO" "rl_readline_name" "ac_cv_have_decl_rl_readline_name" "#include <stdio.h>
5712 #include <readline/readline.h>
5713"
5714if test "x$ac_cv_have_decl_rl_readline_name" = xyes; then :
5715  ac_have_decl=1
5716else
5717  ac_have_decl=0
5718fi
5719
5720cat >>confdefs.h <<_ACEOF
5721#define HAVE_DECL_RL_READLINE_NAME $ac_have_decl
5722_ACEOF
5723ac_fn_c_check_decl "$LINENO" "rl_explicit_arg" "ac_cv_have_decl_rl_explicit_arg" "#include <stdio.h>
5724 #include <readline/readline.h>
5725"
5726if test "x$ac_cv_have_decl_rl_explicit_arg" = xyes; then :
5727  ac_have_decl=1
5728else
5729  ac_have_decl=0
5730fi
5731
5732cat >>confdefs.h <<_ACEOF
5733#define HAVE_DECL_RL_EXPLICIT_ARG $ac_have_decl
5734_ACEOF
5735ac_fn_c_check_decl "$LINENO" "rl_numeric_arg" "ac_cv_have_decl_rl_numeric_arg" "#include <stdio.h>
5736 #include <readline/readline.h>
5737"
5738if test "x$ac_cv_have_decl_rl_numeric_arg" = xyes; then :
5739  ac_have_decl=1
5740else
5741  ac_have_decl=0
5742fi
5743
5744cat >>confdefs.h <<_ACEOF
5745#define HAVE_DECL_RL_NUMERIC_ARG $ac_have_decl
5746_ACEOF
5747ac_fn_c_check_decl "$LINENO" "rl_executing_macro" "ac_cv_have_decl_rl_executing_macro" "#include <stdio.h>
5748 #include <readline/readline.h>
5749"
5750if test "x$ac_cv_have_decl_rl_executing_macro" = xyes; then :
5751  ac_have_decl=1
5752else
5753  ac_have_decl=0
5754fi
5755
5756cat >>confdefs.h <<_ACEOF
5757#define HAVE_DECL_RL_EXECUTING_MACRO $ac_have_decl
5758_ACEOF
5759ac_fn_c_check_decl "$LINENO" "rl_completion_type" "ac_cv_have_decl_rl_completion_type" "#include <stdio.h>
5760 #include <readline/readline.h>
5761"
5762if test "x$ac_cv_have_decl_rl_completion_type" = xyes; then :
5763  ac_have_decl=1
5764else
5765  ac_have_decl=0
5766fi
5767
5768cat >>confdefs.h <<_ACEOF
5769#define HAVE_DECL_RL_COMPLETION_TYPE $ac_have_decl
5770_ACEOF
5771ac_fn_c_check_decl "$LINENO" "rl_filename_quoting_desired" "ac_cv_have_decl_rl_filename_quoting_desired" "#include <stdio.h>
5772 #include <readline/readline.h>
5773"
5774if test "x$ac_cv_have_decl_rl_filename_quoting_desired" = xyes; then :
5775  ac_have_decl=1
5776else
5777  ac_have_decl=0
5778fi
5779
5780cat >>confdefs.h <<_ACEOF
5781#define HAVE_DECL_RL_FILENAME_QUOTING_DESIRED $ac_have_decl
5782_ACEOF
5783ac_fn_c_check_decl "$LINENO" "rl_attempted_completion_over" "ac_cv_have_decl_rl_attempted_completion_over" "#include <stdio.h>
5784 #include <readline/readline.h>
5785"
5786if test "x$ac_cv_have_decl_rl_attempted_completion_over" = xyes; then :
5787  ac_have_decl=1
5788else
5789  ac_have_decl=0
5790fi
5791
5792cat >>confdefs.h <<_ACEOF
5793#define HAVE_DECL_RL_ATTEMPTED_COMPLETION_OVER $ac_have_decl
5794_ACEOF
5795ac_fn_c_check_decl "$LINENO" "rl_completion_invoking_key" "ac_cv_have_decl_rl_completion_invoking_key" "#include <stdio.h>
5796 #include <readline/readline.h>
5797"
5798if test "x$ac_cv_have_decl_rl_completion_invoking_key" = xyes; then :
5799  ac_have_decl=1
5800else
5801  ac_have_decl=0
5802fi
5803
5804cat >>confdefs.h <<_ACEOF
5805#define HAVE_DECL_RL_COMPLETION_INVOKING_KEY $ac_have_decl
5806_ACEOF
5807ac_fn_c_check_decl "$LINENO" "rl_completion_query_items" "ac_cv_have_decl_rl_completion_query_items" "#include <stdio.h>
5808 #include <readline/readline.h>
5809"
5810if test "x$ac_cv_have_decl_rl_completion_query_items" = xyes; then :
5811  ac_have_decl=1
5812else
5813  ac_have_decl=0
5814fi
5815
5816cat >>confdefs.h <<_ACEOF
5817#define HAVE_DECL_RL_COMPLETION_QUERY_ITEMS $ac_have_decl
5818_ACEOF
5819ac_fn_c_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "#include <stdio.h>
5820 #include <readline/readline.h>
5821"
5822if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes; then :
5823  ac_have_decl=1
5824else
5825  ac_have_decl=0
5826fi
5827
5828cat >>confdefs.h <<_ACEOF
5829#define HAVE_DECL_RL_COMPLETION_APPEND_CHARACTER $ac_have_decl
5830_ACEOF
5831ac_fn_c_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "#include <stdio.h>
5832 #include <readline/readline.h>
5833"
5834if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes; then :
5835  ac_have_decl=1
5836else
5837  ac_have_decl=0
5838fi
5839
5840cat >>confdefs.h <<_ACEOF
5841#define HAVE_DECL_RL_COMPLETION_SUPPRESS_APPEND $ac_have_decl
5842_ACEOF
5843ac_fn_c_check_decl "$LINENO" "rl_completion_quote_character" "ac_cv_have_decl_rl_completion_quote_character" "#include <stdio.h>
5844 #include <readline/readline.h>
5845"
5846if test "x$ac_cv_have_decl_rl_completion_quote_character" = xyes; then :
5847  ac_have_decl=1
5848else
5849  ac_have_decl=0
5850fi
5851
5852cat >>confdefs.h <<_ACEOF
5853#define HAVE_DECL_RL_COMPLETION_QUOTE_CHARACTER $ac_have_decl
5854_ACEOF
5855ac_fn_c_check_decl "$LINENO" "rl_completion_found_quote" "ac_cv_have_decl_rl_completion_found_quote" "#include <stdio.h>
5856 #include <readline/readline.h>
5857"
5858if test "x$ac_cv_have_decl_rl_completion_found_quote" = xyes; then :
5859  ac_have_decl=1
5860else
5861  ac_have_decl=0
5862fi
5863
5864cat >>confdefs.h <<_ACEOF
5865#define HAVE_DECL_RL_COMPLETION_FOUND_QUOTE $ac_have_decl
5866_ACEOF
5867ac_fn_c_check_decl "$LINENO" "rl_completion_suppress_quote" "ac_cv_have_decl_rl_completion_suppress_quote" "#include <stdio.h>
5868 #include <readline/readline.h>
5869"
5870if test "x$ac_cv_have_decl_rl_completion_suppress_quote" = xyes; then :
5871  ac_have_decl=1
5872else
5873  ac_have_decl=0
5874fi
5875
5876cat >>confdefs.h <<_ACEOF
5877#define HAVE_DECL_RL_COMPLETION_SUPPRESS_QUOTE $ac_have_decl
5878_ACEOF
5879ac_fn_c_check_decl "$LINENO" "rl_sort_completion_matches" "ac_cv_have_decl_rl_sort_completion_matches" "#include <stdio.h>
5880 #include <readline/readline.h>
5881"
5882if test "x$ac_cv_have_decl_rl_sort_completion_matches" = xyes; then :
5883  ac_have_decl=1
5884else
5885  ac_have_decl=0
5886fi
5887
5888cat >>confdefs.h <<_ACEOF
5889#define HAVE_DECL_RL_SORT_COMPLETION_MATCHES $ac_have_decl
5890_ACEOF
5891ac_fn_c_check_decl "$LINENO" "rl_completion_mark_symlink_dirs" "ac_cv_have_decl_rl_completion_mark_symlink_dirs" "#include <stdio.h>
5892 #include <readline/readline.h>
5893"
5894if test "x$ac_cv_have_decl_rl_completion_mark_symlink_dirs" = xyes; then :
5895  ac_have_decl=1
5896else
5897  ac_have_decl=0
5898fi
5899
5900cat >>confdefs.h <<_ACEOF
5901#define HAVE_DECL_RL_COMPLETION_MARK_SYMLINK_DIRS $ac_have_decl
5902_ACEOF
5903ac_fn_c_check_decl "$LINENO" "rl_ignore_completion_duplicates" "ac_cv_have_decl_rl_ignore_completion_duplicates" "#include <stdio.h>
5904 #include <readline/readline.h>
5905"
5906if test "x$ac_cv_have_decl_rl_ignore_completion_duplicates" = xyes; then :
5907  ac_have_decl=1
5908else
5909  ac_have_decl=0
5910fi
5911
5912cat >>confdefs.h <<_ACEOF
5913#define HAVE_DECL_RL_IGNORE_COMPLETION_DUPLICATES $ac_have_decl
5914_ACEOF
5915ac_fn_c_check_decl "$LINENO" "rl_inhibit_completion" "ac_cv_have_decl_rl_inhibit_completion" "#include <stdio.h>
5916 #include <readline/readline.h>
5917"
5918if test "x$ac_cv_have_decl_rl_inhibit_completion" = xyes; then :
5919  ac_have_decl=1
5920else
5921  ac_have_decl=0
5922fi
5923
5924cat >>confdefs.h <<_ACEOF
5925#define HAVE_DECL_RL_INHIBIT_COMPLETION $ac_have_decl
5926_ACEOF
5927ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "#include <stdio.h>
5928 #include <readline/readline.h>
5929"
5930if test "x$ac_cv_have_decl_rl_event_hook" = xyes; then :
5931  ac_have_decl=1
5932else
5933  ac_have_decl=0
5934fi
5935
5936cat >>confdefs.h <<_ACEOF
5937#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
5938_ACEOF
5939ac_fn_c_check_decl "$LINENO" "rl_getc_function" "ac_cv_have_decl_rl_getc_function" "#include <stdio.h>
5940 #include <readline/readline.h>
5941"
5942if test "x$ac_cv_have_decl_rl_getc_function" = xyes; then :
5943  ac_have_decl=1
5944else
5945  ac_have_decl=0
5946fi
5947
5948cat >>confdefs.h <<_ACEOF
5949#define HAVE_DECL_RL_GETC_FUNCTION $ac_have_decl
5950_ACEOF
5951ac_fn_c_check_decl "$LINENO" "rl_input_available_hook" "ac_cv_have_decl_rl_input_available_hook" "#include <stdio.h>
5952 #include <readline/readline.h>
5953"
5954if test "x$ac_cv_have_decl_rl_input_available_hook" = xyes; then :
5955  ac_have_decl=1
5956else
5957  ac_have_decl=0
5958fi
5959
5960cat >>confdefs.h <<_ACEOF
5961#define HAVE_DECL_RL_INPUT_AVAILABLE_HOOK $ac_have_decl
5962_ACEOF
5963ac_fn_c_check_decl "$LINENO" "rl_free_keymap" "ac_cv_have_decl_rl_free_keymap" "#include <stdio.h>
5964 #include <readline/readline.h>
5965"
5966if test "x$ac_cv_have_decl_rl_free_keymap" = xyes; then :
5967  ac_have_decl=1
5968else
5969  ac_have_decl=0
5970fi
5971
5972cat >>confdefs.h <<_ACEOF
5973#define HAVE_DECL_RL_FREE_KEYMAP $ac_have_decl
5974_ACEOF
5975
5976for ac_func in rl_set_prompt rl_initialize rl_read_init_file rl_add_defun rl_make_bare_keymap rl_copy_keymap rl_make_keymap rl_discard_keymap rl_get_keymap rl_set_keymap rl_get_keymap_by_name rl_bind_key rl_bind_key_in_map rl_bind_key_if_unbound rl_bind_key_if_unbound_in_map rl_unbind_key rl_unbind_key_in_map rl_unbind_function_in_map rl_unbind_command_in_map rl_bind_keyseq rl_bind_keyseq_in_map rl_bind_keyseq_if_unbound rl_bind_keyseq_if_unbound_in_map rl_generic_bind rl_parse_and_bind rl_named_function rl_function_of_keyseq rl_invoking_keyseqs rl_invoking_keyseqs_in_map rl_function_dumper rl_list_funmap_names rl_funmap_names rl_add_funmap_entry rl_begin_undo_group rl_end_undo_group rl_add_undo rl_free_undo_list rl_do_undo rl_modifying rl_redisplay rl_forced_update_display rl_on_new_line rl_on_new_line_with_prompt rl_clear_visible_line rl_reset_line_state rl_crlf rl_show_char rl_message rl_clear_message rl_save_prompt rl_restore_prompt rl_expand_prompt rl_insert_text rl_delete_text rl_copy_text rl_kill_text rl_push_macro_input rl_read_key rl_getc rl_stuff_char rl_execute_next rl_clear_pending_input rl_set_keyboard_input_timeout rl_prep_terminal rl_deprep_terminal rl_tty_set_default_bindings rl_reset_terminal rl_replace_line rl_extend_line_buffer rl_ding rl_alphabetic rl_free rl_display_match_list rl_variable_value rl_variable_bind rl_macro_dumper rl_variable_dumper rl_echo_signal_char rl_set_paren_blink_timeout rl_clear_history rl_get_termcap rl_resize_terminal rl_set_screen_size rl_get_screen_size rl_reset_screen_size rl_callback_handler_install rl_callback_read_char rl_callback_handler_remove using_history add_history clear_history stifle_history unstifle_history history_is_stifled where_history history_total_bytes history_set_pos history_search history_search_prefix history_search_pos read_history read_history_range write_history append_history history_truncate_file tilde_expand
5977do :
5978  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5980if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5981  cat >>confdefs.h <<_ACEOF
5982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5983_ACEOF
5984
5985fi
5986done
5987
5988if test $ac_cv_have_decl_rl_free_keymap = yes; then
5989  for ac_func in rl_free_keymap
5990do :
5991  ac_fn_c_check_func "$LINENO" "rl_free_keymap" "ac_cv_func_rl_free_keymap"
5992if test "x$ac_cv_func_rl_free_keymap" = xyes; then :
5993  cat >>confdefs.h <<_ACEOF
5994#define HAVE_RL_FREE_KEYMAP 1
5995_ACEOF
5996
5997fi
5998done
5999
6000fi
6001
6002
6003  { $as_echo "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Output)${term_norm}" >&5
6004$as_echo "$as_me: ${term_bold}** Readline (Output)${term_norm}" >&6;}
6005
6006ac_config_files="$ac_config_files Makefile link.sh"
6007
6008cat >confcache <<\_ACEOF
6009# This file is a shell script that caches the results of configure
6010# tests run on this system so they can be shared between configure
6011# scripts and configure runs, see configure's option --config-cache.
6012# It is not useful on other systems.  If it contains results you don't
6013# want to keep, you may remove or edit it.
6014#
6015# config.status only pays attention to the cache file if you give it
6016# the --recheck option to rerun configure.
6017#
6018# `ac_cv_env_foo' variables (set or unset) will be overridden when
6019# loading this file, other *unset* `ac_cv_foo' will be assigned the
6020# following values.
6021
6022_ACEOF
6023
6024# The following way of writing the cache mishandles newlines in values,
6025# but we know of no workaround that is simple, portable, and efficient.
6026# So, we kill variables containing newlines.
6027# Ultrix sh set writes to stderr and can't be redirected directly,
6028# and sets the high bit in the cache file unless we assign to the vars.
6029(
6030  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6031    eval ac_val=\$$ac_var
6032    case $ac_val in #(
6033    *${as_nl}*)
6034      case $ac_var in #(
6035      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6037      esac
6038      case $ac_var in #(
6039      _ | IFS | as_nl) ;; #(
6040      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6041      *) { eval $ac_var=; unset $ac_var;} ;;
6042      esac ;;
6043    esac
6044  done
6045
6046  (set) 2>&1 |
6047    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6048    *${as_nl}ac_space=\ *)
6049      # `set' does not quote correctly, so add quotes: double-quote
6050      # substitution turns \\\\ into \\, and sed turns \\ into \.
6051      sed -n \
6052	"s/'/'\\\\''/g;
6053	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6054      ;; #(
6055    *)
6056      # `set' quotes correctly as required by POSIX, so do not add quotes.
6057      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6058      ;;
6059    esac |
6060    sort
6061) |
6062  sed '
6063     /^ac_cv_env_/b end
6064     t clear
6065     :clear
6066     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6067     t end
6068     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6069     :end' >>confcache
6070if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6071  if test -w "$cache_file"; then
6072    if test "x$cache_file" != "x/dev/null"; then
6073      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6074$as_echo "$as_me: updating cache $cache_file" >&6;}
6075      if test ! -f "$cache_file" || test -h "$cache_file"; then
6076	cat confcache >"$cache_file"
6077      else
6078        case $cache_file in #(
6079        */* | ?:*)
6080	  mv -f confcache "$cache_file"$$ &&
6081	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6082        *)
6083	  mv -f confcache "$cache_file" ;;
6084	esac
6085      fi
6086    fi
6087  else
6088    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6089$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6090  fi
6091fi
6092rm -f confcache
6093
6094test "x$prefix" = xNONE && prefix=$ac_default_prefix
6095# Let make expand exec_prefix.
6096test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6097
6098DEFS=-DHAVE_CONFIG_H
6099
6100ac_libobjs=
6101ac_ltlibobjs=
6102U=
6103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6104  # 1. Remove the extension, and $U if already installed.
6105  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6106  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6107  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6108  #    will be set to the directory where LIBOBJS objects are built.
6109  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6110  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6111done
6112LIBOBJS=$ac_libobjs
6113
6114LTLIBOBJS=$ac_ltlibobjs
6115
6116
6117
6118: "${CONFIG_STATUS=./config.status}"
6119ac_write_fail=0
6120ac_clean_files_save=$ac_clean_files
6121ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6123$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6124as_write_fail=0
6125cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6126#! $SHELL
6127# Generated by $as_me.
6128# Run this file to recreate the current configuration.
6129# Compiler output produced by configure, useful for debugging
6130# configure, is in config.log if it exists.
6131
6132debug=false
6133ac_cs_recheck=false
6134ac_cs_silent=false
6135
6136SHELL=\${CONFIG_SHELL-$SHELL}
6137export SHELL
6138_ASEOF
6139cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6140## -------------------- ##
6141## M4sh Initialization. ##
6142## -------------------- ##
6143
6144# Be more Bourne compatible
6145DUALCASE=1; export DUALCASE # for MKS sh
6146if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6147  emulate sh
6148  NULLCMD=:
6149  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6150  # is contrary to our usage.  Disable this feature.
6151  alias -g '${1+"$@"}'='"$@"'
6152  setopt NO_GLOB_SUBST
6153else
6154  case `(set -o) 2>/dev/null` in #(
6155  *posix*) :
6156    set -o posix ;; #(
6157  *) :
6158     ;;
6159esac
6160fi
6161
6162
6163as_nl='
6164'
6165export as_nl
6166# Printing a long string crashes Solaris 7 /usr/bin/printf.
6167as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6168as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6169as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6170# Prefer a ksh shell builtin over an external printf program on Solaris,
6171# but without wasting forks for bash or zsh.
6172if test -z "$BASH_VERSION$ZSH_VERSION" \
6173    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6174  as_echo='print -r --'
6175  as_echo_n='print -rn --'
6176elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6177  as_echo='printf %s\n'
6178  as_echo_n='printf %s'
6179else
6180  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6181    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6182    as_echo_n='/usr/ucb/echo -n'
6183  else
6184    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6185    as_echo_n_body='eval
6186      arg=$1;
6187      case $arg in #(
6188      *"$as_nl"*)
6189	expr "X$arg" : "X\\(.*\\)$as_nl";
6190	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6191      esac;
6192      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6193    '
6194    export as_echo_n_body
6195    as_echo_n='sh -c $as_echo_n_body as_echo'
6196  fi
6197  export as_echo_body
6198  as_echo='sh -c $as_echo_body as_echo'
6199fi
6200
6201# The user is always right.
6202if test "${PATH_SEPARATOR+set}" != set; then
6203  PATH_SEPARATOR=:
6204  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6205    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6206      PATH_SEPARATOR=';'
6207  }
6208fi
6209
6210
6211# IFS
6212# We need space, tab and new line, in precisely that order.  Quoting is
6213# there to prevent editors from complaining about space-tab.
6214# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6215# splitting by setting IFS to empty value.)
6216IFS=" ""	$as_nl"
6217
6218# Find who we are.  Look in the path if we contain no directory separator.
6219as_myself=
6220case $0 in #((
6221  *[\\/]* ) as_myself=$0 ;;
6222  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225  IFS=$as_save_IFS
6226  test -z "$as_dir" && as_dir=.
6227    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6228  done
6229IFS=$as_save_IFS
6230
6231     ;;
6232esac
6233# We did not find ourselves, most probably we were run as `sh COMMAND'
6234# in which case we are not to be found in the path.
6235if test "x$as_myself" = x; then
6236  as_myself=$0
6237fi
6238if test ! -f "$as_myself"; then
6239  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6240  exit 1
6241fi
6242
6243# Unset variables that we do not need and which cause bugs (e.g. in
6244# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6245# suppresses any "Segmentation fault" message there.  '((' could
6246# trigger a bug in pdksh 5.2.14.
6247for as_var in BASH_ENV ENV MAIL MAILPATH
6248do eval test x\${$as_var+set} = xset \
6249  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6250done
6251PS1='$ '
6252PS2='> '
6253PS4='+ '
6254
6255# NLS nuisances.
6256LC_ALL=C
6257export LC_ALL
6258LANGUAGE=C
6259export LANGUAGE
6260
6261# CDPATH.
6262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6263
6264
6265# as_fn_error STATUS ERROR [LINENO LOG_FD]
6266# ----------------------------------------
6267# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6268# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6269# script with STATUS, using 1 if that was 0.
6270as_fn_error ()
6271{
6272  as_status=$1; test $as_status -eq 0 && as_status=1
6273  if test "$4"; then
6274    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6275    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6276  fi
6277  $as_echo "$as_me: error: $2" >&2
6278  as_fn_exit $as_status
6279} # as_fn_error
6280
6281
6282# as_fn_set_status STATUS
6283# -----------------------
6284# Set $? to STATUS, without forking.
6285as_fn_set_status ()
6286{
6287  return $1
6288} # as_fn_set_status
6289
6290# as_fn_exit STATUS
6291# -----------------
6292# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6293as_fn_exit ()
6294{
6295  set +e
6296  as_fn_set_status $1
6297  exit $1
6298} # as_fn_exit
6299
6300# as_fn_unset VAR
6301# ---------------
6302# Portably unset VAR.
6303as_fn_unset ()
6304{
6305  { eval $1=; unset $1;}
6306}
6307as_unset=as_fn_unset
6308# as_fn_append VAR VALUE
6309# ----------------------
6310# Append the text in VALUE to the end of the definition contained in VAR. Take
6311# advantage of any shell optimizations that allow amortized linear growth over
6312# repeated appends, instead of the typical quadratic growth present in naive
6313# implementations.
6314if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6315  eval 'as_fn_append ()
6316  {
6317    eval $1+=\$2
6318  }'
6319else
6320  as_fn_append ()
6321  {
6322    eval $1=\$$1\$2
6323  }
6324fi # as_fn_append
6325
6326# as_fn_arith ARG...
6327# ------------------
6328# Perform arithmetic evaluation on the ARGs, and store the result in the
6329# global $as_val. Take advantage of shells that can avoid forks. The arguments
6330# must be portable across $(()) and expr.
6331if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6332  eval 'as_fn_arith ()
6333  {
6334    as_val=$(( $* ))
6335  }'
6336else
6337  as_fn_arith ()
6338  {
6339    as_val=`expr "$@" || test $? -eq 1`
6340  }
6341fi # as_fn_arith
6342
6343
6344if expr a : '\(a\)' >/dev/null 2>&1 &&
6345   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6346  as_expr=expr
6347else
6348  as_expr=false
6349fi
6350
6351if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6352  as_basename=basename
6353else
6354  as_basename=false
6355fi
6356
6357if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6358  as_dirname=dirname
6359else
6360  as_dirname=false
6361fi
6362
6363as_me=`$as_basename -- "$0" ||
6364$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6365	 X"$0" : 'X\(//\)$' \| \
6366	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6367$as_echo X/"$0" |
6368    sed '/^.*\/\([^/][^/]*\)\/*$/{
6369	    s//\1/
6370	    q
6371	  }
6372	  /^X\/\(\/\/\)$/{
6373	    s//\1/
6374	    q
6375	  }
6376	  /^X\/\(\/\).*/{
6377	    s//\1/
6378	    q
6379	  }
6380	  s/.*/./; q'`
6381
6382# Avoid depending upon Character Ranges.
6383as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6384as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6385as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6386as_cr_digits='0123456789'
6387as_cr_alnum=$as_cr_Letters$as_cr_digits
6388
6389ECHO_C= ECHO_N= ECHO_T=
6390case `echo -n x` in #(((((
6391-n*)
6392  case `echo 'xy\c'` in
6393  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6394  xy)  ECHO_C='\c';;
6395  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6396       ECHO_T='	';;
6397  esac;;
6398*)
6399  ECHO_N='-n';;
6400esac
6401
6402rm -f conf$$ conf$$.exe conf$$.file
6403if test -d conf$$.dir; then
6404  rm -f conf$$.dir/conf$$.file
6405else
6406  rm -f conf$$.dir
6407  mkdir conf$$.dir 2>/dev/null
6408fi
6409if (echo >conf$$.file) 2>/dev/null; then
6410  if ln -s conf$$.file conf$$ 2>/dev/null; then
6411    as_ln_s='ln -s'
6412    # ... but there are two gotchas:
6413    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6414    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6415    # In both cases, we have to default to `cp -pR'.
6416    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6417      as_ln_s='cp -pR'
6418  elif ln conf$$.file conf$$ 2>/dev/null; then
6419    as_ln_s=ln
6420  else
6421    as_ln_s='cp -pR'
6422  fi
6423else
6424  as_ln_s='cp -pR'
6425fi
6426rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6427rmdir conf$$.dir 2>/dev/null
6428
6429
6430# as_fn_mkdir_p
6431# -------------
6432# Create "$as_dir" as a directory, including parents if necessary.
6433as_fn_mkdir_p ()
6434{
6435
6436  case $as_dir in #(
6437  -*) as_dir=./$as_dir;;
6438  esac
6439  test -d "$as_dir" || eval $as_mkdir_p || {
6440    as_dirs=
6441    while :; do
6442      case $as_dir in #(
6443      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6444      *) as_qdir=$as_dir;;
6445      esac
6446      as_dirs="'$as_qdir' $as_dirs"
6447      as_dir=`$as_dirname -- "$as_dir" ||
6448$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6449	 X"$as_dir" : 'X\(//\)[^/]' \| \
6450	 X"$as_dir" : 'X\(//\)$' \| \
6451	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6452$as_echo X"$as_dir" |
6453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6454	    s//\1/
6455	    q
6456	  }
6457	  /^X\(\/\/\)[^/].*/{
6458	    s//\1/
6459	    q
6460	  }
6461	  /^X\(\/\/\)$/{
6462	    s//\1/
6463	    q
6464	  }
6465	  /^X\(\/\).*/{
6466	    s//\1/
6467	    q
6468	  }
6469	  s/.*/./; q'`
6470      test -d "$as_dir" && break
6471    done
6472    test -z "$as_dirs" || eval "mkdir $as_dirs"
6473  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6474
6475
6476} # as_fn_mkdir_p
6477if mkdir -p . 2>/dev/null; then
6478  as_mkdir_p='mkdir -p "$as_dir"'
6479else
6480  test -d ./-p && rmdir ./-p
6481  as_mkdir_p=false
6482fi
6483
6484
6485# as_fn_executable_p FILE
6486# -----------------------
6487# Test if FILE is an executable regular file.
6488as_fn_executable_p ()
6489{
6490  test -f "$1" && test -x "$1"
6491} # as_fn_executable_p
6492as_test_x='test -x'
6493as_executable_p=as_fn_executable_p
6494
6495# Sed expression to map a string onto a valid CPP name.
6496as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6497
6498# Sed expression to map a string onto a valid variable name.
6499as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6500
6501
6502exec 6>&1
6503## ----------------------------------- ##
6504## Main body of $CONFIG_STATUS script. ##
6505## ----------------------------------- ##
6506_ASEOF
6507test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6508
6509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6510# Save the log message, to keep $0 and so on meaningful, and to
6511# report actual input values of CONFIG_FILES etc. instead of their
6512# values after options handling.
6513ac_log="
6514This file was extended by readline $as_me 1.0, which was
6515generated by GNU Autoconf 2.69.  Invocation command line was
6516
6517  CONFIG_FILES    = $CONFIG_FILES
6518  CONFIG_HEADERS  = $CONFIG_HEADERS
6519  CONFIG_LINKS    = $CONFIG_LINKS
6520  CONFIG_COMMANDS = $CONFIG_COMMANDS
6521  $ $0 $@
6522
6523on `(hostname || uname -n) 2>/dev/null | sed 1q`
6524"
6525
6526_ACEOF
6527
6528case $ac_config_files in *"
6529"*) set x $ac_config_files; shift; ac_config_files=$*;;
6530esac
6531
6532case $ac_config_headers in *"
6533"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6534esac
6535
6536
6537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6538# Files that config.status was made for.
6539config_files="$ac_config_files"
6540config_headers="$ac_config_headers"
6541
6542_ACEOF
6543
6544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6545ac_cs_usage="\
6546\`$as_me' instantiates files and other configuration actions
6547from templates according to the current configuration.  Unless the files
6548and actions are specified as TAGs, all are instantiated by default.
6549
6550Usage: $0 [OPTION]... [TAG]...
6551
6552  -h, --help       print this help, then exit
6553  -V, --version    print version number and configuration settings, then exit
6554      --config     print configuration, then exit
6555  -q, --quiet, --silent
6556                   do not print progress messages
6557  -d, --debug      don't remove temporary files
6558      --recheck    update $as_me by reconfiguring in the same conditions
6559      --file=FILE[:TEMPLATE]
6560                   instantiate the configuration file FILE
6561      --header=FILE[:TEMPLATE]
6562                   instantiate the configuration header FILE
6563
6564Configuration files:
6565$config_files
6566
6567Configuration headers:
6568$config_headers
6569
6570Report bugs to <clisp-list>."
6571
6572_ACEOF
6573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6574ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6575ac_cs_version="\\
6576readline config.status 1.0
6577configured by $0, generated by GNU Autoconf 2.69,
6578  with options \\"\$ac_cs_config\\"
6579
6580Copyright (C) 2012 Free Software Foundation, Inc.
6581This config.status script is free software; the Free Software Foundation
6582gives unlimited permission to copy, distribute and modify it."
6583
6584ac_pwd='$ac_pwd'
6585srcdir='$srcdir'
6586test -n "\$AWK" || AWK=awk
6587_ACEOF
6588
6589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6590# The default lists apply if the user does not specify any file.
6591ac_need_defaults=:
6592while test $# != 0
6593do
6594  case $1 in
6595  --*=?*)
6596    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6597    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6598    ac_shift=:
6599    ;;
6600  --*=)
6601    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6602    ac_optarg=
6603    ac_shift=:
6604    ;;
6605  *)
6606    ac_option=$1
6607    ac_optarg=$2
6608    ac_shift=shift
6609    ;;
6610  esac
6611
6612  case $ac_option in
6613  # Handling of the options.
6614  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6615    ac_cs_recheck=: ;;
6616  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6617    $as_echo "$ac_cs_version"; exit ;;
6618  --config | --confi | --conf | --con | --co | --c )
6619    $as_echo "$ac_cs_config"; exit ;;
6620  --debug | --debu | --deb | --de | --d | -d )
6621    debug=: ;;
6622  --file | --fil | --fi | --f )
6623    $ac_shift
6624    case $ac_optarg in
6625    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6626    '') as_fn_error $? "missing file argument" ;;
6627    esac
6628    as_fn_append CONFIG_FILES " '$ac_optarg'"
6629    ac_need_defaults=false;;
6630  --header | --heade | --head | --hea )
6631    $ac_shift
6632    case $ac_optarg in
6633    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6634    esac
6635    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6636    ac_need_defaults=false;;
6637  --he | --h)
6638    # Conflict between --help and --header
6639    as_fn_error $? "ambiguous option: \`$1'
6640Try \`$0 --help' for more information.";;
6641  --help | --hel | -h )
6642    $as_echo "$ac_cs_usage"; exit ;;
6643  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6644  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6645    ac_cs_silent=: ;;
6646
6647  # This is an error.
6648  -*) as_fn_error $? "unrecognized option: \`$1'
6649Try \`$0 --help' for more information." ;;
6650
6651  *) as_fn_append ac_config_targets " $1"
6652     ac_need_defaults=false ;;
6653
6654  esac
6655  shift
6656done
6657
6658ac_configure_extra_args=
6659
6660if $ac_cs_silent; then
6661  exec 6>/dev/null
6662  ac_configure_extra_args="$ac_configure_extra_args --silent"
6663fi
6664
6665_ACEOF
6666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6667if \$ac_cs_recheck; then
6668  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6669  shift
6670  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6671  CONFIG_SHELL='$SHELL'
6672  export CONFIG_SHELL
6673  exec "\$@"
6674fi
6675
6676_ACEOF
6677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6678exec 5>>config.log
6679{
6680  echo
6681  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6682## Running $as_me. ##
6683_ASBOX
6684  $as_echo "$ac_log"
6685} >&5
6686
6687_ACEOF
6688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6689_ACEOF
6690
6691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6692
6693# Handling of arguments.
6694for ac_config_target in $ac_config_targets
6695do
6696  case $ac_config_target in
6697    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6698    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6699    "link.sh") CONFIG_FILES="$CONFIG_FILES link.sh" ;;
6700
6701  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6702  esac
6703done
6704
6705
6706# If the user did not use the arguments to specify the items to instantiate,
6707# then the envvar interface is used.  Set only those that are not.
6708# We use the long form for the default assignment because of an extremely
6709# bizarre bug on SunOS 4.1.3.
6710if $ac_need_defaults; then
6711  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6712  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6713fi
6714
6715# Have a temporary directory for convenience.  Make it in the build tree
6716# simply because there is no reason against having it here, and in addition,
6717# creating and moving files from /tmp can sometimes cause problems.
6718# Hook for its removal unless debugging.
6719# Note that there is a small window in which the directory will not be cleaned:
6720# after its creation but before its name has been assigned to `$tmp'.
6721$debug ||
6722{
6723  tmp= ac_tmp=
6724  trap 'exit_status=$?
6725  : "${ac_tmp:=$tmp}"
6726  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6727' 0
6728  trap 'as_fn_exit 1' 1 2 13 15
6729}
6730# Create a (secure) tmp directory for tmp files.
6731
6732{
6733  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6734  test -d "$tmp"
6735}  ||
6736{
6737  tmp=./conf$$-$RANDOM
6738  (umask 077 && mkdir "$tmp")
6739} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6740ac_tmp=$tmp
6741
6742# Set up the scripts for CONFIG_FILES section.
6743# No need to generate them if there are no CONFIG_FILES.
6744# This happens for instance with `./config.status config.h'.
6745if test -n "$CONFIG_FILES"; then
6746
6747
6748ac_cr=`echo X | tr X '\015'`
6749# On cygwin, bash can eat \r inside `` if the user requested igncr.
6750# But we know of no other shell where ac_cr would be empty at this
6751# point, so we can use a bashism as a fallback.
6752if test "x$ac_cr" = x; then
6753  eval ac_cr=\$\'\\r\'
6754fi
6755ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6756if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6757  ac_cs_awk_cr='\\r'
6758else
6759  ac_cs_awk_cr=$ac_cr
6760fi
6761
6762echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6763_ACEOF
6764
6765
6766{
6767  echo "cat >conf$$subs.awk <<_ACEOF" &&
6768  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6769  echo "_ACEOF"
6770} >conf$$subs.sh ||
6771  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6772ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6773ac_delim='%!_!# '
6774for ac_last_try in false false false false false :; do
6775  . ./conf$$subs.sh ||
6776    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6777
6778  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6779  if test $ac_delim_n = $ac_delim_num; then
6780    break
6781  elif $ac_last_try; then
6782    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6783  else
6784    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6785  fi
6786done
6787rm -f conf$$subs.sh
6788
6789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6790cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6791_ACEOF
6792sed -n '
6793h
6794s/^/S["/; s/!.*/"]=/
6795p
6796g
6797s/^[^!]*!//
6798:repl
6799t repl
6800s/'"$ac_delim"'$//
6801t delim
6802:nl
6803h
6804s/\(.\{148\}\)..*/\1/
6805t more1
6806s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6807p
6808n
6809b repl
6810:more1
6811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6812p
6813g
6814s/.\{148\}//
6815t nl
6816:delim
6817h
6818s/\(.\{148\}\)..*/\1/
6819t more2
6820s/["\\]/\\&/g; s/^/"/; s/$/"/
6821p
6822b
6823:more2
6824s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6825p
6826g
6827s/.\{148\}//
6828t delim
6829' <conf$$subs.awk | sed '
6830/^[^""]/{
6831  N
6832  s/\n//
6833}
6834' >>$CONFIG_STATUS || ac_write_fail=1
6835rm -f conf$$subs.awk
6836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6837_ACAWK
6838cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6839  for (key in S) S_is_set[key] = 1
6840  FS = ""
6841
6842}
6843{
6844  line = $ 0
6845  nfields = split(line, field, "@")
6846  substed = 0
6847  len = length(field[1])
6848  for (i = 2; i < nfields; i++) {
6849    key = field[i]
6850    keylen = length(key)
6851    if (S_is_set[key]) {
6852      value = S[key]
6853      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6854      len += length(value) + length(field[++i])
6855      substed = 1
6856    } else
6857      len += 1 + keylen
6858  }
6859
6860  print line
6861}
6862
6863_ACAWK
6864_ACEOF
6865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6866if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6867  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6868else
6869  cat
6870fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6871  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6872_ACEOF
6873
6874# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6875# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6876# trailing colons and then remove the whole line if VPATH becomes empty
6877# (actually we leave an empty line to preserve line numbers).
6878if test "x$srcdir" = x.; then
6879  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6880h
6881s///
6882s/^/:/
6883s/[	 ]*$/:/
6884s/:\$(srcdir):/:/g
6885s/:\${srcdir}:/:/g
6886s/:@srcdir@:/:/g
6887s/^:*//
6888s/:*$//
6889x
6890s/\(=[	 ]*\).*/\1/
6891G
6892s/\n//
6893s/^[^=]*=[	 ]*$//
6894}'
6895fi
6896
6897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6898fi # test -n "$CONFIG_FILES"
6899
6900# Set up the scripts for CONFIG_HEADERS section.
6901# No need to generate them if there are no CONFIG_HEADERS.
6902# This happens for instance with `./config.status Makefile'.
6903if test -n "$CONFIG_HEADERS"; then
6904cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6905BEGIN {
6906_ACEOF
6907
6908# Transform confdefs.h into an awk script `defines.awk', embedded as
6909# here-document in config.status, that substitutes the proper values into
6910# config.h.in to produce config.h.
6911
6912# Create a delimiter string that does not exist in confdefs.h, to ease
6913# handling of long lines.
6914ac_delim='%!_!# '
6915for ac_last_try in false false :; do
6916  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6917  if test -z "$ac_tt"; then
6918    break
6919  elif $ac_last_try; then
6920    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6921  else
6922    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6923  fi
6924done
6925
6926# For the awk script, D is an array of macro values keyed by name,
6927# likewise P contains macro parameters if any.  Preserve backslash
6928# newline sequences.
6929
6930ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6931sed -n '
6932s/.\{148\}/&'"$ac_delim"'/g
6933t rset
6934:rset
6935s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6936t def
6937d
6938:def
6939s/\\$//
6940t bsnl
6941s/["\\]/\\&/g
6942s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6943D["\1"]=" \3"/p
6944s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6945d
6946:bsnl
6947s/["\\]/\\&/g
6948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6949D["\1"]=" \3\\\\\\n"\\/p
6950t cont
6951s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6952t cont
6953d
6954:cont
6955n
6956s/.\{148\}/&'"$ac_delim"'/g
6957t clear
6958:clear
6959s/\\$//
6960t bsnlc
6961s/["\\]/\\&/g; s/^/"/; s/$/"/p
6962d
6963:bsnlc
6964s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6965b cont
6966' <confdefs.h | sed '
6967s/'"$ac_delim"'/"\\\
6968"/g' >>$CONFIG_STATUS || ac_write_fail=1
6969
6970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6971  for (key in D) D_is_set[key] = 1
6972  FS = ""
6973}
6974/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6975  line = \$ 0
6976  split(line, arg, " ")
6977  if (arg[1] == "#") {
6978    defundef = arg[2]
6979    mac1 = arg[3]
6980  } else {
6981    defundef = substr(arg[1], 2)
6982    mac1 = arg[2]
6983  }
6984  split(mac1, mac2, "(") #)
6985  macro = mac2[1]
6986  prefix = substr(line, 1, index(line, defundef) - 1)
6987  if (D_is_set[macro]) {
6988    # Preserve the white space surrounding the "#".
6989    print prefix "define", macro P[macro] D[macro]
6990    next
6991  } else {
6992    # Replace #undef with comments.  This is necessary, for example,
6993    # in the case of _POSIX_SOURCE, which is predefined and required
6994    # on some systems where configure will not decide to define it.
6995    if (defundef == "undef") {
6996      print "/*", prefix defundef, macro, "*/"
6997      next
6998    }
6999  }
7000}
7001{ print }
7002_ACAWK
7003_ACEOF
7004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7005  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7006fi # test -n "$CONFIG_HEADERS"
7007
7008
7009eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7010shift
7011for ac_tag
7012do
7013  case $ac_tag in
7014  :[FHLC]) ac_mode=$ac_tag; continue;;
7015  esac
7016  case $ac_mode$ac_tag in
7017  :[FHL]*:*);;
7018  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7019  :[FH]-) ac_tag=-:-;;
7020  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7021  esac
7022  ac_save_IFS=$IFS
7023  IFS=:
7024  set x $ac_tag
7025  IFS=$ac_save_IFS
7026  shift
7027  ac_file=$1
7028  shift
7029
7030  case $ac_mode in
7031  :L) ac_source=$1;;
7032  :[FH])
7033    ac_file_inputs=
7034    for ac_f
7035    do
7036      case $ac_f in
7037      -) ac_f="$ac_tmp/stdin";;
7038      *) # Look for the file first in the build tree, then in the source tree
7039	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7040	 # because $ac_f cannot contain `:'.
7041	 test -f "$ac_f" ||
7042	   case $ac_f in
7043	   [\\/$]*) false;;
7044	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7045	   esac ||
7046	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7047      esac
7048      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7049      as_fn_append ac_file_inputs " '$ac_f'"
7050    done
7051
7052    # Let's still pretend it is `configure' which instantiates (i.e., don't
7053    # use $as_me), people would be surprised to read:
7054    #    /* config.h.  Generated by config.status.  */
7055    configure_input='Generated from '`
7056	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7057	`' by configure.'
7058    if test x"$ac_file" != x-; then
7059      configure_input="$ac_file.  $configure_input"
7060      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7061$as_echo "$as_me: creating $ac_file" >&6;}
7062    fi
7063    # Neutralize special characters interpreted by sed in replacement strings.
7064    case $configure_input in #(
7065    *\&* | *\|* | *\\* )
7066       ac_sed_conf_input=`$as_echo "$configure_input" |
7067       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7068    *) ac_sed_conf_input=$configure_input;;
7069    esac
7070
7071    case $ac_tag in
7072    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7073      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7074    esac
7075    ;;
7076  esac
7077
7078  ac_dir=`$as_dirname -- "$ac_file" ||
7079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7080	 X"$ac_file" : 'X\(//\)[^/]' \| \
7081	 X"$ac_file" : 'X\(//\)$' \| \
7082	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083$as_echo X"$ac_file" |
7084    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7085	    s//\1/
7086	    q
7087	  }
7088	  /^X\(\/\/\)[^/].*/{
7089	    s//\1/
7090	    q
7091	  }
7092	  /^X\(\/\/\)$/{
7093	    s//\1/
7094	    q
7095	  }
7096	  /^X\(\/\).*/{
7097	    s//\1/
7098	    q
7099	  }
7100	  s/.*/./; q'`
7101  as_dir="$ac_dir"; as_fn_mkdir_p
7102  ac_builddir=.
7103
7104case "$ac_dir" in
7105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7106*)
7107  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7108  # A ".." for each directory in $ac_dir_suffix.
7109  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7110  case $ac_top_builddir_sub in
7111  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7112  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7113  esac ;;
7114esac
7115ac_abs_top_builddir=$ac_pwd
7116ac_abs_builddir=$ac_pwd$ac_dir_suffix
7117# for backward compatibility:
7118ac_top_builddir=$ac_top_build_prefix
7119
7120case $srcdir in
7121  .)  # We are building in place.
7122    ac_srcdir=.
7123    ac_top_srcdir=$ac_top_builddir_sub
7124    ac_abs_top_srcdir=$ac_pwd ;;
7125  [\\/]* | ?:[\\/]* )  # Absolute name.
7126    ac_srcdir=$srcdir$ac_dir_suffix;
7127    ac_top_srcdir=$srcdir
7128    ac_abs_top_srcdir=$srcdir ;;
7129  *) # Relative name.
7130    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7131    ac_top_srcdir=$ac_top_build_prefix$srcdir
7132    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7133esac
7134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7135
7136
7137  case $ac_mode in
7138  :F)
7139  #
7140  # CONFIG_FILE
7141  #
7142
7143_ACEOF
7144
7145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7146# If the template does not know about datarootdir, expand it.
7147# FIXME: This hack should be removed a few years after 2.60.
7148ac_datarootdir_hack=; ac_datarootdir_seen=
7149ac_sed_dataroot='
7150/datarootdir/ {
7151  p
7152  q
7153}
7154/@datadir@/p
7155/@docdir@/p
7156/@infodir@/p
7157/@localedir@/p
7158/@mandir@/p'
7159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7160*datarootdir*) ac_datarootdir_seen=yes;;
7161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7162  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7163$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7164_ACEOF
7165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7166  ac_datarootdir_hack='
7167  s&@datadir@&$datadir&g
7168  s&@docdir@&$docdir&g
7169  s&@infodir@&$infodir&g
7170  s&@localedir@&$localedir&g
7171  s&@mandir@&$mandir&g
7172  s&\\\${datarootdir}&$datarootdir&g' ;;
7173esac
7174_ACEOF
7175
7176# Neutralize VPATH when `$srcdir' = `.'.
7177# Shell code in configure.ac might set extrasub.
7178# FIXME: do we really want to maintain this feature?
7179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7180ac_sed_extra="$ac_vpsub
7181$extrasub
7182_ACEOF
7183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7184:t
7185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7186s|@configure_input@|$ac_sed_conf_input|;t t
7187s&@top_builddir@&$ac_top_builddir_sub&;t t
7188s&@top_build_prefix@&$ac_top_build_prefix&;t t
7189s&@srcdir@&$ac_srcdir&;t t
7190s&@abs_srcdir@&$ac_abs_srcdir&;t t
7191s&@top_srcdir@&$ac_top_srcdir&;t t
7192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7193s&@builddir@&$ac_builddir&;t t
7194s&@abs_builddir@&$ac_abs_builddir&;t t
7195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7196$ac_datarootdir_hack
7197"
7198eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7199  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7200
7201test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7202  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7203  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7204      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7206which seems to be undefined.  Please make sure it is defined" >&5
7207$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7208which seems to be undefined.  Please make sure it is defined" >&2;}
7209
7210  rm -f "$ac_tmp/stdin"
7211  case $ac_file in
7212  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7213  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7214  esac \
7215  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7216 ;;
7217  :H)
7218  #
7219  # CONFIG_HEADER
7220  #
7221  if test x"$ac_file" != x-; then
7222    {
7223      $as_echo "/* $configure_input  */" \
7224      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7225    } >"$ac_tmp/config.h" \
7226      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7227    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7228      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7229$as_echo "$as_me: $ac_file is unchanged" >&6;}
7230    else
7231      rm -f "$ac_file"
7232      mv "$ac_tmp/config.h" "$ac_file" \
7233	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7234    fi
7235  else
7236    $as_echo "/* $configure_input  */" \
7237      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7238      || as_fn_error $? "could not create -" "$LINENO" 5
7239  fi
7240# Compute "$ac_file"'s index in $config_headers.
7241_am_arg="$ac_file"
7242_am_stamp_count=1
7243for _am_header in $config_headers :; do
7244  case $_am_header in
7245    $_am_arg | $_am_arg:* )
7246      break ;;
7247    * )
7248      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7249  esac
7250done
7251echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7252$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7253	 X"$_am_arg" : 'X\(//\)[^/]' \| \
7254	 X"$_am_arg" : 'X\(//\)$' \| \
7255	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7256$as_echo X"$_am_arg" |
7257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7258	    s//\1/
7259	    q
7260	  }
7261	  /^X\(\/\/\)[^/].*/{
7262	    s//\1/
7263	    q
7264	  }
7265	  /^X\(\/\/\)$/{
7266	    s//\1/
7267	    q
7268	  }
7269	  /^X\(\/\).*/{
7270	    s//\1/
7271	    q
7272	  }
7273	  s/.*/./; q'`/stamp-h$_am_stamp_count
7274 ;;
7275
7276
7277  esac
7278
7279done # for ac_tag
7280
7281
7282as_fn_exit 0
7283_ACEOF
7284ac_clean_files=$ac_clean_files_save
7285
7286test $ac_write_fail = 0 ||
7287  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7288
7289
7290# configure is writing to config.log, and then calls config.status.
7291# config.status does its own redirection, appending to config.log.
7292# Unfortunately, on DOS this fails, as config.log is still kept open
7293# by configure, so config.status won't be able to write to it; its
7294# output is simply discarded.  So we exec the FD to /dev/null,
7295# effectively closing config.log, so it can be properly (re)opened and
7296# appended to by config.status.  When coming back to configure, we
7297# need to make the FD available again.
7298if test "$no_create" != yes; then
7299  ac_cs_success=:
7300  ac_config_status_args=
7301  test "$silent" = yes &&
7302    ac_config_status_args="$ac_config_status_args --quiet"
7303  exec 5>/dev/null
7304  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7305  exec 5>>config.log
7306  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7307  # would make configure fail if this is the last instruction.
7308  $ac_cs_success || as_fn_exit 1
7309fi
7310if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7312$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7313fi
7314
7315
7316
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: ${term_bold}** Readline (Done)${term_norm}" >&5
7318$as_echo "$as_me: ${term_bold}** Readline (Done)${term_norm}" >&6;}
7319
7320