Merge tcsh 6.22.03-ceccc7f
[freebsd.git] / contrib / tcsh / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for tcsh 6.22.03.
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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   }
81 fi
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export 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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -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
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
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
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
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
236 fi; }
237 IFS=$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.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $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
259 exit 255
260 fi
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
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_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.
308 as_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.
318 as_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.
366 as_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.
376 if (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   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # 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.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # 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.
411 as_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
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_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.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_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
503 ECHO_C= ECHO_N= ECHO_T=
504 case `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';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (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
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_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.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 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.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='tcsh'
582 PACKAGE_TARNAME='tcsh'
583 PACKAGE_VERSION='6.22.03'
584 PACKAGE_STRING='tcsh 6.22.03'
585 PACKAGE_BUGREPORT='https://bugs.astron.com/'
586 PACKAGE_URL=''
587
588 ac_unique_file="tc.vers.c"
589 # Factoring default headers for most tests.
590 ac_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
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 BUILD_CATALOGS
628 HESLIB
629 HESDEF
630 DFLAGS
631 CC_FOR_GETHOST
632 GENCAT
633 LTLIBICONV
634 LIBICONV
635 EGREP
636 GREP
637 CPP
638 OBJEXT
639 EXEEXT
640 ac_ct_CC
641 CPPFLAGS
642 LDFLAGS
643 CFLAGS
644 CC
645 host_os
646 host_vendor
647 host_cpu
648 host
649 build_os
650 build_vendor
651 build_cpu
652 build
653 INSTALL_DATA
654 INSTALL_SCRIPT
655 INSTALL_PROGRAM
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 with_gnu_ld
698 enable_rpath
699 with_libiconv_prefix
700 enable_nls
701 enable_nls_catalogs
702 with_hesiod
703 '
704       ac_precious_vars='build_alias
705 host_alias
706 target_alias
707 CC
708 CFLAGS
709 LDFLAGS
710 LIBS
711 CPPFLAGS
712 CPP'
713
714
715 # Initialize some variables set by options.
716 ac_init_help=
717 ac_init_version=false
718 ac_unrecognized_opts=
719 ac_unrecognized_sep=
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
722 cache_file=/dev/null
723 exec_prefix=NONE
724 no_create=
725 no_recursion=
726 prefix=NONE
727 program_prefix=NONE
728 program_suffix=NONE
729 program_transform_name=s,x,x,
730 silent=
731 site=
732 srcdir=
733 verbose=
734 x_includes=NONE
735 x_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.)
743 bindir='${exec_prefix}/bin'
744 sbindir='${exec_prefix}/sbin'
745 libexecdir='${exec_prefix}/libexec'
746 datarootdir='${prefix}/share'
747 datadir='${datarootdir}'
748 sysconfdir='${prefix}/etc'
749 sharedstatedir='${prefix}/com'
750 localstatedir='${prefix}/var'
751 includedir='${prefix}/include'
752 oldincludedir='/usr/include'
753 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
754 infodir='${datarootdir}/info'
755 htmldir='${docdir}'
756 dvidir='${docdir}'
757 pdfdir='${docdir}'
758 psdir='${docdir}'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
762
763 ac_prev=
764 ac_dashdash=
765 for ac_option
766 do
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'
1099 Try \`$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
1121 done
1122
1123 if test -n "$ac_prev"; then
1124   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1125   as_fn_error $? "missing argument to $ac_option"
1126 fi
1127
1128 if 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
1134 fi
1135
1136 # Check all directory arguments for consistency.
1137 for 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
1141 do
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"
1155 done
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.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1163
1164 # FIXME: To remove some day.
1165 if 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
1171 fi
1172
1173 ac_tool_prefix=
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175
1176 test "$silent" = yes && exec 6>/dev/null
1177
1178
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182   as_fn_error $? "working directory cannot be determined"
1183 test "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.
1188 if 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
1218 else
1219   ac_srcdir_defaulted=no
1220 fi
1221 if 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"
1224 fi
1225 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 ac_abs_confdir=`(
1227         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1228         pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231   srcdir=.
1232 fi
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.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for 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}
1244 done
1245
1246 #
1247 # Report the --help message.
1248 #
1249 if 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.22.03 to adapt to many kinds of systems.
1254
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1256
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE.  See below for descriptions of some of the useful variables.
1259
1260 Defaults for the options are specified in brackets.
1261
1262 Configuration:
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
1273 Installation 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
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1283
1284 For better control, use the options below.
1285
1286 Fine 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
1310 System 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
1314 fi
1315
1316 if test -n "$ac_init_help"; then
1317   case $ac_init_help in
1318      short | recursive ) echo "Configuration of tcsh 6.22.03:";;
1319    esac
1320   cat <<\_ACEOF
1321
1322 Optional 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
1330 Optional 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
1338 Some 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
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1350
1351 Report bugs to <https://bugs.astron.com/>.
1352 _ACEOF
1353 ac_status=$?
1354 fi
1355
1356 if 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
1364 case "$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 ;;
1374 esac
1375 ac_abs_top_builddir=$ac_pwd
1376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377 # for backward compatibility:
1378 ac_top_builddir=$ac_top_build_prefix
1379
1380 case $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 ;;
1393 esac
1394 ac_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
1409 fi
1410
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1413   cat <<\_ACEOF
1414 tcsh configure 6.22.03
1415 generated by GNU Autoconf 2.69
1416
1417 Copyright (C) 2012 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1420 _ACEOF
1421   exit
1422 fi
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.
1431 ac_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"
1436 case "(($ac_try" in
1437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438   *) ac_try_echo=$ac_try;;
1439 esac
1440 eval 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
1455 else
1456   $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459         ac_retval=1
1460 fi
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.
1469 ac_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"
1473 case "(($ac_try" in
1474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475   *) ac_try_echo=$ac_try;;
1476 esac
1477 eval 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
1492 else
1493   $as_echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1495
1496     ac_retval=1
1497 fi
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.
1506 ac_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"
1511 case "(($ac_try" in
1512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513   *) ac_try_echo=$ac_try;;
1514 esac
1515 eval 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
1533 else
1534   $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537         ac_retval=1
1538 fi
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.
1553 ac_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"
1557 case "(($ac_try" in
1558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559   *) ac_try_echo=$ac_try;;
1560 esac
1561 eval 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;;
1570 esac
1571 eval 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
1578 else
1579   $as_echo "$as_me: program exited with status $ac_status" >&5
1580        $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583        ac_retval=$ac_status
1584 fi
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.
1596 ac_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; }
1602 if eval \${$3+:} false; then :
1603   $as_echo_n "(cached) " >&6
1604 fi
1605 eval ac_res=\$$3
1606                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607 $as_echo "$ac_res" >&6; }
1608 else
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; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h.  */
1614 $4
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"; then :
1618   ac_header_compiler=yes
1619 else
1620   ac_header_compiler=no
1621 fi
1622 rm -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; }
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h.  */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_cpp "$LINENO"; then :
1634   ac_header_preproc=yes
1635 else
1636   ac_header_preproc=no
1637 fi
1638 rm -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?
1643 case $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     ;;
1666 esac
1667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670   $as_echo_n "(cached) " >&6
1671 else
1672   eval "$3=\$ac_header_compiler"
1673 fi
1674 eval ac_res=\$$3
1675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677 fi
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.
1686 ac_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; }
1691 if eval \${$3+:} false; then :
1692   $as_echo_n "(cached) " >&6
1693 else
1694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h.  */
1696 $4
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700   eval "$3=yes"
1701 else
1702   eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 fi
1706 eval 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
1718 ac_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.
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h.  */
1725 $4
1726 int
1727 main ()
1728 {
1729 static int test_array [1 - 2 * !(($2) >= 0)];
1730 test_array [0] = 0;
1731 return test_array [0];
1732
1733   ;
1734   return 0;
1735 }
1736 _ACEOF
1737 if 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
1743 int
1744 main ()
1745 {
1746 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1747 test_array [0] = 0;
1748 return test_array [0];
1749
1750   ;
1751   return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   ac_hi=$ac_mid; break
1756 else
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
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765   done
1766 else
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 $4
1770 int
1771 main ()
1772 {
1773 static int test_array [1 - 2 * !(($2) < 0)];
1774 test_array [0] = 0;
1775 return test_array [0];
1776
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 if 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
1787 int
1788 main ()
1789 {
1790 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1791 test_array [0] = 0;
1792 return test_array [0];
1793
1794   ;
1795   return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799   ac_lo=$ac_mid; break
1800 else
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
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809   done
1810 else
1811   ac_lo= ac_hi=
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 # Binary search between lo and hi bounds.
1817 while 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
1822 int
1823 main ()
1824 {
1825 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1826 test_array [0] = 0;
1827 return test_array [0];
1828
1829   ;
1830   return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834   ac_hi=$ac_mid
1835 else
1836   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 done
1840 case $ac_lo in #((
1841 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1842 '') ac_retval=1 ;;
1843 esac
1844   else
1845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 $4
1848 static long int longval () { return $2; }
1849 static unsigned long int ulongval () { return $2; }
1850 #include <stdio.h>
1851 #include <stdlib.h>
1852 int
1853 main ()
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
1881 if ac_fn_c_try_run "$LINENO"; then :
1882   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1883 else
1884   ac_retval=1
1885 fi
1886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1887   conftest.$ac_objext conftest.beam conftest.$ac_ext
1888 rm -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.
1900 ac_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; }
1905 if eval \${$3+:} false; then :
1906   $as_echo_n "(cached) " >&6
1907 else
1908   eval "$3=no"
1909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 $4
1912 int
1913 main ()
1914 {
1915 if (sizeof ($2))
1916          return 0;
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 int
1926 main ()
1927 {
1928 if (sizeof (($2)))
1929             return 0;
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935
1936 else
1937   eval "$3=yes"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 eval 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.
1954 ac_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; }
1959 if eval \${$3+:} false; then :
1960   $as_echo_n "(cached) " >&6
1961 else
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
1970 int
1971 main ()
1972 {
1973 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1974 test_array [0] = 0;
1975 return test_array [0];
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 if 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" ;;
1987 esac
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990        if eval test \"x\$"$3"\" = x"no"; then :
1991
1992 else
1993   break
1994 fi
1995      done
1996 fi
1997 eval 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.
2008 ac_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; }
2013 if eval \${$4+:} false; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $5
2019 int
2020 main ()
2021 {
2022 static $2 ac_aggr;
2023 if (ac_aggr.$3)
2024 return 0;
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030   eval "$4=yes"
2031 else
2032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $5
2035 int
2036 main ()
2037 {
2038 static $2 ac_aggr;
2039 if (sizeof ac_aggr.$3)
2040 return 0;
2041   ;
2042   return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046   eval "$4=yes"
2047 else
2048   eval "$4=no"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval 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.
2065 ac_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; }
2072 if eval \${$3+:} false; then :
2073   $as_echo_n "(cached) " >&6
2074 else
2075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h.  */
2077 $4
2078 int
2079 main ()
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
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   eval "$3=yes"
2095 else
2096   eval "$3=no"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 eval 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
2110 ac_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; }
2115 if eval \${$3+:} false; then :
2116   $as_echo_n "(cached) " >&6
2117 else
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
2141 extern "C"
2142 #endif
2143 char $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
2148 choke me
2149 #endif
2150
2151 int
2152 main ()
2153 {
2154 return $2 ();
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_link "$LINENO"; then :
2160   eval "$3=yes"
2161 else
2162   eval "$3=no"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext \
2165     conftest$ac_exeext conftest.$ac_ext
2166 fi
2167 eval 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
2173 cat >config.log <<_ACEOF
2174 This file contains any messages produced by compilers while
2175 running configure, to aid debugging if configure makes a mistake.
2176
2177 It was created by tcsh $as_me 6.22.03, which was
2178 generated by GNU Autoconf 2.69.  Invocation command line was
2179
2180   $ $0 $@
2181
2182 _ACEOF
2183 exec 5>>config.log
2184 {
2185 cat <<_ASUNAME
2186 ## --------- ##
2187 ## Platform. ##
2188 ## --------- ##
2189
2190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194 uname -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
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214     $as_echo "PATH: $as_dir"
2215   done
2216 IFS=$as_save_IFS
2217
2218 } >&5
2219
2220 cat >&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.
2235 ac_configure_args=
2236 ac_configure_args0=
2237 ac_configure_args1=
2238 ac_must_keep_next=false
2239 for ac_pass in 1 2
2240 do
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
2274 done
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.
2283 trap '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
2370 for ac_signal in 1 2 13 15; do
2371   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372 done
2373 ac_signal=0
2374
2375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2376 rm -f -r conftest* confdefs.h
2377
2378 $as_echo "/* confdefs.h */" > confdefs.h
2379
2380 # Predefined preprocessor variables.
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_NAME "$PACKAGE_NAME"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_STRING "$PACKAGE_STRING"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400 _ACEOF
2401
2402 cat >>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.
2409 ac_site_file1=NONE
2410 ac_site_file2=NONE
2411 if 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
2418 elif test "x$prefix" != xNONE; then
2419   ac_site_file1=$prefix/share/config.site
2420   ac_site_file2=$prefix/etc/config.site
2421 else
2422   ac_site_file1=$ac_default_prefix/share/config.site
2423   ac_site_file2=$ac_default_prefix/etc/config.site
2424 fi
2425 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 do
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;}
2435 as_fn_error $? "failed to load site script $ac_site_file
2436 See \`config.log' for more details" "$LINENO" 5; }
2437   fi
2438 done
2439
2440 if 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
2451 else
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
2455 fi
2456
2457 # Check that the precious variables saved in the cache have kept the same
2458 # value.
2459 ac_cache_corrupted=false
2460 for 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
2506 done
2507 if $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
2513 fi
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2517
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525
2526
2527 ac_config_headers="$ac_config_headers config.h"
2528
2529 ac_config_commands="$ac_config_commands ./atconfig"
2530
2531
2532 ac_aux_dir=
2533 for 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
2547 done
2548 if test -z "$ac_aux_dir"; then
2549   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2550 fi
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.
2556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2558 ac_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; }
2577 if test -z "$INSTALL"; then
2578 if ${ac_cv_path_install+:} false; then :
2579   $as_echo_n "(cached) " >&6
2580 else
2581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586     # Account for people who put trailing slashes in PATH elements.
2587 case $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     ;;
2625 esac
2626
2627   done
2628 IFS=$as_save_IFS
2629
2630 rm -rf conftest.one conftest.two conftest.dir
2631
2632 fi
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
2642 fi
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.
2648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652 test -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; }
2660 if ${ac_cv_build+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   ac_build_alias=$build_alias
2664 test "x$ac_build_alias" = x &&
2665   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2666 test "x$ac_build_alias" = x &&
2667   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2668 ac_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
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2673 $as_echo "$ac_cv_build" >&6; }
2674 case $ac_cv_build in
2675 *-*-*) ;;
2676 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2677 esac
2678 build=$ac_cv_build
2679 ac_save_IFS=$IFS; IFS='-'
2680 set x $ac_cv_build
2681 shift
2682 build_cpu=$1
2683 build_vendor=$2
2684 shift; shift
2685 # Remember, the first character of IFS is used to create $*,
2686 # except with old shells:
2687 build_os=$*
2688 IFS=$ac_save_IFS
2689 case $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; }
2694 if ${ac_cv_host+:} false; then :
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test "x$host_alias" = x; then
2698   ac_cv_host=$ac_cv_build
2699 else
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
2702 fi
2703
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2706 $as_echo "$ac_cv_host" >&6; }
2707 case $ac_cv_host in
2708 *-*-*) ;;
2709 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2710 esac
2711 host=$ac_cv_host
2712 ac_save_IFS=$IFS; IFS='-'
2713 set x $ac_cv_host
2714 shift
2715 host_cpu=$1
2716 host_vendor=$2
2717 shift; shift
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2720 host_os=$*
2721 IFS=$ac_save_IFS
2722 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2723
2724
2725
2726
2727       if test "X$prefix" = "XNONE"; then
2728     acl_final_prefix="$ac_default_prefix"
2729   else
2730     acl_final_prefix="$prefix"
2731   fi
2732   if test "X$exec_prefix" = "XNONE"; then
2733     acl_final_exec_prefix='${prefix}'
2734   else
2735     acl_final_exec_prefix="$exec_prefix"
2736   fi
2737   acl_save_prefix="$prefix"
2738   prefix="$acl_final_prefix"
2739   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2740   prefix="$acl_save_prefix"
2741
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753   $as_echo_n "(cached) " >&6
2754 else
2755   if test -n "$CC"; then
2756   ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761   IFS=$as_save_IFS
2762   test -z "$as_dir" && as_dir=.
2763     for ac_exec_ext in '' $ac_executable_extensions; do
2764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767     break 2
2768   fi
2769 done
2770   done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 CC=$ac_cv_prog_CC
2776 if test -n "$CC"; then
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2779 else
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784
2785 fi
2786 if test -z "$ac_cv_prog_CC"; then
2787   ac_ct_CC=$CC
2788   # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793   $as_echo_n "(cached) " >&6
2794 else
2795   if test -n "$ac_ct_CC"; then
2796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803     for ac_exec_ext in '' $ac_executable_extensions; do
2804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805     ac_cv_prog_ac_ct_CC="gcc"
2806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810   done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2819 else
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824   if test "x$ac_ct_CC" = x; then
2825     CC=""
2826   else
2827     case $cross_compiling:$ac_tool_warned in
2828 yes:)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2832 esac
2833     CC=$ac_ct_CC
2834   fi
2835 else
2836   CC="$ac_cv_prog_CC"
2837 fi
2838
2839 if test -z "$CC"; then
2840           if test -n "$ac_tool_prefix"; then
2841     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$CC"; then
2849   ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858     ac_cv_prog_CC="${ac_tool_prefix}cc"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878   fi
2879 fi
2880 if test -z "$CC"; then
2881   # Extract the first word of "cc", so it can be a program name with args.
2882 set dummy cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   if test -n "$CC"; then
2889   ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891   ac_prog_rejected=no
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897     for ac_exec_ext in '' $ac_executable_extensions; do
2898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900        ac_prog_rejected=yes
2901        continue
2902      fi
2903     ac_cv_prog_CC="cc"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 if test $ac_prog_rejected = yes; then
2912   # We found a bogon in the path, so make sure we never use it.
2913   set dummy $ac_cv_prog_CC
2914   shift
2915   if test $# != 0; then
2916     # We chose a different compiler from the bogus one.
2917     # However, it has the same basename, so the bogon will be chosen
2918     # first if we set CC to just the basename; use the full file name.
2919     shift
2920     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921   fi
2922 fi
2923 fi
2924 fi
2925 CC=$ac_cv_prog_CC
2926 if test -n "$CC"; then
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2929 else
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$CC"; then
2937   if test -n "$ac_tool_prefix"; then
2938   for ac_prog in cl.exe
2939   do
2940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$CC"; then
2948   ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977     test -n "$CC" && break
2978   done
2979 fi
2980 if test -z "$CC"; then
2981   ac_ct_CC=$CC
2982   for ac_prog in cl.exe
2983 do
2984   # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$ac_ct_CC"; then
2992   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999     for ac_exec_ext in '' $ac_executable_extensions; do
3000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001     ac_cv_prog_ac_ct_CC="$ac_prog"
3002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006   done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021   test -n "$ac_ct_CC" && break
3022 done
3023
3024   if test "x$ac_ct_CC" = x; then
3025     CC=""
3026   else
3027     case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033     CC=$ac_ct_CC
3034   fi
3035 fi
3036
3037 fi
3038
3039
3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details" "$LINENO" 5; }
3044
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047 set X $ac_compile
3048 ac_compiler=$2
3049 for ac_option in --version -v -V -qversion; do
3050   { { ac_try="$ac_compiler $ac_option >&5"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3058   ac_status=$?
3059   if test -s conftest.err; then
3060     sed '10a\
3061 ... rest of stderr output deleted ...
3062          10q' conftest.err >conftest.er1
3063     cat conftest.er1 >&5
3064   fi
3065   rm -f conftest.er1 conftest.err
3066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067   test $ac_status = 0; }
3068 done
3069
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h.  */
3072
3073 int
3074 main ()
3075 {
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 ac_clean_files_save=$ac_clean_files
3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3085 # of exeext.
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3087 $as_echo_n "checking whether the C compiler works... " >&6; }
3088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3089
3090 # The possible output files:
3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092
3093 ac_rmfiles=
3094 for ac_file in $ac_files
3095 do
3096   case $ac_file in
3097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099   esac
3100 done
3101 rm -f $ac_rmfiles
3102
3103 if { { ac_try="$ac_link_default"
3104 case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110   (eval "$ac_link_default") 2>&5
3111   ac_status=$?
3112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113   test $ac_status = 0; }; then :
3114   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3118 # Autoconf.
3119 for ac_file in $ac_files ''
3120 do
3121   test -f "$ac_file" || continue
3122   case $ac_file in
3123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3124         ;;
3125     [ab].out )
3126         # We found the default executable, but exeext='' is most
3127         # certainly right.
3128         break;;
3129     *.* )
3130         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131         then :; else
3132            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133         fi
3134         # We set ac_cv_exeext here because the later test for it is not
3135         # safe: cross compilers may not add the suffix if given an `-o'
3136         # argument, so we may need to know it at that point already.
3137         # Even if this section looks crufty: it has the advantage of
3138         # actually working.
3139         break;;
3140     * )
3141         break;;
3142   esac
3143 done
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3145
3146 else
3147   ac_file=''
3148 fi
3149 if test -z "$ac_file"; then :
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C compiler cannot create executables
3158 See \`config.log' for more details" "$LINENO" 5; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3164 $as_echo_n "checking for C compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3168
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180   (eval "$ac_link") 2>&5
3181   ac_status=$?
3182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183   test $ac_status = 0; }; then :
3184   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe'), while it won't with
3187 # `rm'.
3188 for ac_file in conftest.exe conftest conftest.*; do
3189   test -f "$ac_file" || continue
3190   case $ac_file in
3191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193           break;;
3194     * ) break;;
3195   esac
3196 done
3197 else
3198   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3202 fi
3203 rm -f conftest conftest$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3206
3207 rm -f conftest.$ac_ext
3208 EXEEXT=$ac_cv_exeext
3209 ac_exeext=$EXEEXT
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h.  */
3212 #include <stdio.h>
3213 int
3214 main ()
3215 {
3216 FILE *f = fopen ("conftest.out", "w");
3217  return ferror (f) || fclose (f) != 0;
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 ac_clean_files="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run.  If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229   { { ac_try="$ac_link"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_link") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }
3240   if { ac_try='./conftest$ac_cv_exeext'
3241   { { case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247   (eval "$ac_try") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250   test $ac_status = 0; }; }; then
3251     cross_compiling=no
3252   else
3253     if test "$cross_compiling" = maybe; then
3254         cross_compiling=yes
3255     else
3256         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot run C compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3261     fi
3262   fi
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3266
3267 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false; then :
3272   $as_echo_n "(cached) " >&6
3273 else
3274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293   (eval "$ac_compile") 2>&5
3294   ac_status=$?
3295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296   test $ac_status = 0; }; then :
3297   for ac_file in conftest.o conftest.obj conftest.*; do
3298   test -f "$ac_file" || continue;
3299   case $ac_file in
3300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302        break;;
3303   esac
3304 done
3305 else
3306   $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 fi
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3319 ac_objext=$OBJEXT
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3322 if ${ac_cv_c_compiler_gnu+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331 #ifndef __GNUC__
3332        choke me
3333 #endif
3334
3335   ;
3336   return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340   ac_compiler_gnu=yes
3341 else
3342   ac_compiler_gnu=no
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3351   GCC=yes
3352 else
3353   GCC=
3354 fi
3355 ac_test_CFLAGS=${CFLAGS+set}
3356 ac_save_CFLAGS=$CFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3359 if ${ac_cv_prog_cc_g+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   ac_save_c_werror_flag=$ac_c_werror_flag
3363    ac_c_werror_flag=yes
3364    ac_cv_prog_cc_g=no
3365    CFLAGS="-g"
3366    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h.  */
3368
3369 int
3370 main ()
3371 {
3372
3373   ;
3374   return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378   ac_cv_prog_cc_g=yes
3379 else
3380   CFLAGS=""
3381       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393
3394 else
3395   ac_c_werror_flag=$ac_save_c_werror_flag
3396          CFLAGS="-g"
3397          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h.  */
3399
3400 int
3401 main ()
3402 {
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3409   ac_cv_prog_cc_g=yes
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416    ac_c_werror_flag=$ac_save_c_werror_flag
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3419 $as_echo "$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421   CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423   if test "$GCC" = yes; then
3424     CFLAGS="-g -O2"
3425   else
3426     CFLAGS="-g"
3427   fi
3428 else
3429   if test "$GCC" = yes; then
3430     CFLAGS="-O2"
3431   else
3432     CFLAGS=
3433   fi
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3437 if ${ac_cv_prog_cc_c89+:} false; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   ac_cv_prog_cc_c89=no
3441 ac_save_CC=$CC
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h.  */
3444 #include <stdarg.h>
3445 #include <stdio.h>
3446 struct stat;
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3451      char **p;
3452      int i;
3453 {
3454   return p[i];
3455 }
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3457 {
3458   char *s;
3459   va_list v;
3460   va_start (v,p);
3461   s = g (p, va_arg (v,int));
3462   va_end (v);
3463   return s;
3464 }
3465
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3467    function prototypes and stuff, but not '\xHH' hex character constants.
3468    These don't provoke an error unfortunately, instead are silently treated
3469    as 'x'.  The following induces an error, until -std is added to get
3470    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3471    array size at least.  It's necessary to write '\x00'==0 to get something
3472    that's true only with -std.  */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476    inside strings and character constants.  */
3477 #define FOO(x) 'x'
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3479
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3484 int argc;
3485 char **argv;
3486 int
3487 main ()
3488 {
3489 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496 do
3497   CC="$ac_save_CC $ac_arg"
3498   if ac_fn_c_try_compile "$LINENO"; then :
3499   ac_cv_prog_cc_c89=$ac_arg
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext
3502   test "x$ac_cv_prog_cc_c89" != "xno" && break
3503 done
3504 rm -f conftest.$ac_ext
3505 CC=$ac_save_CC
3506
3507 fi
3508 # AC_CACHE_VAL
3509 case "x$ac_cv_prog_cc_c89" in
3510   x)
3511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512 $as_echo "none needed" >&6; } ;;
3513   xno)
3514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515 $as_echo "unsupported" >&6; } ;;
3516   *)
3517     CC="$CC $ac_cv_prog_cc_c89"
3518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3520 esac
3521 if test "x$ac_cv_prog_cc_c89" != xno; then :
3522
3523 fi
3524
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
3531
3532
3533 # Check whether --with-gnu-ld was given.
3534 if test "${with_gnu_ld+set}" = set; then :
3535   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3536 else
3537   with_gnu_ld=no
3538 fi
3539
3540 # Prepare PATH_SEPARATOR.
3541 # The user is always right.
3542 if test "${PATH_SEPARATOR+set}" != set; then
3543   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3544   # contains only /bin. Note that ksh looks also at the FPATH variable,
3545   # so we have to set that as well for the test.
3546   PATH_SEPARATOR=:
3547   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3548     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3549            || PATH_SEPARATOR=';'
3550        }
3551 fi
3552
3553 ac_prog=ld
3554 if test "$GCC" = yes; then
3555   # Check if gcc -print-prog-name=ld gives a path.
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3557 $as_echo_n "checking for ld used by $CC... " >&6; }
3558   case $host in
3559   *-*-mingw*)
3560     # gcc leaves a trailing carriage return which upsets mingw
3561     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3562   *)
3563     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3564   esac
3565   case $ac_prog in
3566     # Accept absolute paths.
3567     [\\/]* | ?:[\\/]*)
3568       re_direlt='/[^/][^/]*/\.\./'
3569       # Canonicalize the pathname of ld
3570       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
3571       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
3572         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3573       done
3574       test -z "$LD" && LD="$ac_prog"
3575       ;;
3576   "")
3577     # If it fails, then pretend we aren't using GCC.
3578     ac_prog=ld
3579     ;;
3580   *)
3581     # If it is relative, then search for the first ld in PATH.
3582     with_gnu_ld=unknown
3583     ;;
3584   esac
3585 elif test "$with_gnu_ld" = yes; then
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3587 $as_echo_n "checking for GNU ld... " >&6; }
3588 else
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3590 $as_echo_n "checking for non-GNU ld... " >&6; }
3591 fi
3592 if ${acl_cv_path_LD+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -z "$LD"; then
3596   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3597   for ac_dir in $PATH; do
3598     IFS="$acl_save_ifs"
3599     test -z "$ac_dir" && ac_dir=.
3600     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3601       acl_cv_path_LD="$ac_dir/$ac_prog"
3602       # Check to see if the program is GNU ld.  I'd rather use --version,
3603       # but apparently some variants of GNU ld only accept -v.
3604       # Break only if it was the GNU/non-GNU ld that we prefer.
3605       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
3606       *GNU* | *'with BFD'*)
3607         test "$with_gnu_ld" != no && break
3608         ;;
3609       *)
3610         test "$with_gnu_ld" != yes && break
3611         ;;
3612       esac
3613     fi
3614   done
3615   IFS="$acl_save_ifs"
3616 else
3617   acl_cv_path_LD="$LD" # Let the user override the test with a path.
3618 fi
3619 fi
3620
3621 LD="$acl_cv_path_LD"
3622 if test -n "$LD"; then
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3624 $as_echo "$LD" >&6; }
3625 else
3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3631 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3632 if ${acl_cv_prog_gnu_ld+:} false; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3636 case `$LD -v 2>&1 </dev/null` in
3637 *GNU* | *'with BFD'*)
3638   acl_cv_prog_gnu_ld=yes
3639   ;;
3640 *)
3641   acl_cv_prog_gnu_ld=no
3642   ;;
3643 esac
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
3646 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
3647 with_gnu_ld=$acl_cv_prog_gnu_ld
3648
3649
3650
3651
3652                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
3653 $as_echo_n "checking for shared library run path origin... " >&6; }
3654 if ${acl_cv_rpath+:} false; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657
3658     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3659     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3660     . ./conftest.sh
3661     rm -f ./conftest.sh
3662     acl_cv_rpath=done
3663
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
3666 $as_echo "$acl_cv_rpath" >&6; }
3667   wl="$acl_cv_wl"
3668   acl_libext="$acl_cv_libext"
3669   acl_shlibext="$acl_cv_shlibext"
3670   acl_libname_spec="$acl_cv_libname_spec"
3671   acl_library_names_spec="$acl_cv_library_names_spec"
3672   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3673   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3674   acl_hardcode_direct="$acl_cv_hardcode_direct"
3675   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3676     # Check whether --enable-rpath was given.
3677 if test "${enable_rpath+set}" = set; then :
3678   enableval=$enable_rpath; :
3679 else
3680   enable_rpath=yes
3681 fi
3682
3683
3684
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3691 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3692 # On Suns, sometimes $CPP names a directory.
3693 if test -n "$CPP" && test -d "$CPP"; then
3694   CPP=
3695 fi
3696 if test -z "$CPP"; then
3697   if ${ac_cv_prog_CPP+:} false; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700       # Double quotes because CPP needs to be expanded
3701     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3702     do
3703       ac_preproc_ok=false
3704 for ac_c_preproc_warn_flag in '' yes
3705 do
3706   # Use a header file that comes with gcc, so configuring glibc
3707   # with a fresh cross-compiler works.
3708   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3709   # <limits.h> exists even on freestanding compilers.
3710   # On the NeXT, cc -E runs the code through the compiler's parser,
3711   # not just through cpp. "Syntax error" is here to catch this case.
3712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h.  */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719                      Syntax error
3720 _ACEOF
3721 if ac_fn_c_try_cpp "$LINENO"; then :
3722
3723 else
3724   # Broken: fails on valid input.
3725 continue
3726 fi
3727 rm -f conftest.err conftest.i conftest.$ac_ext
3728
3729   # OK, works on sane cases.  Now check whether nonexistent headers
3730   # can be detected and how.
3731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733 #include <ac_nonexistent.h>
3734 _ACEOF
3735 if ac_fn_c_try_cpp "$LINENO"; then :
3736   # Broken: success on invalid input.
3737 continue
3738 else
3739   # Passes both tests.
3740 ac_preproc_ok=:
3741 break
3742 fi
3743 rm -f conftest.err conftest.i conftest.$ac_ext
3744
3745 done
3746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3747 rm -f conftest.i conftest.err conftest.$ac_ext
3748 if $ac_preproc_ok; then :
3749   break
3750 fi
3751
3752     done
3753     ac_cv_prog_CPP=$CPP
3754
3755 fi
3756   CPP=$ac_cv_prog_CPP
3757 else
3758   ac_cv_prog_CPP=$CPP
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3761 $as_echo "$CPP" >&6; }
3762 ac_preproc_ok=false
3763 for ac_c_preproc_warn_flag in '' yes
3764 do
3765   # Use a header file that comes with gcc, so configuring glibc
3766   # with a fresh cross-compiler works.
3767   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768   # <limits.h> exists even on freestanding compilers.
3769   # On the NeXT, cc -E runs the code through the compiler's parser,
3770   # not just through cpp. "Syntax error" is here to catch this case.
3771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3773 #ifdef __STDC__
3774 # include <limits.h>
3775 #else
3776 # include <assert.h>
3777 #endif
3778                      Syntax error
3779 _ACEOF
3780 if ac_fn_c_try_cpp "$LINENO"; then :
3781
3782 else
3783   # Broken: fails on valid input.
3784 continue
3785 fi
3786 rm -f conftest.err conftest.i conftest.$ac_ext
3787
3788   # OK, works on sane cases.  Now check whether nonexistent headers
3789   # can be detected and how.
3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792 #include <ac_nonexistent.h>
3793 _ACEOF
3794 if ac_fn_c_try_cpp "$LINENO"; then :
3795   # Broken: success on invalid input.
3796 continue
3797 else
3798   # Passes both tests.
3799 ac_preproc_ok=:
3800 break
3801 fi
3802 rm -f conftest.err conftest.i conftest.$ac_ext
3803
3804 done
3805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3806 rm -f conftest.i conftest.err conftest.$ac_ext
3807 if $ac_preproc_ok; then :
3808
3809 else
3810   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3813 See \`config.log' for more details" "$LINENO" 5; }
3814 fi
3815
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3824 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3825 if ${ac_cv_path_GREP+:} false; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   if test -z "$GREP"; then
3829   ac_path_GREP_found=false
3830   # Loop through the user's path and test for each of PROGNAME-LIST
3831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836     for ac_prog in grep ggrep; do
3837     for ac_exec_ext in '' $ac_executable_extensions; do
3838       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3839       as_fn_executable_p "$ac_path_GREP" || continue
3840 # Check for GNU ac_path_GREP and select it if it is found.
3841   # Check for GNU $ac_path_GREP
3842 case `"$ac_path_GREP" --version 2>&1` in
3843 *GNU*)
3844   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3845 *)
3846   ac_count=0
3847   $as_echo_n 0123456789 >"conftest.in"
3848   while :
3849   do
3850     cat "conftest.in" "conftest.in" >"conftest.tmp"
3851     mv "conftest.tmp" "conftest.in"
3852     cp "conftest.in" "conftest.nl"
3853     $as_echo 'GREP' >> "conftest.nl"
3854     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3855     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3856     as_fn_arith $ac_count + 1 && ac_count=$as_val
3857     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3858       # Best one so far, save it but keep looking for a better one
3859       ac_cv_path_GREP="$ac_path_GREP"
3860       ac_path_GREP_max=$ac_count
3861     fi
3862     # 10*(2^10) chars as input seems more than enough
3863     test $ac_count -gt 10 && break
3864   done
3865   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3866 esac
3867
3868       $ac_path_GREP_found && break 3
3869     done
3870   done
3871   done
3872 IFS=$as_save_IFS
3873   if test -z "$ac_cv_path_GREP"; then
3874     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3875   fi
3876 else
3877   ac_cv_path_GREP=$GREP
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3882 $as_echo "$ac_cv_path_GREP" >&6; }
3883  GREP="$ac_cv_path_GREP"
3884
3885
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3887 $as_echo_n "checking for egrep... " >&6; }
3888 if ${ac_cv_path_EGREP+:} false; then :
3889   $as_echo_n "(cached) " >&6
3890 else
3891   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3892    then ac_cv_path_EGREP="$GREP -E"
3893    else
3894      if test -z "$EGREP"; then
3895   ac_path_EGREP_found=false
3896   # Loop through the user's path and test for each of PROGNAME-LIST
3897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902     for ac_prog in egrep; do
3903     for ac_exec_ext in '' $ac_executable_extensions; do
3904       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3905       as_fn_executable_p "$ac_path_EGREP" || continue
3906 # Check for GNU ac_path_EGREP and select it if it is found.
3907   # Check for GNU $ac_path_EGREP
3908 case `"$ac_path_EGREP" --version 2>&1` in
3909 *GNU*)
3910   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3911 *)
3912   ac_count=0
3913   $as_echo_n 0123456789 >"conftest.in"
3914   while :
3915   do
3916     cat "conftest.in" "conftest.in" >"conftest.tmp"
3917     mv "conftest.tmp" "conftest.in"
3918     cp "conftest.in" "conftest.nl"
3919     $as_echo 'EGREP' >> "conftest.nl"
3920     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922     as_fn_arith $ac_count + 1 && ac_count=$as_val
3923     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3924       # Best one so far, save it but keep looking for a better one
3925       ac_cv_path_EGREP="$ac_path_EGREP"
3926       ac_path_EGREP_max=$ac_count
3927     fi
3928     # 10*(2^10) chars as input seems more than enough
3929     test $ac_count -gt 10 && break
3930   done
3931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 esac
3933
3934       $ac_path_EGREP_found && break 3
3935     done
3936   done
3937   done
3938 IFS=$as_save_IFS
3939   if test -z "$ac_cv_path_EGREP"; then
3940     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3941   fi
3942 else
3943   ac_cv_path_EGREP=$EGREP
3944 fi
3945
3946    fi
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3949 $as_echo "$ac_cv_path_EGREP" >&6; }
3950  EGREP="$ac_cv_path_EGREP"
3951
3952
3953
3954
3955   acl_libdirstem=lib
3956   acl_libdirstem2=
3957   case "$host_os" in
3958     solaris*)
3959                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
3960 $as_echo_n "checking for 64-bit host... " >&6; }
3961 if ${gl_cv_solaris_64bit+:} false; then :
3962   $as_echo_n "(cached) " >&6
3963 else
3964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 #ifdef _LP64
3968 sixtyfour bits
3969 #endif
3970
3971 _ACEOF
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
3974   gl_cv_solaris_64bit=yes
3975 else
3976   gl_cv_solaris_64bit=no
3977 fi
3978 rm -f conftest*
3979
3980
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
3983 $as_echo "$gl_cv_solaris_64bit" >&6; }
3984       if test $gl_cv_solaris_64bit = yes; then
3985         acl_libdirstem=lib/64
3986         case "$host_cpu" in
3987           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
3988           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
3989         esac
3990       fi
3991       ;;
3992     *)
3993       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3994       if test -n "$searchpath"; then
3995         acl_save_IFS="${IFS=    }"; IFS=":"
3996         for searchdir in $searchpath; do
3997           if test -d "$searchdir"; then
3998             case "$searchdir" in
3999               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4000               */../ | */.. )
4001                 # Better ignore directories of this form. They are misleading.
4002                 ;;
4003               *) searchdir=`cd "$searchdir" && pwd`
4004                  case "$searchdir" in
4005                    */lib64 ) acl_libdirstem=lib64 ;;
4006                  esac ;;
4007             esac
4008           fi
4009         done
4010         IFS="$acl_save_IFS"
4011       fi
4012       ;;
4013   esac
4014   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027     use_additional=yes
4028
4029   acl_save_prefix="$prefix"
4030   prefix="$acl_final_prefix"
4031   acl_save_exec_prefix="$exec_prefix"
4032   exec_prefix="$acl_final_exec_prefix"
4033
4034     eval additional_includedir=\"$includedir\"
4035     eval additional_libdir=\"$libdir\"
4036
4037   exec_prefix="$acl_save_exec_prefix"
4038   prefix="$acl_save_prefix"
4039
4040
4041 # Check whether --with-libiconv-prefix was given.
4042 if test "${with_libiconv_prefix+set}" = set; then :
4043   withval=$with_libiconv_prefix;
4044     if test "X$withval" = "Xno"; then
4045       use_additional=no
4046     else
4047       if test "X$withval" = "X"; then
4048
4049   acl_save_prefix="$prefix"
4050   prefix="$acl_final_prefix"
4051   acl_save_exec_prefix="$exec_prefix"
4052   exec_prefix="$acl_final_exec_prefix"
4053
4054           eval additional_includedir=\"$includedir\"
4055           eval additional_libdir=\"$libdir\"
4056
4057   exec_prefix="$acl_save_exec_prefix"
4058   prefix="$acl_save_prefix"
4059
4060       else
4061         additional_includedir="$withval/include"
4062         additional_libdir="$withval/$acl_libdirstem"
4063         if test "$acl_libdirstem2" != "$acl_libdirstem" \
4064            && ! test -d "$withval/$acl_libdirstem"; then
4065           additional_libdir="$withval/$acl_libdirstem2"
4066         fi
4067       fi
4068     fi
4069
4070 fi
4071
4072       LIBICONV=
4073   LTLIBICONV=
4074   INCICONV=
4075   LIBICONV_PREFIX=
4076       HAVE_LIBICONV=
4077   rpathdirs=
4078   ltrpathdirs=
4079   names_already_handled=
4080   names_next_round='iconv '
4081   while test -n "$names_next_round"; do
4082     names_this_round="$names_next_round"
4083     names_next_round=
4084     for name in $names_this_round; do
4085       already_handled=
4086       for n in $names_already_handled; do
4087         if test "$n" = "$name"; then
4088           already_handled=yes
4089           break
4090         fi
4091       done
4092       if test -z "$already_handled"; then
4093         names_already_handled="$names_already_handled $name"
4094                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
4095         eval value=\"\$HAVE_LIB$uppername\"
4096         if test -n "$value"; then
4097           if test "$value" = yes; then
4098             eval value=\"\$LIB$uppername\"
4099             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4100             eval value=\"\$LTLIB$uppername\"
4101             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4102           else
4103                                     :
4104           fi
4105         else
4106                               found_dir=
4107           found_la=
4108           found_so=
4109           found_a=
4110           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4111           if test -n "$acl_shlibext"; then
4112             shrext=".$acl_shlibext"             # typically: shrext=.so
4113           else
4114             shrext=
4115           fi
4116           if test $use_additional = yes; then
4117             dir="$additional_libdir"
4118                                     if test -n "$acl_shlibext"; then
4119               if test -f "$dir/$libname$shrext"; then
4120                 found_dir="$dir"
4121                 found_so="$dir/$libname$shrext"
4122               else
4123                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4124                   ver=`(cd "$dir" && \
4125                         for f in "$libname$shrext".*; do echo "$f"; done \
4126                         | sed -e "s,^$libname$shrext\\\\.,," \
4127                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4128                         | sed 1q ) 2>/dev/null`
4129                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4130                     found_dir="$dir"
4131                     found_so="$dir/$libname$shrext.$ver"
4132                   fi
4133                 else
4134                   eval library_names=\"$acl_library_names_spec\"
4135                   for f in $library_names; do
4136                     if test -f "$dir/$f"; then
4137                       found_dir="$dir"
4138                       found_so="$dir/$f"
4139                       break
4140                     fi
4141                   done
4142                 fi
4143               fi
4144             fi
4145                         if test "X$found_dir" = "X"; then
4146               if test -f "$dir/$libname.$acl_libext"; then
4147                 found_dir="$dir"
4148                 found_a="$dir/$libname.$acl_libext"
4149               fi
4150             fi
4151             if test "X$found_dir" != "X"; then
4152               if test -f "$dir/$libname.la"; then
4153                 found_la="$dir/$libname.la"
4154               fi
4155             fi
4156           fi
4157           if test "X$found_dir" = "X"; then
4158             for x in $LDFLAGS $LTLIBICONV; do
4159
4160   acl_save_prefix="$prefix"
4161   prefix="$acl_final_prefix"
4162   acl_save_exec_prefix="$exec_prefix"
4163   exec_prefix="$acl_final_exec_prefix"
4164   eval x=\"$x\"
4165   exec_prefix="$acl_save_exec_prefix"
4166   prefix="$acl_save_prefix"
4167
4168               case "$x" in
4169                 -L*)
4170                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4171                                     if test -n "$acl_shlibext"; then
4172                     if test -f "$dir/$libname$shrext"; then
4173                       found_dir="$dir"
4174                       found_so="$dir/$libname$shrext"
4175                     else
4176                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4177                         ver=`(cd "$dir" && \
4178                               for f in "$libname$shrext".*; do echo "$f"; done \
4179                               | sed -e "s,^$libname$shrext\\\\.,," \
4180                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4181                               | sed 1q ) 2>/dev/null`
4182                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4183                           found_dir="$dir"
4184                           found_so="$dir/$libname$shrext.$ver"
4185                         fi
4186                       else
4187                         eval library_names=\"$acl_library_names_spec\"
4188                         for f in $library_names; do
4189                           if test -f "$dir/$f"; then
4190                             found_dir="$dir"
4191                             found_so="$dir/$f"
4192                             break
4193                           fi
4194                         done
4195                       fi
4196                     fi
4197                   fi
4198                                     if test "X$found_dir" = "X"; then
4199                     if test -f "$dir/$libname.$acl_libext"; then
4200                       found_dir="$dir"
4201                       found_a="$dir/$libname.$acl_libext"
4202                     fi
4203                   fi
4204                   if test "X$found_dir" != "X"; then
4205                     if test -f "$dir/$libname.la"; then
4206                       found_la="$dir/$libname.la"
4207                     fi
4208                   fi
4209                   ;;
4210               esac
4211               if test "X$found_dir" != "X"; then
4212                 break
4213               fi
4214             done
4215           fi
4216           if test "X$found_dir" != "X"; then
4217                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4218             if test "X$found_so" != "X"; then
4219                                                         if test "$enable_rpath" = no \
4220                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4221                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4222                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4223               else
4224                                                                                 haveit=
4225                 for x in $ltrpathdirs; do
4226                   if test "X$x" = "X$found_dir"; then
4227                     haveit=yes
4228                     break
4229                   fi
4230                 done
4231                 if test -z "$haveit"; then
4232                   ltrpathdirs="$ltrpathdirs $found_dir"
4233                 fi
4234                                 if test "$acl_hardcode_direct" = yes; then
4235                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4236                 else
4237                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4238                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4239                                                             haveit=
4240                     for x in $rpathdirs; do
4241                       if test "X$x" = "X$found_dir"; then
4242                         haveit=yes
4243                         break
4244                       fi
4245                     done
4246                     if test -z "$haveit"; then
4247                       rpathdirs="$rpathdirs $found_dir"
4248                     fi
4249                   else
4250                                                                                 haveit=
4251                     for x in $LDFLAGS $LIBICONV; do
4252
4253   acl_save_prefix="$prefix"
4254   prefix="$acl_final_prefix"
4255   acl_save_exec_prefix="$exec_prefix"
4256   exec_prefix="$acl_final_exec_prefix"
4257   eval x=\"$x\"
4258   exec_prefix="$acl_save_exec_prefix"
4259   prefix="$acl_save_prefix"
4260
4261                       if test "X$x" = "X-L$found_dir"; then
4262                         haveit=yes
4263                         break
4264                       fi
4265                     done
4266                     if test -z "$haveit"; then
4267                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4268                     fi
4269                     if test "$acl_hardcode_minus_L" != no; then
4270                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4271                     else
4272                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4273                     fi
4274                   fi
4275                 fi
4276               fi
4277             else
4278               if test "X$found_a" != "X"; then
4279                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4280               else
4281                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4282               fi
4283             fi
4284                         additional_includedir=
4285             case "$found_dir" in
4286               */$acl_libdirstem | */$acl_libdirstem/)
4287                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4288                 if test "$name" = 'iconv'; then
4289                   LIBICONV_PREFIX="$basedir"
4290                 fi
4291                 additional_includedir="$basedir/include"
4292                 ;;
4293               */$acl_libdirstem2 | */$acl_libdirstem2/)
4294                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4295                 if test "$name" = 'iconv'; then
4296                   LIBICONV_PREFIX="$basedir"
4297                 fi
4298                 additional_includedir="$basedir/include"
4299                 ;;
4300             esac
4301             if test "X$additional_includedir" != "X"; then
4302                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4303                 haveit=
4304                 if test "X$additional_includedir" = "X/usr/local/include"; then
4305                   if test -n "$GCC"; then
4306                     case $host_os in
4307                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4308                     esac
4309                   fi
4310                 fi
4311                 if test -z "$haveit"; then
4312                   for x in $CPPFLAGS $INCICONV; do
4313
4314   acl_save_prefix="$prefix"
4315   prefix="$acl_final_prefix"
4316   acl_save_exec_prefix="$exec_prefix"
4317   exec_prefix="$acl_final_exec_prefix"
4318   eval x=\"$x\"
4319   exec_prefix="$acl_save_exec_prefix"
4320   prefix="$acl_save_prefix"
4321
4322                     if test "X$x" = "X-I$additional_includedir"; then
4323                       haveit=yes
4324                       break
4325                     fi
4326                   done
4327                   if test -z "$haveit"; then
4328                     if test -d "$additional_includedir"; then
4329                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4330                     fi
4331                   fi
4332                 fi
4333               fi
4334             fi
4335                         if test -n "$found_la"; then
4336                                                         save_libdir="$libdir"
4337               case "$found_la" in
4338                 */* | *\\*) . "$found_la" ;;
4339                 *) . "./$found_la" ;;
4340               esac
4341               libdir="$save_libdir"
4342                             for dep in $dependency_libs; do
4343                 case "$dep" in
4344                   -L*)
4345                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4346                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
4347                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
4348                       haveit=
4349                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
4350                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
4351                         if test -n "$GCC"; then
4352                           case $host_os in
4353                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4354                           esac
4355                         fi
4356                       fi
4357                       if test -z "$haveit"; then
4358                         haveit=
4359                         for x in $LDFLAGS $LIBICONV; do
4360
4361   acl_save_prefix="$prefix"
4362   prefix="$acl_final_prefix"
4363   acl_save_exec_prefix="$exec_prefix"
4364   exec_prefix="$acl_final_exec_prefix"
4365   eval x=\"$x\"
4366   exec_prefix="$acl_save_exec_prefix"
4367   prefix="$acl_save_prefix"
4368
4369                           if test "X$x" = "X-L$additional_libdir"; then
4370                             haveit=yes
4371                             break
4372                           fi
4373                         done
4374                         if test -z "$haveit"; then
4375                           if test -d "$additional_libdir"; then
4376                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4377                           fi
4378                         fi
4379                         haveit=
4380                         for x in $LDFLAGS $LTLIBICONV; do
4381
4382   acl_save_prefix="$prefix"
4383   prefix="$acl_final_prefix"
4384   acl_save_exec_prefix="$exec_prefix"
4385   exec_prefix="$acl_final_exec_prefix"
4386   eval x=\"$x\"
4387   exec_prefix="$acl_save_exec_prefix"
4388   prefix="$acl_save_prefix"
4389
4390                           if test "X$x" = "X-L$additional_libdir"; then
4391                             haveit=yes
4392                             break
4393                           fi
4394                         done
4395                         if test -z "$haveit"; then
4396                           if test -d "$additional_libdir"; then
4397                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4398                           fi
4399                         fi
4400                       fi
4401                     fi
4402                     ;;
4403                   -R*)
4404                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4405                     if test "$enable_rpath" != no; then
4406                                                                   haveit=
4407                       for x in $rpathdirs; do
4408                         if test "X$x" = "X$dir"; then
4409                           haveit=yes
4410                           break
4411                         fi
4412                       done
4413                       if test -z "$haveit"; then
4414                         rpathdirs="$rpathdirs $dir"
4415                       fi
4416                                                                   haveit=
4417                       for x in $ltrpathdirs; do
4418                         if test "X$x" = "X$dir"; then
4419                           haveit=yes
4420                           break
4421                         fi
4422                       done
4423                       if test -z "$haveit"; then
4424                         ltrpathdirs="$ltrpathdirs $dir"
4425                       fi
4426                     fi
4427                     ;;
4428                   -l*)
4429                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4430                     ;;
4431                   *.la)
4432                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4433                     ;;
4434                   *)
4435                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4436                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4437                     ;;
4438                 esac
4439               done
4440             fi
4441           else
4442                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4443             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4444           fi
4445         fi
4446       fi
4447     done
4448   done
4449   if test "X$rpathdirs" != "X"; then
4450     if test -n "$acl_hardcode_libdir_separator"; then
4451                         alldirs=
4452       for found_dir in $rpathdirs; do
4453         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4454       done
4455             acl_save_libdir="$libdir"
4456       libdir="$alldirs"
4457       eval flag=\"$acl_hardcode_libdir_flag_spec\"
4458       libdir="$acl_save_libdir"
4459       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4460     else
4461             for found_dir in $rpathdirs; do
4462         acl_save_libdir="$libdir"
4463         libdir="$found_dir"
4464         eval flag=\"$acl_hardcode_libdir_flag_spec\"
4465         libdir="$acl_save_libdir"
4466         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4467       done
4468     fi
4469   fi
4470   if test "X$ltrpathdirs" != "X"; then
4471             for found_dir in $ltrpathdirs; do
4472       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4473     done
4474   fi
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487           am_save_CPPFLAGS="$CPPFLAGS"
4488
4489   for element in $INCICONV; do
4490     haveit=
4491     for x in $CPPFLAGS; do
4492
4493   acl_save_prefix="$prefix"
4494   prefix="$acl_final_prefix"
4495   acl_save_exec_prefix="$exec_prefix"
4496   exec_prefix="$acl_final_exec_prefix"
4497   eval x=\"$x\"
4498   exec_prefix="$acl_save_exec_prefix"
4499   prefix="$acl_save_prefix"
4500
4501       if test "X$x" = "X$element"; then
4502         haveit=yes
4503         break
4504       fi
4505     done
4506     if test -z "$haveit"; then
4507       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4508     fi
4509   done
4510
4511
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4513 $as_echo_n "checking for iconv... " >&6; }
4514 if ${am_cv_func_iconv+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517
4518     am_cv_func_iconv="no, consider installing GNU libiconv"
4519     am_cv_lib_iconv=no
4520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522
4523 #include <stdlib.h>
4524 #include <iconv.h>
4525
4526 int
4527 main ()
4528 {
4529 iconv_t cd = iconv_open("","");
4530            iconv(cd,NULL,NULL,NULL,NULL);
4531            iconv_close(cd);
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_link "$LINENO"; then :
4537   am_cv_func_iconv=yes
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext \
4540     conftest$ac_exeext conftest.$ac_ext
4541     if test "$am_cv_func_iconv" != yes; then
4542       am_save_LIBS="$LIBS"
4543       LIBS="$LIBS $LIBICONV"
4544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546
4547 #include <stdlib.h>
4548 #include <iconv.h>
4549
4550 int
4551 main ()
4552 {
4553 iconv_t cd = iconv_open("","");
4554              iconv(cd,NULL,NULL,NULL,NULL);
4555              iconv_close(cd);
4556   ;
4557   return 0;
4558 }
4559 _ACEOF
4560 if ac_fn_c_try_link "$LINENO"; then :
4561   am_cv_lib_iconv=yes
4562         am_cv_func_iconv=yes
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext \
4565     conftest$ac_exeext conftest.$ac_ext
4566       LIBS="$am_save_LIBS"
4567     fi
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4571 $as_echo "$am_cv_func_iconv" >&6; }
4572   if test "$am_cv_func_iconv" = yes; then
4573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
4574 $as_echo_n "checking for working iconv... " >&6; }
4575 if ${am_cv_func_iconv_works+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578
4579                   am_save_LIBS="$LIBS"
4580       if test $am_cv_lib_iconv = yes; then
4581         LIBS="$LIBS $LIBICONV"
4582       fi
4583       am_cv_func_iconv_works=no
4584       for ac_iconv_const in '' 'const'; do
4585         if test "$cross_compiling" = yes; then :
4586   case "$host_os" in
4587              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4588              *)            am_cv_func_iconv_works="guessing yes" ;;
4589            esac
4590 else
4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593
4594 #include <iconv.h>
4595 #include <string.h>
4596
4597 #ifndef ICONV_CONST
4598 # define ICONV_CONST $ac_iconv_const
4599 #endif
4600
4601 int
4602 main ()
4603 {
4604 int result = 0;
4605   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4606      returns.  */
4607   {
4608     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4609     if (cd_utf8_to_88591 != (iconv_t)(-1))
4610       {
4611         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
4612         char buf[10];
4613         ICONV_CONST char *inptr = input;
4614         size_t inbytesleft = strlen (input);
4615         char *outptr = buf;
4616         size_t outbytesleft = sizeof (buf);
4617         size_t res = iconv (cd_utf8_to_88591,
4618                             &inptr, &inbytesleft,
4619                             &outptr, &outbytesleft);
4620         if (res == 0)
4621           result |= 1;
4622         iconv_close (cd_utf8_to_88591);
4623       }
4624   }
4625   /* Test against Solaris 10 bug: Failures are not distinguishable from
4626      successful returns.  */
4627   {
4628     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
4629     if (cd_ascii_to_88591 != (iconv_t)(-1))
4630       {
4631         static ICONV_CONST char input[] = "\263";
4632         char buf[10];
4633         ICONV_CONST char *inptr = input;
4634         size_t inbytesleft = strlen (input);
4635         char *outptr = buf;
4636         size_t outbytesleft = sizeof (buf);
4637         size_t res = iconv (cd_ascii_to_88591,
4638                             &inptr, &inbytesleft,
4639                             &outptr, &outbytesleft);
4640         if (res == 0)
4641           result |= 2;
4642         iconv_close (cd_ascii_to_88591);
4643       }
4644   }
4645   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
4646   {
4647     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
4648     if (cd_88591_to_utf8 != (iconv_t)(-1))
4649       {
4650         static ICONV_CONST char input[] = "\304";
4651         static char buf[2] = { (char)0xDE, (char)0xAD };
4652         ICONV_CONST char *inptr = input;
4653         size_t inbytesleft = 1;
4654         char *outptr = buf;
4655         size_t outbytesleft = 1;
4656         size_t res = iconv (cd_88591_to_utf8,
4657                             &inptr, &inbytesleft,
4658                             &outptr, &outbytesleft);
4659         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
4660           result |= 4;
4661         iconv_close (cd_88591_to_utf8);
4662       }
4663   }
4664 #if 0 /* This bug could be worked around by the caller.  */
4665   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
4666   {
4667     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4668     if (cd_88591_to_utf8 != (iconv_t)(-1))
4669       {
4670         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4671         char buf[50];
4672         ICONV_CONST char *inptr = input;
4673         size_t inbytesleft = strlen (input);
4674         char *outptr = buf;
4675         size_t outbytesleft = sizeof (buf);
4676         size_t res = iconv (cd_88591_to_utf8,
4677                             &inptr, &inbytesleft,
4678                             &outptr, &outbytesleft);
4679         if ((int)res > 0)
4680           result |= 8;
4681         iconv_close (cd_88591_to_utf8);
4682       }
4683   }
4684 #endif
4685   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4686      provided.  */
4687   if (/* Try standardized names.  */
4688       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4689       /* Try IRIX, OSF/1 names.  */
4690       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4691       /* Try AIX names.  */
4692       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4693       /* Try HP-UX names.  */
4694       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4695     result |= 16;
4696   return result;
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_run "$LINENO"; then :
4703   am_cv_func_iconv_works=yes
4704 fi
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4706   conftest.$ac_objext conftest.beam conftest.$ac_ext
4707 fi
4708
4709         test "$am_cv_func_iconv_works" = no || break
4710       done
4711       LIBS="$am_save_LIBS"
4712
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
4715 $as_echo "$am_cv_func_iconv_works" >&6; }
4716     case "$am_cv_func_iconv_works" in
4717       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4718       *)   am_func_iconv=yes ;;
4719     esac
4720   else
4721     am_func_iconv=no am_cv_lib_iconv=no
4722   fi
4723   if test "$am_func_iconv" = yes; then
4724
4725 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4726
4727   fi
4728   if test "$am_cv_lib_iconv" = yes; then
4729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4730 $as_echo_n "checking how to link with libiconv... " >&6; }
4731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4732 $as_echo "$LIBICONV" >&6; }
4733   else
4734             CPPFLAGS="$am_save_CPPFLAGS"
4735     LIBICONV=
4736     LTLIBICONV=
4737   fi
4738
4739
4740
4741   if test "$am_cv_func_iconv" = yes; then
4742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
4743 $as_echo_n "checking for iconv declaration... " >&6; }
4744     if ${am_cv_proto_iconv+:} false; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747
4748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h.  */
4750
4751 #include <stdlib.h>
4752 #include <iconv.h>
4753 extern
4754 #ifdef __cplusplus
4755 "C"
4756 #endif
4757 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
4758 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4759 #else
4760 size_t iconv();
4761 #endif
4762
4763 int
4764 main ()
4765 {
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772   am_cv_proto_iconv_arg1=""
4773 else
4774   am_cv_proto_iconv_arg1="const"
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777       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);"
4778 fi
4779
4780     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4781     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
4782          $am_cv_proto_iconv" >&5
4783 $as_echo "
4784          $am_cv_proto_iconv" >&6; }
4785
4786 cat >>confdefs.h <<_ACEOF
4787 #define ICONV_CONST $am_cv_proto_iconv_arg1
4788 _ACEOF
4789
4790
4791   fi
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
4795 $as_echo_n "checking cached host tuple... " >&6; }
4796 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
4797      test x"$ac_cv_host_system_type" != x"$host"; }; then
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
4799 $as_echo "different" >&6; }
4800   as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4803 $as_echo "ok" >&6; }
4804 fi
4805 ac_cv_host_system_type="$host"
4806
4807
4808
4809 case "${host}" in
4810
4811   ## Alpha (DEC) machines.
4812   alpha*-dec-osf* )
4813     tcsh_config_file=decosf1
4814   ;;
4815
4816   ## Ultrix
4817   *-dec-ultrix* )
4818     tcsh_config_file=ultrix
4819   ;;
4820
4821   ## DGUX
4822   *-dg-dguxR4* )
4823     tcsh_config_file=dgux5.4
4824   ;;
4825   m88k-dg-dgux5.4R* )
4826     tcsh_config_file=dgux5.4
4827   ;;
4828
4829   ## HP/UX
4830   *-hp-hpux7* )
4831     tcsh_config_file=hpux7
4832   ;;
4833   *-hp-hpux[89]* )
4834     tcsh_config_file=hpux8
4835   ;;
4836   *-hp-hpux1[0-9]* )
4837     tcsh_config_file=hpux11
4838   ;;
4839
4840   ## IBM AIX systems
4841   *-ibm-aix*)
4842     tcsh_config_file=aix
4843   ;;
4844
4845   ## SX-4
4846   sx4-nec-*)
4847     CC='cc -h0,ansi,novector,float0'
4848     LDFLAGS='-Gsmall'
4849     tcsh_config_file=superux8
4850   ;;
4851
4852   ## IBM OS/390 systems
4853   *-ibm-os390*)
4854     CC='c89'
4855     tcsh_config_file=os390
4856   ;;
4857
4858   ## Android
4859   *-*-android*)
4860     tcsh_config_file=android
4861   ;;
4862
4863   ## Linux
4864   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4865     tcsh_config_file=linux
4866   ;;
4867
4868   ## Motorola systems
4869   m68k-motorola-sysv* )
4870     tcsh_config_file=sysV68
4871   ;;
4872   m88k-motorola-sysv3* )
4873     tcsh_config_file=sysV88
4874   ;;
4875
4876   ## Minix systems
4877   *-*-minix*)
4878     tcsh_config_file=minix
4879   ;;
4880
4881   ## NetBSD systems
4882   *-*-netbsd*)
4883     tcsh_config_file=bsd4.4
4884   ;;
4885
4886   ## FreeBSD systems
4887   *-*-freebsd*)
4888     tcsh_config_file=bsd4.4
4889   ;;
4890
4891   ## MidnightBSD systems
4892   *-*-midnightbsd*)
4893     tcsh_config_file=bsd4.4
4894   ;;
4895
4896   ## DragonFlyBSD systems
4897   *-*-dragonfly*)
4898     tcsh_config_file=bsd4.4
4899   ;;
4900
4901   ## MirBSD systems
4902   *-*-mirbsd*)
4903     tcsh_config_file=bsd4.4
4904   ;;
4905
4906   ## OpenBSD systems
4907   *-*-openbsd*)
4908     tcsh_config_file=bsd4.4
4909   ;;
4910
4911   ## BSDI systems
4912   *-*-bsdi*)
4913     tcsh_config_file=bsd4.4
4914   ;;
4915
4916   ## Mac OS X Server
4917   *-*-rhapsody* )
4918     tcsh_config_file=bsd4.4
4919   ;;
4920
4921   ## Mac OS X Server
4922   *-*-darwin* )
4923     tcsh_config_file=bsd4.4
4924   ;;
4925
4926   ## DragonFly systems
4927   *-*-dragonfly*)
4928     tcsh_config_file=bsd4.4
4929   ;;
4930
4931   ## Silicon Graphics machines
4932   *-sgi-iri* )
4933     tcsh_config_file=irix
4934     case "${host_os}" in
4935       irix[34]*) # Irix-3.x - Irix 4.x
4936         NON_GNU_DFLAGS='-D__STDC__'
4937         LIBS='-lsun -lbsd -lc_s'
4938       ;;
4939       irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
4940         LIBS='-lbsd'
4941       ;;
4942       irix6.[2-9]*) # Irix 6.2 and later
4943         tcsh_config_file=irix62
4944       ;;
4945     esac
4946   ;;
4947
4948   ## Suns
4949   *-sun-sunos3* )
4950     tcsh_config_file=sunos35
4951   ;;
4952   *-sun-sunos4.0* )
4953     tcsh_config_file=sunos40
4954   ;;
4955   *-sun-sunos4.1.[12]* )
4956     tcsh_config_file=sunos41
4957   ;;
4958   *-sun-sunos4.1.[3456]* )
4959     tcsh_config_file=sunos413
4960   ;;
4961   *-*-solaris2.[01] ) # Should handle sparc or x86
4962     tcsh_config_file=sol2
4963   ;;
4964   *-sun-solaris2.2 ) # Sparc only release
4965     tcsh_config_file=sol22
4966   ;;
4967   *-sun-solaris2.3 ) # Sparc only release
4968     tcsh_config_file=sol23
4969   ;;
4970   *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
4971     tcsh_config_file=sol24
4972   ;;
4973   *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
4974     tcsh_config_file=sol26
4975   ;;
4976   *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
4977     tcsh_config_file=sol29
4978   ;;
4979
4980   ## Dell SVR4
4981   *-dell-sysv4* )
4982     tcsh_config_file=sysv4
4983     DFLAGS="$DFLAGS -DDELL"
4984   ;;
4985
4986   ## SVR4 (Generic and otherwise)
4987   *-*-sysv4* )
4988     tcsh_config_file=sysv4
4989   ;;
4990
4991   ## Tektronix systems
4992   m68k-tektronix-bsd* )
4993     tcsh_config_file=bsd
4994     NON_GNU_DFLAGS='-DBSD -DUTek'
4995   ;;
4996   m88k-tektronix-sysv3* )
4997     tcsh_config_file=tekXD88
4998   ;;
4999
5000   ## SCO
5001   *-sco3.2v5*)
5002     tcsh_config_file=sco32v5
5003   ;;
5004   *-sco3.2v4*)
5005     tcsh_config_file=sco32v4
5006   ;;
5007   *-sco3.2v2*)
5008     tcsh_config_file=sco32v2
5009   ;;
5010
5011   ## Siemens BS2000 Mainframe
5012   bs2000-siemens-*)
5013     tcsh_config_file=bs2000
5014   ;;
5015
5016   ## Convex
5017   *-convex*)
5018     tcsh_config_file=convex
5019   ;;
5020
5021   ## Cray
5022   *-cray-unicos*)
5023     tcsh_config_file=cray
5024   ;;
5025
5026   ## Red Hat Cygwin
5027   *-cygwin)
5028     tcsh_config_file=cygwin
5029   ;;
5030
5031   ## mips-compaq-nonstopux
5032   *-*-nonstopux)
5033     tcsh_config_file=sysv4
5034   ;;
5035
5036   ## Apollo Domain/OS
5037   *-apollo-*)
5038     tcsh_config_file=apollo
5039   ;;
5040
5041   ## QNX6
5042   *-qnx6*)
5043     tcsh_config_file=qnx6
5044   ;;
5045
5046   * )
5047     as_fn_error $? "Tcsh can't guess the configuration file name
5048 for \`${host}' systems.
5049 Check tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
5050     ;;
5051
5052 esac
5053
5054 echo "Tcsh will use configuration file \`$tcsh_config_file'."
5055 cp ${srcdir}/config/${tcsh_config_file} config_p.h
5056
5057
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 if test -n "$ac_tool_prefix"; then
5064   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_prog_CC+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -n "$CC"; then
5072   ac_cv_prog_CC="$CC" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086   done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 CC=$ac_cv_prog_CC
5092 if test -n "$CC"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5094 $as_echo "$CC" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100
5101 fi
5102 if test -z "$ac_cv_prog_CC"; then
5103   ac_ct_CC=$CC
5104   # Extract the first word of "gcc", so it can be a program name with args.
5105 set dummy gcc; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   if test -n "$ac_ct_CC"; then
5112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119     for ac_exec_ext in '' $ac_executable_extensions; do
5120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121     ac_cv_prog_ac_ct_CC="gcc"
5122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123     break 2
5124   fi
5125 done
5126   done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5134 $as_echo "$ac_ct_CC" >&6; }
5135 else
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140   if test "x$ac_ct_CC" = x; then
5141     CC=""
5142   else
5143     case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149     CC=$ac_ct_CC
5150   fi
5151 else
5152   CC="$ac_cv_prog_CC"
5153 fi
5154
5155 if test -z "$CC"; then
5156           if test -n "$ac_tool_prefix"; then
5157     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}cc; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_CC+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if test -n "$CC"; then
5165   ac_cv_prog_CC="$CC" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_prog_CC="${ac_tool_prefix}cc"
5175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179   done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 CC=$ac_cv_prog_CC
5185 if test -n "$CC"; then
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5187 $as_echo "$CC" >&6; }
5188 else
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194   fi
5195 fi
5196 if test -z "$CC"; then
5197   # Extract the first word of "cc", so it can be a program name with args.
5198 set dummy cc; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_CC+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   if test -n "$CC"; then
5205   ac_cv_prog_CC="$CC" # Let the user override the test.
5206 else
5207   ac_prog_rejected=no
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5216        ac_prog_rejected=yes
5217        continue
5218      fi
5219     ac_cv_prog_CC="cc"
5220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221     break 2
5222   fi
5223 done
5224   done
5225 IFS=$as_save_IFS
5226
5227 if test $ac_prog_rejected = yes; then
5228   # We found a bogon in the path, so make sure we never use it.
5229   set dummy $ac_cv_prog_CC
5230   shift
5231   if test $# != 0; then
5232     # We chose a different compiler from the bogus one.
5233     # However, it has the same basename, so the bogon will be chosen
5234     # first if we set CC to just the basename; use the full file name.
5235     shift
5236     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5237   fi
5238 fi
5239 fi
5240 fi
5241 CC=$ac_cv_prog_CC
5242 if test -n "$CC"; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5244 $as_echo "$CC" >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 fi
5252 if test -z "$CC"; then
5253   if test -n "$ac_tool_prefix"; then
5254   for ac_prog in cl.exe
5255   do
5256     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_CC+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   if test -n "$CC"; then
5264   ac_cv_prog_CC="$CC" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271     for ac_exec_ext in '' $ac_executable_extensions; do
5272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278   done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 CC=$ac_cv_prog_CC
5284 if test -n "$CC"; then
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5286 $as_echo "$CC" >&6; }
5287 else
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292
5293     test -n "$CC" && break
5294   done
5295 fi
5296 if test -z "$CC"; then
5297   ac_ct_CC=$CC
5298   for ac_prog in cl.exe
5299 do
5300   # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   if test -n "$ac_ct_CC"; then
5308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315     for ac_exec_ext in '' $ac_executable_extensions; do
5316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_prog_ac_ct_CC="$ac_prog"
5318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322   done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5328 if test -n "$ac_ct_CC"; then
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5330 $as_echo "$ac_ct_CC" >&6; }
5331 else
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336
5337   test -n "$ac_ct_CC" && break
5338 done
5339
5340   if test "x$ac_ct_CC" = x; then
5341     CC=""
5342   else
5343     case $cross_compiling:$ac_tool_warned in
5344 yes:)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349     CC=$ac_ct_CC
5350   fi
5351 fi
5352
5353 fi
5354
5355
5356 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5358 as_fn_error $? "no acceptable C compiler found in \$PATH
5359 See \`config.log' for more details" "$LINENO" 5; }
5360
5361 # Provide some information about the compiler.
5362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5363 set X $ac_compile
5364 ac_compiler=$2
5365 for ac_option in --version -v -V -qversion; do
5366   { { ac_try="$ac_compiler $ac_option >&5"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5372 $as_echo "$ac_try_echo"; } >&5
5373   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5374   ac_status=$?
5375   if test -s conftest.err; then
5376     sed '10a\
5377 ... rest of stderr output deleted ...
5378          10q' conftest.err >conftest.er1
5379     cat conftest.er1 >&5
5380   fi
5381   rm -f conftest.er1 conftest.err
5382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383   test $ac_status = 0; }
5384 done
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5387 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5388 if ${ac_cv_c_compiler_gnu+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h.  */
5393
5394 int
5395 main ()
5396 {
5397 #ifndef __GNUC__
5398        choke me
5399 #endif
5400
5401   ;
5402   return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406   ac_compiler_gnu=yes
5407 else
5408   ac_compiler_gnu=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5416 if test $ac_compiler_gnu = yes; then
5417   GCC=yes
5418 else
5419   GCC=
5420 fi
5421 ac_test_CFLAGS=${CFLAGS+set}
5422 ac_save_CFLAGS=$CFLAGS
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5425 if ${ac_cv_prog_cc_g+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   ac_save_c_werror_flag=$ac_c_werror_flag
5429    ac_c_werror_flag=yes
5430    ac_cv_prog_cc_g=no
5431    CFLAGS="-g"
5432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h.  */
5434
5435 int
5436 main ()
5437 {
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444   ac_cv_prog_cc_g=yes
5445 else
5446   CFLAGS=""
5447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h.  */
5449
5450 int
5451 main ()
5452 {
5453
5454   ;
5455   return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459
5460 else
5461   ac_c_werror_flag=$ac_save_c_werror_flag
5462          CFLAGS="-g"
5463          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h.  */
5465
5466 int
5467 main ()
5468 {
5469
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475   ac_cv_prog_cc_g=yes
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482    ac_c_werror_flag=$ac_save_c_werror_flag
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5485 $as_echo "$ac_cv_prog_cc_g" >&6; }
5486 if test "$ac_test_CFLAGS" = set; then
5487   CFLAGS=$ac_save_CFLAGS
5488 elif test $ac_cv_prog_cc_g = yes; then
5489   if test "$GCC" = yes; then
5490     CFLAGS="-g -O2"
5491   else
5492     CFLAGS="-g"
5493   fi
5494 else
5495   if test "$GCC" = yes; then
5496     CFLAGS="-O2"
5497   else
5498     CFLAGS=
5499   fi
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5502 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5503 if ${ac_cv_prog_cc_c89+:} false; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506   ac_cv_prog_cc_c89=no
5507 ac_save_CC=$CC
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h.  */
5510 #include <stdarg.h>
5511 #include <stdio.h>
5512 struct stat;
5513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5514 struct buf { int x; };
5515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5516 static char *e (p, i)
5517      char **p;
5518      int i;
5519 {
5520   return p[i];
5521 }
5522 static char *f (char * (*g) (char **, int), char **p, ...)
5523 {
5524   char *s;
5525   va_list v;
5526   va_start (v,p);
5527   s = g (p, va_arg (v,int));
5528   va_end (v);
5529   return s;
5530 }
5531
5532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5533    function prototypes and stuff, but not '\xHH' hex character constants.
5534    These don't provoke an error unfortunately, instead are silently treated
5535    as 'x'.  The following induces an error, until -std is added to get
5536    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5537    array size at least.  It's necessary to write '\x00'==0 to get something
5538    that's true only with -std.  */
5539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5540
5541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5542    inside strings and character constants.  */
5543 #define FOO(x) 'x'
5544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5545
5546 int test (int i, double x);
5547 struct s1 {int (*f) (int a);};
5548 struct s2 {int (*f) (double a);};
5549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5550 int argc;
5551 char **argv;
5552 int
5553 main ()
5554 {
5555 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5561         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5562 do
5563   CC="$ac_save_CC $ac_arg"
5564   if ac_fn_c_try_compile "$LINENO"; then :
5565   ac_cv_prog_cc_c89=$ac_arg
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext
5568   test "x$ac_cv_prog_cc_c89" != "xno" && break
5569 done
5570 rm -f conftest.$ac_ext
5571 CC=$ac_save_CC
5572
5573 fi
5574 # AC_CACHE_VAL
5575 case "x$ac_cv_prog_cc_c89" in
5576   x)
5577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5578 $as_echo "none needed" >&6; } ;;
5579   xno)
5580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5581 $as_echo "unsupported" >&6; } ;;
5582   *)
5583     CC="$CC $ac_cv_prog_cc_c89"
5584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5586 esac
5587 if test "x$ac_cv_prog_cc_c89" != xno; then :
5588
5589 fi
5590
5591 ac_ext=c
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
5597 ac_ext=c
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5603 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5604 # On Suns, sometimes $CPP names a directory.
5605 if test -n "$CPP" && test -d "$CPP"; then
5606   CPP=
5607 fi
5608 if test -z "$CPP"; then
5609   if ${ac_cv_prog_CPP+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612       # Double quotes because CPP needs to be expanded
5613     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5614     do
5615       ac_preproc_ok=false
5616 for ac_c_preproc_warn_flag in '' yes
5617 do
5618   # Use a header file that comes with gcc, so configuring glibc
5619   # with a fresh cross-compiler works.
5620   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621   # <limits.h> exists even on freestanding compilers.
5622   # On the NeXT, cc -E runs the code through the compiler's parser,
5623   # not just through cpp. "Syntax error" is here to catch this case.
5624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626 #ifdef __STDC__
5627 # include <limits.h>
5628 #else
5629 # include <assert.h>
5630 #endif
5631                      Syntax error
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5634
5635 else
5636   # Broken: fails on valid input.
5637 continue
5638 fi
5639 rm -f conftest.err conftest.i conftest.$ac_ext
5640
5641   # OK, works on sane cases.  Now check whether nonexistent headers
5642   # can be detected and how.
5643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h.  */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5648   # Broken: success on invalid input.
5649 continue
5650 else
5651   # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5654 fi
5655 rm -f conftest.err conftest.i conftest.$ac_ext
5656
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.i conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then :
5661   break
5662 fi
5663
5664     done
5665     ac_cv_prog_CPP=$CPP
5666
5667 fi
5668   CPP=$ac_cv_prog_CPP
5669 else
5670   ac_cv_prog_CPP=$CPP
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5673 $as_echo "$CPP" >&6; }
5674 ac_preproc_ok=false
5675 for ac_c_preproc_warn_flag in '' yes
5676 do
5677   # Use a header file that comes with gcc, so configuring glibc
5678   # with a fresh cross-compiler works.
5679   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680   # <limits.h> exists even on freestanding compilers.
5681   # On the NeXT, cc -E runs the code through the compiler's parser,
5682   # not just through cpp. "Syntax error" is here to catch this case.
5683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h.  */
5685 #ifdef __STDC__
5686 # include <limits.h>
5687 #else
5688 # include <assert.h>
5689 #endif
5690                      Syntax error
5691 _ACEOF
5692 if ac_fn_c_try_cpp "$LINENO"; then :
5693
5694 else
5695   # Broken: fails on valid input.
5696 continue
5697 fi
5698 rm -f conftest.err conftest.i conftest.$ac_ext
5699
5700   # OK, works on sane cases.  Now check whether nonexistent headers
5701   # can be detected and how.
5702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h.  */
5704 #include <ac_nonexistent.h>
5705 _ACEOF
5706 if ac_fn_c_try_cpp "$LINENO"; then :
5707   # Broken: success on invalid input.
5708 continue
5709 else
5710   # Passes both tests.
5711 ac_preproc_ok=:
5712 break
5713 fi
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5715
5716 done
5717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5718 rm -f conftest.i conftest.err conftest.$ac_ext
5719 if $ac_preproc_ok; then :
5720
5721 else
5722   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5725 See \`config.log' for more details" "$LINENO" 5; }
5726 fi
5727
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734 if test $ac_cv_c_compiler_gnu = yes; then
5735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5736 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5737 if ${ac_cv_prog_gcc_traditional+:} false; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740     ac_pattern="Autoconf.*'x'"
5741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h.  */
5743 #include <sgtty.h>
5744 Autoconf TIOCGETP
5745 _ACEOF
5746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5747   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5748   ac_cv_prog_gcc_traditional=yes
5749 else
5750   ac_cv_prog_gcc_traditional=no
5751 fi
5752 rm -f conftest*
5753
5754
5755   if test $ac_cv_prog_gcc_traditional = no; then
5756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758 #include <termio.h>
5759 Autoconf TCGETA
5760 _ACEOF
5761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5762   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5763   ac_cv_prog_gcc_traditional=yes
5764 fi
5765 rm -f conftest*
5766
5767   fi
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5770 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5771   if test $ac_cv_prog_gcc_traditional = yes; then
5772     CC="$CC -traditional"
5773   fi
5774 fi
5775
5776
5777 # Extract the first word of "gencat", so it can be a program name with args.
5778 set dummy gencat; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_path_GENCAT+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   case $GENCAT in
5785   [\\/]* | ?:[\\/]*)
5786   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5787   ;;
5788   *)
5789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794     for ac_exec_ext in '' $ac_executable_extensions; do
5795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796     ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
5797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801   done
5802 IFS=$as_save_IFS
5803
5804   ;;
5805 esac
5806 fi
5807 GENCAT=$ac_cv_path_GENCAT
5808 if test -n "$GENCAT"; then
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
5810 $as_echo "$GENCAT" >&6; }
5811 else
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5814 fi
5815
5816
5817
5818 if test "x${cross_compiling}" = xyes ; then
5819   CC_FOR_GETHOST="cc"
5820 else
5821   CC_FOR_GETHOST="\$(CC)"
5822 fi
5823
5824
5825 if test "x$GCC" != xyes ; then
5826   DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
5827   CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
5828 fi
5829
5830 case "${host}" in
5831   *-*-android*)
5832     CFLAGS="${CFLAGS} -fPIE"
5833     LDFLAGS="${LDFLAGS} -pie"
5834     ;;
5835 esac
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
5838 $as_echo_n "checking for library containing crypt... " >&6; }
5839 if ${ac_cv_search_crypt+:} false; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   ac_func_search_save_LIBS=$LIBS
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h.  */
5845
5846 /* Override any GCC internal prototype to avoid an error.
5847    Use char because int might match the return type of a GCC
5848    builtin and then its argument prototype would still apply.  */
5849 #ifdef __cplusplus
5850 extern "C"
5851 #endif
5852 char crypt ();
5853 int
5854 main ()
5855 {
5856 return crypt ();
5857   ;
5858   return 0;
5859 }
5860 _ACEOF
5861 for ac_lib in '' crypt; do
5862   if test -z "$ac_lib"; then
5863     ac_res="none required"
5864   else
5865     ac_res=-l$ac_lib
5866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5867   fi
5868   if ac_fn_c_try_link "$LINENO"; then :
5869   ac_cv_search_crypt=$ac_res
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext \
5872     conftest$ac_exeext
5873   if ${ac_cv_search_crypt+:} false; then :
5874   break
5875 fi
5876 done
5877 if ${ac_cv_search_crypt+:} false; then :
5878
5879 else
5880   ac_cv_search_crypt=no
5881 fi
5882 rm conftest.$ac_ext
5883 LIBS=$ac_func_search_save_LIBS
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
5886 $as_echo "$ac_cv_search_crypt" >&6; }
5887 ac_res=$ac_cv_search_crypt
5888 if test "$ac_res" != no; then :
5889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5890
5891 fi
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
5894 $as_echo_n "checking for library containing getspnam... " >&6; }
5895 if ${ac_cv_search_getspnam+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   ac_func_search_save_LIBS=$LIBS
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h.  */
5901
5902 /* Override any GCC internal prototype to avoid an error.
5903    Use char because int might match the return type of a GCC
5904    builtin and then its argument prototype would still apply.  */
5905 #ifdef __cplusplus
5906 extern "C"
5907 #endif
5908 char getspnam ();
5909 int
5910 main ()
5911 {
5912 return getspnam ();
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 for ac_lib in '' sec; do
5918   if test -z "$ac_lib"; then
5919     ac_res="none required"
5920   else
5921     ac_res=-l$ac_lib
5922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5923   fi
5924   if ac_fn_c_try_link "$LINENO"; then :
5925   ac_cv_search_getspnam=$ac_res
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928     conftest$ac_exeext
5929   if ${ac_cv_search_getspnam+:} false; then :
5930   break
5931 fi
5932 done
5933 if ${ac_cv_search_getspnam+:} false; then :
5934
5935 else
5936   ac_cv_search_getspnam=no
5937 fi
5938 rm conftest.$ac_ext
5939 LIBS=$ac_func_search_save_LIBS
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
5942 $as_echo "$ac_cv_search_getspnam" >&6; }
5943 ac_res=$ac_cv_search_getspnam
5944 if test "$ac_res" != no; then :
5945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5946
5947 fi
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5950 $as_echo_n "checking for library containing tgetent... " >&6; }
5951 if ${ac_cv_search_tgetent+:} false; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   ac_func_search_save_LIBS=$LIBS
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h.  */
5957
5958 /* Override any GCC internal prototype to avoid an error.
5959    Use char because int might match the return type of a GCC
5960    builtin and then its argument prototype would still apply.  */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 char tgetent ();
5965 int
5966 main ()
5967 {
5968 return tgetent ();
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 for ac_lib in '' termlib tinfo termcap curses ncurses; do
5974   if test -z "$ac_lib"; then
5975     ac_res="none required"
5976   else
5977     ac_res=-l$ac_lib
5978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5979   fi
5980   if ac_fn_c_try_link "$LINENO"; then :
5981   ac_cv_search_tgetent=$ac_res
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext \
5984     conftest$ac_exeext
5985   if ${ac_cv_search_tgetent+:} false; then :
5986   break
5987 fi
5988 done
5989 if ${ac_cv_search_tgetent+:} false; then :
5990
5991 else
5992   ac_cv_search_tgetent=no
5993 fi
5994 rm conftest.$ac_ext
5995 LIBS=$ac_func_search_save_LIBS
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5998 $as_echo "$ac_cv_search_tgetent" >&6; }
5999 ac_res=$ac_cv_search_tgetent
6000 if test "$ac_res" != no; then :
6001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6002
6003 else
6004
6005    as_fn_error $? "unable to find the tgetent() function" "$LINENO" 5
6006
6007 fi
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6010 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6011 if ${ac_cv_search_gethostbyname+:} false; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   ac_func_search_save_LIBS=$LIBS
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h.  */
6017
6018 /* Override any GCC internal prototype to avoid an error.
6019    Use char because int might match the return type of a GCC
6020    builtin and then its argument prototype would still apply.  */
6021 #ifdef __cplusplus
6022 extern "C"
6023 #endif
6024 char gethostbyname ();
6025 int
6026 main ()
6027 {
6028 return gethostbyname ();
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 for ac_lib in '' nsl; do
6034   if test -z "$ac_lib"; then
6035     ac_res="none required"
6036   else
6037     ac_res=-l$ac_lib
6038     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6039   fi
6040   if ac_fn_c_try_link "$LINENO"; then :
6041   ac_cv_search_gethostbyname=$ac_res
6042 fi
6043 rm -f core conftest.err conftest.$ac_objext \
6044     conftest$ac_exeext
6045   if ${ac_cv_search_gethostbyname+:} false; then :
6046   break
6047 fi
6048 done
6049 if ${ac_cv_search_gethostbyname+:} false; then :
6050
6051 else
6052   ac_cv_search_gethostbyname=no
6053 fi
6054 rm conftest.$ac_ext
6055 LIBS=$ac_func_search_save_LIBS
6056 fi
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6058 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6059 ac_res=$ac_cv_search_gethostbyname
6060 if test "$ac_res" != no; then :
6061   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6062
6063 fi
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
6066 $as_echo_n "checking for library containing connect... " >&6; }
6067 if ${ac_cv_search_connect+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   ac_func_search_save_LIBS=$LIBS
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074 /* Override any GCC internal prototype to avoid an error.
6075    Use char because int might match the return type of a GCC
6076    builtin and then its argument prototype would still apply.  */
6077 #ifdef __cplusplus
6078 extern "C"
6079 #endif
6080 char connect ();
6081 int
6082 main ()
6083 {
6084 return connect ();
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 for ac_lib in '' socket; do
6090   if test -z "$ac_lib"; then
6091     ac_res="none required"
6092   else
6093     ac_res=-l$ac_lib
6094     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6095   fi
6096   if ac_fn_c_try_link "$LINENO"; then :
6097   ac_cv_search_connect=$ac_res
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext \
6100     conftest$ac_exeext
6101   if ${ac_cv_search_connect+:} false; then :
6102   break
6103 fi
6104 done
6105 if ${ac_cv_search_connect+:} false; then :
6106
6107 else
6108   ac_cv_search_connect=no
6109 fi
6110 rm conftest.$ac_ext
6111 LIBS=$ac_func_search_save_LIBS
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6114 $as_echo "$ac_cv_search_connect" >&6; }
6115 ac_res=$ac_cv_search_connect
6116 if test "$ac_res" != no; then :
6117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6118
6119 fi
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
6122 $as_echo_n "checking for library containing catgets... " >&6; }
6123 if ${ac_cv_search_catgets+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   ac_func_search_save_LIBS=$LIBS
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h.  */
6129
6130 /* Override any GCC internal prototype to avoid an error.
6131    Use char because int might match the return type of a GCC
6132    builtin and then its argument prototype would still apply.  */
6133 #ifdef __cplusplus
6134 extern "C"
6135 #endif
6136 char catgets ();
6137 int
6138 main ()
6139 {
6140 return catgets ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 for ac_lib in '' catgets; do
6146   if test -z "$ac_lib"; then
6147     ac_res="none required"
6148   else
6149     ac_res=-l$ac_lib
6150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6151   fi
6152   if ac_fn_c_try_link "$LINENO"; then :
6153   ac_cv_search_catgets=$ac_res
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156     conftest$ac_exeext
6157   if ${ac_cv_search_catgets+:} false; then :
6158   break
6159 fi
6160 done
6161 if ${ac_cv_search_catgets+:} false; then :
6162
6163 else
6164   ac_cv_search_catgets=no
6165 fi
6166 rm conftest.$ac_ext
6167 LIBS=$ac_func_search_save_LIBS
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
6170 $as_echo "$ac_cv_search_catgets" >&6; }
6171 ac_res=$ac_cv_search_catgets
6172 if test "$ac_res" != no; then :
6173   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6174
6175 fi
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6179 $as_echo_n "checking for ANSI C header files... " >&6; }
6180 if ${ac_cv_header_stdc+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h.  */
6185 #include <stdlib.h>
6186 #include <stdarg.h>
6187 #include <string.h>
6188 #include <float.h>
6189
6190 int
6191 main ()
6192 {
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199   ac_cv_header_stdc=yes
6200 else
6201   ac_cv_header_stdc=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204
6205 if test $ac_cv_header_stdc = yes; then
6206   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h.  */
6209 #include <string.h>
6210
6211 _ACEOF
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213   $EGREP "memchr" >/dev/null 2>&1; then :
6214
6215 else
6216   ac_cv_header_stdc=no
6217 fi
6218 rm -f conftest*
6219
6220 fi
6221
6222 if test $ac_cv_header_stdc = yes; then
6223   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h.  */
6226 #include <stdlib.h>
6227
6228 _ACEOF
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230   $EGREP "free" >/dev/null 2>&1; then :
6231
6232 else
6233   ac_cv_header_stdc=no
6234 fi
6235 rm -f conftest*
6236
6237 fi
6238
6239 if test $ac_cv_header_stdc = yes; then
6240   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6241   if test "$cross_compiling" = yes; then :
6242   :
6243 else
6244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h.  */
6246 #include <ctype.h>
6247 #include <stdlib.h>
6248 #if ((' ' & 0x0FF) == 0x020)
6249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6251 #else
6252 # define ISLOWER(c) \
6253                    (('a' <= (c) && (c) <= 'i') \
6254                      || ('j' <= (c) && (c) <= 'r') \
6255                      || ('s' <= (c) && (c) <= 'z'))
6256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6257 #endif
6258
6259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6260 int
6261 main ()
6262 {
6263   int i;
6264   for (i = 0; i < 256; i++)
6265     if (XOR (islower (i), ISLOWER (i))
6266         || toupper (i) != TOUPPER (i))
6267       return 2;
6268   return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_run "$LINENO"; then :
6272
6273 else
6274   ac_cv_header_stdc=no
6275 fi
6276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6277   conftest.$ac_objext conftest.beam conftest.$ac_ext
6278 fi
6279
6280 fi
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6283 $as_echo "$ac_cv_header_stdc" >&6; }
6284 if test $ac_cv_header_stdc = yes; then
6285
6286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6287
6288 fi
6289
6290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6292                   inttypes.h stdint.h unistd.h
6293 do :
6294   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6296 "
6297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6298   cat >>confdefs.h <<_ACEOF
6299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6300 _ACEOF
6301
6302 fi
6303
6304 done
6305
6306
6307 for ac_header in auth.h crypt.h features.h inttypes.h paths.h            shadow.h stdint.h utmp.h utmpx.h
6308 do :
6309   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6312   cat >>confdefs.h <<_ACEOF
6313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6314 _ACEOF
6315
6316 fi
6317
6318 done
6319
6320 for ac_header in wchar.h
6321 do :
6322   ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6323 if test "x$ac_cv_header_wchar_h" = xyes; then :
6324   cat >>confdefs.h <<_ACEOF
6325 #define HAVE_WCHAR_H 1
6326 _ACEOF
6327  # The cast to long int works around a bug in the HP C Compiler
6328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6330 # This bug is HP SR number 8606223364.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6332 $as_echo_n "checking size of wchar_t... " >&6; }
6333 if ${ac_cv_sizeof_wchar_t+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <stdio.h>
6337 #include <wchar.h>
6338 "; then :
6339
6340 else
6341   if test "$ac_cv_type_wchar_t" = yes; then
6342      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6344 as_fn_error 77 "cannot compute sizeof (wchar_t)
6345 See \`config.log' for more details" "$LINENO" 5; }
6346    else
6347      ac_cv_sizeof_wchar_t=0
6348    fi
6349 fi
6350
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
6353 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
6354
6355
6356
6357 cat >>confdefs.h <<_ACEOF
6358 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6359 _ACEOF
6360
6361
6362         for ac_header in wctype.h
6363 do :
6364   ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6365 if test "x$ac_cv_header_wctype_h" = xyes; then :
6366   cat >>confdefs.h <<_ACEOF
6367 #define HAVE_WCTYPE_H 1
6368 _ACEOF
6369
6370 fi
6371
6372 done
6373
6374 fi
6375
6376 done
6377
6378 ac_header_dirent=no
6379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6380   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6382 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6383 if eval \${$as_ac_Header+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h.  */
6388 #include <sys/types.h>
6389 #include <$ac_hdr>
6390
6391 int
6392 main ()
6393 {
6394 if ((DIR *) 0)
6395 return 0;
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401   eval "$as_ac_Header=yes"
6402 else
6403   eval "$as_ac_Header=no"
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 eval ac_res=\$$as_ac_Header
6408                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6411   cat >>confdefs.h <<_ACEOF
6412 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6413 _ACEOF
6414
6415 ac_header_dirent=$ac_hdr; break
6416 fi
6417
6418 done
6419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6420 if test $ac_header_dirent = dirent.h; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6422 $as_echo_n "checking for library containing opendir... " >&6; }
6423 if ${ac_cv_search_opendir+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   ac_func_search_save_LIBS=$LIBS
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h.  */
6429
6430 /* Override any GCC internal prototype to avoid an error.
6431    Use char because int might match the return type of a GCC
6432    builtin and then its argument prototype would still apply.  */
6433 #ifdef __cplusplus
6434 extern "C"
6435 #endif
6436 char opendir ();
6437 int
6438 main ()
6439 {
6440 return opendir ();
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 for ac_lib in '' dir; do
6446   if test -z "$ac_lib"; then
6447     ac_res="none required"
6448   else
6449     ac_res=-l$ac_lib
6450     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6451   fi
6452   if ac_fn_c_try_link "$LINENO"; then :
6453   ac_cv_search_opendir=$ac_res
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext \
6456     conftest$ac_exeext
6457   if ${ac_cv_search_opendir+:} false; then :
6458   break
6459 fi
6460 done
6461 if ${ac_cv_search_opendir+:} false; then :
6462
6463 else
6464   ac_cv_search_opendir=no
6465 fi
6466 rm conftest.$ac_ext
6467 LIBS=$ac_func_search_save_LIBS
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6470 $as_echo "$ac_cv_search_opendir" >&6; }
6471 ac_res=$ac_cv_search_opendir
6472 if test "$ac_res" != no; then :
6473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6474
6475 fi
6476
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6479 $as_echo_n "checking for library containing opendir... " >&6; }
6480 if ${ac_cv_search_opendir+:} false; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   ac_func_search_save_LIBS=$LIBS
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h.  */
6486
6487 /* Override any GCC internal prototype to avoid an error.
6488    Use char because int might match the return type of a GCC
6489    builtin and then its argument prototype would still apply.  */
6490 #ifdef __cplusplus
6491 extern "C"
6492 #endif
6493 char opendir ();
6494 int
6495 main ()
6496 {
6497 return opendir ();
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 for ac_lib in '' x; do
6503   if test -z "$ac_lib"; then
6504     ac_res="none required"
6505   else
6506     ac_res=-l$ac_lib
6507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6508   fi
6509   if ac_fn_c_try_link "$LINENO"; then :
6510   ac_cv_search_opendir=$ac_res
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext \
6513     conftest$ac_exeext
6514   if ${ac_cv_search_opendir+:} false; then :
6515   break
6516 fi
6517 done
6518 if ${ac_cv_search_opendir+:} false; then :
6519
6520 else
6521   ac_cv_search_opendir=no
6522 fi
6523 rm conftest.$ac_ext
6524 LIBS=$ac_func_search_save_LIBS
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6527 $as_echo "$ac_cv_search_opendir" >&6; }
6528 ac_res=$ac_cv_search_opendir
6529 if test "$ac_res" != no; then :
6530   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6531
6532 fi
6533
6534 fi
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6537 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6538 if ${ac_cv_header_stat_broken+:} false; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h.  */
6543 #include <sys/types.h>
6544 #include <sys/stat.h>
6545
6546 #if defined S_ISBLK && defined S_IFDIR
6547 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6548 #endif
6549
6550 #if defined S_ISBLK && defined S_IFCHR
6551 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6552 #endif
6553
6554 #if defined S_ISLNK && defined S_IFREG
6555 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6556 #endif
6557
6558 #if defined S_ISSOCK && defined S_IFREG
6559 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6560 #endif
6561
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564   ac_cv_header_stat_broken=no
6565 else
6566   ac_cv_header_stat_broken=yes
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6571 $as_echo "$ac_cv_header_stat_broken" >&6; }
6572 if test $ac_cv_header_stat_broken = yes; then
6573
6574 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6575
6576 fi
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6579 $as_echo_n "checking for ANSI C header files... " >&6; }
6580 if ${ac_cv_header_stdc+:} false; then :
6581   $as_echo_n "(cached) " >&6
6582 else
6583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h.  */
6585 #include <stdlib.h>
6586 #include <stdarg.h>
6587 #include <string.h>
6588 #include <float.h>
6589
6590 int
6591 main ()
6592 {
6593
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599   ac_cv_header_stdc=yes
6600 else
6601   ac_cv_header_stdc=no
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604
6605 if test $ac_cv_header_stdc = yes; then
6606   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609 #include <string.h>
6610
6611 _ACEOF
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613   $EGREP "memchr" >/dev/null 2>&1; then :
6614
6615 else
6616   ac_cv_header_stdc=no
6617 fi
6618 rm -f conftest*
6619
6620 fi
6621
6622 if test $ac_cv_header_stdc = yes; then
6623   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h.  */
6626 #include <stdlib.h>
6627
6628 _ACEOF
6629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630   $EGREP "free" >/dev/null 2>&1; then :
6631
6632 else
6633   ac_cv_header_stdc=no
6634 fi
6635 rm -f conftest*
6636
6637 fi
6638
6639 if test $ac_cv_header_stdc = yes; then
6640   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6641   if test "$cross_compiling" = yes; then :
6642   :
6643 else
6644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646 #include <ctype.h>
6647 #include <stdlib.h>
6648 #if ((' ' & 0x0FF) == 0x020)
6649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6651 #else
6652 # define ISLOWER(c) \
6653                    (('a' <= (c) && (c) <= 'i') \
6654                      || ('j' <= (c) && (c) <= 'r') \
6655                      || ('s' <= (c) && (c) <= 'z'))
6656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6657 #endif
6658
6659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6660 int
6661 main ()
6662 {
6663   int i;
6664   for (i = 0; i < 256; i++)
6665     if (XOR (islower (i), ISLOWER (i))
6666         || toupper (i) != TOUPPER (i))
6667       return 2;
6668   return 0;
6669 }
6670 _ACEOF
6671 if ac_fn_c_try_run "$LINENO"; then :
6672
6673 else
6674   ac_cv_header_stdc=no
6675 fi
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6677   conftest.$ac_objext conftest.beam conftest.$ac_ext
6678 fi
6679
6680 fi
6681 fi
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6683 $as_echo "$ac_cv_header_stdc" >&6; }
6684 if test $ac_cv_header_stdc = yes; then
6685
6686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6687
6688 fi
6689
6690
6691 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6692 if test "x$ac_cv_type_long_long" = xyes; then :
6693
6694 cat >>confdefs.h <<_ACEOF
6695 #define HAVE_LONG_LONG 1
6696 _ACEOF
6697
6698
6699 fi
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6702 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6703 if ${ac_cv_type_uid_t+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h.  */
6708 #include <sys/types.h>
6709
6710 _ACEOF
6711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712   $EGREP "uid_t" >/dev/null 2>&1; then :
6713   ac_cv_type_uid_t=yes
6714 else
6715   ac_cv_type_uid_t=no
6716 fi
6717 rm -f conftest*
6718
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6721 $as_echo "$ac_cv_type_uid_t" >&6; }
6722 if test $ac_cv_type_uid_t = no; then
6723
6724 $as_echo "#define uid_t int" >>confdefs.h
6725
6726
6727 $as_echo "#define gid_t int" >>confdefs.h
6728
6729 fi
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
6732 $as_echo_n "checking type of array argument to getgroups... " >&6; }
6733 if ${ac_cv_type_getgroups+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test "$cross_compiling" = yes; then :
6737   ac_cv_type_getgroups=cross
6738 else
6739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h.  */
6741 /* Thanks to Mike Rendell for this test.  */
6742 $ac_includes_default
6743 #define NGID 256
6744 #undef MAX
6745 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6746
6747 int
6748 main ()
6749 {
6750   gid_t gidset[NGID];
6751   int i, n;
6752   union { gid_t gval; long int lval; }  val;
6753
6754   val.lval = -1;
6755   for (i = 0; i < NGID; i++)
6756     gidset[i] = val.gval;
6757   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6758                  gidset);
6759   /* Exit non-zero if getgroups seems to require an array of ints.  This
6760      happens when gid_t is short int but getgroups modifies an array
6761      of ints.  */
6762   return n > 0 && gidset[n] != val.gval;
6763 }
6764 _ACEOF
6765 if ac_fn_c_try_run "$LINENO"; then :
6766   ac_cv_type_getgroups=gid_t
6767 else
6768   ac_cv_type_getgroups=int
6769 fi
6770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6771   conftest.$ac_objext conftest.beam conftest.$ac_ext
6772 fi
6773
6774 if test $ac_cv_type_getgroups = cross; then
6775         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h.  */
6777 #include <unistd.h>
6778
6779 _ACEOF
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6782   ac_cv_type_getgroups=gid_t
6783 else
6784   ac_cv_type_getgroups=int
6785 fi
6786 rm -f conftest*
6787
6788 fi
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6791 $as_echo "$ac_cv_type_getgroups" >&6; }
6792
6793 cat >>confdefs.h <<_ACEOF
6794 #define GETGROUPS_T $ac_cv_type_getgroups
6795 _ACEOF
6796
6797
6798 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6799 if test "x$ac_cv_type_mode_t" = xyes; then :
6800
6801 else
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define mode_t int
6805 _ACEOF
6806
6807 fi
6808
6809 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6810 if test "x$ac_cv_type_size_t" = xyes; then :
6811
6812 else
6813
6814 cat >>confdefs.h <<_ACEOF
6815 #define size_t unsigned int
6816 _ACEOF
6817
6818 fi
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6821 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6822 if ${ac_cv_type_uid_t+:} false; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827 #include <sys/types.h>
6828
6829 _ACEOF
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831   $EGREP "uid_t" >/dev/null 2>&1; then :
6832   ac_cv_type_uid_t=yes
6833 else
6834   ac_cv_type_uid_t=no
6835 fi
6836 rm -f conftest*
6837
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6840 $as_echo "$ac_cv_type_uid_t" >&6; }
6841 if test $ac_cv_type_uid_t = no; then
6842
6843 $as_echo "#define uid_t int" >>confdefs.h
6844
6845
6846 $as_echo "#define gid_t int" >>confdefs.h
6847
6848 fi
6849
6850 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6851 case $ac_cv_c_uint32_t in #(
6852   no|yes) ;; #(
6853   *)
6854
6855 $as_echo "#define _UINT32_T 1" >>confdefs.h
6856
6857
6858 cat >>confdefs.h <<_ACEOF
6859 #define uint32_t $ac_cv_c_uint32_t
6860 _ACEOF
6861 ;;
6862   esac
6863
6864
6865
6866
6867 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
6868 #include <sys/types.h>
6869
6870 "
6871 if test "x$ac_cv_type_ssize_t" = xyes; then :
6872
6873 else
6874
6875 $as_echo "#define ssize_t int" >>confdefs.h
6876
6877 fi
6878
6879
6880
6881
6882
6883 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6884 #include <sys/types.h>
6885 #include <sys/socket.h>
6886
6887 "
6888 if test "x$ac_cv_type_socklen_t" = xyes; then :
6889
6890 else
6891
6892 $as_echo "#define socklen_t int" >>confdefs.h
6893
6894 fi
6895
6896
6897
6898
6899 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
6900 # include <dirent.h>
6901 #else
6902 # ifdef HAVE_NDIR_H
6903 #  include <ndir.h>
6904 # else
6905 #  include <sys/dir.h>
6906 # endif
6907 # define dirent direct
6908 #endif
6909 "
6910 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
6911
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_STRUCT_DIRENT_D_INO 1
6914 _ACEOF
6915
6916
6917 fi
6918
6919 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6920 #ifdef HAVE_UTMPX_H
6921 #include <utmpx.h>
6922 #define utmp utmpx
6923 #elif defined HAVE_UTMP_H
6924 #include <utmp.h>
6925 #endif
6926 "
6927 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6928
6929 cat >>confdefs.h <<_ACEOF
6930 #define HAVE_STRUCT_UTMP_UT_HOST 1
6931 _ACEOF
6932
6933
6934 fi
6935 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
6936 #ifdef HAVE_UTMPX_H
6937 #include <utmpx.h>
6938 #define utmp utmpx
6939 #elif defined HAVE_UTMP_H
6940 #include <utmp.h>
6941 #endif
6942 "
6943 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6944
6945 cat >>confdefs.h <<_ACEOF
6946 #define HAVE_STRUCT_UTMP_UT_USER 1
6947 _ACEOF
6948
6949
6950 fi
6951 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
6952 #ifdef HAVE_UTMPX_H
6953 #include <utmpx.h>
6954 #define utmp utmpx
6955 #elif defined HAVE_UTMP_H
6956 #include <utmp.h>
6957 #endif
6958 "
6959 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6960
6961 cat >>confdefs.h <<_ACEOF
6962 #define HAVE_STRUCT_UTMP_UT_TV 1
6963 _ACEOF
6964
6965
6966 fi
6967 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
6968 #ifdef HAVE_UTMPX_H
6969 #include <utmpx.h>
6970 #define utmp utmpx
6971 #elif defined HAVE_UTMP_H
6972 #include <utmp.h>
6973 #endif
6974 "
6975 if test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
6976
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_STRUCT_UTMP_UT_XTIME 1
6979 _ACEOF
6980
6981
6982 fi
6983 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6984 #ifdef HAVE_UTMPX_H
6985 #include <utmpx.h>
6986 #define utmp utmpx
6987 #elif defined HAVE_UTMP_H
6988 #include <utmp.h>
6989 #endif
6990 "
6991 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6992
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_STRUCT_UTMPX_UT_HOST 1
6995 _ACEOF
6996
6997
6998 fi
6999 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
7000 #ifdef HAVE_UTMPX_H
7001 #include <utmpx.h>
7002 #define utmp utmpx
7003 #elif defined HAVE_UTMP_H
7004 #include <utmp.h>
7005 #endif
7006 "
7007 if test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
7008
7009 cat >>confdefs.h <<_ACEOF
7010 #define HAVE_STRUCT_UTMPX_UT_USER 1
7011 _ACEOF
7012
7013
7014 fi
7015 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
7016 #ifdef HAVE_UTMPX_H
7017 #include <utmpx.h>
7018 #define utmp utmpx
7019 #elif defined HAVE_UTMP_H
7020 #include <utmp.h>
7021 #endif
7022 "
7023 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define HAVE_STRUCT_UTMPX_UT_TV 1
7027 _ACEOF
7028
7029
7030 fi
7031 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
7032 #ifdef HAVE_UTMPX_H
7033 #include <utmpx.h>
7034 #define utmp utmpx
7035 #elif defined HAVE_UTMP_H
7036 #include <utmp.h>
7037 #endif
7038 "
7039 if test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
7040
7041 cat >>confdefs.h <<_ACEOF
7042 #define HAVE_STRUCT_UTMPX_UT_XTIME 1
7043 _ACEOF
7044
7045
7046 fi
7047
7048 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
7049 #include <sys/socket.h>
7050 "
7051 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
7052
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
7055 _ACEOF
7056
7057
7058 fi
7059
7060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7062 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7063 if ${ac_cv_c_const+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068
7069 int
7070 main ()
7071 {
7072
7073 #ifndef __cplusplus
7074   /* Ultrix mips cc rejects this sort of thing.  */
7075   typedef int charset[2];
7076   const charset cs = { 0, 0 };
7077   /* SunOS 4.1.1 cc rejects this.  */
7078   char const *const *pcpcc;
7079   char **ppc;
7080   /* NEC SVR4.0.2 mips cc rejects this.  */
7081   struct point {int x, y;};
7082   static struct point const zero = {0,0};
7083   /* AIX XL C 1.02.0.0 rejects this.
7084      It does not let you subtract one const X* pointer from another in
7085      an arm of an if-expression whose if-part is not a constant
7086      expression */
7087   const char *g = "string";
7088   pcpcc = &g + (g ? g-g : 0);
7089   /* HPUX 7.0 cc rejects these. */
7090   ++pcpcc;
7091   ppc = (char**) pcpcc;
7092   pcpcc = (char const *const *) ppc;
7093   { /* SCO 3.2v4 cc rejects this sort of thing.  */
7094     char tx;
7095     char *t = &tx;
7096     char const *s = 0 ? (char *) 0 : (char const *) 0;
7097
7098     *t++ = 0;
7099     if (s) return 0;
7100   }
7101   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7102     int x[] = {25, 17};
7103     const int *foo = &x[0];
7104     ++foo;
7105   }
7106   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7107     typedef const int *iptr;
7108     iptr p = 0;
7109     ++p;
7110   }
7111   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7112        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7113     struct s { int j; const int *ap[3]; } bx;
7114     struct s *b = &bx; b->j = 5;
7115   }
7116   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7117     const int foo = 10;
7118     if (!foo) return 0;
7119   }
7120   return !cs[0] && !zero.x;
7121 #endif
7122
7123   ;
7124   return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128   ac_cv_c_const=yes
7129 else
7130   ac_cv_c_const=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7135 $as_echo "$ac_cv_c_const" >&6; }
7136 if test $ac_cv_c_const = no; then
7137
7138 $as_echo "#define const /**/" >>confdefs.h
7139
7140 fi
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7143 $as_echo_n "checking for working volatile... " >&6; }
7144 if ${ac_cv_c_volatile+:} false; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149
7150 int
7151 main ()
7152 {
7153
7154 volatile int x;
7155 int * volatile y = (int *) 0;
7156 return !x && !y;
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162   ac_cv_c_volatile=yes
7163 else
7164   ac_cv_c_volatile=no
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7169 $as_echo "$ac_cv_c_volatile" >&6; }
7170 if test $ac_cv_c_volatile = no; then
7171
7172 $as_echo "#define volatile /**/" >>confdefs.h
7173
7174 fi
7175
7176
7177 ac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
7178 $ac_includes_default
7179 #ifdef HAVE_CRYPT_H
7180 #include <crypt.h>
7181 #endif
7182
7183 "
7184 if test "x$ac_cv_have_decl_crypt" = xyes; then :
7185   ac_have_decl=1
7186 else
7187   ac_have_decl=0
7188 fi
7189
7190 cat >>confdefs.h <<_ACEOF
7191 #define HAVE_DECL_CRYPT $ac_have_decl
7192 _ACEOF
7193 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
7194 $ac_includes_default
7195 #ifdef HAVE_CRYPT_H
7196 #include <crypt.h>
7197 #endif
7198
7199 "
7200 if test "x$ac_cv_have_decl_environ" = xyes; then :
7201   ac_have_decl=1
7202 else
7203   ac_have_decl=0
7204 fi
7205
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_DECL_ENVIRON $ac_have_decl
7208 _ACEOF
7209 ac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
7210 $ac_includes_default
7211 #ifdef HAVE_CRYPT_H
7212 #include <crypt.h>
7213 #endif
7214
7215 "
7216 if test "x$ac_cv_have_decl_gethostname" = xyes; then :
7217   ac_have_decl=1
7218 else
7219   ac_have_decl=0
7220 fi
7221
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_DECL_GETHOSTNAME $ac_have_decl
7224 _ACEOF
7225 ac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
7226 $ac_includes_default
7227 #ifdef HAVE_CRYPT_H
7228 #include <crypt.h>
7229 #endif
7230
7231 "
7232 if test "x$ac_cv_have_decl_getpgrp" = xyes; then :
7233   ac_have_decl=1
7234 else
7235   ac_have_decl=0
7236 fi
7237
7238 cat >>confdefs.h <<_ACEOF
7239 #define HAVE_DECL_GETPGRP $ac_have_decl
7240 _ACEOF
7241
7242 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7243 if test "x$ac_cv_func_setlocale" = xyes; then :
7244   have_setlocale=yes
7245 else
7246   have_setlocale=no
7247 fi
7248
7249 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
7250 if test "x$ac_cv_func_catgets" = xyes; then :
7251   have_catgets=yes
7252 else
7253   have_catgets=no
7254 fi
7255
7256 for 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
7257 do :
7258   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7261   cat >>confdefs.h <<_ACEOF
7262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7263 _ACEOF
7264
7265 fi
7266 done
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
7269 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
7270 if ${ac_cv_func_getpgrp_void+:} false; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   # Use it with a single arg.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h.  */
7276 $ac_includes_default
7277 int
7278 main ()
7279 {
7280 getpgrp (0);
7281   ;
7282   return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286   ac_cv_func_getpgrp_void=no
7287 else
7288   ac_cv_func_getpgrp_void=yes
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
7294 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
7295 if test $ac_cv_func_getpgrp_void = yes; then
7296
7297 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
7298
7299 fi
7300
7301
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
7303 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
7304 if ${ac_cv_func_mbrtowc+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309 #include <wchar.h>
7310 int
7311 main ()
7312 {
7313 wchar_t wc;
7314               char const s[] = "";
7315               size_t n = 1;
7316               mbstate_t state;
7317               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
7318   ;
7319   return 0;
7320 }
7321 _ACEOF
7322 if ac_fn_c_try_link "$LINENO"; then :
7323   ac_cv_func_mbrtowc=yes
7324 else
7325   ac_cv_func_mbrtowc=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext \
7328     conftest$ac_exeext conftest.$ac_ext
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
7331 $as_echo "$ac_cv_func_mbrtowc" >&6; }
7332   if test $ac_cv_func_mbrtowc = yes; then
7333
7334 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
7335
7336   fi
7337
7338 if test "x${cross_compiling}" != xyes ; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
7340 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
7341 if ${ac_cv_func_setpgrp_void+:} false; then :
7342   $as_echo_n "(cached) " >&6
7343 else
7344   if test "$cross_compiling" = yes; then :
7345   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
7346 else
7347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h.  */
7349 $ac_includes_default
7350 int
7351 main ()
7352 {
7353 /* If this system has a BSD-style setpgrp which takes arguments,
7354   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
7355   exit successfully. */
7356   return setpgrp (1,1) != -1;
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_run "$LINENO"; then :
7362   ac_cv_func_setpgrp_void=no
7363 else
7364   ac_cv_func_setpgrp_void=yes
7365 fi
7366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7367   conftest.$ac_objext conftest.beam conftest.$ac_ext
7368 fi
7369
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
7372 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
7373 if test $ac_cv_func_setpgrp_void = yes; then
7374
7375 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
7376
7377 fi
7378
7379 else
7380   ac_cv_func_setpgrp_void=yes
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7383 $as_echo_n "checking for working strcoll... " >&6; }
7384 if ${ac_cv_func_strcoll_works+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   if test "$cross_compiling" = yes; then :
7388   ac_cv_func_strcoll_works=no
7389 else
7390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h.  */
7392 $ac_includes_default
7393 int
7394 main ()
7395 {
7396 return (strcoll ("abc", "def") >= 0 ||
7397          strcoll ("ABC", "DEF") >= 0 ||
7398          strcoll ("123", "456") >= 0)
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_run "$LINENO"; then :
7404   ac_cv_func_strcoll_works=yes
7405 else
7406   ac_cv_func_strcoll_works=no
7407 fi
7408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7409   conftest.$ac_objext conftest.beam conftest.$ac_ext
7410 fi
7411
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7414 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7415 if test $ac_cv_func_strcoll_works = yes; then
7416
7417 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7418
7419 fi
7420
7421
7422
7423
7424
7425 if test "$have_setlocale" != no; then
7426   # Check whether --enable-nls was given.
7427 if test "${enable_nls+set}" = set; then :
7428   enableval=$enable_nls;
7429 else
7430   enable_nls=yes
7431 fi
7432
7433   if test "x$enable_nls" != xno; then
7434
7435 $as_echo "#define NLS 1" >>confdefs.h
7436
7437   fi
7438 fi
7439
7440 if test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
7441   # Check whether --enable-nls-catalogs was given.
7442 if test "${enable_nls_catalogs+set}" = set; then :
7443   enableval=$enable_nls_catalogs;
7444 else
7445   enable_nls_catalogs=yes
7446 fi
7447
7448   if test "x$enable_nls_catalogs" != xno; then
7449     BUILD_CATALOGS="yes"
7450
7451 $as_echo "#define NLS_CATALOGS 1" >>confdefs.h
7452
7453   fi
7454 fi
7455
7456
7457 # Check whether --with-hesiod was given.
7458 if test "${with_hesiod+set}" = set; then :
7459   withval=$with_hesiod; hesiod="$withval"
7460 else
7461   hesiod=no
7462 fi
7463
7464 if test "$hesiod" != no; then
7465   HESLIB="-lhesiod"
7466   ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
7467 if test "x$ac_cv_func_res_send" = xyes; then :
7468   :
7469 else
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
7471 $as_echo_n "checking for res_send in -lresolv... " >&6; }
7472 if ${ac_cv_lib_resolv_res_send+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   ac_check_lib_save_LIBS=$LIBS
7476 LIBS="-lresolv  $LIBS"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h.  */
7479
7480 /* Override any GCC internal prototype to avoid an error.
7481    Use char because int might match the return type of a GCC
7482    builtin and then its argument prototype would still apply.  */
7483 #ifdef __cplusplus
7484 extern "C"
7485 #endif
7486 char res_send ();
7487 int
7488 main ()
7489 {
7490 return res_send ();
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_link "$LINENO"; then :
7496   ac_cv_lib_resolv_res_send=yes
7497 else
7498   ac_cv_lib_resolv_res_send=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext \
7501     conftest$ac_exeext conftest.$ac_ext
7502 LIBS=$ac_check_lib_save_LIBS
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
7505 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
7506 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
7507   HESLIB="$HESLIB -lresolv"
7508 fi
7509
7510 fi
7511
7512   HESDEF=-DHESIOD
7513   if test "$hesiod" != yes; then
7514     HESDEF="$HESDEF -I$hesiod/include"
7515     HESLIB="-L$hesiod/lib $HESLIB"
7516   fi
7517 fi
7518
7519
7520
7521
7522 ac_config_files="$ac_config_files Makefile nls/Makefile"
7523
7524 cat >confcache <<\_ACEOF
7525 # This file is a shell script that caches the results of configure
7526 # tests run on this system so they can be shared between configure
7527 # scripts and configure runs, see configure's option --config-cache.
7528 # It is not useful on other systems.  If it contains results you don't
7529 # want to keep, you may remove or edit it.
7530 #
7531 # config.status only pays attention to the cache file if you give it
7532 # the --recheck option to rerun configure.
7533 #
7534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7536 # following values.
7537
7538 _ACEOF
7539
7540 # The following way of writing the cache mishandles newlines in values,
7541 # but we know of no workaround that is simple, portable, and efficient.
7542 # So, we kill variables containing newlines.
7543 # Ultrix sh set writes to stderr and can't be redirected directly,
7544 # and sets the high bit in the cache file unless we assign to the vars.
7545 (
7546   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7547     eval ac_val=\$$ac_var
7548     case $ac_val in #(
7549     *${as_nl}*)
7550       case $ac_var in #(
7551       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7553       esac
7554       case $ac_var in #(
7555       _ | IFS | as_nl) ;; #(
7556       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7557       *) { eval $ac_var=; unset $ac_var;} ;;
7558       esac ;;
7559     esac
7560   done
7561
7562   (set) 2>&1 |
7563     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7564     *${as_nl}ac_space=\ *)
7565       # `set' does not quote correctly, so add quotes: double-quote
7566       # substitution turns \\\\ into \\, and sed turns \\ into \.
7567       sed -n \
7568         "s/'/'\\\\''/g;
7569           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7570       ;; #(
7571     *)
7572       # `set' quotes correctly as required by POSIX, so do not add quotes.
7573       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7574       ;;
7575     esac |
7576     sort
7577 ) |
7578   sed '
7579      /^ac_cv_env_/b end
7580      t clear
7581      :clear
7582      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7583      t end
7584      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7585      :end' >>confcache
7586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7587   if test -w "$cache_file"; then
7588     if test "x$cache_file" != "x/dev/null"; then
7589       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7590 $as_echo "$as_me: updating cache $cache_file" >&6;}
7591       if test ! -f "$cache_file" || test -h "$cache_file"; then
7592         cat confcache >"$cache_file"
7593       else
7594         case $cache_file in #(
7595         */* | ?:*)
7596           mv -f confcache "$cache_file"$$ &&
7597           mv -f "$cache_file"$$ "$cache_file" ;; #(
7598         *)
7599           mv -f confcache "$cache_file" ;;
7600         esac
7601       fi
7602     fi
7603   else
7604     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7606   fi
7607 fi
7608 rm -f confcache
7609
7610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7611 # Let make expand exec_prefix.
7612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7613
7614 DEFS=-DHAVE_CONFIG_H
7615
7616 ac_libobjs=
7617 ac_ltlibobjs=
7618 U=
7619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7620   # 1. Remove the extension, and $U if already installed.
7621   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7622   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7623   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7624   #    will be set to the directory where LIBOBJS objects are built.
7625   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7626   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7627 done
7628 LIBOBJS=$ac_libobjs
7629
7630 LTLIBOBJS=$ac_ltlibobjs
7631
7632
7633
7634 : "${CONFIG_STATUS=./config.status}"
7635 ac_write_fail=0
7636 ac_clean_files_save=$ac_clean_files
7637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7640 as_write_fail=0
7641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7642 #! $SHELL
7643 # Generated by $as_me.
7644 # Run this file to recreate the current configuration.
7645 # Compiler output produced by configure, useful for debugging
7646 # configure, is in config.log if it exists.
7647
7648 debug=false
7649 ac_cs_recheck=false
7650 ac_cs_silent=false
7651
7652 SHELL=\${CONFIG_SHELL-$SHELL}
7653 export SHELL
7654 _ASEOF
7655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7656 ## -------------------- ##
7657 ## M4sh Initialization. ##
7658 ## -------------------- ##
7659
7660 # Be more Bourne compatible
7661 DUALCASE=1; export DUALCASE # for MKS sh
7662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7663   emulate sh
7664   NULLCMD=:
7665   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7666   # is contrary to our usage.  Disable this feature.
7667   alias -g '${1+"$@"}'='"$@"'
7668   setopt NO_GLOB_SUBST
7669 else
7670   case `(set -o) 2>/dev/null` in #(
7671   *posix*) :
7672     set -o posix ;; #(
7673   *) :
7674      ;;
7675 esac
7676 fi
7677
7678
7679 as_nl='
7680 '
7681 export as_nl
7682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7686 # Prefer a ksh shell builtin over an external printf program on Solaris,
7687 # but without wasting forks for bash or zsh.
7688 if test -z "$BASH_VERSION$ZSH_VERSION" \
7689     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7690   as_echo='print -r --'
7691   as_echo_n='print -rn --'
7692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7693   as_echo='printf %s\n'
7694   as_echo_n='printf %s'
7695 else
7696   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7697     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7698     as_echo_n='/usr/ucb/echo -n'
7699   else
7700     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7701     as_echo_n_body='eval
7702       arg=$1;
7703       case $arg in #(
7704       *"$as_nl"*)
7705         expr "X$arg" : "X\\(.*\\)$as_nl";
7706         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7707       esac;
7708       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7709     '
7710     export as_echo_n_body
7711     as_echo_n='sh -c $as_echo_n_body as_echo'
7712   fi
7713   export as_echo_body
7714   as_echo='sh -c $as_echo_body as_echo'
7715 fi
7716
7717 # The user is always right.
7718 if test "${PATH_SEPARATOR+set}" != set; then
7719   PATH_SEPARATOR=:
7720   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7721     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7722       PATH_SEPARATOR=';'
7723   }
7724 fi
7725
7726
7727 # IFS
7728 # We need space, tab and new line, in precisely that order.  Quoting is
7729 # there to prevent editors from complaining about space-tab.
7730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7731 # splitting by setting IFS to empty value.)
7732 IFS=" ""        $as_nl"
7733
7734 # Find who we are.  Look in the path if we contain no directory separator.
7735 as_myself=
7736 case $0 in #((
7737   *[\\/]* ) as_myself=$0 ;;
7738   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7744   done
7745 IFS=$as_save_IFS
7746
7747      ;;
7748 esac
7749 # We did not find ourselves, most probably we were run as `sh COMMAND'
7750 # in which case we are not to be found in the path.
7751 if test "x$as_myself" = x; then
7752   as_myself=$0
7753 fi
7754 if test ! -f "$as_myself"; then
7755   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7756   exit 1
7757 fi
7758
7759 # Unset variables that we do not need and which cause bugs (e.g. in
7760 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7761 # suppresses any "Segmentation fault" message there.  '((' could
7762 # trigger a bug in pdksh 5.2.14.
7763 for as_var in BASH_ENV ENV MAIL MAILPATH
7764 do eval test x\${$as_var+set} = xset \
7765   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7766 done
7767 PS1='$ '
7768 PS2='> '
7769 PS4='+ '
7770
7771 # NLS nuisances.
7772 LC_ALL=C
7773 export LC_ALL
7774 LANGUAGE=C
7775 export LANGUAGE
7776
7777 # CDPATH.
7778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7779
7780
7781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7782 # ----------------------------------------
7783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7785 # script with STATUS, using 1 if that was 0.
7786 as_fn_error ()
7787 {
7788   as_status=$1; test $as_status -eq 0 && as_status=1
7789   if test "$4"; then
7790     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7791     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7792   fi
7793   $as_echo "$as_me: error: $2" >&2
7794   as_fn_exit $as_status
7795 } # as_fn_error
7796
7797
7798 # as_fn_set_status STATUS
7799 # -----------------------
7800 # Set $? to STATUS, without forking.
7801 as_fn_set_status ()
7802 {
7803   return $1
7804 } # as_fn_set_status
7805
7806 # as_fn_exit STATUS
7807 # -----------------
7808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7809 as_fn_exit ()
7810 {
7811   set +e
7812   as_fn_set_status $1
7813   exit $1
7814 } # as_fn_exit
7815
7816 # as_fn_unset VAR
7817 # ---------------
7818 # Portably unset VAR.
7819 as_fn_unset ()
7820 {
7821   { eval $1=; unset $1;}
7822 }
7823 as_unset=as_fn_unset
7824 # as_fn_append VAR VALUE
7825 # ----------------------
7826 # Append the text in VALUE to the end of the definition contained in VAR. Take
7827 # advantage of any shell optimizations that allow amortized linear growth over
7828 # repeated appends, instead of the typical quadratic growth present in naive
7829 # implementations.
7830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7831   eval 'as_fn_append ()
7832   {
7833     eval $1+=\$2
7834   }'
7835 else
7836   as_fn_append ()
7837   {
7838     eval $1=\$$1\$2
7839   }
7840 fi # as_fn_append
7841
7842 # as_fn_arith ARG...
7843 # ------------------
7844 # Perform arithmetic evaluation on the ARGs, and store the result in the
7845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7846 # must be portable across $(()) and expr.
7847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7848   eval 'as_fn_arith ()
7849   {
7850     as_val=$(( $* ))
7851   }'
7852 else
7853   as_fn_arith ()
7854   {
7855     as_val=`expr "$@" || test $? -eq 1`
7856   }
7857 fi # as_fn_arith
7858
7859
7860 if expr a : '\(a\)' >/dev/null 2>&1 &&
7861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7862   as_expr=expr
7863 else
7864   as_expr=false
7865 fi
7866
7867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7868   as_basename=basename
7869 else
7870   as_basename=false
7871 fi
7872
7873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7874   as_dirname=dirname
7875 else
7876   as_dirname=false
7877 fi
7878
7879 as_me=`$as_basename -- "$0" ||
7880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7881          X"$0" : 'X\(//\)$' \| \
7882          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7883 $as_echo X/"$0" |
7884     sed '/^.*\/\([^/][^/]*\)\/*$/{
7885             s//\1/
7886             q
7887           }
7888           /^X\/\(\/\/\)$/{
7889             s//\1/
7890             q
7891           }
7892           /^X\/\(\/\).*/{
7893             s//\1/
7894             q
7895           }
7896           s/.*/./; q'`
7897
7898 # Avoid depending upon Character Ranges.
7899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7902 as_cr_digits='0123456789'
7903 as_cr_alnum=$as_cr_Letters$as_cr_digits
7904
7905 ECHO_C= ECHO_N= ECHO_T=
7906 case `echo -n x` in #(((((
7907 -n*)
7908   case `echo 'xy\c'` in
7909   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7910   xy)  ECHO_C='\c';;
7911   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7912        ECHO_T=' ';;
7913   esac;;
7914 *)
7915   ECHO_N='-n';;
7916 esac
7917
7918 rm -f conf$$ conf$$.exe conf$$.file
7919 if test -d conf$$.dir; then
7920   rm -f conf$$.dir/conf$$.file
7921 else
7922   rm -f conf$$.dir
7923   mkdir conf$$.dir 2>/dev/null
7924 fi
7925 if (echo >conf$$.file) 2>/dev/null; then
7926   if ln -s conf$$.file conf$$ 2>/dev/null; then
7927     as_ln_s='ln -s'
7928     # ... but there are two gotchas:
7929     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7930     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7931     # In both cases, we have to default to `cp -pR'.
7932     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7933       as_ln_s='cp -pR'
7934   elif ln conf$$.file conf$$ 2>/dev/null; then
7935     as_ln_s=ln
7936   else
7937     as_ln_s='cp -pR'
7938   fi
7939 else
7940   as_ln_s='cp -pR'
7941 fi
7942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7943 rmdir conf$$.dir 2>/dev/null
7944
7945
7946 # as_fn_mkdir_p
7947 # -------------
7948 # Create "$as_dir" as a directory, including parents if necessary.
7949 as_fn_mkdir_p ()
7950 {
7951
7952   case $as_dir in #(
7953   -*) as_dir=./$as_dir;;
7954   esac
7955   test -d "$as_dir" || eval $as_mkdir_p || {
7956     as_dirs=
7957     while :; do
7958       case $as_dir in #(
7959       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7960       *) as_qdir=$as_dir;;
7961       esac
7962       as_dirs="'$as_qdir' $as_dirs"
7963       as_dir=`$as_dirname -- "$as_dir" ||
7964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7965          X"$as_dir" : 'X\(//\)[^/]' \| \
7966          X"$as_dir" : 'X\(//\)$' \| \
7967          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7968 $as_echo X"$as_dir" |
7969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7970             s//\1/
7971             q
7972           }
7973           /^X\(\/\/\)[^/].*/{
7974             s//\1/
7975             q
7976           }
7977           /^X\(\/\/\)$/{
7978             s//\1/
7979             q
7980           }
7981           /^X\(\/\).*/{
7982             s//\1/
7983             q
7984           }
7985           s/.*/./; q'`
7986       test -d "$as_dir" && break
7987     done
7988     test -z "$as_dirs" || eval "mkdir $as_dirs"
7989   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7990
7991
7992 } # as_fn_mkdir_p
7993 if mkdir -p . 2>/dev/null; then
7994   as_mkdir_p='mkdir -p "$as_dir"'
7995 else
7996   test -d ./-p && rmdir ./-p
7997   as_mkdir_p=false
7998 fi
7999
8000
8001 # as_fn_executable_p FILE
8002 # -----------------------
8003 # Test if FILE is an executable regular file.
8004 as_fn_executable_p ()
8005 {
8006   test -f "$1" && test -x "$1"
8007 } # as_fn_executable_p
8008 as_test_x='test -x'
8009 as_executable_p=as_fn_executable_p
8010
8011 # Sed expression to map a string onto a valid CPP name.
8012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8013
8014 # Sed expression to map a string onto a valid variable name.
8015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8016
8017
8018 exec 6>&1
8019 ## ----------------------------------- ##
8020 ## Main body of $CONFIG_STATUS script. ##
8021 ## ----------------------------------- ##
8022 _ASEOF
8023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8024
8025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 # Save the log message, to keep $0 and so on meaningful, and to
8027 # report actual input values of CONFIG_FILES etc. instead of their
8028 # values after options handling.
8029 ac_log="
8030 This file was extended by tcsh $as_me 6.22.03, which was
8031 generated by GNU Autoconf 2.69.  Invocation command line was
8032
8033   CONFIG_FILES    = $CONFIG_FILES
8034   CONFIG_HEADERS  = $CONFIG_HEADERS
8035   CONFIG_LINKS    = $CONFIG_LINKS
8036   CONFIG_COMMANDS = $CONFIG_COMMANDS
8037   $ $0 $@
8038
8039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8040 "
8041
8042 _ACEOF
8043
8044 case $ac_config_files in *"
8045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8046 esac
8047
8048 case $ac_config_headers in *"
8049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8050 esac
8051
8052
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 # Files that config.status was made for.
8055 config_files="$ac_config_files"
8056 config_headers="$ac_config_headers"
8057 config_commands="$ac_config_commands"
8058
8059 _ACEOF
8060
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8062 ac_cs_usage="\
8063 \`$as_me' instantiates files and other configuration actions
8064 from templates according to the current configuration.  Unless the files
8065 and actions are specified as TAGs, all are instantiated by default.
8066
8067 Usage: $0 [OPTION]... [TAG]...
8068
8069   -h, --help       print this help, then exit
8070   -V, --version    print version number and configuration settings, then exit
8071       --config     print configuration, then exit
8072   -q, --quiet, --silent
8073                    do not print progress messages
8074   -d, --debug      don't remove temporary files
8075       --recheck    update $as_me by reconfiguring in the same conditions
8076       --file=FILE[:TEMPLATE]
8077                    instantiate the configuration file FILE
8078       --header=FILE[:TEMPLATE]
8079                    instantiate the configuration header FILE
8080
8081 Configuration files:
8082 $config_files
8083
8084 Configuration headers:
8085 $config_headers
8086
8087 Configuration commands:
8088 $config_commands
8089
8090 Report bugs to <https://bugs.astron.com/>."
8091
8092 _ACEOF
8093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8095 ac_cs_version="\\
8096 tcsh config.status 6.22.03
8097 configured by $0, generated by GNU Autoconf 2.69,
8098   with options \\"\$ac_cs_config\\"
8099
8100 Copyright (C) 2012 Free Software Foundation, Inc.
8101 This config.status script is free software; the Free Software Foundation
8102 gives unlimited permission to copy, distribute and modify it."
8103
8104 ac_pwd='$ac_pwd'
8105 srcdir='$srcdir'
8106 INSTALL='$INSTALL'
8107 test -n "\$AWK" || AWK=awk
8108 _ACEOF
8109
8110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8111 # The default lists apply if the user does not specify any file.
8112 ac_need_defaults=:
8113 while test $# != 0
8114 do
8115   case $1 in
8116   --*=?*)
8117     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8118     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8119     ac_shift=:
8120     ;;
8121   --*=)
8122     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8123     ac_optarg=
8124     ac_shift=:
8125     ;;
8126   *)
8127     ac_option=$1
8128     ac_optarg=$2
8129     ac_shift=shift
8130     ;;
8131   esac
8132
8133   case $ac_option in
8134   # Handling of the options.
8135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8136     ac_cs_recheck=: ;;
8137   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8138     $as_echo "$ac_cs_version"; exit ;;
8139   --config | --confi | --conf | --con | --co | --c )
8140     $as_echo "$ac_cs_config"; exit ;;
8141   --debug | --debu | --deb | --de | --d | -d )
8142     debug=: ;;
8143   --file | --fil | --fi | --f )
8144     $ac_shift
8145     case $ac_optarg in
8146     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8147     '') as_fn_error $? "missing file argument" ;;
8148     esac
8149     as_fn_append CONFIG_FILES " '$ac_optarg'"
8150     ac_need_defaults=false;;
8151   --header | --heade | --head | --hea )
8152     $ac_shift
8153     case $ac_optarg in
8154     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8155     esac
8156     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8157     ac_need_defaults=false;;
8158   --he | --h)
8159     # Conflict between --help and --header
8160     as_fn_error $? "ambiguous option: \`$1'
8161 Try \`$0 --help' for more information.";;
8162   --help | --hel | -h )
8163     $as_echo "$ac_cs_usage"; exit ;;
8164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8165   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8166     ac_cs_silent=: ;;
8167
8168   # This is an error.
8169   -*) as_fn_error $? "unrecognized option: \`$1'
8170 Try \`$0 --help' for more information." ;;
8171
8172   *) as_fn_append ac_config_targets " $1"
8173      ac_need_defaults=false ;;
8174
8175   esac
8176   shift
8177 done
8178
8179 ac_configure_extra_args=
8180
8181 if $ac_cs_silent; then
8182   exec 6>/dev/null
8183   ac_configure_extra_args="$ac_configure_extra_args --silent"
8184 fi
8185
8186 _ACEOF
8187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8188 if \$ac_cs_recheck; then
8189   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8190   shift
8191   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8192   CONFIG_SHELL='$SHELL'
8193   export CONFIG_SHELL
8194   exec "\$@"
8195 fi
8196
8197 _ACEOF
8198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8199 exec 5>>config.log
8200 {
8201   echo
8202   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8203 ## Running $as_me. ##
8204 _ASBOX
8205   $as_echo "$ac_log"
8206 } >&5
8207
8208 _ACEOF
8209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8210 #
8211 # INIT-COMMANDS
8212 #
8213
8214
8215 _ACEOF
8216
8217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8218
8219 # Handling of arguments.
8220 for ac_config_target in $ac_config_targets
8221 do
8222   case $ac_config_target in
8223     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8224     "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
8225     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8226     "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
8227
8228   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8229   esac
8230 done
8231
8232
8233 # If the user did not use the arguments to specify the items to instantiate,
8234 # then the envvar interface is used.  Set only those that are not.
8235 # We use the long form for the default assignment because of an extremely
8236 # bizarre bug on SunOS 4.1.3.
8237 if $ac_need_defaults; then
8238   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8239   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8240   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8241 fi
8242
8243 # Have a temporary directory for convenience.  Make it in the build tree
8244 # simply because there is no reason against having it here, and in addition,
8245 # creating and moving files from /tmp can sometimes cause problems.
8246 # Hook for its removal unless debugging.
8247 # Note that there is a small window in which the directory will not be cleaned:
8248 # after its creation but before its name has been assigned to `$tmp'.
8249 $debug ||
8250 {
8251   tmp= ac_tmp=
8252   trap 'exit_status=$?
8253   : "${ac_tmp:=$tmp}"
8254   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8255 ' 0
8256   trap 'as_fn_exit 1' 1 2 13 15
8257 }
8258 # Create a (secure) tmp directory for tmp files.
8259
8260 {
8261   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8262   test -d "$tmp"
8263 }  ||
8264 {
8265   tmp=./conf$$-$RANDOM
8266   (umask 077 && mkdir "$tmp")
8267 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8268 ac_tmp=$tmp
8269
8270 # Set up the scripts for CONFIG_FILES section.
8271 # No need to generate them if there are no CONFIG_FILES.
8272 # This happens for instance with `./config.status config.h'.
8273 if test -n "$CONFIG_FILES"; then
8274
8275
8276 ac_cr=`echo X | tr X '\015'`
8277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8278 # But we know of no other shell where ac_cr would be empty at this
8279 # point, so we can use a bashism as a fallback.
8280 if test "x$ac_cr" = x; then
8281   eval ac_cr=\$\'\\r\'
8282 fi
8283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8285   ac_cs_awk_cr='\\r'
8286 else
8287   ac_cs_awk_cr=$ac_cr
8288 fi
8289
8290 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8291 _ACEOF
8292
8293
8294 {
8295   echo "cat >conf$$subs.awk <<_ACEOF" &&
8296   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8297   echo "_ACEOF"
8298 } >conf$$subs.sh ||
8299   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8300 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8301 ac_delim='%!_!# '
8302 for ac_last_try in false false false false false :; do
8303   . ./conf$$subs.sh ||
8304     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8305
8306   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8307   if test $ac_delim_n = $ac_delim_num; then
8308     break
8309   elif $ac_last_try; then
8310     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8311   else
8312     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8313   fi
8314 done
8315 rm -f conf$$subs.sh
8316
8317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8318 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8319 _ACEOF
8320 sed -n '
8321 h
8322 s/^/S["/; s/!.*/"]=/
8323 p
8324 g
8325 s/^[^!]*!//
8326 :repl
8327 t repl
8328 s/'"$ac_delim"'$//
8329 t delim
8330 :nl
8331 h
8332 s/\(.\{148\}\)..*/\1/
8333 t more1
8334 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8335 p
8336 n
8337 b repl
8338 :more1
8339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8340 p
8341 g
8342 s/.\{148\}//
8343 t nl
8344 :delim
8345 h
8346 s/\(.\{148\}\)..*/\1/
8347 t more2
8348 s/["\\]/\\&/g; s/^/"/; s/$/"/
8349 p
8350 b
8351 :more2
8352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8353 p
8354 g
8355 s/.\{148\}//
8356 t delim
8357 ' <conf$$subs.awk | sed '
8358 /^[^""]/{
8359   N
8360   s/\n//
8361 }
8362 ' >>$CONFIG_STATUS || ac_write_fail=1
8363 rm -f conf$$subs.awk
8364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8365 _ACAWK
8366 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8367   for (key in S) S_is_set[key] = 1
8368   FS = "\a"
8369
8370 }
8371 {
8372   line = $ 0
8373   nfields = split(line, field, "@")
8374   substed = 0
8375   len = length(field[1])
8376   for (i = 2; i < nfields; i++) {
8377     key = field[i]
8378     keylen = length(key)
8379     if (S_is_set[key]) {
8380       value = S[key]
8381       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8382       len += length(value) + length(field[++i])
8383       substed = 1
8384     } else
8385       len += 1 + keylen
8386   }
8387
8388   print line
8389 }
8390
8391 _ACAWK
8392 _ACEOF
8393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8395   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8396 else
8397   cat
8398 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8399   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8400 _ACEOF
8401
8402 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8403 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8404 # trailing colons and then remove the whole line if VPATH becomes empty
8405 # (actually we leave an empty line to preserve line numbers).
8406 if test "x$srcdir" = x.; then
8407   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8408 h
8409 s///
8410 s/^/:/
8411 s/[      ]*$/:/
8412 s/:\$(srcdir):/:/g
8413 s/:\${srcdir}:/:/g
8414 s/:@srcdir@:/:/g
8415 s/^:*//
8416 s/:*$//
8417 x
8418 s/\(=[   ]*\).*/\1/
8419 G
8420 s/\n//
8421 s/^[^=]*=[       ]*$//
8422 }'
8423 fi
8424
8425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8426 fi # test -n "$CONFIG_FILES"
8427
8428 # Set up the scripts for CONFIG_HEADERS section.
8429 # No need to generate them if there are no CONFIG_HEADERS.
8430 # This happens for instance with `./config.status Makefile'.
8431 if test -n "$CONFIG_HEADERS"; then
8432 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8433 BEGIN {
8434 _ACEOF
8435
8436 # Transform confdefs.h into an awk script `defines.awk', embedded as
8437 # here-document in config.status, that substitutes the proper values into
8438 # config.h.in to produce config.h.
8439
8440 # Create a delimiter string that does not exist in confdefs.h, to ease
8441 # handling of long lines.
8442 ac_delim='%!_!# '
8443 for ac_last_try in false false :; do
8444   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8445   if test -z "$ac_tt"; then
8446     break
8447   elif $ac_last_try; then
8448     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8449   else
8450     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8451   fi
8452 done
8453
8454 # For the awk script, D is an array of macro values keyed by name,
8455 # likewise P contains macro parameters if any.  Preserve backslash
8456 # newline sequences.
8457
8458 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8459 sed -n '
8460 s/.\{148\}/&'"$ac_delim"'/g
8461 t rset
8462 :rset
8463 s/^[     ]*#[    ]*define[       ][      ]*/ /
8464 t def
8465 d
8466 :def
8467 s/\\$//
8468 t bsnl
8469 s/["\\]/\\&/g
8470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8471 D["\1"]=" \3"/p
8472 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8473 d
8474 :bsnl
8475 s/["\\]/\\&/g
8476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8477 D["\1"]=" \3\\\\\\n"\\/p
8478 t cont
8479 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8480 t cont
8481 d
8482 :cont
8483 n
8484 s/.\{148\}/&'"$ac_delim"'/g
8485 t clear
8486 :clear
8487 s/\\$//
8488 t bsnlc
8489 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8490 d
8491 :bsnlc
8492 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8493 b cont
8494 ' <confdefs.h | sed '
8495 s/'"$ac_delim"'/"\\\
8496 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8497
8498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8499   for (key in D) D_is_set[key] = 1
8500   FS = "\a"
8501 }
8502 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8503   line = \$ 0
8504   split(line, arg, " ")
8505   if (arg[1] == "#") {
8506     defundef = arg[2]
8507     mac1 = arg[3]
8508   } else {
8509     defundef = substr(arg[1], 2)
8510     mac1 = arg[2]
8511   }
8512   split(mac1, mac2, "(") #)
8513   macro = mac2[1]
8514   prefix = substr(line, 1, index(line, defundef) - 1)
8515   if (D_is_set[macro]) {
8516     # Preserve the white space surrounding the "#".
8517     print prefix "define", macro P[macro] D[macro]
8518     next
8519   } else {
8520     # Replace #undef with comments.  This is necessary, for example,
8521     # in the case of _POSIX_SOURCE, which is predefined and required
8522     # on some systems where configure will not decide to define it.
8523     if (defundef == "undef") {
8524       print "/*", prefix defundef, macro, "*/"
8525       next
8526     }
8527   }
8528 }
8529 { print }
8530 _ACAWK
8531 _ACEOF
8532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8533   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8534 fi # test -n "$CONFIG_HEADERS"
8535
8536
8537 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8538 shift
8539 for ac_tag
8540 do
8541   case $ac_tag in
8542   :[FHLC]) ac_mode=$ac_tag; continue;;
8543   esac
8544   case $ac_mode$ac_tag in
8545   :[FHL]*:*);;
8546   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8547   :[FH]-) ac_tag=-:-;;
8548   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8549   esac
8550   ac_save_IFS=$IFS
8551   IFS=:
8552   set x $ac_tag
8553   IFS=$ac_save_IFS
8554   shift
8555   ac_file=$1
8556   shift
8557
8558   case $ac_mode in
8559   :L) ac_source=$1;;
8560   :[FH])
8561     ac_file_inputs=
8562     for ac_f
8563     do
8564       case $ac_f in
8565       -) ac_f="$ac_tmp/stdin";;
8566       *) # Look for the file first in the build tree, then in the source tree
8567          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8568          # because $ac_f cannot contain `:'.
8569          test -f "$ac_f" ||
8570            case $ac_f in
8571            [\\/$]*) false;;
8572            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8573            esac ||
8574            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8575       esac
8576       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8577       as_fn_append ac_file_inputs " '$ac_f'"
8578     done
8579
8580     # Let's still pretend it is `configure' which instantiates (i.e., don't
8581     # use $as_me), people would be surprised to read:
8582     #    /* config.h.  Generated by config.status.  */
8583     configure_input='Generated from '`
8584           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8585         `' by configure.'
8586     if test x"$ac_file" != x-; then
8587       configure_input="$ac_file.  $configure_input"
8588       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8589 $as_echo "$as_me: creating $ac_file" >&6;}
8590     fi
8591     # Neutralize special characters interpreted by sed in replacement strings.
8592     case $configure_input in #(
8593     *\&* | *\|* | *\\* )
8594        ac_sed_conf_input=`$as_echo "$configure_input" |
8595        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8596     *) ac_sed_conf_input=$configure_input;;
8597     esac
8598
8599     case $ac_tag in
8600     *:-:* | *:-) cat >"$ac_tmp/stdin" \
8601       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8602     esac
8603     ;;
8604   esac
8605
8606   ac_dir=`$as_dirname -- "$ac_file" ||
8607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8608          X"$ac_file" : 'X\(//\)[^/]' \| \
8609          X"$ac_file" : 'X\(//\)$' \| \
8610          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8611 $as_echo X"$ac_file" |
8612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8613             s//\1/
8614             q
8615           }
8616           /^X\(\/\/\)[^/].*/{
8617             s//\1/
8618             q
8619           }
8620           /^X\(\/\/\)$/{
8621             s//\1/
8622             q
8623           }
8624           /^X\(\/\).*/{
8625             s//\1/
8626             q
8627           }
8628           s/.*/./; q'`
8629   as_dir="$ac_dir"; as_fn_mkdir_p
8630   ac_builddir=.
8631
8632 case "$ac_dir" in
8633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8634 *)
8635   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8636   # A ".." for each directory in $ac_dir_suffix.
8637   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8638   case $ac_top_builddir_sub in
8639   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8640   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8641   esac ;;
8642 esac
8643 ac_abs_top_builddir=$ac_pwd
8644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8645 # for backward compatibility:
8646 ac_top_builddir=$ac_top_build_prefix
8647
8648 case $srcdir in
8649   .)  # We are building in place.
8650     ac_srcdir=.
8651     ac_top_srcdir=$ac_top_builddir_sub
8652     ac_abs_top_srcdir=$ac_pwd ;;
8653   [\\/]* | ?:[\\/]* )  # Absolute name.
8654     ac_srcdir=$srcdir$ac_dir_suffix;
8655     ac_top_srcdir=$srcdir
8656     ac_abs_top_srcdir=$srcdir ;;
8657   *) # Relative name.
8658     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8659     ac_top_srcdir=$ac_top_build_prefix$srcdir
8660     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8661 esac
8662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8663
8664
8665   case $ac_mode in
8666   :F)
8667   #
8668   # CONFIG_FILE
8669   #
8670
8671   case $INSTALL in
8672   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8673   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8674   esac
8675 _ACEOF
8676
8677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8678 # If the template does not know about datarootdir, expand it.
8679 # FIXME: This hack should be removed a few years after 2.60.
8680 ac_datarootdir_hack=; ac_datarootdir_seen=
8681 ac_sed_dataroot='
8682 /datarootdir/ {
8683   p
8684   q
8685 }
8686 /@datadir@/p
8687 /@docdir@/p
8688 /@infodir@/p
8689 /@localedir@/p
8690 /@mandir@/p'
8691 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8692 *datarootdir*) ac_datarootdir_seen=yes;;
8693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8695 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8696 _ACEOF
8697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8698   ac_datarootdir_hack='
8699   s&@datadir@&$datadir&g
8700   s&@docdir@&$docdir&g
8701   s&@infodir@&$infodir&g
8702   s&@localedir@&$localedir&g
8703   s&@mandir@&$mandir&g
8704   s&\\\${datarootdir}&$datarootdir&g' ;;
8705 esac
8706 _ACEOF
8707
8708 # Neutralize VPATH when `$srcdir' = `.'.
8709 # Shell code in configure.ac might set extrasub.
8710 # FIXME: do we really want to maintain this feature?
8711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8712 ac_sed_extra="$ac_vpsub
8713 $extrasub
8714 _ACEOF
8715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8716 :t
8717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8718 s|@configure_input@|$ac_sed_conf_input|;t t
8719 s&@top_builddir@&$ac_top_builddir_sub&;t t
8720 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8721 s&@srcdir@&$ac_srcdir&;t t
8722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8723 s&@top_srcdir@&$ac_top_srcdir&;t t
8724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8725 s&@builddir@&$ac_builddir&;t t
8726 s&@abs_builddir@&$ac_abs_builddir&;t t
8727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8728 s&@INSTALL@&$ac_INSTALL&;t t
8729 $ac_datarootdir_hack
8730 "
8731 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8732   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8733
8734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8735   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8736   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8737       "$ac_tmp/out"`; test -z "$ac_out"; } &&
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8739 which seems to be undefined.  Please make sure it is defined" >&5
8740 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8741 which seems to be undefined.  Please make sure it is defined" >&2;}
8742
8743   rm -f "$ac_tmp/stdin"
8744   case $ac_file in
8745   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8746   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8747   esac \
8748   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8749  ;;
8750   :H)
8751   #
8752   # CONFIG_HEADER
8753   #
8754   if test x"$ac_file" != x-; then
8755     {
8756       $as_echo "/* $configure_input  */" \
8757       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8758     } >"$ac_tmp/config.h" \
8759       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8760     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8761       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8762 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8763     else
8764       rm -f "$ac_file"
8765       mv "$ac_tmp/config.h" "$ac_file" \
8766         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8767     fi
8768   else
8769     $as_echo "/* $configure_input  */" \
8770       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8771       || as_fn_error $? "could not create -" "$LINENO" 5
8772   fi
8773  ;;
8774
8775   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8776 $as_echo "$as_me: executing $ac_file commands" >&6;}
8777  ;;
8778   esac
8779
8780
8781   case $ac_file$ac_mode in
8782     "./atconfig":C) cat >./atconfig <<ATEOF
8783 # Configurable variable values for building test suites.
8784 # Generated by $0.
8785 # Copyright (C) 2012 Free Software Foundation, Inc.
8786
8787 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
8788 at_testdir='.'
8789 abs_builddir='$ac_abs_builddir'
8790 at_srcdir='$ac_srcdir'
8791 abs_srcdir='$ac_abs_srcdir'
8792 at_top_srcdir='$ac_top_srcdir'
8793 abs_top_srcdir='$ac_abs_top_srcdir'
8794 at_top_build_prefix='$ac_top_build_prefix'
8795 abs_top_builddir='$ac_abs_top_builddir'
8796
8797 # Backward compatibility with Autotest <= 2.59b:
8798 at_top_builddir=\$at_top_build_prefix
8799
8800 AUTOTEST_PATH='.'
8801
8802 SHELL=\${CONFIG_SHELL-'$SHELL'}
8803 ATEOF
8804  ;;
8805
8806   esac
8807 done # for ac_tag
8808
8809
8810 as_fn_exit 0
8811 _ACEOF
8812 ac_clean_files=$ac_clean_files_save
8813
8814 test $ac_write_fail = 0 ||
8815   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8816
8817
8818 # configure is writing to config.log, and then calls config.status.
8819 # config.status does its own redirection, appending to config.log.
8820 # Unfortunately, on DOS this fails, as config.log is still kept open
8821 # by configure, so config.status won't be able to write to it; its
8822 # output is simply discarded.  So we exec the FD to /dev/null,
8823 # effectively closing config.log, so it can be properly (re)opened and
8824 # appended to by config.status.  When coming back to configure, we
8825 # need to make the FD available again.
8826 if test "$no_create" != yes; then
8827   ac_cs_success=:
8828   ac_config_status_args=
8829   test "$silent" = yes &&
8830     ac_config_status_args="$ac_config_status_args --quiet"
8831   exec 5>/dev/null
8832   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8833   exec 5>>config.log
8834   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8835   # would make configure fail if this is the last instruction.
8836   $ac_cs_success || as_fn_exit 1
8837 fi
8838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8840 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8841 fi
8842