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