ares test
[scm/test.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU Hello 2.8.
4 #
5 # Report bugs to <bug-hello@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-hello@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='GNU Hello'
562 PACKAGE_TARNAME='hello'
563 PACKAGE_VERSION='2.8'
564 PACKAGE_STRING='GNU Hello 2.8'
565 PACKAGE_BUGREPORT='bug-hello@gnu.org'
566 PACKAGE_URL='http://www.gnu.org/software/hello/'
567
568 ac_unique_file="src/hello.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_header_list=
606 ac_func_list=
607 gl_getopt_required=POSIX
608 gl_getopt_required=POSIX
609 gt_needs=
610 ac_subst_vars='gltests_LTLIBOBJS
611 gltests_LIBOBJS
612 gl_LTLIBOBJS
613 gl_LIBOBJS
614 CONFIG_INCLUDE
615 am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 POSUB
620 INTLLIBS
621 LTLIBICONV
622 LIBICONV
623 INTL_MACOSX_LIBS
624 XGETTEXT_EXTRA_OPTIONS
625 MSGMERGE
626 XGETTEXT_015
627 XGETTEXT
628 GMSGFMT_015
629 MSGFMT_015
630 GMSGFMT
631 MSGFMT
632 GETTEXT_MACRO_VERSION
633 USE_NLS
634 HELP2MAN
635 LIBHELLO_LTLIBDEPS
636 LIBHELLO_LIBDEPS
637 gltests_WITNESS
638 REPLACE_TOWLOWER
639 REPLACE_ISWCNTRL
640 HAVE_WCTYPE_H
641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
642 NEXT_WCTYPE_H
643 HAVE_ISWCNTRL
644 REPLACE_ISWBLANK
645 HAVE_WCTRANS_T
646 HAVE_WCTYPE_T
647 HAVE_ISWBLANK
648 GNULIB_TOWCTRANS
649 GNULIB_WCTRANS
650 GNULIB_ISWCTYPE
651 GNULIB_WCTYPE
652 GNULIB_ISWBLANK
653 HAVE_WINT_T
654 HAVE_FEATURES_H
655 HAVE_WCHAR_H
656 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_WCHAR_H
658 HAVE_UNISTD_H
659 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
660 NEXT_UNISTD_H
661 NEXT_AS_FIRST_DIRECTIVE_STRING_H
662 NEXT_STRING_H
663 HAVE_WINSOCK2_H
664 UNDEFINE_STRTOK_R
665 REPLACE_STRTOK_R
666 REPLACE_STRSIGNAL
667 REPLACE_STRNLEN
668 REPLACE_STRNDUP
669 REPLACE_STRNCAT
670 REPLACE_STRERROR_R
671 REPLACE_STRERROR
672 REPLACE_STRCHRNUL
673 REPLACE_STRCASESTR
674 REPLACE_STRSTR
675 REPLACE_STRDUP
676 REPLACE_STPNCPY
677 REPLACE_MEMMEM
678 REPLACE_MEMCHR
679 HAVE_STRVERSCMP
680 HAVE_DECL_STRSIGNAL
681 HAVE_DECL_STRERROR_R
682 HAVE_DECL_STRTOK_R
683 HAVE_STRCASESTR
684 HAVE_STRSEP
685 HAVE_STRPBRK
686 HAVE_DECL_STRNLEN
687 HAVE_DECL_STRNDUP
688 HAVE_DECL_STRDUP
689 HAVE_STRCHRNUL
690 HAVE_STPNCPY
691 HAVE_STPCPY
692 HAVE_RAWMEMCHR
693 HAVE_DECL_MEMRCHR
694 HAVE_MEMPCPY
695 HAVE_DECL_MEMMEM
696 HAVE_MEMCHR
697 HAVE_FFSLL
698 HAVE_FFSL
699 HAVE_MBSLEN
700 GNULIB_STRVERSCMP
701 GNULIB_STRSIGNAL
702 GNULIB_STRERROR_R
703 GNULIB_STRERROR
704 GNULIB_MBSTOK_R
705 GNULIB_MBSSEP
706 GNULIB_MBSSPN
707 GNULIB_MBSPBRK
708 GNULIB_MBSCSPN
709 GNULIB_MBSCASESTR
710 GNULIB_MBSPCASECMP
711 GNULIB_MBSNCASECMP
712 GNULIB_MBSCASECMP
713 GNULIB_MBSSTR
714 GNULIB_MBSRCHR
715 GNULIB_MBSCHR
716 GNULIB_MBSNLEN
717 GNULIB_MBSLEN
718 GNULIB_STRTOK_R
719 GNULIB_STRCASESTR
720 GNULIB_STRSTR
721 GNULIB_STRSEP
722 GNULIB_STRPBRK
723 GNULIB_STRNLEN
724 GNULIB_STRNDUP
725 GNULIB_STRNCAT
726 GNULIB_STRDUP
727 GNULIB_STRCHRNUL
728 GNULIB_STPNCPY
729 GNULIB_STPCPY
730 GNULIB_RAWMEMCHR
731 GNULIB_MEMRCHR
732 GNULIB_MEMPCPY
733 GNULIB_MEMMEM
734 GNULIB_MEMCHR
735 GNULIB_FFSLL
736 GNULIB_FFSL
737 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
738 NEXT_STDLIB_H
739 REPLACE_WCTOMB
740 REPLACE_UNSETENV
741 REPLACE_STRTOD
742 REPLACE_SETENV
743 REPLACE_REALPATH
744 REPLACE_REALLOC
745 REPLACE_RANDOM_R
746 REPLACE_PUTENV
747 REPLACE_PTSNAME_R
748 REPLACE_MKSTEMP
749 REPLACE_MBTOWC
750 REPLACE_MALLOC
751 REPLACE_CANONICALIZE_FILE_NAME
752 REPLACE_CALLOC
753 HAVE_DECL_UNSETENV
754 HAVE_UNLOCKPT
755 HAVE_SYS_LOADAVG_H
756 HAVE_STRUCT_RANDOM_DATA
757 HAVE_STRTOULL
758 HAVE_STRTOLL
759 HAVE_STRTOD
760 HAVE_DECL_SETENV
761 HAVE_SETENV
762 HAVE_RPMATCH
763 HAVE_REALPATH
764 HAVE_RANDOM_R
765 HAVE_RANDOM_H
766 HAVE_RANDOM
767 HAVE_PTSNAME_R
768 HAVE_PTSNAME
769 HAVE_POSIX_OPENPT
770 HAVE_MKSTEMPS
771 HAVE_MKSTEMP
772 HAVE_MKOSTEMPS
773 HAVE_MKOSTEMP
774 HAVE_MKDTEMP
775 HAVE_GRANTPT
776 HAVE_GETSUBOPT
777 HAVE_DECL_GETLOADAVG
778 HAVE_CANONICALIZE_FILE_NAME
779 HAVE_ATOLL
780 HAVE__EXIT
781 GNULIB_WCTOMB
782 GNULIB_UNSETENV
783 GNULIB_UNLOCKPT
784 GNULIB_SYSTEM_POSIX
785 GNULIB_STRTOULL
786 GNULIB_STRTOLL
787 GNULIB_STRTOD
788 GNULIB_SETENV
789 GNULIB_RPMATCH
790 GNULIB_REALPATH
791 GNULIB_REALLOC_POSIX
792 GNULIB_RANDOM_R
793 GNULIB_RANDOM
794 GNULIB_PUTENV
795 GNULIB_PTSNAME_R
796 GNULIB_PTSNAME
797 GNULIB_POSIX_OPENPT
798 GNULIB_MKSTEMPS
799 GNULIB_MKSTEMP
800 GNULIB_MKOSTEMPS
801 GNULIB_MKOSTEMP
802 GNULIB_MKDTEMP
803 GNULIB_MBTOWC
804 GNULIB_MALLOC_POSIX
805 GNULIB_GRANTPT
806 GNULIB_GETSUBOPT
807 GNULIB_GETLOADAVG
808 GNULIB_CANONICALIZE_FILE_NAME
809 GNULIB_CALLOC_POSIX
810 GNULIB_ATOLL
811 GNULIB__EXIT
812 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
813 NEXT_STDDEF_H
814 GL_GENERATE_STDDEF_H_FALSE
815 GL_GENERATE_STDDEF_H_TRUE
816 STDDEF_H
817 HAVE_WCHAR_T
818 REPLACE_NULL
819 HAVE__BOOL
820 GL_GENERATE_STDBOOL_H_FALSE
821 GL_GENERATE_STDBOOL_H_TRUE
822 STDBOOL_H
823 HAVE_MSVC_INVALID_PARAMETER_HANDLER
824 LOCALE_FR_UTF8
825 LOCALE_ZH_CN
826 LOCALE_JA
827 REPLACE_WCSWIDTH
828 REPLACE_WCWIDTH
829 REPLACE_WCSNRTOMBS
830 REPLACE_WCSRTOMBS
831 REPLACE_WCRTOMB
832 REPLACE_MBSNRTOWCS
833 REPLACE_MBSRTOWCS
834 REPLACE_MBRLEN
835 REPLACE_MBRTOWC
836 REPLACE_MBSINIT
837 REPLACE_WCTOB
838 REPLACE_BTOWC
839 REPLACE_MBSTATE_T
840 HAVE_DECL_WCWIDTH
841 HAVE_DECL_WCTOB
842 HAVE_WCSWIDTH
843 HAVE_WCSTOK
844 HAVE_WCSSTR
845 HAVE_WCSPBRK
846 HAVE_WCSSPN
847 HAVE_WCSCSPN
848 HAVE_WCSRCHR
849 HAVE_WCSCHR
850 HAVE_WCSDUP
851 HAVE_WCSXFRM
852 HAVE_WCSCOLL
853 HAVE_WCSNCASECMP
854 HAVE_WCSCASECMP
855 HAVE_WCSNCMP
856 HAVE_WCSCMP
857 HAVE_WCSNCAT
858 HAVE_WCSCAT
859 HAVE_WCPNCPY
860 HAVE_WCSNCPY
861 HAVE_WCPCPY
862 HAVE_WCSCPY
863 HAVE_WCSNLEN
864 HAVE_WCSLEN
865 HAVE_WMEMSET
866 HAVE_WMEMMOVE
867 HAVE_WMEMCPY
868 HAVE_WMEMCMP
869 HAVE_WMEMCHR
870 HAVE_WCSNRTOMBS
871 HAVE_WCSRTOMBS
872 HAVE_WCRTOMB
873 HAVE_MBSNRTOWCS
874 HAVE_MBSRTOWCS
875 HAVE_MBRLEN
876 HAVE_MBRTOWC
877 HAVE_MBSINIT
878 HAVE_BTOWC
879 GNULIB_WCSWIDTH
880 GNULIB_WCSTOK
881 GNULIB_WCSSTR
882 GNULIB_WCSPBRK
883 GNULIB_WCSSPN
884 GNULIB_WCSCSPN
885 GNULIB_WCSRCHR
886 GNULIB_WCSCHR
887 GNULIB_WCSDUP
888 GNULIB_WCSXFRM
889 GNULIB_WCSCOLL
890 GNULIB_WCSNCASECMP
891 GNULIB_WCSCASECMP
892 GNULIB_WCSNCMP
893 GNULIB_WCSCMP
894 GNULIB_WCSNCAT
895 GNULIB_WCSCAT
896 GNULIB_WCPNCPY
897 GNULIB_WCSNCPY
898 GNULIB_WCPCPY
899 GNULIB_WCSCPY
900 GNULIB_WCSNLEN
901 GNULIB_WCSLEN
902 GNULIB_WMEMSET
903 GNULIB_WMEMMOVE
904 GNULIB_WMEMCPY
905 GNULIB_WMEMCMP
906 GNULIB_WMEMCHR
907 GNULIB_WCWIDTH
908 GNULIB_WCSNRTOMBS
909 GNULIB_WCSRTOMBS
910 GNULIB_WCRTOMB
911 GNULIB_MBSNRTOWCS
912 GNULIB_MBSRTOWCS
913 GNULIB_MBRLEN
914 GNULIB_MBRTOWC
915 GNULIB_MBSINIT
916 GNULIB_WCTOB
917 GNULIB_BTOWC
918 LOCALCHARSET_TESTS_ENVIRONMENT
919 GLIBC21
920 LTLIBINTL
921 LIBINTL
922 GNULIB_GL_UNISTD_H_GETOPT
923 GETOPT_H
924 HAVE_GETOPT_H
925 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
926 NEXT_GETOPT_H
927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
928 UNISTD_H_HAVE_WINSOCK2_H
929 REPLACE_WRITE
930 REPLACE_USLEEP
931 REPLACE_UNLINKAT
932 REPLACE_UNLINK
933 REPLACE_TTYNAME_R
934 REPLACE_SYMLINK
935 REPLACE_SLEEP
936 REPLACE_RMDIR
937 REPLACE_READLINK
938 REPLACE_READ
939 REPLACE_PWRITE
940 REPLACE_PREAD
941 REPLACE_LSEEK
942 REPLACE_LINKAT
943 REPLACE_LINK
944 REPLACE_LCHOWN
945 REPLACE_ISATTY
946 REPLACE_GETPAGESIZE
947 REPLACE_GETGROUPS
948 REPLACE_GETLOGIN_R
949 REPLACE_GETDOMAINNAME
950 REPLACE_GETCWD
951 REPLACE_FCHOWNAT
952 REPLACE_DUP2
953 REPLACE_DUP
954 REPLACE_CLOSE
955 REPLACE_CHOWN
956 HAVE_SYS_PARAM_H
957 HAVE_OS_H
958 HAVE_DECL_TTYNAME_R
959 HAVE_DECL_SETHOSTNAME
960 HAVE_DECL_GETUSERSHELL
961 HAVE_DECL_GETPAGESIZE
962 HAVE_DECL_GETLOGIN_R
963 HAVE_DECL_GETDOMAINNAME
964 HAVE_DECL_FDATASYNC
965 HAVE_DECL_FCHDIR
966 HAVE_DECL_ENVIRON
967 HAVE_USLEEP
968 HAVE_UNLINKAT
969 HAVE_SYMLINKAT
970 HAVE_SYMLINK
971 HAVE_SLEEP
972 HAVE_SETHOSTNAME
973 HAVE_READLINKAT
974 HAVE_READLINK
975 HAVE_PWRITE
976 HAVE_PREAD
977 HAVE_PIPE2
978 HAVE_PIPE
979 HAVE_LINKAT
980 HAVE_LINK
981 HAVE_LCHOWN
982 HAVE_GROUP_MEMBER
983 HAVE_GETPAGESIZE
984 HAVE_GETLOGIN
985 HAVE_GETHOSTNAME
986 HAVE_GETGROUPS
987 HAVE_GETDTABLESIZE
988 HAVE_FTRUNCATE
989 HAVE_FSYNC
990 HAVE_FDATASYNC
991 HAVE_FCHOWNAT
992 HAVE_FCHDIR
993 HAVE_FACCESSAT
994 HAVE_EUIDACCESS
995 HAVE_DUP3
996 HAVE_DUP2
997 HAVE_CHOWN
998 GNULIB_WRITE
999 GNULIB_USLEEP
1000 GNULIB_UNLINKAT
1001 GNULIB_UNLINK
1002 GNULIB_UNISTD_H_SIGPIPE
1003 GNULIB_UNISTD_H_NONBLOCKING
1004 GNULIB_TTYNAME_R
1005 GNULIB_SYMLINKAT
1006 GNULIB_SYMLINK
1007 GNULIB_SLEEP
1008 GNULIB_SETHOSTNAME
1009 GNULIB_RMDIR
1010 GNULIB_READLINKAT
1011 GNULIB_READLINK
1012 GNULIB_READ
1013 GNULIB_PWRITE
1014 GNULIB_PREAD
1015 GNULIB_PIPE2
1016 GNULIB_PIPE
1017 GNULIB_LSEEK
1018 GNULIB_LINKAT
1019 GNULIB_LINK
1020 GNULIB_LCHOWN
1021 GNULIB_ISATTY
1022 GNULIB_GROUP_MEMBER
1023 GNULIB_GETUSERSHELL
1024 GNULIB_GETPAGESIZE
1025 GNULIB_GETLOGIN_R
1026 GNULIB_GETLOGIN
1027 GNULIB_GETHOSTNAME
1028 GNULIB_GETGROUPS
1029 GNULIB_GETDTABLESIZE
1030 GNULIB_GETDOMAINNAME
1031 GNULIB_GETCWD
1032 GNULIB_FTRUNCATE
1033 GNULIB_FSYNC
1034 GNULIB_FDATASYNC
1035 GNULIB_FCHOWNAT
1036 GNULIB_FCHDIR
1037 GNULIB_FACCESSAT
1038 GNULIB_EUIDACCESS
1039 GNULIB_ENVIRON
1040 GNULIB_DUP3
1041 GNULIB_DUP2
1042 GNULIB_DUP
1043 GNULIB_CLOSE
1044 GNULIB_CHOWN
1045 GNULIB_CHDIR
1046 EOVERFLOW_VALUE
1047 EOVERFLOW_HIDDEN
1048 ENOLINK_VALUE
1049 ENOLINK_HIDDEN
1050 EMULTIHOP_VALUE
1051 EMULTIHOP_HIDDEN
1052 GL_GENERATE_ERRNO_H_FALSE
1053 GL_GENERATE_ERRNO_H_TRUE
1054 ERRNO_H
1055 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1056 NEXT_ERRNO_H
1057 PRAGMA_COLUMNS
1058 PRAGMA_SYSTEM_HEADER
1059 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1060 INCLUDE_NEXT
1061 pkglibexecdir
1062 lispdir
1063 GL_COND_LIBTOOL_FALSE
1064 GL_COND_LIBTOOL_TRUE
1065 host_os
1066 host_vendor
1067 host_cpu
1068 host
1069 build_os
1070 build_vendor
1071 build_cpu
1072 build
1073 RANLIB
1074 ARFLAGS
1075 AR
1076 EGREP
1077 GREP
1078 CPP
1079 am__fastdepCC_FALSE
1080 am__fastdepCC_TRUE
1081 CCDEPMODE
1082 am__nodep
1083 AMDEPBACKSLASH
1084 AMDEP_FALSE
1085 AMDEP_TRUE
1086 am__quote
1087 am__include
1088 DEPDIR
1089 OBJEXT
1090 EXEEXT
1091 ac_ct_CC
1092 CPPFLAGS
1093 LDFLAGS
1094 CFLAGS
1095 CC
1096 am__untar
1097 am__tar
1098 AMTAR
1099 am__leading_dot
1100 SET_MAKE
1101 AWK
1102 mkdir_p
1103 MKDIR_P
1104 INSTALL_STRIP_PROGRAM
1105 STRIP
1106 install_sh
1107 MAKEINFO
1108 AUTOHEADER
1109 AUTOMAKE
1110 AUTOCONF
1111 ACLOCAL
1112 VERSION
1113 PACKAGE
1114 CYGPATH_W
1115 am__isrc
1116 INSTALL_DATA
1117 INSTALL_SCRIPT
1118 INSTALL_PROGRAM
1119 target_alias
1120 host_alias
1121 build_alias
1122 LIBS
1123 ECHO_T
1124 ECHO_N
1125 ECHO_C
1126 DEFS
1127 mandir
1128 localedir
1129 libdir
1130 psdir
1131 pdfdir
1132 dvidir
1133 htmldir
1134 infodir
1135 docdir
1136 oldincludedir
1137 includedir
1138 localstatedir
1139 sharedstatedir
1140 sysconfdir
1141 datadir
1142 datarootdir
1143 libexecdir
1144 sbindir
1145 bindir
1146 program_transform_name
1147 prefix
1148 exec_prefix
1149 PACKAGE_URL
1150 PACKAGE_BUGREPORT
1151 PACKAGE_STRING
1152 PACKAGE_VERSION
1153 PACKAGE_TARNAME
1154 PACKAGE_NAME
1155 PATH_SEPARATOR
1156 SHELL'
1157 ac_subst_files=''
1158 ac_user_opts='
1159 enable_option_checking
1160 enable_dependency_tracking
1161 enable_nls
1162 with_gnu_ld
1163 enable_rpath
1164 with_libiconv_prefix
1165 with_libintl_prefix
1166 '
1167       ac_precious_vars='build_alias
1168 host_alias
1169 target_alias
1170 CC
1171 CFLAGS
1172 LDFLAGS
1173 LIBS
1174 CPPFLAGS
1175 CPP'
1176
1177
1178 # Initialize some variables set by options.
1179 ac_init_help=
1180 ac_init_version=false
1181 ac_unrecognized_opts=
1182 ac_unrecognized_sep=
1183 # The variables have the same names as the options, with
1184 # dashes changed to underlines.
1185 cache_file=/dev/null
1186 exec_prefix=NONE
1187 no_create=
1188 no_recursion=
1189 prefix=NONE
1190 program_prefix=NONE
1191 program_suffix=NONE
1192 program_transform_name=s,x,x,
1193 silent=
1194 site=
1195 srcdir=
1196 verbose=
1197 x_includes=NONE
1198 x_libraries=NONE
1199
1200 # Installation directory options.
1201 # These are left unexpanded so users can "make install exec_prefix=/foo"
1202 # and all the variables that are supposed to be based on exec_prefix
1203 # by default will actually change.
1204 # Use braces instead of parens because sh, perl, etc. also accept them.
1205 # (The list follows the same order as the GNU Coding Standards.)
1206 bindir='${exec_prefix}/bin'
1207 sbindir='${exec_prefix}/sbin'
1208 libexecdir='${exec_prefix}/libexec'
1209 datarootdir='${prefix}/share'
1210 datadir='${datarootdir}'
1211 sysconfdir='${prefix}/etc'
1212 sharedstatedir='${prefix}/com'
1213 localstatedir='${prefix}/var'
1214 includedir='${prefix}/include'
1215 oldincludedir='/usr/include'
1216 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217 infodir='${datarootdir}/info'
1218 htmldir='${docdir}'
1219 dvidir='${docdir}'
1220 pdfdir='${docdir}'
1221 psdir='${docdir}'
1222 libdir='${exec_prefix}/lib'
1223 localedir='${datarootdir}/locale'
1224 mandir='${datarootdir}/man'
1225
1226 ac_prev=
1227 ac_dashdash=
1228 for ac_option
1229 do
1230   # If the previous option needs an argument, assign it.
1231   if test -n "$ac_prev"; then
1232     eval $ac_prev=\$ac_option
1233     ac_prev=
1234     continue
1235   fi
1236
1237   case $ac_option in
1238   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1239   *=)   ac_optarg= ;;
1240   *)    ac_optarg=yes ;;
1241   esac
1242
1243   # Accept the important Cygnus configure options, so we can diagnose typos.
1244
1245   case $ac_dashdash$ac_option in
1246   --)
1247     ac_dashdash=yes ;;
1248
1249   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250     ac_prev=bindir ;;
1251   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252     bindir=$ac_optarg ;;
1253
1254   -build | --build | --buil | --bui | --bu)
1255     ac_prev=build_alias ;;
1256   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257     build_alias=$ac_optarg ;;
1258
1259   -cache-file | --cache-file | --cache-fil | --cache-fi \
1260   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261     ac_prev=cache_file ;;
1262   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264     cache_file=$ac_optarg ;;
1265
1266   --config-cache | -C)
1267     cache_file=config.cache ;;
1268
1269   -datadir | --datadir | --datadi | --datad)
1270     ac_prev=datadir ;;
1271   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272     datadir=$ac_optarg ;;
1273
1274   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275   | --dataroo | --dataro | --datar)
1276     ac_prev=datarootdir ;;
1277   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279     datarootdir=$ac_optarg ;;
1280
1281   -disable-* | --disable-*)
1282     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285       as_fn_error $? "invalid feature name: $ac_useropt"
1286     ac_useropt_orig=$ac_useropt
1287     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288     case $ac_user_opts in
1289       *"
1290 "enable_$ac_useropt"
1291 "*) ;;
1292       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293          ac_unrecognized_sep=', ';;
1294     esac
1295     eval enable_$ac_useropt=no ;;
1296
1297   -docdir | --docdir | --docdi | --doc | --do)
1298     ac_prev=docdir ;;
1299   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300     docdir=$ac_optarg ;;
1301
1302   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1303     ac_prev=dvidir ;;
1304   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305     dvidir=$ac_optarg ;;
1306
1307   -enable-* | --enable-*)
1308     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311       as_fn_error $? "invalid feature name: $ac_useropt"
1312     ac_useropt_orig=$ac_useropt
1313     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314     case $ac_user_opts in
1315       *"
1316 "enable_$ac_useropt"
1317 "*) ;;
1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319          ac_unrecognized_sep=', ';;
1320     esac
1321     eval enable_$ac_useropt=\$ac_optarg ;;
1322
1323   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325   | --exec | --exe | --ex)
1326     ac_prev=exec_prefix ;;
1327   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329   | --exec=* | --exe=* | --ex=*)
1330     exec_prefix=$ac_optarg ;;
1331
1332   -gas | --gas | --ga | --g)
1333     # Obsolete; use --with-gas.
1334     with_gas=yes ;;
1335
1336   -help | --help | --hel | --he | -h)
1337     ac_init_help=long ;;
1338   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339     ac_init_help=recursive ;;
1340   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341     ac_init_help=short ;;
1342
1343   -host | --host | --hos | --ho)
1344     ac_prev=host_alias ;;
1345   -host=* | --host=* | --hos=* | --ho=*)
1346     host_alias=$ac_optarg ;;
1347
1348   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1349     ac_prev=htmldir ;;
1350   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1351   | --ht=*)
1352     htmldir=$ac_optarg ;;
1353
1354   -includedir | --includedir | --includedi | --included | --include \
1355   | --includ | --inclu | --incl | --inc)
1356     ac_prev=includedir ;;
1357   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358   | --includ=* | --inclu=* | --incl=* | --inc=*)
1359     includedir=$ac_optarg ;;
1360
1361   -infodir | --infodir | --infodi | --infod | --info | --inf)
1362     ac_prev=infodir ;;
1363   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364     infodir=$ac_optarg ;;
1365
1366   -libdir | --libdir | --libdi | --libd)
1367     ac_prev=libdir ;;
1368   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369     libdir=$ac_optarg ;;
1370
1371   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372   | --libexe | --libex | --libe)
1373     ac_prev=libexecdir ;;
1374   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375   | --libexe=* | --libex=* | --libe=*)
1376     libexecdir=$ac_optarg ;;
1377
1378   -localedir | --localedir | --localedi | --localed | --locale)
1379     ac_prev=localedir ;;
1380   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381     localedir=$ac_optarg ;;
1382
1383   -localstatedir | --localstatedir | --localstatedi | --localstated \
1384   | --localstate | --localstat | --localsta | --localst | --locals)
1385     ac_prev=localstatedir ;;
1386   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388     localstatedir=$ac_optarg ;;
1389
1390   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1391     ac_prev=mandir ;;
1392   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393     mandir=$ac_optarg ;;
1394
1395   -nfp | --nfp | --nf)
1396     # Obsolete; use --without-fp.
1397     with_fp=no ;;
1398
1399   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400   | --no-cr | --no-c | -n)
1401     no_create=yes ;;
1402
1403   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1405     no_recursion=yes ;;
1406
1407   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409   | --oldin | --oldi | --old | --ol | --o)
1410     ac_prev=oldincludedir ;;
1411   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414     oldincludedir=$ac_optarg ;;
1415
1416   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1417     ac_prev=prefix ;;
1418   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419     prefix=$ac_optarg ;;
1420
1421   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422   | --program-pre | --program-pr | --program-p)
1423     ac_prev=program_prefix ;;
1424   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426     program_prefix=$ac_optarg ;;
1427
1428   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429   | --program-suf | --program-su | --program-s)
1430     ac_prev=program_suffix ;;
1431   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433     program_suffix=$ac_optarg ;;
1434
1435   -program-transform-name | --program-transform-name \
1436   | --program-transform-nam | --program-transform-na \
1437   | --program-transform-n | --program-transform- \
1438   | --program-transform | --program-transfor \
1439   | --program-transfo | --program-transf \
1440   | --program-trans | --program-tran \
1441   | --progr-tra | --program-tr | --program-t)
1442     ac_prev=program_transform_name ;;
1443   -program-transform-name=* | --program-transform-name=* \
1444   | --program-transform-nam=* | --program-transform-na=* \
1445   | --program-transform-n=* | --program-transform-=* \
1446   | --program-transform=* | --program-transfor=* \
1447   | --program-transfo=* | --program-transf=* \
1448   | --program-trans=* | --program-tran=* \
1449   | --progr-tra=* | --program-tr=* | --program-t=*)
1450     program_transform_name=$ac_optarg ;;
1451
1452   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1453     ac_prev=pdfdir ;;
1454   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455     pdfdir=$ac_optarg ;;
1456
1457   -psdir | --psdir | --psdi | --psd | --ps)
1458     ac_prev=psdir ;;
1459   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1460     psdir=$ac_optarg ;;
1461
1462   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463   | -silent | --silent | --silen | --sile | --sil)
1464     silent=yes ;;
1465
1466   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1467     ac_prev=sbindir ;;
1468   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1469   | --sbi=* | --sb=*)
1470     sbindir=$ac_optarg ;;
1471
1472   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474   | --sharedst | --shareds | --shared | --share | --shar \
1475   | --sha | --sh)
1476     ac_prev=sharedstatedir ;;
1477   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1480   | --sha=* | --sh=*)
1481     sharedstatedir=$ac_optarg ;;
1482
1483   -site | --site | --sit)
1484     ac_prev=site ;;
1485   -site=* | --site=* | --sit=*)
1486     site=$ac_optarg ;;
1487
1488   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1489     ac_prev=srcdir ;;
1490   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491     srcdir=$ac_optarg ;;
1492
1493   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494   | --syscon | --sysco | --sysc | --sys | --sy)
1495     ac_prev=sysconfdir ;;
1496   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498     sysconfdir=$ac_optarg ;;
1499
1500   -target | --target | --targe | --targ | --tar | --ta | --t)
1501     ac_prev=target_alias ;;
1502   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503     target_alias=$ac_optarg ;;
1504
1505   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1506     verbose=yes ;;
1507
1508   -version | --version | --versio | --versi | --vers | -V)
1509     ac_init_version=: ;;
1510
1511   -with-* | --with-*)
1512     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513     # Reject names that are not valid shell variable names.
1514     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1515       as_fn_error $? "invalid package name: $ac_useropt"
1516     ac_useropt_orig=$ac_useropt
1517     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518     case $ac_user_opts in
1519       *"
1520 "with_$ac_useropt"
1521 "*) ;;
1522       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523          ac_unrecognized_sep=', ';;
1524     esac
1525     eval with_$ac_useropt=\$ac_optarg ;;
1526
1527   -without-* | --without-*)
1528     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529     # Reject names that are not valid shell variable names.
1530     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531       as_fn_error $? "invalid package name: $ac_useropt"
1532     ac_useropt_orig=$ac_useropt
1533     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534     case $ac_user_opts in
1535       *"
1536 "with_$ac_useropt"
1537 "*) ;;
1538       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539          ac_unrecognized_sep=', ';;
1540     esac
1541     eval with_$ac_useropt=no ;;
1542
1543   --x)
1544     # Obsolete; use --with-x.
1545     with_x=yes ;;
1546
1547   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548   | --x-incl | --x-inc | --x-in | --x-i)
1549     ac_prev=x_includes ;;
1550   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552     x_includes=$ac_optarg ;;
1553
1554   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556     ac_prev=x_libraries ;;
1557   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559     x_libraries=$ac_optarg ;;
1560
1561   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562 Try \`$0 --help' for more information"
1563     ;;
1564
1565   *=*)
1566     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567     # Reject names that are not valid shell variable names.
1568     case $ac_envvar in #(
1569       '' | [0-9]* | *[!_$as_cr_alnum]* )
1570       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1571     esac
1572     eval $ac_envvar=\$ac_optarg
1573     export $ac_envvar ;;
1574
1575   *)
1576     # FIXME: should be removed in autoconf 3.0.
1577     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1580     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1581     ;;
1582
1583   esac
1584 done
1585
1586 if test -n "$ac_prev"; then
1587   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1588   as_fn_error $? "missing argument to $ac_option"
1589 fi
1590
1591 if test -n "$ac_unrecognized_opts"; then
1592   case $enable_option_checking in
1593     no) ;;
1594     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1595     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1596   esac
1597 fi
1598
1599 # Check all directory arguments for consistency.
1600 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601                 datadir sysconfdir sharedstatedir localstatedir includedir \
1602                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603                 libdir localedir mandir
1604 do
1605   eval ac_val=\$$ac_var
1606   # Remove trailing slashes.
1607   case $ac_val in
1608     */ )
1609       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610       eval $ac_var=\$ac_val;;
1611   esac
1612   # Be sure to have absolute directory names.
1613   case $ac_val in
1614     [\\/$]* | ?:[\\/]* )  continue;;
1615     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1616   esac
1617   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1618 done
1619
1620 # There might be people who depend on the old broken behavior: `$host'
1621 # used to hold the argument of --host etc.
1622 # FIXME: To remove some day.
1623 build=$build_alias
1624 host=$host_alias
1625 target=$target_alias
1626
1627 # FIXME: To remove some day.
1628 if test "x$host_alias" != x; then
1629   if test "x$build_alias" = x; then
1630     cross_compiling=maybe
1631     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632     If a cross compiler is detected then cross compile mode will be used" >&2
1633   elif test "x$build_alias" != "x$host_alias"; then
1634     cross_compiling=yes
1635   fi
1636 fi
1637
1638 ac_tool_prefix=
1639 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1640
1641 test "$silent" = yes && exec 6>/dev/null
1642
1643
1644 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645 ac_ls_di=`ls -di .` &&
1646 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1647   as_fn_error $? "working directory cannot be determined"
1648 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1649   as_fn_error $? "pwd does not report name of working directory"
1650
1651
1652 # Find the source files, if location was not specified.
1653 if test -z "$srcdir"; then
1654   ac_srcdir_defaulted=yes
1655   # Try the directory containing this script, then the parent directory.
1656   ac_confdir=`$as_dirname -- "$as_myself" ||
1657 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658          X"$as_myself" : 'X\(//\)[^/]' \| \
1659          X"$as_myself" : 'X\(//\)$' \| \
1660          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661 $as_echo X"$as_myself" |
1662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1663             s//\1/
1664             q
1665           }
1666           /^X\(\/\/\)[^/].*/{
1667             s//\1/
1668             q
1669           }
1670           /^X\(\/\/\)$/{
1671             s//\1/
1672             q
1673           }
1674           /^X\(\/\).*/{
1675             s//\1/
1676             q
1677           }
1678           s/.*/./; q'`
1679   srcdir=$ac_confdir
1680   if test ! -r "$srcdir/$ac_unique_file"; then
1681     srcdir=..
1682   fi
1683 else
1684   ac_srcdir_defaulted=no
1685 fi
1686 if test ! -r "$srcdir/$ac_unique_file"; then
1687   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1688   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1689 fi
1690 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1691 ac_abs_confdir=`(
1692         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1693         pwd)`
1694 # When building in place, set srcdir=.
1695 if test "$ac_abs_confdir" = "$ac_pwd"; then
1696   srcdir=.
1697 fi
1698 # Remove unnecessary trailing slashes from srcdir.
1699 # Double slashes in file names in object file debugging info
1700 # mess up M-x gdb in Emacs.
1701 case $srcdir in
1702 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1703 esac
1704 for ac_var in $ac_precious_vars; do
1705   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706   eval ac_env_${ac_var}_value=\$${ac_var}
1707   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1709 done
1710
1711 #
1712 # Report the --help message.
1713 #
1714 if test "$ac_init_help" = "long"; then
1715   # Omit some internal or obsolete options to make the list less imposing.
1716   # This message is too long to be a string in the A/UX 3.1 sh.
1717   cat <<_ACEOF
1718 \`configure' configures GNU Hello 2.8 to adapt to many kinds of systems.
1719
1720 Usage: $0 [OPTION]... [VAR=VALUE]...
1721
1722 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723 VAR=VALUE.  See below for descriptions of some of the useful variables.
1724
1725 Defaults for the options are specified in brackets.
1726
1727 Configuration:
1728   -h, --help              display this help and exit
1729       --help=short        display options specific to this package
1730       --help=recursive    display the short help of all the included packages
1731   -V, --version           display version information and exit
1732   -q, --quiet, --silent   do not print \`checking ...' messages
1733       --cache-file=FILE   cache test results in FILE [disabled]
1734   -C, --config-cache      alias for \`--cache-file=config.cache'
1735   -n, --no-create         do not create output files
1736       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1737
1738 Installation directories:
1739   --prefix=PREFIX         install architecture-independent files in PREFIX
1740                           [$ac_default_prefix]
1741   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1742                           [PREFIX]
1743
1744 By default, \`make install' will install all the files in
1745 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1746 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747 for instance \`--prefix=\$HOME'.
1748
1749 For better control, use the options below.
1750
1751 Fine tuning of the installation directories:
1752   --bindir=DIR            user executables [EPREFIX/bin]
1753   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1754   --libexecdir=DIR        program executables [EPREFIX/libexec]
1755   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1756   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1757   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1758   --libdir=DIR            object code libraries [EPREFIX/lib]
1759   --includedir=DIR        C header files [PREFIX/include]
1760   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1761   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1762   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1763   --infodir=DIR           info documentation [DATAROOTDIR/info]
1764   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1765   --mandir=DIR            man documentation [DATAROOTDIR/man]
1766   --docdir=DIR            documentation root [DATAROOTDIR/doc/hello]
1767   --htmldir=DIR           html documentation [DOCDIR]
1768   --dvidir=DIR            dvi documentation [DOCDIR]
1769   --pdfdir=DIR            pdf documentation [DOCDIR]
1770   --psdir=DIR             ps documentation [DOCDIR]
1771 _ACEOF
1772
1773   cat <<\_ACEOF
1774
1775 Program names:
1776   --program-prefix=PREFIX            prepend PREFIX to installed program names
1777   --program-suffix=SUFFIX            append SUFFIX to installed program names
1778   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1779
1780 System types:
1781   --build=BUILD     configure for building on BUILD [guessed]
1782   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1783 _ACEOF
1784 fi
1785
1786 if test -n "$ac_init_help"; then
1787   case $ac_init_help in
1788      short | recursive ) echo "Configuration of GNU Hello 2.8:";;
1789    esac
1790   cat <<\_ACEOF
1791
1792 Optional Features:
1793   --disable-option-checking  ignore unrecognized --enable/--with options
1794   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1795   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1796   --disable-dependency-tracking  speeds up one-time build
1797   --enable-dependency-tracking   do not reject slow dependency extractors
1798   --disable-nls           do not use Native Language Support
1799   --disable-rpath         do not hardcode runtime library paths
1800
1801 Optional Packages:
1802   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1803   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1804   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1805   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1806   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1807   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1808   --without-libintl-prefix     don't search for libintl in includedir and libdir
1809
1810 Some influential environment variables:
1811   CC          C compiler command
1812   CFLAGS      C compiler flags
1813   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1814               nonstandard directory <lib dir>
1815   LIBS        libraries to pass to the linker, e.g. -l<library>
1816   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1817               you have headers in a nonstandard directory <include dir>
1818   CPP         C preprocessor
1819
1820 Use these variables to override the choices made by `configure' or to help
1821 it to find libraries and programs with nonstandard names/locations.
1822
1823 Report bugs to <bug-hello@gnu.org>.
1824 GNU Hello home page: <http://www.gnu.org/software/hello/>.
1825 General help using GNU software: <http://www.gnu.org/gethelp/>.
1826 _ACEOF
1827 ac_status=$?
1828 fi
1829
1830 if test "$ac_init_help" = "recursive"; then
1831   # If there are subdirs, report their specific --help.
1832   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1833     test -d "$ac_dir" ||
1834       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1835       continue
1836     ac_builddir=.
1837
1838 case "$ac_dir" in
1839 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1840 *)
1841   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1842   # A ".." for each directory in $ac_dir_suffix.
1843   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1844   case $ac_top_builddir_sub in
1845   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1846   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1847   esac ;;
1848 esac
1849 ac_abs_top_builddir=$ac_pwd
1850 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1851 # for backward compatibility:
1852 ac_top_builddir=$ac_top_build_prefix
1853
1854 case $srcdir in
1855   .)  # We are building in place.
1856     ac_srcdir=.
1857     ac_top_srcdir=$ac_top_builddir_sub
1858     ac_abs_top_srcdir=$ac_pwd ;;
1859   [\\/]* | ?:[\\/]* )  # Absolute name.
1860     ac_srcdir=$srcdir$ac_dir_suffix;
1861     ac_top_srcdir=$srcdir
1862     ac_abs_top_srcdir=$srcdir ;;
1863   *) # Relative name.
1864     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1865     ac_top_srcdir=$ac_top_build_prefix$srcdir
1866     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1867 esac
1868 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1869
1870     cd "$ac_dir" || { ac_status=$?; continue; }
1871     # Check for guested configure.
1872     if test -f "$ac_srcdir/configure.gnu"; then
1873       echo &&
1874       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1875     elif test -f "$ac_srcdir/configure"; then
1876       echo &&
1877       $SHELL "$ac_srcdir/configure" --help=recursive
1878     else
1879       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1880     fi || ac_status=$?
1881     cd "$ac_pwd" || { ac_status=$?; break; }
1882   done
1883 fi
1884
1885 test -n "$ac_init_help" && exit $ac_status
1886 if $ac_init_version; then
1887   cat <<\_ACEOF
1888 GNU Hello configure 2.8
1889 generated by GNU Autoconf 2.68
1890
1891 Copyright (C) 2010 Free Software Foundation, Inc.
1892 This configure script is free software; the Free Software Foundation
1893 gives unlimited permission to copy, distribute and modify it.
1894 _ACEOF
1895   exit
1896 fi
1897
1898 ## ------------------------ ##
1899 ## Autoconf initialization. ##
1900 ## ------------------------ ##
1901
1902 # ac_fn_c_try_compile LINENO
1903 # --------------------------
1904 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_c_try_compile ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   rm -f conftest.$ac_objext
1909   if { { ac_try="$ac_compile"
1910 case "(($ac_try" in
1911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912   *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916   (eval "$ac_compile") 2>conftest.err
1917   ac_status=$?
1918   if test -s conftest.err; then
1919     grep -v '^ *+' conftest.err >conftest.er1
1920     cat conftest.er1 >&5
1921     mv -f conftest.er1 conftest.err
1922   fi
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; } && {
1925          test -z "$ac_c_werror_flag" ||
1926          test ! -s conftest.err
1927        } && test -s conftest.$ac_objext; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933         ac_retval=1
1934 fi
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936   as_fn_set_status $ac_retval
1937
1938 } # ac_fn_c_try_compile
1939
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_cpp ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } > conftest.i && {
1962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963          test ! -s conftest.err
1964        }; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970     ac_retval=1
1971 fi
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973   as_fn_set_status $ac_retval
1974
1975 } # ac_fn_c_try_cpp
1976
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1981 # accordingly.
1982 ac_fn_c_check_header_mongrel ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if eval \${$3+:} false; then :
1986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989   $as_echo_n "(cached) " >&6
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 else
1995   # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 $4
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004   ac_header_compiler=yes
2005 else
2006   ac_header_compiler=no
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2011
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_cpp "$LINENO"; then :
2020   ac_header_preproc=yes
2021 else
2022   ac_header_preproc=no
2023 fi
2024 rm -f conftest.err conftest.i conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2027
2028 # So?  What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030   yes:no: )
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035     ;;
2036   no:yes:* )
2037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 ( $as_echo "## -------------------------------- ##
2048 ## Report this to bug-hello@gnu.org ##
2049 ## -------------------------------- ##"
2050      ) | sed "s/^/$as_me: WARNING:     /" >&2
2051     ;;
2052 esac
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056   $as_echo_n "(cached) " >&6
2057 else
2058   eval "$3=\$ac_header_compiler"
2059 fi
2060 eval ac_res=\$$3
2061                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 fi
2064   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066 } # ac_fn_c_check_header_mongrel
2067
2068 # ac_fn_c_try_run LINENO
2069 # ----------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2071 # that executables *can* be run.
2072 ac_fn_c_try_run ()
2073 {
2074   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075   if { { ac_try="$ac_link"
2076 case "(($ac_try" in
2077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078   *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082   (eval "$ac_link") 2>&5
2083   ac_status=$?
2084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2086   { { case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092   (eval "$ac_try") 2>&5
2093   ac_status=$?
2094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095   test $ac_status = 0; }; }; then :
2096   ac_retval=0
2097 else
2098   $as_echo "$as_me: program exited with status $ac_status" >&5
2099        $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102        ac_retval=$ac_status
2103 fi
2104   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106   as_fn_set_status $ac_retval
2107
2108 } # ac_fn_c_try_run
2109
2110 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists and can be compiled using the include files in
2113 # INCLUDES, setting the cache variable VAR accordingly.
2114 ac_fn_c_check_header_compile ()
2115 {
2116   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120   $as_echo_n "(cached) " >&6
2121 else
2122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h.  */
2124 $4
2125 #include <$2>
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128   eval "$3=yes"
2129 else
2130   eval "$3=no"
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 fi
2134 eval ac_res=\$$3
2135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_check_header_compile
2140
2141 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2142 # --------------------------------------------
2143 # Tries to find the compile-time value of EXPR in a program that includes
2144 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2145 # computed
2146 ac_fn_c_compute_int ()
2147 {
2148   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149   if test "$cross_compiling" = yes; then
2150     # Depending upon the size, compute the lo and hi bounds.
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) >= 0)];
2158 test_array [0] = 0
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   ac_lo=0 ac_mid=0
2166   while :; do
2167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 int
2171 main ()
2172 {
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2174 test_array [0] = 0
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181   ac_hi=$ac_mid; break
2182 else
2183   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2184                         if test $ac_lo -le $ac_mid; then
2185                           ac_lo= ac_hi=
2186                           break
2187                         fi
2188                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191   done
2192 else
2193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 $4
2196 int
2197 main ()
2198 {
2199 static int test_array [1 - 2 * !(($2) < 0)];
2200 test_array [0] = 0
2201
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207   ac_hi=-1 ac_mid=-1
2208   while :; do
2209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h.  */
2211 $4
2212 int
2213 main ()
2214 {
2215 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2216 test_array [0] = 0
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223   ac_lo=$ac_mid; break
2224 else
2225   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226                         if test $ac_mid -le $ac_hi; then
2227                           ac_lo= ac_hi=
2228                           break
2229                         fi
2230                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233   done
2234 else
2235   ac_lo= ac_hi=
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2250 test_array [0] = 0
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257   ac_hi=$ac_mid
2258 else
2259   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 done
2263 case $ac_lo in #((
2264 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2265 '') ac_retval=1 ;;
2266 esac
2267   else
2268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $4
2271 static long int longval () { return $2; }
2272 static unsigned long int ulongval () { return $2; }
2273 #include <stdio.h>
2274 #include <stdlib.h>
2275 int
2276 main ()
2277 {
2278
2279   FILE *f = fopen ("conftest.val", "w");
2280   if (! f)
2281     return 1;
2282   if (($2) < 0)
2283     {
2284       long int i = longval ();
2285       if (i != ($2))
2286         return 1;
2287       fprintf (f, "%ld", i);
2288     }
2289   else
2290     {
2291       unsigned long int i = ulongval ();
2292       if (i != ($2))
2293         return 1;
2294       fprintf (f, "%lu", i);
2295     }
2296   /* Do not output a trailing newline, as this causes \r\n confusion
2297      on some platforms.  */
2298   return ferror (f) || fclose (f) != 0;
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_run "$LINENO"; then :
2305   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2306 else
2307   ac_retval=1
2308 fi
2309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2310   conftest.$ac_objext conftest.beam conftest.$ac_ext
2311 rm -f conftest.val
2312
2313   fi
2314   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315   as_fn_set_status $ac_retval
2316
2317 } # ac_fn_c_compute_int
2318
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_c_try_link ()
2323 {
2324   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325   rm -f conftest.$ac_objext conftest$ac_exeext
2326   if { { ac_try="$ac_link"
2327 case "(($ac_try" in
2328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329   *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333   (eval "$ac_link") 2>conftest.err
2334   ac_status=$?
2335   if test -s conftest.err; then
2336     grep -v '^ *+' conftest.err >conftest.er1
2337     cat conftest.er1 >&5
2338     mv -f conftest.er1 conftest.err
2339   fi
2340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341   test $ac_status = 0; } && {
2342          test -z "$ac_c_werror_flag" ||
2343          test ! -s conftest.err
2344        } && test -s conftest$ac_exeext && {
2345          test "$cross_compiling" = yes ||
2346          $as_test_x conftest$ac_exeext
2347        }; then :
2348   ac_retval=0
2349 else
2350   $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353         ac_retval=1
2354 fi
2355   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357   # interfere with the next link command; also delete a directory that is
2358   # left behind by Apple's compiler.  We do this before executing the actions.
2359   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361   as_fn_set_status $ac_retval
2362
2363 } # ac_fn_c_try_link
2364
2365 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2366 # ---------------------------------------------
2367 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2368 # accordingly.
2369 ac_fn_c_check_decl ()
2370 {
2371   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372   as_decl_name=`echo $2|sed 's/ *(.*//'`
2373   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2375 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2376 if eval \${$3+:} false; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 int
2383 main ()
2384 {
2385 #ifndef $as_decl_name
2386 #ifdef __cplusplus
2387   (void) $as_decl_use;
2388 #else
2389   (void) $as_decl_name;
2390 #endif
2391 #endif
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398   eval "$3=yes"
2399 else
2400   eval "$3=no"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 eval ac_res=\$$3
2405                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408
2409 } # ac_fn_c_check_decl
2410
2411 # ac_fn_c_check_func LINENO FUNC VAR
2412 # ----------------------------------
2413 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2414 ac_fn_c_check_func ()
2415 {
2416   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420   $as_echo_n "(cached) " >&6
2421 else
2422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2426 #define $2 innocuous_$2
2427
2428 /* System header to define __stub macros and hopefully few prototypes,
2429     which can conflict with char $2 (); below.
2430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2431     <limits.h> exists even on freestanding compilers.  */
2432
2433 #ifdef __STDC__
2434 # include <limits.h>
2435 #else
2436 # include <assert.h>
2437 #endif
2438
2439 #undef $2
2440
2441 /* Override any GCC internal prototype to avoid an error.
2442    Use char because int might match the return type of a GCC
2443    builtin and then its argument prototype would still apply.  */
2444 #ifdef __cplusplus
2445 extern "C"
2446 #endif
2447 char $2 ();
2448 /* The GNU C library defines this for functions which it implements
2449     to always fail with ENOSYS.  Some functions are actually named
2450     something starting with __ and the normal name is an alias.  */
2451 #if defined __stub_$2 || defined __stub___$2
2452 choke me
2453 #endif
2454
2455 int
2456 main ()
2457 {
2458 return $2 ();
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_c_try_link "$LINENO"; then :
2464   eval "$3=yes"
2465 else
2466   eval "$3=no"
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext \
2469     conftest$ac_exeext conftest.$ac_ext
2470 fi
2471 eval ac_res=\$$3
2472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475
2476 } # ac_fn_c_check_func
2477
2478 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2479 # -------------------------------------------
2480 # Tests whether TYPE exists after having included INCLUDES, setting cache
2481 # variable VAR accordingly.
2482 ac_fn_c_check_type ()
2483 {
2484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2486 $as_echo_n "checking for $2... " >&6; }
2487 if eval \${$3+:} false; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490   eval "$3=no"
2491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h.  */
2493 $4
2494 int
2495 main ()
2496 {
2497 if (sizeof ($2))
2498          return 0;
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $4
2507 int
2508 main ()
2509 {
2510 if (sizeof (($2)))
2511             return 0;
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517
2518 else
2519   eval "$3=yes"
2520 fi
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 fi
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 fi
2525 eval ac_res=\$$3
2526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529
2530 } # ac_fn_c_check_type
2531 cat >config.log <<_ACEOF
2532 This file contains any messages produced by compilers while
2533 running configure, to aid debugging if configure makes a mistake.
2534
2535 It was created by GNU Hello $as_me 2.8, which was
2536 generated by GNU Autoconf 2.68.  Invocation command line was
2537
2538   $ $0 $@
2539
2540 _ACEOF
2541 exec 5>>config.log
2542 {
2543 cat <<_ASUNAME
2544 ## --------- ##
2545 ## Platform. ##
2546 ## --------- ##
2547
2548 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2549 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2550 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2551 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2552 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2553
2554 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2555 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2556
2557 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2558 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2559 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2560 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2561 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2562 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2563 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2564
2565 _ASUNAME
2566
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572     $as_echo "PATH: $as_dir"
2573   done
2574 IFS=$as_save_IFS
2575
2576 } >&5
2577
2578 cat >&5 <<_ACEOF
2579
2580
2581 ## ----------- ##
2582 ## Core tests. ##
2583 ## ----------- ##
2584
2585 _ACEOF
2586
2587
2588 # Keep a trace of the command line.
2589 # Strip out --no-create and --no-recursion so they do not pile up.
2590 # Strip out --silent because we don't want to record it for future runs.
2591 # Also quote any args containing shell meta-characters.
2592 # Make two passes to allow for proper duplicate-argument suppression.
2593 ac_configure_args=
2594 ac_configure_args0=
2595 ac_configure_args1=
2596 ac_must_keep_next=false
2597 for ac_pass in 1 2
2598 do
2599   for ac_arg
2600   do
2601     case $ac_arg in
2602     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2603     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2604     | -silent | --silent | --silen | --sile | --sil)
2605       continue ;;
2606     *\'*)
2607       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2608     esac
2609     case $ac_pass in
2610     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2611     2)
2612       as_fn_append ac_configure_args1 " '$ac_arg'"
2613       if test $ac_must_keep_next = true; then
2614         ac_must_keep_next=false # Got value, back to normal.
2615       else
2616         case $ac_arg in
2617           *=* | --config-cache | -C | -disable-* | --disable-* \
2618           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2619           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2620           | -with-* | --with-* | -without-* | --without-* | --x)
2621             case "$ac_configure_args0 " in
2622               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2623             esac
2624             ;;
2625           -* ) ac_must_keep_next=true ;;
2626         esac
2627       fi
2628       as_fn_append ac_configure_args " '$ac_arg'"
2629       ;;
2630     esac
2631   done
2632 done
2633 { ac_configure_args0=; unset ac_configure_args0;}
2634 { ac_configure_args1=; unset ac_configure_args1;}
2635
2636 # When interrupted or exit'd, cleanup temporary files, and complete
2637 # config.log.  We remove comments because anyway the quotes in there
2638 # would cause problems or look ugly.
2639 # WARNING: Use '\'' to represent an apostrophe within the trap.
2640 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2641 trap 'exit_status=$?
2642   # Save into config.log some information that might help in debugging.
2643   {
2644     echo
2645
2646     $as_echo "## ---------------- ##
2647 ## Cache variables. ##
2648 ## ---------------- ##"
2649     echo
2650     # The following way of writing the cache mishandles newlines in values,
2651 (
2652   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2653     eval ac_val=\$$ac_var
2654     case $ac_val in #(
2655     *${as_nl}*)
2656       case $ac_var in #(
2657       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2659       esac
2660       case $ac_var in #(
2661       _ | IFS | as_nl) ;; #(
2662       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2663       *) { eval $ac_var=; unset $ac_var;} ;;
2664       esac ;;
2665     esac
2666   done
2667   (set) 2>&1 |
2668     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2669     *${as_nl}ac_space=\ *)
2670       sed -n \
2671         "s/'\''/'\''\\\\'\'''\''/g;
2672           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2673       ;; #(
2674     *)
2675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2676       ;;
2677     esac |
2678     sort
2679 )
2680     echo
2681
2682     $as_echo "## ----------------- ##
2683 ## Output variables. ##
2684 ## ----------------- ##"
2685     echo
2686     for ac_var in $ac_subst_vars
2687     do
2688       eval ac_val=\$$ac_var
2689       case $ac_val in
2690       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2691       esac
2692       $as_echo "$ac_var='\''$ac_val'\''"
2693     done | sort
2694     echo
2695
2696     if test -n "$ac_subst_files"; then
2697       $as_echo "## ------------------- ##
2698 ## File substitutions. ##
2699 ## ------------------- ##"
2700       echo
2701       for ac_var in $ac_subst_files
2702       do
2703         eval ac_val=\$$ac_var
2704         case $ac_val in
2705         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2706         esac
2707         $as_echo "$ac_var='\''$ac_val'\''"
2708       done | sort
2709       echo
2710     fi
2711
2712     if test -s confdefs.h; then
2713       $as_echo "## ----------- ##
2714 ## confdefs.h. ##
2715 ## ----------- ##"
2716       echo
2717       cat confdefs.h
2718       echo
2719     fi
2720     test "$ac_signal" != 0 &&
2721       $as_echo "$as_me: caught signal $ac_signal"
2722     $as_echo "$as_me: exit $exit_status"
2723   } >&5
2724   rm -f core *.core core.conftest.* &&
2725     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2726     exit $exit_status
2727 ' 0
2728 for ac_signal in 1 2 13 15; do
2729   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2730 done
2731 ac_signal=0
2732
2733 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2734 rm -f -r conftest* confdefs.h
2735
2736 $as_echo "/* confdefs.h */" > confdefs.h
2737
2738 # Predefined preprocessor variables.
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_NAME "$PACKAGE_NAME"
2742 _ACEOF
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2746 _ACEOF
2747
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2750 _ACEOF
2751
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_STRING "$PACKAGE_STRING"
2754 _ACEOF
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2758 _ACEOF
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_URL "$PACKAGE_URL"
2762 _ACEOF
2763
2764
2765 # Let the site file select an alternate cache file if it wants to.
2766 # Prefer an explicitly selected file to automatically selected ones.
2767 ac_site_file1=NONE
2768 ac_site_file2=NONE
2769 if test -n "$CONFIG_SITE"; then
2770   # We do not want a PATH search for config.site.
2771   case $CONFIG_SITE in #((
2772     -*)  ac_site_file1=./$CONFIG_SITE;;
2773     */*) ac_site_file1=$CONFIG_SITE;;
2774     *)   ac_site_file1=./$CONFIG_SITE;;
2775   esac
2776 elif test "x$prefix" != xNONE; then
2777   ac_site_file1=$prefix/share/config.site
2778   ac_site_file2=$prefix/etc/config.site
2779 else
2780   ac_site_file1=$ac_default_prefix/share/config.site
2781   ac_site_file2=$ac_default_prefix/etc/config.site
2782 fi
2783 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2784 do
2785   test "x$ac_site_file" = xNONE && continue
2786   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2787     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2788 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2789     sed 's/^/| /' "$ac_site_file" >&5
2790     . "$ac_site_file" \
2791       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 as_fn_error $? "failed to load site script $ac_site_file
2794 See \`config.log' for more details" "$LINENO" 5; }
2795   fi
2796 done
2797
2798 if test -r "$cache_file"; then
2799   # Some versions of bash will fail to source /dev/null (special files
2800   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2801   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2802     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2803 $as_echo "$as_me: loading cache $cache_file" >&6;}
2804     case $cache_file in
2805       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2806       *)                      . "./$cache_file";;
2807     esac
2808   fi
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2811 $as_echo "$as_me: creating cache $cache_file" >&6;}
2812   >$cache_file
2813 fi
2814
2815 as_fn_append ac_header_list " stdio_ext.h"
2816 as_fn_append ac_func_list " __fpending"
2817 gl_getopt_required=GNU
2818 as_fn_append ac_header_list " getopt.h"
2819 as_fn_append ac_header_list " unistd.h"
2820 as_fn_append ac_func_list " symlink"
2821 as_fn_append ac_func_list " mbsinit"
2822 as_fn_append ac_func_list " mbrtowc"
2823 as_fn_append ac_func_list " _set_invalid_parameter_handler"
2824 as_fn_append ac_header_list " sys/socket.h"
2825 as_fn_append ac_header_list " wchar.h"
2826 as_fn_append ac_header_list " features.h"
2827 as_fn_append ac_func_list " iswcntrl"
2828 as_fn_append ac_header_list " wctype.h"
2829 gt_needs="$gt_needs "
2830 # Check that the precious variables saved in the cache have kept the same
2831 # value.
2832 ac_cache_corrupted=false
2833 for ac_var in $ac_precious_vars; do
2834   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2835   eval ac_new_set=\$ac_env_${ac_var}_set
2836   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2837   eval ac_new_val=\$ac_env_${ac_var}_value
2838   case $ac_old_set,$ac_new_set in
2839     set,)
2840       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2841 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2842       ac_cache_corrupted=: ;;
2843     ,set)
2844       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2845 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2846       ac_cache_corrupted=: ;;
2847     ,);;
2848     *)
2849       if test "x$ac_old_val" != "x$ac_new_val"; then
2850         # differences in whitespace do not lead to failure.
2851         ac_old_val_w=`echo x $ac_old_val`
2852         ac_new_val_w=`echo x $ac_new_val`
2853         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2854           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2855 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2856           ac_cache_corrupted=:
2857         else
2858           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2859 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2860           eval $ac_var=\$ac_old_val
2861         fi
2862         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2863 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2864         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2865 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2866       fi;;
2867   esac
2868   # Pass precious variables to config.status.
2869   if test "$ac_new_set" = set; then
2870     case $ac_new_val in
2871     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2872     *) ac_arg=$ac_var=$ac_new_val ;;
2873     esac
2874     case " $ac_configure_args " in
2875       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2876       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2877     esac
2878   fi
2879 done
2880 if $ac_cache_corrupted; then
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2884 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2885   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2886 fi
2887 ## -------------------- ##
2888 ## Main body of script. ##
2889 ## -------------------- ##
2890
2891 ac_ext=c
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896
2897
2898
2899 ac_aux_dir=
2900 for ac_dir in build-aux "$srcdir"/build-aux; do
2901   if test -f "$ac_dir/install-sh"; then
2902     ac_aux_dir=$ac_dir
2903     ac_install_sh="$ac_aux_dir/install-sh -c"
2904     break
2905   elif test -f "$ac_dir/install.sh"; then
2906     ac_aux_dir=$ac_dir
2907     ac_install_sh="$ac_aux_dir/install.sh -c"
2908     break
2909   elif test -f "$ac_dir/shtool"; then
2910     ac_aux_dir=$ac_dir
2911     ac_install_sh="$ac_aux_dir/shtool install -c"
2912     break
2913   fi
2914 done
2915 if test -z "$ac_aux_dir"; then
2916   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2917 fi
2918
2919 # These three variables are undocumented and unsupported,
2920 # and are intended to be withdrawn in a future Autoconf release.
2921 # They can cause serious problems if a builder's source tree is in a directory
2922 # whose full name contains unusual characters.
2923 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2924 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2925 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2926
2927
2928 am__api_version='1.11'
2929
2930 # Find a good install program.  We prefer a C program (faster),
2931 # so one script is as good as another.  But avoid the broken or
2932 # incompatible versions:
2933 # SysV /etc/install, /usr/sbin/install
2934 # SunOS /usr/etc/install
2935 # IRIX /sbin/install
2936 # AIX /bin/install
2937 # AmigaOS /C/install, which installs bootblocks on floppy discs
2938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941 # OS/2's system install, which has a completely different semantic
2942 # ./install, which can be erroneously created by make from ./install.sh.
2943 # Reject install programs that cannot install multiple files.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2946 if test -z "$INSTALL"; then
2947 if ${ac_cv_path_install+:} false; then :
2948   $as_echo_n "(cached) " >&6
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     # Account for people who put trailing slashes in PATH elements.
2956 case $as_dir/ in #((
2957   ./ | .// | /[cC]/* | \
2958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2960   /usr/ucb/* ) ;;
2961   *)
2962     # OSF1 and SCO ODT 3.0 have their own names for install.
2963     # Don't use installbsd from OSF since it installs stuff as root
2964     # by default.
2965     for ac_prog in ginstall scoinst install; do
2966       for ac_exec_ext in '' $ac_executable_extensions; do
2967         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2968           if test $ac_prog = install &&
2969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970             # AIX install.  It has an incompatible calling convention.
2971             :
2972           elif test $ac_prog = install &&
2973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974             # program-specific install script used by HP pwplus--don't use.
2975             :
2976           else
2977             rm -rf conftest.one conftest.two conftest.dir
2978             echo one > conftest.one
2979             echo two > conftest.two
2980             mkdir conftest.dir
2981             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2982               test -s conftest.one && test -s conftest.two &&
2983               test -s conftest.dir/conftest.one &&
2984               test -s conftest.dir/conftest.two
2985             then
2986               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2987               break 3
2988             fi
2989           fi
2990         fi
2991       done
2992     done
2993     ;;
2994 esac
2995
2996   done
2997 IFS=$as_save_IFS
2998
2999 rm -rf conftest.one conftest.two conftest.dir
3000
3001 fi
3002   if test "${ac_cv_path_install+set}" = set; then
3003     INSTALL=$ac_cv_path_install
3004   else
3005     # As a last resort, use the slow shell script.  Don't cache a
3006     # value for INSTALL within a source directory, because that will
3007     # break other packages using the cache if that directory is
3008     # removed, or if the value is a relative name.
3009     INSTALL=$ac_install_sh
3010   fi
3011 fi
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3013 $as_echo "$INSTALL" >&6; }
3014
3015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016 # It thinks the first close brace ends the variable substitution.
3017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
3019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
3021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3024 $as_echo_n "checking whether build environment is sane... " >&6; }
3025 # Just in case
3026 sleep 1
3027 echo timestamp > conftest.file
3028 # Reject unsafe characters in $srcdir or the absolute working directory
3029 # name.  Accept space and tab only in the latter.
3030 am_lf='
3031 '
3032 case `pwd` in
3033   *[\\\"\#\$\&\'\`$am_lf]*)
3034     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3035 esac
3036 case $srcdir in
3037   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3038     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3039 esac
3040
3041 # Do `set' in a subshell so we don't clobber the current shell's
3042 # arguments.  Must try -L first in case configure is actually a
3043 # symlink; some systems play weird games with the mod time of symlinks
3044 # (eg FreeBSD returns the mod time of the symlink's containing
3045 # directory).
3046 if (
3047    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3048    if test "$*" = "X"; then
3049       # -L didn't work.
3050       set X `ls -t "$srcdir/configure" conftest.file`
3051    fi
3052    rm -f conftest.file
3053    if test "$*" != "X $srcdir/configure conftest.file" \
3054       && test "$*" != "X conftest.file $srcdir/configure"; then
3055
3056       # If neither matched, then we have a broken ls.  This can happen
3057       # if, for instance, CONFIG_SHELL is bash and it inherits a
3058       # broken ls alias from the environment.  This has actually
3059       # happened.  Such a system could not be considered "sane".
3060       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3061 alias in your environment" "$LINENO" 5
3062    fi
3063
3064    test "$2" = conftest.file
3065    )
3066 then
3067    # Ok.
3068    :
3069 else
3070    as_fn_error $? "newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 test "$program_prefix" != NONE &&
3076   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3077 # Use a double $ so make ignores it.
3078 test "$program_suffix" != NONE &&
3079   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3080 # Double any \ or $.
3081 # By default was `s,x,x', remove it if useless.
3082 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3083 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3084
3085 # expand $ac_aux_dir to an absolute path
3086 am_aux_dir=`cd $ac_aux_dir && pwd`
3087
3088 if test x"${MISSING+set}" != xset; then
3089   case $am_aux_dir in
3090   *\ * | *\     *)
3091     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3092   *)
3093     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3094   esac
3095 fi
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098   am_missing_run="$MISSING --run "
3099 else
3100   am_missing_run=
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3102 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 fi
3104
3105 if test x"${install_sh}" != xset; then
3106   case $am_aux_dir in
3107   *\ * | *\     *)
3108     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3109   *)
3110     install_sh="\${SHELL} $am_aux_dir/install-sh"
3111   esac
3112 fi
3113
3114 # Installed binaries are usually stripped using `strip' when the user
3115 # run `make install-strip'.  However `strip' might not be the right
3116 # tool to use in cross-compilation environments, therefore Automake
3117 # will honor the `STRIP' environment variable to overrule this program.
3118 if test "$cross_compiling" != no; then
3119   if test -n "$ac_tool_prefix"; then
3120   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}strip; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_STRIP+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   if test -n "$STRIP"; then
3128   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135     for ac_exec_ext in '' $ac_executable_extensions; do
3136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142   done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 STRIP=$ac_cv_prog_STRIP
3148 if test -n "$STRIP"; then
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3150 $as_echo "$STRIP" >&6; }
3151 else
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 if test -z "$ac_cv_prog_STRIP"; then
3159   ac_ct_STRIP=$STRIP
3160   # Extract the first word of "strip", so it can be a program name with args.
3161 set dummy strip; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   if test -n "$ac_ct_STRIP"; then
3168   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177     ac_cv_prog_ac_ct_STRIP="strip"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3188 if test -n "$ac_ct_STRIP"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3190 $as_echo "$ac_ct_STRIP" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196   if test "x$ac_ct_STRIP" = x; then
3197     STRIP=":"
3198   else
3199     case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205     STRIP=$ac_ct_STRIP
3206   fi
3207 else
3208   STRIP="$ac_cv_prog_STRIP"
3209 fi
3210
3211 fi
3212 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3215 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3216 if test -z "$MKDIR_P"; then
3217   if ${ac_cv_path_mkdir+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225     for ac_prog in mkdir gmkdir; do
3226          for ac_exec_ext in '' $ac_executable_extensions; do
3227            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3228            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3229              'mkdir (GNU coreutils) '* | \
3230              'mkdir (coreutils) '* | \
3231              'mkdir (fileutils) '4.1*)
3232                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3233                break 3;;
3234            esac
3235          done
3236        done
3237   done
3238 IFS=$as_save_IFS
3239
3240 fi
3241
3242   test -d ./--version && rmdir ./--version
3243   if test "${ac_cv_path_mkdir+set}" = set; then
3244     MKDIR_P="$ac_cv_path_mkdir -p"
3245   else
3246     # As a last resort, use the slow shell script.  Don't cache a
3247     # value for MKDIR_P within a source directory, because that will
3248     # break other packages using the cache if that directory is
3249     # removed, or if the value is a relative name.
3250     MKDIR_P="$ac_install_sh -d"
3251   fi
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254 $as_echo "$MKDIR_P" >&6; }
3255
3256
3257 mkdir_p="$MKDIR_P"
3258 case $mkdir_p in
3259   [\\/$]* | ?:[\\/]*) ;;
3260   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3261 esac
3262
3263 for ac_prog in gawk mawk nawk awk
3264 do
3265   # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_AWK+:} false; then :
3270   $as_echo_n "(cached) " >&6
3271 else
3272   if test -n "$AWK"; then
3273   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278   IFS=$as_save_IFS
3279   test -z "$as_dir" && as_dir=.
3280     for ac_exec_ext in '' $ac_executable_extensions; do
3281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282     ac_cv_prog_AWK="$ac_prog"
3283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284     break 2
3285   fi
3286 done
3287   done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 AWK=$ac_cv_prog_AWK
3293 if test -n "$AWK"; then
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3295 $as_echo "$AWK" >&6; }
3296 else
3297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302   test -n "$AWK" && break
3303 done
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3307 set x ${MAKE-make}
3308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3309 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3310   $as_echo_n "(cached) " >&6
3311 else
3312   cat >conftest.make <<\_ACEOF
3313 SHELL = /bin/sh
3314 all:
3315         @echo '@@@%%%=$(MAKE)=@@@%%%'
3316 _ACEOF
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319   *@@@%%%=?*=@@@%%%*)
3320     eval ac_cv_prog_make_${ac_make}_set=yes;;
3321   *)
3322     eval ac_cv_prog_make_${ac_make}_set=no;;
3323 esac
3324 rm -f conftest.make
3325 fi
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329   SET_MAKE=
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333   SET_MAKE="MAKE=${MAKE-make}"
3334 fi
3335
3336 rm -rf .tst 2>/dev/null
3337 mkdir .tst 2>/dev/null
3338 if test -d .tst; then
3339   am__leading_dot=.
3340 else
3341   am__leading_dot=_
3342 fi
3343 rmdir .tst 2>/dev/null
3344
3345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3346   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3347   # is not polluted with repeated "-I."
3348   am__isrc=' -I$(srcdir)'
3349   # test to see if srcdir already configured
3350   if test -f $srcdir/config.status; then
3351     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3352   fi
3353 fi
3354
3355 # test whether we have cygpath
3356 if test -z "$CYGPATH_W"; then
3357   if (cygpath --version) >/dev/null 2>/dev/null; then
3358     CYGPATH_W='cygpath -w'
3359   else
3360     CYGPATH_W=echo
3361   fi
3362 fi
3363
3364
3365 # Define the identity of the package.
3366  PACKAGE='hello'
3367  VERSION='2.8'
3368
3369
3370 cat >>confdefs.h <<_ACEOF
3371 #define PACKAGE "$PACKAGE"
3372 _ACEOF
3373
3374
3375 cat >>confdefs.h <<_ACEOF
3376 #define VERSION "$VERSION"
3377 _ACEOF
3378
3379 # Some tools Automake needs.
3380
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3382
3383
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3385
3386
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3388
3389
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3391
3392
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3394
3395 # We need awk for the "check" target.  The system "awk" is bad on
3396 # some platforms.
3397 # Always define AMTAR for backward compatibility.  Yes, it's still used
3398 # in the wild :-(  We should find a proper way to deprecate it ...
3399 AMTAR='$${TAR-tar}'
3400
3401 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3402
3403
3404
3405
3406
3407
3408 # Minimum Autoconf version required.
3409
3410
3411 # Where to generate output; srcdir location.
3412 ac_config_headers="$ac_config_headers config.h:config.in"
3413
3414
3415 # We need a C compiler.
3416 ac_ext=c
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 if test -n "$ac_tool_prefix"; then
3422   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if ${ac_cv_prog_CC+:} false; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   if test -n "$CC"; then
3430   ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437     for ac_exec_ext in '' $ac_executable_extensions; do
3438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444   done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3453 else
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459 fi
3460 if test -z "$ac_cv_prog_CC"; then
3461   ac_ct_CC=$CC
3462   # Extract the first word of "gcc", so it can be a program name with args.
3463 set dummy gcc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   if test -n "$ac_ct_CC"; then
3470   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477     for ac_exec_ext in '' $ac_executable_extensions; do
3478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479     ac_cv_prog_ac_ct_CC="gcc"
3480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481     break 2
3482   fi
3483 done
3484   done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3493 else
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498   if test "x$ac_ct_CC" = x; then
3499     CC=""
3500   else
3501     case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3506 esac
3507     CC=$ac_ct_CC
3508   fi
3509 else
3510   CC="$ac_cv_prog_CC"
3511 fi
3512
3513 if test -z "$CC"; then
3514           if test -n "$ac_tool_prefix"; then
3515     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}cc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CC+:} false; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   if test -n "$CC"; then
3523   ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530     for ac_exec_ext in '' $ac_executable_extensions; do
3531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532     ac_cv_prog_CC="${ac_tool_prefix}cc"
3533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537   done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552   fi
3553 fi
3554 if test -z "$CC"; then
3555   # Extract the first word of "cc", so it can be a program name with args.
3556 set dummy cc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_prog_CC+:} false; then :
3560   $as_echo_n "(cached) " >&6
3561 else
3562   if test -n "$CC"; then
3563   ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565   ac_prog_rejected=no
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571     for ac_exec_ext in '' $ac_executable_extensions; do
3572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3574        ac_prog_rejected=yes
3575        continue
3576      fi
3577     ac_cv_prog_CC="cc"
3578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579     break 2
3580   fi
3581 done
3582   done
3583 IFS=$as_save_IFS
3584
3585 if test $ac_prog_rejected = yes; then
3586   # We found a bogon in the path, so make sure we never use it.
3587   set dummy $ac_cv_prog_CC
3588   shift
3589   if test $# != 0; then
3590     # We chose a different compiler from the bogus one.
3591     # However, it has the same basename, so the bogon will be chosen
3592     # first if we set CC to just the basename; use the full file name.
3593     shift
3594     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3595   fi
3596 fi
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609 fi
3610 if test -z "$CC"; then
3611   if test -n "$ac_tool_prefix"; then
3612   for ac_prog in cl.exe
3613   do
3614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_CC+:} false; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   if test -n "$CC"; then
3622   ac_cv_prog_CC="$CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629     for ac_exec_ext in '' $ac_executable_extensions; do
3630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633     break 2
3634   fi
3635 done
3636   done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 CC=$ac_cv_prog_CC
3642 if test -n "$CC"; then
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 $as_echo "$CC" >&6; }
3645 else
3646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650
3651     test -n "$CC" && break
3652   done
3653 fi
3654 if test -z "$CC"; then
3655   ac_ct_CC=$CC
3656   for ac_prog in cl.exe
3657 do
3658   # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3663   $as_echo_n "(cached) " >&6
3664 else
3665   if test -n "$ac_ct_CC"; then
3666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673     for ac_exec_ext in '' $ac_executable_extensions; do
3674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675     ac_cv_prog_ac_ct_CC="$ac_prog"
3676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680   done
3681 IFS=$as_save_IFS
3682
3683 fi
3684 fi
3685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686 if test -n "$ac_ct_CC"; then
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688 $as_echo "$ac_ct_CC" >&6; }
3689 else
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694
3695   test -n "$ac_ct_CC" && break
3696 done
3697
3698   if test "x$ac_ct_CC" = x; then
3699     CC=""
3700   else
3701     case $cross_compiling:$ac_tool_warned in
3702 yes:)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3706 esac
3707     CC=$ac_ct_CC
3708   fi
3709 fi
3710
3711 fi
3712
3713
3714 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "no acceptable C compiler found in \$PATH
3717 See \`config.log' for more details" "$LINENO" 5; }
3718
3719 # Provide some information about the compiler.
3720 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3721 set X $ac_compile
3722 ac_compiler=$2
3723 for ac_option in --version -v -V -qversion; do
3724   { { ac_try="$ac_compiler $ac_option >&5"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3732   ac_status=$?
3733   if test -s conftest.err; then
3734     sed '10a\
3735 ... rest of stderr output deleted ...
3736          10q' conftest.err >conftest.er1
3737     cat conftest.er1 >&5
3738   fi
3739   rm -f conftest.er1 conftest.err
3740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741   test $ac_status = 0; }
3742 done
3743
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746
3747 int
3748 main ()
3749 {
3750
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 ac_clean_files_save=$ac_clean_files
3756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3757 # Try to create an executable without -o first, disregard a.out.
3758 # It will help us diagnose broken compilers, and finding out an intuition
3759 # of exeext.
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3761 $as_echo_n "checking whether the C compiler works... " >&6; }
3762 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3763
3764 # The possible output files:
3765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3766
3767 ac_rmfiles=
3768 for ac_file in $ac_files
3769 do
3770   case $ac_file in
3771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3773   esac
3774 done
3775 rm -f $ac_rmfiles
3776
3777 if { { ac_try="$ac_link_default"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_link_default") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }; then :
3788   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3790 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3791 # so that the user can short-circuit this test for compilers unknown to
3792 # Autoconf.
3793 for ac_file in $ac_files ''
3794 do
3795   test -f "$ac_file" || continue
3796   case $ac_file in
3797     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3798         ;;
3799     [ab].out )
3800         # We found the default executable, but exeext='' is most
3801         # certainly right.
3802         break;;
3803     *.* )
3804         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3805         then :; else
3806            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807         fi
3808         # We set ac_cv_exeext here because the later test for it is not
3809         # safe: cross compilers may not add the suffix if given an `-o'
3810         # argument, so we may need to know it at that point already.
3811         # Even if this section looks crufty: it has the advantage of
3812         # actually working.
3813         break;;
3814     * )
3815         break;;
3816   esac
3817 done
3818 test "$ac_cv_exeext" = no && ac_cv_exeext=
3819
3820 else
3821   ac_file=''
3822 fi
3823 if test -z "$ac_file"; then :
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error 77 "C compiler cannot create executables
3832 See \`config.log' for more details" "$LINENO" 5; }
3833 else
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3835 $as_echo "yes" >&6; }
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3838 $as_echo_n "checking for C compiler default output file name... " >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3840 $as_echo "$ac_file" >&6; }
3841 ac_exeext=$ac_cv_exeext
3842
3843 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3844 ac_clean_files=$ac_clean_files_save
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3846 $as_echo_n "checking for suffix of executables... " >&6; }
3847 if { { ac_try="$ac_link"
3848 case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854   (eval "$ac_link") 2>&5
3855   ac_status=$?
3856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857   test $ac_status = 0; }; then :
3858   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3859 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3860 # work properly (i.e., refer to `conftest.exe'), while it won't with
3861 # `rm'.
3862 for ac_file in conftest.exe conftest conftest.*; do
3863   test -f "$ac_file" || continue
3864   case $ac_file in
3865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867           break;;
3868     * ) break;;
3869   esac
3870 done
3871 else
3872   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3875 See \`config.log' for more details" "$LINENO" 5; }
3876 fi
3877 rm -f conftest conftest$ac_cv_exeext
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879 $as_echo "$ac_cv_exeext" >&6; }
3880
3881 rm -f conftest.$ac_ext
3882 EXEEXT=$ac_cv_exeext
3883 ac_exeext=$EXEEXT
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886 #include <stdio.h>
3887 int
3888 main ()
3889 {
3890 FILE *f = fopen ("conftest.out", "w");
3891  return ferror (f) || fclose (f) != 0;
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 ac_clean_files="$ac_clean_files conftest.out"
3898 # Check that the compiler produces executables we can run.  If not, either
3899 # the compiler is broken, or we cross compile.
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3901 $as_echo_n "checking whether we are cross compiling... " >&6; }
3902 if test "$cross_compiling" != yes; then
3903   { { ac_try="$ac_link"
3904 case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910   (eval "$ac_link") 2>&5
3911   ac_status=$?
3912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913   test $ac_status = 0; }
3914   if { ac_try='./conftest$ac_cv_exeext'
3915   { { case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921   (eval "$ac_try") 2>&5
3922   ac_status=$?
3923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924   test $ac_status = 0; }; }; then
3925     cross_compiling=no
3926   else
3927     if test "$cross_compiling" = maybe; then
3928         cross_compiling=yes
3929     else
3930         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details" "$LINENO" 5; }
3935     fi
3936   fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3939 $as_echo "$cross_compiling" >&6; }
3940
3941 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3944 $as_echo_n "checking for suffix of object files... " >&6; }
3945 if ${ac_cv_objext+:} false; then :
3946   $as_echo_n "(cached) " >&6
3947 else
3948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.o conftest.obj
3960 if { { ac_try="$ac_compile"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967   (eval "$ac_compile") 2>&5
3968   ac_status=$?
3969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970   test $ac_status = 0; }; then :
3971   for ac_file in conftest.o conftest.obj conftest.*; do
3972   test -f "$ac_file" || continue;
3973   case $ac_file in
3974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3976        break;;
3977   esac
3978 done
3979 else
3980   $as_echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot compute suffix of object files: cannot compile
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 fi
3988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991 $as_echo "$ac_cv_objext" >&6; }
3992 OBJEXT=$ac_cv_objext
3993 ac_objext=$OBJEXT
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3995 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3996 if ${ac_cv_c_compiler_gnu+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h.  */
4001
4002 int
4003 main ()
4004 {
4005 #ifndef __GNUC__
4006        choke me
4007 #endif
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014   ac_compiler_gnu=yes
4015 else
4016   ac_compiler_gnu=no
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4023 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4024 if test $ac_compiler_gnu = yes; then
4025   GCC=yes
4026 else
4027   GCC=
4028 fi
4029 ac_test_CFLAGS=${CFLAGS+set}
4030 ac_save_CFLAGS=$CFLAGS
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4032 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4033 if ${ac_cv_prog_cc_g+:} false; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   ac_save_c_werror_flag=$ac_c_werror_flag
4037    ac_c_werror_flag=yes
4038    ac_cv_prog_cc_g=no
4039    CFLAGS="-g"
4040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042
4043 int
4044 main ()
4045 {
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052   ac_cv_prog_cc_g=yes
4053 else
4054   CFLAGS=""
4055       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h.  */
4057
4058 int
4059 main ()
4060 {
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067
4068 else
4069   ac_c_werror_flag=$ac_save_c_werror_flag
4070          CFLAGS="-g"
4071          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083   ac_cv_prog_cc_g=yes
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090    ac_c_werror_flag=$ac_save_c_werror_flag
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4093 $as_echo "$ac_cv_prog_cc_g" >&6; }
4094 if test "$ac_test_CFLAGS" = set; then
4095   CFLAGS=$ac_save_CFLAGS
4096 elif test $ac_cv_prog_cc_g = yes; then
4097   if test "$GCC" = yes; then
4098     CFLAGS="-g -O2"
4099   else
4100     CFLAGS="-g"
4101   fi
4102 else
4103   if test "$GCC" = yes; then
4104     CFLAGS="-O2"
4105   else
4106     CFLAGS=
4107   fi
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4110 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4111 if ${ac_cv_prog_cc_c89+:} false; then :
4112   $as_echo_n "(cached) " >&6
4113 else
4114   ac_cv_prog_cc_c89=no
4115 ac_save_CC=$CC
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h.  */
4118 #include <stdarg.h>
4119 #include <stdio.h>
4120 #include <sys/types.h>
4121 #include <sys/stat.h>
4122 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4123 struct buf { int x; };
4124 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4125 static char *e (p, i)
4126      char **p;
4127      int i;
4128 {
4129   return p[i];
4130 }
4131 static char *f (char * (*g) (char **, int), char **p, ...)
4132 {
4133   char *s;
4134   va_list v;
4135   va_start (v,p);
4136   s = g (p, va_arg (v,int));
4137   va_end (v);
4138   return s;
4139 }
4140
4141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4142    function prototypes and stuff, but not '\xHH' hex character constants.
4143    These don't provoke an error unfortunately, instead are silently treated
4144    as 'x'.  The following induces an error, until -std is added to get
4145    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4146    array size at least.  It's necessary to write '\x00'==0 to get something
4147    that's true only with -std.  */
4148 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4149
4150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4151    inside strings and character constants.  */
4152 #define FOO(x) 'x'
4153 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4154
4155 int test (int i, double x);
4156 struct s1 {int (*f) (int a);};
4157 struct s2 {int (*f) (double a);};
4158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4159 int argc;
4160 char **argv;
4161 int
4162 main ()
4163 {
4164 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4170         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4171 do
4172   CC="$ac_save_CC $ac_arg"
4173   if ac_fn_c_try_compile "$LINENO"; then :
4174   ac_cv_prog_cc_c89=$ac_arg
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext
4177   test "x$ac_cv_prog_cc_c89" != "xno" && break
4178 done
4179 rm -f conftest.$ac_ext
4180 CC=$ac_save_CC
4181
4182 fi
4183 # AC_CACHE_VAL
4184 case "x$ac_cv_prog_cc_c89" in
4185   x)
4186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4187 $as_echo "none needed" >&6; } ;;
4188   xno)
4189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4190 $as_echo "unsupported" >&6; } ;;
4191   *)
4192     CC="$CC $ac_cv_prog_cc_c89"
4193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4194 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4195 esac
4196 if test "x$ac_cv_prog_cc_c89" != xno; then :
4197
4198 fi
4199
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 DEPDIR="${am__leading_dot}deps"
4206
4207 ac_config_commands="$ac_config_commands depfiles"
4208
4209
4210 am_make=${MAKE-make}
4211 cat > confinc << 'END'
4212 am__doit:
4213         @echo this is the am__doit target
4214 .PHONY: am__doit
4215 END
4216 # If we don't find an include directive, just comment out the code.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4219 am__include="#"
4220 am__quote=
4221 _am_result=none
4222 # First try GNU make style include.
4223 echo "include confinc" > confmf
4224 # Ignore all kinds of additional output from `make'.
4225 case `$am_make -s -f confmf 2> /dev/null` in #(
4226 *the\ am__doit\ target*)
4227   am__include=include
4228   am__quote=
4229   _am_result=GNU
4230   ;;
4231 esac
4232 # Now try BSD make style include.
4233 if test "$am__include" = "#"; then
4234    echo '.include "confinc"' > confmf
4235    case `$am_make -s -f confmf 2> /dev/null` in #(
4236    *the\ am__doit\ target*)
4237      am__include=.include
4238      am__quote="\""
4239      _am_result=BSD
4240      ;;
4241    esac
4242 fi
4243
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4246 $as_echo "$_am_result" >&6; }
4247 rm -f confinc confmf
4248
4249 # Check whether --enable-dependency-tracking was given.
4250 if test "${enable_dependency_tracking+set}" = set; then :
4251   enableval=$enable_dependency_tracking;
4252 fi
4253
4254 if test "x$enable_dependency_tracking" != xno; then
4255   am_depcomp="$ac_aux_dir/depcomp"
4256   AMDEPBACKSLASH='\'
4257   am__nodep='_no'
4258 fi
4259  if test "x$enable_dependency_tracking" != xno; then
4260   AMDEP_TRUE=
4261   AMDEP_FALSE='#'
4262 else
4263   AMDEP_TRUE='#'
4264   AMDEP_FALSE=
4265 fi
4266
4267
4268
4269 depcc="$CC"   am_compiler_list=
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4272 $as_echo_n "checking dependency style of $depcc... " >&6; }
4273 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4277   # We make a subdir and do the tests there.  Otherwise we can end up
4278   # making bogus files that we don't know about and never remove.  For
4279   # instance it was reported that on HP-UX the gcc test will end up
4280   # making a dummy file named `D' -- because `-MD' means `put the output
4281   # in D'.
4282   rm -rf conftest.dir
4283   mkdir conftest.dir
4284   # Copy depcomp to subdir because otherwise we won't find it if we're
4285   # using a relative directory.
4286   cp "$am_depcomp" conftest.dir
4287   cd conftest.dir
4288   # We will build objects and dependencies in a subdirectory because
4289   # it helps to detect inapplicable dependency modes.  For instance
4290   # both Tru64's cc and ICC support -MD to output dependencies as a
4291   # side effect of compilation, but ICC will put the dependencies in
4292   # the current directory while Tru64 will put them in the object
4293   # directory.
4294   mkdir sub
4295
4296   am_cv_CC_dependencies_compiler_type=none
4297   if test "$am_compiler_list" = ""; then
4298      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4299   fi
4300   am__universal=false
4301   case " $depcc " in #(
4302      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4303      esac
4304
4305   for depmode in $am_compiler_list; do
4306     # Setup a source with many dependencies, because some compilers
4307     # like to wrap large dependency lists on column 80 (with \), and
4308     # we should not choose a depcomp mode which is confused by this.
4309     #
4310     # We need to recreate these files for each test, as the compiler may
4311     # overwrite some of them when testing with obscure command lines.
4312     # This happens at least with the AIX C compiler.
4313     : > sub/conftest.c
4314     for i in 1 2 3 4 5 6; do
4315       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4316       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4317       # Solaris 8's {/usr,}/bin/sh.
4318       touch sub/conftst$i.h
4319     done
4320     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4321
4322     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4323     # mode.  It turns out that the SunPro C++ compiler does not properly
4324     # handle `-M -o', and we need to detect this.  Also, some Intel
4325     # versions had trouble with output in subdirs
4326     am__obj=sub/conftest.${OBJEXT-o}
4327     am__minus_obj="-o $am__obj"
4328     case $depmode in
4329     gcc)
4330       # This depmode causes a compiler race in universal mode.
4331       test "$am__universal" = false || continue
4332       ;;
4333     nosideeffect)
4334       # after this tag, mechanisms are not by side-effect, so they'll
4335       # only be used when explicitly requested
4336       if test "x$enable_dependency_tracking" = xyes; then
4337         continue
4338       else
4339         break
4340       fi
4341       ;;
4342     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4343       # This compiler won't grok `-c -o', but also, the minuso test has
4344       # not run yet.  These depmodes are late enough in the game, and
4345       # so weak that their functioning should not be impacted.
4346       am__obj=conftest.${OBJEXT-o}
4347       am__minus_obj=
4348       ;;
4349     none) break ;;
4350     esac
4351     if depmode=$depmode \
4352        source=sub/conftest.c object=$am__obj \
4353        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4355          >/dev/null 2>conftest.err &&
4356        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4357        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4358        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4359        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4360       # icc doesn't choke on unknown options, it will just issue warnings
4361       # or remarks (even with -Werror).  So we grep stderr for any message
4362       # that says an option was ignored or not supported.
4363       # When given -MP, icc 7.0 and 7.1 complain thusly:
4364       #   icc: Command line warning: ignoring option '-M'; no argument required
4365       # The diagnosis changed in icc 8.0:
4366       #   icc: Command line remark: option '-MP' not supported
4367       if (grep 'ignoring option' conftest.err ||
4368           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4369         am_cv_CC_dependencies_compiler_type=$depmode
4370         break
4371       fi
4372     fi
4373   done
4374
4375   cd ..
4376   rm -rf conftest.dir
4377 else
4378   am_cv_CC_dependencies_compiler_type=none
4379 fi
4380
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4383 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4384 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4385
4386  if
4387   test "x$enable_dependency_tracking" != xno \
4388   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4389   am__fastdepCC_TRUE=
4390   am__fastdepCC_FALSE='#'
4391 else
4392   am__fastdepCC_TRUE='#'
4393   am__fastdepCC_FALSE=
4394 fi
4395
4396
4397
4398 # Since we use gnulib: gl_EARLY must be called as soon as possible after
4399 # the C compiler is checked.  The others could be later, but we just
4400 # keep everything together.
4401
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4409 # On Suns, sometimes $CPP names a directory.
4410 if test -n "$CPP" && test -d "$CPP"; then
4411   CPP=
4412 fi
4413 if test -z "$CPP"; then
4414   if ${ac_cv_prog_CPP+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417       # Double quotes because CPP needs to be expanded
4418     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419     do
4420       ac_preproc_ok=false
4421 for ac_c_preproc_warn_flag in '' yes
4422 do
4423   # Use a header file that comes with gcc, so configuring glibc
4424   # with a fresh cross-compiler works.
4425   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426   # <limits.h> exists even on freestanding compilers.
4427   # On the NeXT, cc -E runs the code through the compiler's parser,
4428   # not just through cpp. "Syntax error" is here to catch this case.
4429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h.  */
4431 #ifdef __STDC__
4432 # include <limits.h>
4433 #else
4434 # include <assert.h>
4435 #endif
4436                      Syntax error
4437 _ACEOF
4438 if ac_fn_c_try_cpp "$LINENO"; then :
4439
4440 else
4441   # Broken: fails on valid input.
4442 continue
4443 fi
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4445
4446   # OK, works on sane cases.  Now check whether nonexistent headers
4447   # can be detected and how.
4448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #include <ac_nonexistent.h>
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453   # Broken: success on invalid input.
4454 continue
4455 else
4456   # Passes both tests.
4457 ac_preproc_ok=:
4458 break
4459 fi
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4461
4462 done
4463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464 rm -f conftest.i conftest.err conftest.$ac_ext
4465 if $ac_preproc_ok; then :
4466   break
4467 fi
4468
4469     done
4470     ac_cv_prog_CPP=$CPP
4471
4472 fi
4473   CPP=$ac_cv_prog_CPP
4474 else
4475   ac_cv_prog_CPP=$CPP
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4478 $as_echo "$CPP" >&6; }
4479 ac_preproc_ok=false
4480 for ac_c_preproc_warn_flag in '' yes
4481 do
4482   # Use a header file that comes with gcc, so configuring glibc
4483   # with a fresh cross-compiler works.
4484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485   # <limits.h> exists even on freestanding compilers.
4486   # On the NeXT, cc -E runs the code through the compiler's parser,
4487   # not just through cpp. "Syntax error" is here to catch this case.
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #ifdef __STDC__
4491 # include <limits.h>
4492 #else
4493 # include <assert.h>
4494 #endif
4495                      Syntax error
4496 _ACEOF
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4498
4499 else
4500   # Broken: fails on valid input.
4501 continue
4502 fi
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4504
4505   # OK, works on sane cases.  Now check whether nonexistent headers
4506   # can be detected and how.
4507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509 #include <ac_nonexistent.h>
4510 _ACEOF
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4512   # Broken: success on invalid input.
4513 continue
4514 else
4515   # Passes both tests.
4516 ac_preproc_ok=:
4517 break
4518 fi
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521 done
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.i conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then :
4525
4526 else
4527   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details" "$LINENO" 5; }
4531 fi
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542 if ${ac_cv_path_GREP+:} false; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   if test -z "$GREP"; then
4546   ac_path_GREP_found=false
4547   # Loop through the user's path and test for each of PROGNAME-LIST
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_prog in grep ggrep; do
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558   # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4560 *GNU*)
4561   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4562 *)
4563   ac_count=0
4564   $as_echo_n 0123456789 >"conftest.in"
4565   while :
4566   do
4567     cat "conftest.in" "conftest.in" >"conftest.tmp"
4568     mv "conftest.tmp" "conftest.in"
4569     cp "conftest.in" "conftest.nl"
4570     $as_echo 'GREP' >> "conftest.nl"
4571     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573     as_fn_arith $ac_count + 1 && ac_count=$as_val
4574     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575       # Best one so far, save it but keep looking for a better one
4576       ac_cv_path_GREP="$ac_path_GREP"
4577       ac_path_GREP_max=$ac_count
4578     fi
4579     # 10*(2^10) chars as input seems more than enough
4580     test $ac_count -gt 10 && break
4581   done
4582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583 esac
4584
4585       $ac_path_GREP_found && break 3
4586     done
4587   done
4588   done
4589 IFS=$as_save_IFS
4590   if test -z "$ac_cv_path_GREP"; then
4591     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592   fi
4593 else
4594   ac_cv_path_GREP=$GREP
4595 fi
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599 $as_echo "$ac_cv_path_GREP" >&6; }
4600  GREP="$ac_cv_path_GREP"
4601
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604 $as_echo_n "checking for egrep... " >&6; }
4605 if ${ac_cv_path_EGREP+:} false; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609    then ac_cv_path_EGREP="$GREP -E"
4610    else
4611      if test -z "$EGREP"; then
4612   ac_path_EGREP_found=false
4613   # Loop through the user's path and test for each of PROGNAME-LIST
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_prog in egrep; do
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624   # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4626 *GNU*)
4627   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4628 *)
4629   ac_count=0
4630   $as_echo_n 0123456789 >"conftest.in"
4631   while :
4632   do
4633     cat "conftest.in" "conftest.in" >"conftest.tmp"
4634     mv "conftest.tmp" "conftest.in"
4635     cp "conftest.in" "conftest.nl"
4636     $as_echo 'EGREP' >> "conftest.nl"
4637     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639     as_fn_arith $ac_count + 1 && ac_count=$as_val
4640     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641       # Best one so far, save it but keep looking for a better one
4642       ac_cv_path_EGREP="$ac_path_EGREP"
4643       ac_path_EGREP_max=$ac_count
4644     fi
4645     # 10*(2^10) chars as input seems more than enough
4646     test $ac_count -gt 10 && break
4647   done
4648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651       $ac_path_EGREP_found && break 3
4652     done
4653   done
4654   done
4655 IFS=$as_save_IFS
4656   if test -z "$ac_cv_path_EGREP"; then
4657     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658   fi
4659 else
4660   ac_cv_path_EGREP=$EGREP
4661 fi
4662
4663    fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666 $as_echo "$ac_cv_path_EGREP" >&6; }
4667  EGREP="$ac_cv_path_EGREP"
4668
4669
4670
4671
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4673 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4674 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677
4678       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680
4681 #ifdef __ACK__
4682 Amsterdam
4683 #endif
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687   $EGREP "Amsterdam" >/dev/null 2>&1; then :
4688   gl_cv_c_amsterdam_compiler=yes
4689 else
4690   gl_cv_c_amsterdam_compiler=no
4691 fi
4692 rm -f conftest*
4693
4694
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4697 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4698   if test -z "$AR"; then
4699     if test $gl_cv_c_amsterdam_compiler = yes; then
4700       AR='cc -c.a'
4701       if test -z "$ARFLAGS"; then
4702         ARFLAGS='-o'
4703       fi
4704     else
4705                   if test -n "$ac_tool_prefix"; then
4706   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4707 set dummy ${ac_tool_prefix}ar; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_AR+:} false; then :
4711   $as_echo_n "(cached) " >&6
4712 else
4713   if test -n "$AR"; then
4714   ac_cv_prog_AR="$AR" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721     for ac_exec_ext in '' $ac_executable_extensions; do
4722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723     ac_cv_prog_AR="${ac_tool_prefix}ar"
4724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728   done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 AR=$ac_cv_prog_AR
4734 if test -n "$AR"; then
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4736 $as_echo "$AR" >&6; }
4737 else
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 fi
4744 if test -z "$ac_cv_prog_AR"; then
4745   ac_ct_AR=$AR
4746   # Extract the first word of "ar", so it can be a program name with args.
4747 set dummy ar; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   if test -n "$ac_ct_AR"; then
4754   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759   IFS=$as_save_IFS
4760   test -z "$as_dir" && as_dir=.
4761     for ac_exec_ext in '' $ac_executable_extensions; do
4762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763     ac_cv_prog_ac_ct_AR="ar"
4764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765     break 2
4766   fi
4767 done
4768   done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4774 if test -n "$ac_ct_AR"; then
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4776 $as_echo "$ac_ct_AR" >&6; }
4777 else
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782   if test "x$ac_ct_AR" = x; then
4783     AR="ar"
4784   else
4785     case $cross_compiling:$ac_tool_warned in
4786 yes:)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789 ac_tool_warned=yes ;;
4790 esac
4791     AR=$ac_ct_AR
4792   fi
4793 else
4794   AR="$ac_cv_prog_AR"
4795 fi
4796
4797       if test -z "$ARFLAGS"; then
4798         ARFLAGS='cru'
4799       fi
4800     fi
4801   else
4802     if test -z "$ARFLAGS"; then
4803       ARFLAGS='cru'
4804     fi
4805   fi
4806
4807
4808   if test -z "$RANLIB"; then
4809     if test $gl_cv_c_amsterdam_compiler = yes; then
4810       RANLIB=':'
4811     else
4812             if test -n "$ac_tool_prefix"; then
4813   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_RANLIB+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   if test -n "$RANLIB"; then
4821   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835   done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 RANLIB=$ac_cv_prog_RANLIB
4841 if test -n "$RANLIB"; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4843 $as_echo "$RANLIB" >&6; }
4844 else
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 fi
4851 if test -z "$ac_cv_prog_RANLIB"; then
4852   ac_ct_RANLIB=$RANLIB
4853   # Extract the first word of "ranlib", so it can be a program name with args.
4854 set dummy ranlib; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   if test -n "$ac_ct_RANLIB"; then
4861   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_ac_ct_RANLIB="ranlib"
4871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875   done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881 if test -n "$ac_ct_RANLIB"; then
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4883 $as_echo "$ac_ct_RANLIB" >&6; }
4884 else
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889   if test "x$ac_ct_RANLIB" = x; then
4890     RANLIB=":"
4891   else
4892     case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898     RANLIB=$ac_ct_RANLIB
4899   fi
4900 else
4901   RANLIB="$ac_cv_prog_RANLIB"
4902 fi
4903
4904     fi
4905   fi
4906
4907
4908 # Make sure we can run config.sub.
4909 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4910   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4913 $as_echo_n "checking build system type... " >&6; }
4914 if ${ac_cv_build+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   ac_build_alias=$build_alias
4918 test "x$ac_build_alias" = x &&
4919   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4920 test "x$ac_build_alias" = x &&
4921   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4922 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4923   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4924
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4927 $as_echo "$ac_cv_build" >&6; }
4928 case $ac_cv_build in
4929 *-*-*) ;;
4930 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4931 esac
4932 build=$ac_cv_build
4933 ac_save_IFS=$IFS; IFS='-'
4934 set x $ac_cv_build
4935 shift
4936 build_cpu=$1
4937 build_vendor=$2
4938 shift; shift
4939 # Remember, the first character of IFS is used to create $*,
4940 # except with old shells:
4941 build_os=$*
4942 IFS=$ac_save_IFS
4943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4947 $as_echo_n "checking host system type... " >&6; }
4948 if ${ac_cv_host+:} false; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   if test "x$host_alias" = x; then
4952   ac_cv_host=$ac_cv_build
4953 else
4954   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4955     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4956 fi
4957
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4960 $as_echo "$ac_cv_host" >&6; }
4961 case $ac_cv_host in
4962 *-*-*) ;;
4963 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4964 esac
4965 host=$ac_cv_host
4966 ac_save_IFS=$IFS; IFS='-'
4967 set x $ac_cv_host
4968 shift
4969 host_cpu=$1
4970 host_vendor=$2
4971 shift; shift
4972 # Remember, the first character of IFS is used to create $*,
4973 # except with old shells:
4974 host_os=$*
4975 IFS=$ac_save_IFS
4976 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4980 $as_echo_n "checking for ANSI C header files... " >&6; }
4981 if ${ac_cv_header_stdc+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h.  */
4986 #include <stdlib.h>
4987 #include <stdarg.h>
4988 #include <string.h>
4989 #include <float.h>
4990
4991 int
4992 main ()
4993 {
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000   ac_cv_header_stdc=yes
5001 else
5002   ac_cv_header_stdc=no
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005
5006 if test $ac_cv_header_stdc = yes; then
5007   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #include <string.h>
5011
5012 _ACEOF
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014   $EGREP "memchr" >/dev/null 2>&1; then :
5015
5016 else
5017   ac_cv_header_stdc=no
5018 fi
5019 rm -f conftest*
5020
5021 fi
5022
5023 if test $ac_cv_header_stdc = yes; then
5024   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h.  */
5027 #include <stdlib.h>
5028
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031   $EGREP "free" >/dev/null 2>&1; then :
5032
5033 else
5034   ac_cv_header_stdc=no
5035 fi
5036 rm -f conftest*
5037
5038 fi
5039
5040 if test $ac_cv_header_stdc = yes; then
5041   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5042   if test "$cross_compiling" = yes; then :
5043   :
5044 else
5045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h.  */
5047 #include <ctype.h>
5048 #include <stdlib.h>
5049 #if ((' ' & 0x0FF) == 0x020)
5050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5052 #else
5053 # define ISLOWER(c) \
5054                    (('a' <= (c) && (c) <= 'i') \
5055                      || ('j' <= (c) && (c) <= 'r') \
5056                      || ('s' <= (c) && (c) <= 'z'))
5057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5058 #endif
5059
5060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5061 int
5062 main ()
5063 {
5064   int i;
5065   for (i = 0; i < 256; i++)
5066     if (XOR (islower (i), ISLOWER (i))
5067         || toupper (i) != TOUPPER (i))
5068       return 2;
5069   return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_run "$LINENO"; then :
5073
5074 else
5075   ac_cv_header_stdc=no
5076 fi
5077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5078   conftest.$ac_objext conftest.beam conftest.$ac_ext
5079 fi
5080
5081 fi
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5084 $as_echo "$ac_cv_header_stdc" >&6; }
5085 if test $ac_cv_header_stdc = yes; then
5086
5087 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5088
5089 fi
5090
5091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093                   inttypes.h stdint.h unistd.h
5094 do :
5095   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5097 "
5098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5099   cat >>confdefs.h <<_ACEOF
5100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 _ACEOF
5102
5103 fi
5104
5105 done
5106
5107
5108
5109
5110
5111   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5113   MINIX=yes
5114 else
5115   MINIX=
5116 fi
5117
5118
5119   if test "$MINIX" = yes; then
5120
5121 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5122
5123
5124 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5125
5126
5127 $as_echo "#define _MINIX 1" >>confdefs.h
5128
5129   fi
5130
5131         case "$host_os" in
5132     hpux*)
5133
5134 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5135
5136       ;;
5137   esac
5138
5139
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5142 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h.  */
5147
5148 #         define __EXTENSIONS__ 1
5149           $ac_includes_default
5150 int
5151 main ()
5152 {
5153
5154   ;
5155   return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159   ac_cv_safe_to_define___extensions__=yes
5160 else
5161   ac_cv_safe_to_define___extensions__=no
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5167   test $ac_cv_safe_to_define___extensions__ = yes &&
5168     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5169
5170   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5171
5172   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5173
5174   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5175
5176   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5177
5178   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189   # Code from module announce-gen:
5190   # Code from module c-ctype:
5191   # Code from module c-strcase:
5192   # Code from module c-strcaseeq:
5193   # Code from module close-stream:
5194   # Code from module closeout:
5195   # Code from module configmake:
5196   # Code from module do-release-commit-and-tag:
5197   # Code from module errno:
5198   # Code from module error:
5199   # Code from module exitfail:
5200   # Code from module extensions:
5201
5202   # Code from module fdl:
5203   # Code from module fpending:
5204   # Code from module gendocs:
5205   # Code from module getopt-gnu:
5206   # Code from module getopt-posix:
5207   # Code from module gettext:
5208   # Code from module gettext-h:
5209   # Code from module gnumakefile:
5210   # Code from module gnupload:
5211   # Code from module havelib:
5212   # Code from module include_next:
5213   # Code from module inline:
5214   # Code from module intprops:
5215   # Code from module localcharset:
5216   # Code from module maintainer-makefile:
5217   # Code from module mbrtowc:
5218   # Code from module mbsinit:
5219   # Code from module msvc-inval:
5220   # Code from module msvc-nothrow:
5221   # Code from module nocrash:
5222   # Code from module progname:
5223   # Code from module quotearg:
5224   # Code from module quotearg-simple:
5225   # Code from module readme-release:
5226   # Code from module snippet/_Noreturn:
5227   # Code from module snippet/arg-nonnull:
5228   # Code from module snippet/c++defs:
5229   # Code from module snippet/warn-on-use:
5230   # Code from module ssize_t:
5231   # Code from module stdbool:
5232   # Code from module stddef:
5233   # Code from module stdlib:
5234   # Code from module streq:
5235   # Code from module strerror:
5236   # Code from module strerror-override:
5237   # Code from module string:
5238   # Code from module unistd:
5239   # Code from module useless-if-before-free:
5240   # Code from module vc-list-files:
5241   # Code from module verify:
5242   # Code from module wchar:
5243   # Code from module wctype-h:
5244   # Code from module xalloc:
5245   # Code from module xalloc-die:
5246   # Code from module xalloc-oversized:
5247
5248
5249
5250
5251
5252
5253           LIBC_FATAL_STDERR_=1
5254   export LIBC_FATAL_STDERR_
5255
5256
5257
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5259 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5260 if ${gl_cv_have_include_next+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   rm -rf conftestd1a conftestd1b conftestd2
5264      mkdir conftestd1a conftestd1b conftestd2
5265                                                   cat <<EOF > conftestd1a/conftest.h
5266 #define DEFINED_IN_CONFTESTD1
5267 #include_next <conftest.h>
5268 #ifdef DEFINED_IN_CONFTESTD2
5269 int foo;
5270 #else
5271 #error "include_next doesn't work"
5272 #endif
5273 EOF
5274      cat <<EOF > conftestd1b/conftest.h
5275 #define DEFINED_IN_CONFTESTD1
5276 #include <stdio.h>
5277 #include_next <conftest.h>
5278 #ifdef DEFINED_IN_CONFTESTD2
5279 int foo;
5280 #else
5281 #error "include_next doesn't work"
5282 #endif
5283 EOF
5284      cat <<EOF > conftestd2/conftest.h
5285 #ifndef DEFINED_IN_CONFTESTD1
5286 #error "include_next test doesn't work"
5287 #endif
5288 #define DEFINED_IN_CONFTESTD2
5289 EOF
5290      gl_save_CPPFLAGS="$CPPFLAGS"
5291      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5292      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h.  */
5294 #include <conftest.h>
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297   gl_cv_have_include_next=yes
5298 else
5299   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5300         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302 #include <conftest.h>
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305   gl_cv_have_include_next=buggy
5306 else
5307   gl_cv_have_include_next=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313      CPPFLAGS="$gl_save_CPPFLAGS"
5314      rm -rf conftestd1a conftestd1b conftestd2
5315
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5318 $as_echo "$gl_cv_have_include_next" >&6; }
5319   PRAGMA_SYSTEM_HEADER=
5320   if test $gl_cv_have_include_next = yes; then
5321     INCLUDE_NEXT=include_next
5322     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5323     if test -n "$GCC"; then
5324       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5325     fi
5326   else
5327     if test $gl_cv_have_include_next = buggy; then
5328       INCLUDE_NEXT=include
5329       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5330     else
5331       INCLUDE_NEXT=include
5332       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5333     fi
5334   fi
5335
5336
5337
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5339 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5340 if ${gl_cv_pragma_columns+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h.  */
5345
5346 #ifdef __TANDEM
5347 choke me
5348 #endif
5349
5350 _ACEOF
5351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352   $EGREP "choke me" >/dev/null 2>&1; then :
5353   gl_cv_pragma_columns=yes
5354 else
5355   gl_cv_pragma_columns=no
5356 fi
5357 rm -f conftest*
5358
5359
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5362 $as_echo "$gl_cv_pragma_columns" >&6; }
5363   if test $gl_cv_pragma_columns = yes; then
5364     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5365   else
5366     PRAGMA_COLUMNS=
5367   fi
5368
5369
5370
5371
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5373 $as_echo_n "checking for complete errno.h... " >&6; }
5374 if ${gl_cv_header_errno_h_complete+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377
5378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h.  */
5380
5381 #include <errno.h>
5382 #if !defined ENOMSG
5383 booboo
5384 #endif
5385 #if !defined EIDRM
5386 booboo
5387 #endif
5388 #if !defined ENOLINK
5389 booboo
5390 #endif
5391 #if !defined EPROTO
5392 booboo
5393 #endif
5394 #if !defined EMULTIHOP
5395 booboo
5396 #endif
5397 #if !defined EBADMSG
5398 booboo
5399 #endif
5400 #if !defined EOVERFLOW
5401 booboo
5402 #endif
5403 #if !defined ENOTSUP
5404 booboo
5405 #endif
5406 #if !defined ENETRESET
5407 booboo
5408 #endif
5409 #if !defined ECONNABORTED
5410 booboo
5411 #endif
5412 #if !defined ESTALE
5413 booboo
5414 #endif
5415 #if !defined EDQUOT
5416 booboo
5417 #endif
5418 #if !defined ECANCELED
5419 booboo
5420 #endif
5421
5422 _ACEOF
5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424   $EGREP "booboo" >/dev/null 2>&1; then :
5425   gl_cv_header_errno_h_complete=no
5426 else
5427   gl_cv_header_errno_h_complete=yes
5428 fi
5429 rm -f conftest*
5430
5431
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5434 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5435   if test $gl_cv_header_errno_h_complete = yes; then
5436     ERRNO_H=''
5437   else
5438
5439
5440
5441
5442
5443
5444
5445
5446      if test $gl_cv_have_include_next = yes; then
5447        gl_cv_next_errno_h='<'errno.h'>'
5448      else
5449        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5450 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5451 if ${gl_cv_next_errno_h+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454
5455                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h.  */
5457 #include <errno.h>
5458
5459 _ACEOF
5460                                                                                                                         case "$host_os" in
5461                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
5462                  *)    gl_absname_cpp="$ac_cpp" ;;
5463                esac
5464
5465                case "$host_os" in
5466                  mingw*)
5467                                                                                                                                      gl_dirsep_regex='[/\\]'
5468                    ;;
5469                  *)
5470                    gl_dirsep_regex='\/'
5471                    ;;
5472                esac
5473                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5474
5475                gl_header_literal_regex=`echo 'errno.h' \
5476                                         | sed -e "$gl_make_literal_regex_sed"`
5477                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5478                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5479                    s|^/[^/]|//&|
5480                    p
5481                    q
5482                  }'
5483                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5484                       sed -n "$gl_absolute_header_sed"`'"'
5485
5486
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5489 $as_echo "$gl_cv_next_errno_h" >&6; }
5490      fi
5491      NEXT_ERRNO_H=$gl_cv_next_errno_h
5492
5493      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5494        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5495        gl_next_as_first_directive='<'errno.h'>'
5496      else
5497        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5498        gl_next_as_first_directive=$gl_cv_next_errno_h
5499      fi
5500      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5501
5502
5503
5504
5505     ERRNO_H='errno.h'
5506   fi
5507
5508    if test -n "$ERRNO_H"; then
5509   GL_GENERATE_ERRNO_H_TRUE=
5510   GL_GENERATE_ERRNO_H_FALSE='#'
5511 else
5512   GL_GENERATE_ERRNO_H_TRUE='#'
5513   GL_GENERATE_ERRNO_H_FALSE=
5514 fi
5515
5516
5517   if test -n "$ERRNO_H"; then
5518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5519 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5520 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523
5524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527 #include <errno.h>
5528 #ifdef EMULTIHOP
5529 yes
5530 #endif
5531
5532 _ACEOF
5533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534   $EGREP "yes" >/dev/null 2>&1; then :
5535   gl_cv_header_errno_h_EMULTIHOP=yes
5536 else
5537   gl_cv_header_errno_h_EMULTIHOP=no
5538 fi
5539 rm -f conftest*
5540
5541       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5542         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h.  */
5544
5545 #define _XOPEN_SOURCE_EXTENDED 1
5546 #include <errno.h>
5547 #ifdef EMULTIHOP
5548 yes
5549 #endif
5550
5551 _ACEOF
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553   $EGREP "yes" >/dev/null 2>&1; then :
5554   gl_cv_header_errno_h_EMULTIHOP=hidden
5555 fi
5556 rm -f conftest*
5557
5558         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5559                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
5560 #define _XOPEN_SOURCE_EXTENDED 1
5561 #include <errno.h>
5562 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
5563 #include <stdio.h>
5564 #include <stdlib.h>
5565 "; then :
5566
5567 fi
5568
5569         fi
5570       fi
5571
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5574 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5575     case $gl_cv_header_errno_h_EMULTIHOP in
5576       yes | no)
5577         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5578         ;;
5579       *)
5580         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5581         ;;
5582     esac
5583
5584
5585   fi
5586
5587
5588   if test -n "$ERRNO_H"; then
5589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5590 $as_echo_n "checking for ENOLINK value... " >&6; }
5591 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594
5595       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h.  */
5597
5598 #include <errno.h>
5599 #ifdef ENOLINK
5600 yes
5601 #endif
5602
5603 _ACEOF
5604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5605   $EGREP "yes" >/dev/null 2>&1; then :
5606   gl_cv_header_errno_h_ENOLINK=yes
5607 else
5608   gl_cv_header_errno_h_ENOLINK=no
5609 fi
5610 rm -f conftest*
5611
5612       if test $gl_cv_header_errno_h_ENOLINK = no; then
5613         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h.  */
5615
5616 #define _XOPEN_SOURCE_EXTENDED 1
5617 #include <errno.h>
5618 #ifdef ENOLINK
5619 yes
5620 #endif
5621
5622 _ACEOF
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624   $EGREP "yes" >/dev/null 2>&1; then :
5625   gl_cv_header_errno_h_ENOLINK=hidden
5626 fi
5627 rm -f conftest*
5628
5629         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5630                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
5631 #define _XOPEN_SOURCE_EXTENDED 1
5632 #include <errno.h>
5633 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
5634 #include <stdio.h>
5635 #include <stdlib.h>
5636 "; then :
5637
5638 fi
5639
5640         fi
5641       fi
5642
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5645 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5646     case $gl_cv_header_errno_h_ENOLINK in
5647       yes | no)
5648         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5649         ;;
5650       *)
5651         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5652         ;;
5653     esac
5654
5655
5656   fi
5657
5658
5659   if test -n "$ERRNO_H"; then
5660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5661 $as_echo_n "checking for EOVERFLOW value... " >&6; }
5662 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665
5666       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668
5669 #include <errno.h>
5670 #ifdef EOVERFLOW
5671 yes
5672 #endif
5673
5674 _ACEOF
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676   $EGREP "yes" >/dev/null 2>&1; then :
5677   gl_cv_header_errno_h_EOVERFLOW=yes
5678 else
5679   gl_cv_header_errno_h_EOVERFLOW=no
5680 fi
5681 rm -f conftest*
5682
5683       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h.  */
5686
5687 #define _XOPEN_SOURCE_EXTENDED 1
5688 #include <errno.h>
5689 #ifdef EOVERFLOW
5690 yes
5691 #endif
5692
5693 _ACEOF
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695   $EGREP "yes" >/dev/null 2>&1; then :
5696   gl_cv_header_errno_h_EOVERFLOW=hidden
5697 fi
5698 rm -f conftest*
5699
5700         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5701                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
5702 #define _XOPEN_SOURCE_EXTENDED 1
5703 #include <errno.h>
5704 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
5705 #include <stdio.h>
5706 #include <stdlib.h>
5707 "; then :
5708
5709 fi
5710
5711         fi
5712       fi
5713
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
5716 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
5717     case $gl_cv_header_errno_h_EOVERFLOW in
5718       yes | no)
5719         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
5720         ;;
5721       *)
5722         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
5723         ;;
5724     esac
5725
5726
5727   fi
5728
5729
5730 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5731 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
5732   ac_have_decl=1
5733 else
5734   ac_have_decl=0
5735 fi
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define HAVE_DECL_STRERROR_R $ac_have_decl
5739 _ACEOF
5740
5741 for ac_func in strerror_r
5742 do :
5743   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5744 if test "x$ac_cv_func_strerror_r" = xyes; then :
5745   cat >>confdefs.h <<_ACEOF
5746 #define HAVE_STRERROR_R 1
5747 _ACEOF
5748
5749 fi
5750 done
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5753 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5754 if ${ac_cv_func_strerror_r_char_p+:} false; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757
5758     ac_cv_func_strerror_r_char_p=no
5759     if test $ac_cv_have_decl_strerror_r = yes; then
5760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 $ac_includes_default
5763 int
5764 main ()
5765 {
5766
5767           char buf[100];
5768           char x = *strerror_r (0, buf, sizeof buf);
5769           char *p = strerror_r (0, buf, sizeof buf);
5770           return !p || x;
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777   ac_cv_func_strerror_r_char_p=yes
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780     else
5781       # strerror_r is not declared.  Choose between
5782       # systems that have relatively inaccessible declarations for the
5783       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
5784       # former has a strerror_r that returns char*, while the latter
5785       # has a strerror_r that returns `int'.
5786       # This test should segfault on the DEC system.
5787       if test "$cross_compiling" = yes; then :
5788   :
5789 else
5790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h.  */
5792 $ac_includes_default
5793         extern char *strerror_r ();
5794 int
5795 main ()
5796 {
5797 char buf[100];
5798           char x = *strerror_r (0, buf, sizeof buf);
5799           return ! isalpha (x);
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_run "$LINENO"; then :
5805   ac_cv_func_strerror_r_char_p=yes
5806 fi
5807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5808   conftest.$ac_objext conftest.beam conftest.$ac_ext
5809 fi
5810
5811     fi
5812
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5815 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5816 if test $ac_cv_func_strerror_r_char_p = yes; then
5817
5818 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5819
5820 fi
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5823 $as_echo_n "checking for inline... " >&6; }
5824 if ${ac_cv_c_inline+:} false; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   ac_cv_c_inline=no
5828 for ac_kw in inline __inline__ __inline; do
5829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h.  */
5831 #ifndef __cplusplus
5832 typedef int foo_t;
5833 static $ac_kw foo_t static_foo () {return 0; }
5834 $ac_kw foo_t foo () {return 0; }
5835 #endif
5836
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"; then :
5839   ac_cv_c_inline=$ac_kw
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842   test "$ac_cv_c_inline" != no && break
5843 done
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5847 $as_echo "$ac_cv_c_inline" >&6; }
5848
5849 case $ac_cv_c_inline in
5850   inline | yes) ;;
5851   *)
5852     case $ac_cv_c_inline in
5853       no) ac_val=;;
5854       *) ac_val=$ac_cv_c_inline;;
5855     esac
5856     cat >>confdefs.h <<_ACEOF
5857 #ifndef __cplusplus
5858 #define inline $ac_val
5859 #endif
5860 _ACEOF
5861     ;;
5862 esac
5863
5864
5865   XGETTEXT_EXTRA_OPTIONS=
5866
5867
5868
5869
5870   for ac_header in $ac_header_list
5871 do :
5872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5874 "
5875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5876   cat >>confdefs.h <<_ACEOF
5877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5878 _ACEOF
5879
5880 fi
5881
5882 done
5883
5884
5885
5886
5887
5888
5889   for ac_func in $ac_func_list
5890 do :
5891   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5892 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5893 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5894   cat >>confdefs.h <<_ACEOF
5895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5896 _ACEOF
5897
5898 fi
5899 done
5900
5901
5902
5903
5904   GNULIB_CHDIR=0;
5905   GNULIB_CHOWN=0;
5906   GNULIB_CLOSE=0;
5907   GNULIB_DUP=0;
5908   GNULIB_DUP2=0;
5909   GNULIB_DUP3=0;
5910   GNULIB_ENVIRON=0;
5911   GNULIB_EUIDACCESS=0;
5912   GNULIB_FACCESSAT=0;
5913   GNULIB_FCHDIR=0;
5914   GNULIB_FCHOWNAT=0;
5915   GNULIB_FDATASYNC=0;
5916   GNULIB_FSYNC=0;
5917   GNULIB_FTRUNCATE=0;
5918   GNULIB_GETCWD=0;
5919   GNULIB_GETDOMAINNAME=0;
5920   GNULIB_GETDTABLESIZE=0;
5921   GNULIB_GETGROUPS=0;
5922   GNULIB_GETHOSTNAME=0;
5923   GNULIB_GETLOGIN=0;
5924   GNULIB_GETLOGIN_R=0;
5925   GNULIB_GETPAGESIZE=0;
5926   GNULIB_GETUSERSHELL=0;
5927   GNULIB_GROUP_MEMBER=0;
5928   GNULIB_ISATTY=0;
5929   GNULIB_LCHOWN=0;
5930   GNULIB_LINK=0;
5931   GNULIB_LINKAT=0;
5932   GNULIB_LSEEK=0;
5933   GNULIB_PIPE=0;
5934   GNULIB_PIPE2=0;
5935   GNULIB_PREAD=0;
5936   GNULIB_PWRITE=0;
5937   GNULIB_READ=0;
5938   GNULIB_READLINK=0;
5939   GNULIB_READLINKAT=0;
5940   GNULIB_RMDIR=0;
5941   GNULIB_SETHOSTNAME=0;
5942   GNULIB_SLEEP=0;
5943   GNULIB_SYMLINK=0;
5944   GNULIB_SYMLINKAT=0;
5945   GNULIB_TTYNAME_R=0;
5946   GNULIB_UNISTD_H_NONBLOCKING=0;
5947   GNULIB_UNISTD_H_SIGPIPE=0;
5948   GNULIB_UNLINK=0;
5949   GNULIB_UNLINKAT=0;
5950   GNULIB_USLEEP=0;
5951   GNULIB_WRITE=0;
5952     HAVE_CHOWN=1;
5953   HAVE_DUP2=1;
5954   HAVE_DUP3=1;
5955   HAVE_EUIDACCESS=1;
5956   HAVE_FACCESSAT=1;
5957   HAVE_FCHDIR=1;
5958   HAVE_FCHOWNAT=1;
5959   HAVE_FDATASYNC=1;
5960   HAVE_FSYNC=1;
5961   HAVE_FTRUNCATE=1;
5962   HAVE_GETDTABLESIZE=1;
5963   HAVE_GETGROUPS=1;
5964   HAVE_GETHOSTNAME=1;
5965   HAVE_GETLOGIN=1;
5966   HAVE_GETPAGESIZE=1;
5967   HAVE_GROUP_MEMBER=1;
5968   HAVE_LCHOWN=1;
5969   HAVE_LINK=1;
5970   HAVE_LINKAT=1;
5971   HAVE_PIPE=1;
5972   HAVE_PIPE2=1;
5973   HAVE_PREAD=1;
5974   HAVE_PWRITE=1;
5975   HAVE_READLINK=1;
5976   HAVE_READLINKAT=1;
5977   HAVE_SETHOSTNAME=1;
5978   HAVE_SLEEP=1;
5979   HAVE_SYMLINK=1;
5980   HAVE_SYMLINKAT=1;
5981   HAVE_UNLINKAT=1;
5982   HAVE_USLEEP=1;
5983   HAVE_DECL_ENVIRON=1;
5984   HAVE_DECL_FCHDIR=1;
5985   HAVE_DECL_FDATASYNC=1;
5986   HAVE_DECL_GETDOMAINNAME=1;
5987   HAVE_DECL_GETLOGIN_R=1;
5988   HAVE_DECL_GETPAGESIZE=1;
5989   HAVE_DECL_GETUSERSHELL=1;
5990   HAVE_DECL_SETHOSTNAME=1;
5991   HAVE_DECL_TTYNAME_R=1;
5992   HAVE_OS_H=0;
5993   HAVE_SYS_PARAM_H=0;
5994   REPLACE_CHOWN=0;
5995   REPLACE_CLOSE=0;
5996   REPLACE_DUP=0;
5997   REPLACE_DUP2=0;
5998   REPLACE_FCHOWNAT=0;
5999   REPLACE_GETCWD=0;
6000   REPLACE_GETDOMAINNAME=0;
6001   REPLACE_GETLOGIN_R=0;
6002   REPLACE_GETGROUPS=0;
6003   REPLACE_GETPAGESIZE=0;
6004   REPLACE_ISATTY=0;
6005   REPLACE_LCHOWN=0;
6006   REPLACE_LINK=0;
6007   REPLACE_LINKAT=0;
6008   REPLACE_LSEEK=0;
6009   REPLACE_PREAD=0;
6010   REPLACE_PWRITE=0;
6011   REPLACE_READ=0;
6012   REPLACE_READLINK=0;
6013   REPLACE_RMDIR=0;
6014   REPLACE_SLEEP=0;
6015   REPLACE_SYMLINK=0;
6016   REPLACE_TTYNAME_R=0;
6017   REPLACE_UNLINK=0;
6018   REPLACE_UNLINKAT=0;
6019   REPLACE_USLEEP=0;
6020   REPLACE_WRITE=0;
6021   UNISTD_H_HAVE_WINSOCK2_H=0;
6022   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040      if test $gl_cv_have_include_next = yes; then
6041        gl_cv_next_getopt_h='<'getopt.h'>'
6042      else
6043        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
6044 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
6045 if ${gl_cv_next_getopt_h+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048
6049              if test $ac_cv_header_getopt_h = yes; then
6050
6051
6052                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h.  */
6054 #include <getopt.h>
6055
6056 _ACEOF
6057                                                                                                                         case "$host_os" in
6058                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
6059                  *)    gl_absname_cpp="$ac_cpp" ;;
6060                esac
6061
6062                case "$host_os" in
6063                  mingw*)
6064                                                                                                                                      gl_dirsep_regex='[/\\]'
6065                    ;;
6066                  *)
6067                    gl_dirsep_regex='\/'
6068                    ;;
6069                esac
6070                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6071
6072                gl_header_literal_regex=`echo 'getopt.h' \
6073                                         | sed -e "$gl_make_literal_regex_sed"`
6074                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6075                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6076                    s|^/[^/]|//&|
6077                    p
6078                    q
6079                  }'
6080                                                             gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6081                       sed -n "$gl_absolute_header_sed"`'"'
6082           else
6083                gl_cv_next_getopt_h='<'getopt.h'>'
6084              fi
6085
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
6089 $as_echo "$gl_cv_next_getopt_h" >&6; }
6090      fi
6091      NEXT_GETOPT_H=$gl_cv_next_getopt_h
6092
6093      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6094        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6095        gl_next_as_first_directive='<'getopt.h'>'
6096      else
6097        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6098        gl_next_as_first_directive=$gl_cv_next_getopt_h
6099      fi
6100      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
6101
6102
6103
6104
6105   if test $ac_cv_header_getopt_h = yes; then
6106     HAVE_GETOPT_H=1
6107   else
6108     HAVE_GETOPT_H=0
6109   fi
6110
6111
6112   gl_replace_getopt=
6113
6114     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
6115     for ac_header in getopt.h
6116 do :
6117   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
6118 if test "x$ac_cv_header_getopt_h" = xyes; then :
6119   cat >>confdefs.h <<_ACEOF
6120 #define HAVE_GETOPT_H 1
6121 _ACEOF
6122
6123 else
6124   gl_replace_getopt=yes
6125 fi
6126
6127 done
6128
6129   fi
6130
6131     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
6132     for ac_func in getopt_long_only
6133 do :
6134   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
6135 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
6136   cat >>confdefs.h <<_ACEOF
6137 #define HAVE_GETOPT_LONG_ONLY 1
6138 _ACEOF
6139
6140 else
6141   gl_replace_getopt=yes
6142 fi
6143 done
6144
6145   fi
6146
6147                     if test -z "$gl_replace_getopt"; then
6148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
6149 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
6150 if ${gl_cv_func_getopt_posix+:} false; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153
6154                                                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h.  */
6156 #include <unistd.h>
6157 int
6158 main ()
6159 {
6160 int *p = &optreset; return optreset;
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_link "$LINENO"; then :
6166   gl_optind_min=1
6167 else
6168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h.  */
6170 #include <getopt.h>
6171 int
6172 main ()
6173 {
6174 return !getopt_clip;
6175   ;
6176   return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180   gl_optind_min=1
6181 else
6182   gl_optind_min=0
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext \
6187     conftest$ac_exeext conftest.$ac_ext
6188
6189                 gl_save_CPPFLAGS=$CPPFLAGS
6190         CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
6191         if test "$cross_compiling" = yes; then :
6192   case "$host_os" in
6193              mingw*)         gl_cv_func_getopt_posix="guessing no";;
6194              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
6195              *)              gl_cv_func_getopt_posix="guessing yes";;
6196            esac
6197
6198 else
6199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h.  */
6201
6202 #include <unistd.h>
6203 #include <stdlib.h>
6204 #include <string.h>
6205
6206 int
6207 main ()
6208 {
6209   {
6210     static char program[] = "program";
6211     static char a[] = "-a";
6212     static char foo[] = "foo";
6213     static char bar[] = "bar";
6214     char *argv[] = { program, a, foo, bar, NULL };
6215     int c;
6216
6217     optind = OPTIND_MIN;
6218     opterr = 0;
6219
6220     c = getopt (4, argv, "ab");
6221     if (!(c == 'a'))
6222       return 1;
6223     c = getopt (4, argv, "ab");
6224     if (!(c == -1))
6225       return 2;
6226     if (!(optind == 2))
6227       return 3;
6228   }
6229   /* Some internal state exists at this point.  */
6230   {
6231     static char program[] = "program";
6232     static char donald[] = "donald";
6233     static char p[] = "-p";
6234     static char billy[] = "billy";
6235     static char duck[] = "duck";
6236     static char a[] = "-a";
6237     static char bar[] = "bar";
6238     char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
6239     int c;
6240
6241     optind = OPTIND_MIN;
6242     opterr = 0;
6243
6244     c = getopt (7, argv, "+abp:q:");
6245     if (!(c == -1))
6246       return 4;
6247     if (!(strcmp (argv[0], "program") == 0))
6248       return 5;
6249     if (!(strcmp (argv[1], "donald") == 0))
6250       return 6;
6251     if (!(strcmp (argv[2], "-p") == 0))
6252       return 7;
6253     if (!(strcmp (argv[3], "billy") == 0))
6254       return 8;
6255     if (!(strcmp (argv[4], "duck") == 0))
6256       return 9;
6257     if (!(strcmp (argv[5], "-a") == 0))
6258       return 10;
6259     if (!(strcmp (argv[6], "bar") == 0))
6260       return 11;
6261     if (!(optind == 1))
6262       return 12;
6263   }
6264   /* Detect MacOS 10.5, AIX 7.1 bug.  */
6265   {
6266     static char program[] = "program";
6267     static char ab[] = "-ab";
6268     char *argv[3] = { program, ab, NULL };
6269     optind = OPTIND_MIN;
6270     opterr = 0;
6271     if (getopt (2, argv, "ab:") != 'a')
6272       return 13;
6273     if (getopt (2, argv, "ab:") != '?')
6274       return 14;
6275     if (optopt != 'b')
6276       return 15;
6277     if (optind != 2)
6278       return 16;
6279   }
6280
6281   return 0;
6282 }
6283
6284 _ACEOF
6285 if ac_fn_c_try_run "$LINENO"; then :
6286   gl_cv_func_getopt_posix=yes
6287 else
6288   gl_cv_func_getopt_posix=no
6289 fi
6290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6291   conftest.$ac_objext conftest.beam conftest.$ac_ext
6292 fi
6293
6294         CPPFLAGS=$gl_save_CPPFLAGS
6295
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
6298 $as_echo "$gl_cv_func_getopt_posix" >&6; }
6299     case "$gl_cv_func_getopt_posix" in
6300       *no) gl_replace_getopt=yes ;;
6301     esac
6302   fi
6303
6304   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
6305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
6306 $as_echo_n "checking for working GNU getopt function... " >&6; }
6307 if ${gl_cv_func_getopt_gnu+:} false; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
6311        # optstring is necessary for programs like m4 that have POSIX-mandated
6312        # semantics for supporting options interspersed with files.
6313        # Also, since getopt_long is a GNU extension, we require optind=0.
6314        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
6315        # so take care to revert to the correct (non-)export state.
6316        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
6317        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
6318          xx) gl_had_POSIXLY_CORRECT=exported ;;
6319          x)  gl_had_POSIXLY_CORRECT=yes      ;;
6320          *)  gl_had_POSIXLY_CORRECT=         ;;
6321        esac
6322        POSIXLY_CORRECT=1
6323        export POSIXLY_CORRECT
6324        if test "$cross_compiling" = yes; then :
6325            case $host_os:$ac_cv_have_decl_optreset in
6326            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
6327            *:yes)               gl_cv_func_getopt_gnu=no;;
6328            *)                   gl_cv_func_getopt_gnu=yes;;
6329          esac
6330
6331 else
6332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h.  */
6334 #include <getopt.h>
6335                            #include <stddef.h>
6336                            #include <string.h>
6337
6338 #include <stdlib.h>
6339 #if defined __MACH__ && defined __APPLE__
6340 /* Avoid a crash on MacOS X.  */
6341 #include <mach/mach.h>
6342 #include <mach/mach_error.h>
6343 #include <mach/thread_status.h>
6344 #include <mach/exception.h>
6345 #include <mach/task.h>
6346 #include <pthread.h>
6347 /* The exception port on which our thread listens.  */
6348 static mach_port_t our_exception_port;
6349 /* The main function of the thread listening for exceptions of type
6350    EXC_BAD_ACCESS.  */
6351 static void *
6352 mach_exception_thread (void *arg)
6353 {
6354   /* Buffer for a message to be received.  */
6355   struct {
6356     mach_msg_header_t head;
6357     mach_msg_body_t msgh_body;
6358     char data[1024];
6359   } msg;
6360   mach_msg_return_t retval;
6361   /* Wait for a message on the exception port.  */
6362   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6363                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6364   if (retval != MACH_MSG_SUCCESS)
6365     abort ();
6366   exit (1);
6367 }
6368 static void
6369 nocrash_init (void)
6370 {
6371   mach_port_t self = mach_task_self ();
6372   /* Allocate a port on which the thread shall listen for exceptions.  */
6373   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6374       == KERN_SUCCESS) {
6375     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
6376     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6377                                 MACH_MSG_TYPE_MAKE_SEND)
6378         == KERN_SUCCESS) {
6379       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
6380          for us.  */
6381       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6382       /* Create the thread listening on the exception port.  */
6383       pthread_attr_t attr;
6384       pthread_t thread;
6385       if (pthread_attr_init (&attr) == 0
6386           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6387           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6388         pthread_attr_destroy (&attr);
6389         /* Replace the exception port info for these exceptions with our own.
6390            Note that we replace the exception port for the entire task, not only
6391            for a particular thread.  This has the effect that when our exception
6392            port gets the message, the thread specific exception port has already
6393            been asked, and we don't need to bother about it.
6394            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
6395         task_set_exception_ports (self, mask, our_exception_port,
6396                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6397       }
6398     }
6399   }
6400 }
6401 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6402 /* Avoid a crash on native Windows.  */
6403 #define WIN32_LEAN_AND_MEAN
6404 #include <windows.h>
6405 #include <winerror.h>
6406 static LONG WINAPI
6407 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6408 {
6409   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6410     {
6411     case EXCEPTION_ACCESS_VIOLATION:
6412     case EXCEPTION_IN_PAGE_ERROR:
6413     case EXCEPTION_STACK_OVERFLOW:
6414     case EXCEPTION_GUARD_PAGE:
6415     case EXCEPTION_PRIV_INSTRUCTION:
6416     case EXCEPTION_ILLEGAL_INSTRUCTION:
6417     case EXCEPTION_DATATYPE_MISALIGNMENT:
6418     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6419     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6420       exit (1);
6421     }
6422   return EXCEPTION_CONTINUE_SEARCH;
6423 }
6424 static void
6425 nocrash_init (void)
6426 {
6427   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6428 }
6429 #else
6430 /* Avoid a crash on POSIX systems.  */
6431 #include <signal.h>
6432 /* A POSIX signal handler.  */
6433 static void
6434 exception_handler (int sig)
6435 {
6436   exit (1);
6437 }
6438 static void
6439 nocrash_init (void)
6440 {
6441 #ifdef SIGSEGV
6442   signal (SIGSEGV, exception_handler);
6443 #endif
6444 #ifdef SIGBUS
6445   signal (SIGBUS, exception_handler);
6446 #endif
6447 }
6448 #endif
6449
6450
6451 int
6452 main ()
6453 {
6454
6455              int result = 0;
6456
6457              nocrash_init();
6458
6459              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
6460                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
6461                 OSF/1 5.1, Solaris 10.  */
6462              {
6463                static char conftest[] = "conftest";
6464                static char plus[] = "-+";
6465                char *argv[3] = { conftest, plus, NULL };
6466                opterr = 0;
6467                if (getopt (2, argv, "+a") != '?')
6468                  result |= 1;
6469              }
6470              /* This code succeeds on glibc 2.8, mingw,
6471                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
6472                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
6473              {
6474                static char program[] = "program";
6475                static char p[] = "-p";
6476                static char foo[] = "foo";
6477                static char bar[] = "bar";
6478                char *argv[] = { program, p, foo, bar, NULL };
6479
6480                optind = 1;
6481                if (getopt (4, argv, "p::") != 'p')
6482                  result |= 2;
6483                else if (optarg != NULL)
6484                  result |= 4;
6485                else if (getopt (4, argv, "p::") != -1)
6486                  result |= 6;
6487                else if (optind != 2)
6488                  result |= 8;
6489              }
6490              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
6491              {
6492                static char program[] = "program";
6493                static char foo[] = "foo";
6494                static char p[] = "-p";
6495                char *argv[] = { program, foo, p, NULL };
6496                optind = 0;
6497                if (getopt (3, argv, "-p") != 1)
6498                  result |= 16;
6499                else if (getopt (3, argv, "-p") != 'p')
6500                  result |= 32;
6501              }
6502              /* This code fails on glibc 2.11.  */
6503              {
6504                static char program[] = "program";
6505                static char b[] = "-b";
6506                static char a[] = "-a";
6507                char *argv[] = { program, b, a, NULL };
6508                optind = opterr = 0;
6509                if (getopt (3, argv, "+:a:b") != 'b')
6510                  result |= 64;
6511                else if (getopt (3, argv, "+:a:b") != ':')
6512                  result |= 64;
6513              }
6514              /* This code dumps core on glibc 2.14.  */
6515              {
6516                static char program[] = "program";
6517                static char w[] = "-W";
6518                static char dummy[] = "dummy";
6519                char *argv[] = { program, w, dummy, NULL };
6520                optind = opterr = 1;
6521                if (getopt (3, argv, "W;") != 'W')
6522                  result |= 128;
6523              }
6524              return result;
6525
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_run "$LINENO"; then :
6531   gl_cv_func_getopt_gnu=yes
6532 else
6533   gl_cv_func_getopt_gnu=no
6534 fi
6535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6536   conftest.$ac_objext conftest.beam conftest.$ac_ext
6537 fi
6538
6539        case $gl_had_POSIXLY_CORRECT in
6540          exported) ;;
6541          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
6542          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
6543        esac
6544
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
6547 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
6548     if test "$gl_cv_func_getopt_gnu" = "no"; then
6549       gl_replace_getopt=yes
6550     fi
6551   fi
6552
6553
6554
6555
6556
6557     REPLACE_GETOPT=0
6558
6559
6560   if test -n "$gl_replace_getopt"; then :
6561
6562       REPLACE_GETOPT=1
6563
6564 fi
6565
6566
6567   if test $REPLACE_GETOPT = 1; then
6568
6569   GETOPT_H=getopt.h
6570
6571 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
6572
6573
6574
6575   fi
6576
6577 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
6578 if test "x$ac_cv_have_decl_getenv" = xyes; then :
6579   ac_have_decl=1
6580 else
6581   ac_have_decl=0
6582 fi
6583
6584 cat >>confdefs.h <<_ACEOF
6585 #define HAVE_DECL_GETENV $ac_have_decl
6586 _ACEOF
6587
6588
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6591 if ${am_cv_langinfo_codeset+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h.  */
6596 #include <langinfo.h>
6597 int
6598 main ()
6599 {
6600 char* cs = nl_langinfo(CODESET); return !cs;
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_link "$LINENO"; then :
6606   am_cv_langinfo_codeset=yes
6607 else
6608   am_cv_langinfo_codeset=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext \
6611     conftest$ac_exeext conftest.$ac_ext
6612
6613 fi
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6615 $as_echo "$am_cv_langinfo_codeset" >&6; }
6616   if test $am_cv_langinfo_codeset = yes; then
6617
6618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6619
6620   fi
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6632 $as_echo_n "checking for working fcntl.h... " >&6; }
6633 if ${gl_cv_header_working_fcntl_h+:} false; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test "$cross_compiling" = yes; then :
6637   gl_cv_header_working_fcntl_h=cross-compiling
6638 else
6639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h.  */
6641 #include <sys/types.h>
6642            #include <sys/stat.h>
6643            #if HAVE_UNISTD_H
6644            # include <unistd.h>
6645            #else /* on Windows with MSVC */
6646            # include <io.h>
6647            # include <stdlib.h>
6648            # defined sleep(n) _sleep ((n) * 1000)
6649            #endif
6650            #include <fcntl.h>
6651            #ifndef O_NOATIME
6652             #define O_NOATIME 0
6653            #endif
6654            #ifndef O_NOFOLLOW
6655             #define O_NOFOLLOW 0
6656            #endif
6657            static int const constants[] =
6658             {
6659               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6660               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6661             };
6662
6663 int
6664 main ()
6665 {
6666
6667             int result = !constants;
6668             #if HAVE_SYMLINK
6669             {
6670               static char const sym[] = "conftest.sym";
6671               if (symlink (".", sym) != 0)
6672                 result |= 2;
6673               else
6674                 {
6675                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6676                   if (fd >= 0)
6677                     {
6678                       close (fd);
6679                       result |= 4;
6680                     }
6681                 }
6682               unlink (sym);
6683             }
6684             #endif
6685             {
6686               static char const file[] = "confdefs.h";
6687               int fd = open (file, O_RDONLY | O_NOATIME);
6688               if (fd < 0)
6689                 result |= 8;
6690               else
6691                 {
6692                   struct stat st0;
6693                   if (fstat (fd, &st0) != 0)
6694                     result |= 16;
6695                   else
6696                     {
6697                       char c;
6698                       sleep (1);
6699                       if (read (fd, &c, 1) != 1)
6700                         result |= 24;
6701                       else
6702                         {
6703                           if (close (fd) != 0)
6704                             result |= 32;
6705                           else
6706                             {
6707                               struct stat st1;
6708                               if (stat (file, &st1) != 0)
6709                                 result |= 40;
6710                               else
6711                                 if (st0.st_atime != st1.st_atime)
6712                                   result |= 64;
6713                             }
6714                         }
6715                     }
6716                 }
6717             }
6718             return result;
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 if ac_fn_c_try_run "$LINENO"; then :
6724   gl_cv_header_working_fcntl_h=yes
6725 else
6726   case $? in #(
6727         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6728         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6729         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6730          *) gl_cv_header_working_fcntl_h='no';;
6731         esac
6732 fi
6733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734   conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 fi
6736
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6739 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6740
6741   case $gl_cv_header_working_fcntl_h in #(
6742   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6743   *) ac_val=1;;
6744   esac
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_WORKING_O_NOATIME $ac_val
6748 _ACEOF
6749
6750
6751   case $gl_cv_header_working_fcntl_h in #(
6752   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6753   *) ac_val=1;;
6754   esac
6755
6756 cat >>confdefs.h <<_ACEOF
6757 #define HAVE_WORKING_O_NOFOLLOW $ac_val
6758 _ACEOF
6759
6760
6761 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6762 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6763   ac_have_decl=1
6764 else
6765   ac_have_decl=0
6766 fi
6767
6768 cat >>confdefs.h <<_ACEOF
6769 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6770 _ACEOF
6771
6772
6773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6774 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6775 if ${ac_cv_gnu_library_2_1+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h.  */
6780
6781 #include <features.h>
6782 #ifdef __GNU_LIBRARY__
6783  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6784   Lucky GNU user
6785  #endif
6786 #endif
6787 #ifdef __UCLIBC__
6788  Lucky user
6789 #endif
6790
6791 _ACEOF
6792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793   $EGREP "Lucky" >/dev/null 2>&1; then :
6794   ac_cv_gnu_library_2_1=yes
6795 else
6796   ac_cv_gnu_library_2_1=no
6797 fi
6798 rm -f conftest*
6799
6800
6801
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6804 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6805
6806     GLIBC21="$ac_cv_gnu_library_2_1"
6807
6808
6809
6810   GNULIB_BTOWC=0;
6811   GNULIB_WCTOB=0;
6812   GNULIB_MBSINIT=0;
6813   GNULIB_MBRTOWC=0;
6814   GNULIB_MBRLEN=0;
6815   GNULIB_MBSRTOWCS=0;
6816   GNULIB_MBSNRTOWCS=0;
6817   GNULIB_WCRTOMB=0;
6818   GNULIB_WCSRTOMBS=0;
6819   GNULIB_WCSNRTOMBS=0;
6820   GNULIB_WCWIDTH=0;
6821   GNULIB_WMEMCHR=0;
6822   GNULIB_WMEMCMP=0;
6823   GNULIB_WMEMCPY=0;
6824   GNULIB_WMEMMOVE=0;
6825   GNULIB_WMEMSET=0;
6826   GNULIB_WCSLEN=0;
6827   GNULIB_WCSNLEN=0;
6828   GNULIB_WCSCPY=0;
6829   GNULIB_WCPCPY=0;
6830   GNULIB_WCSNCPY=0;
6831   GNULIB_WCPNCPY=0;
6832   GNULIB_WCSCAT=0;
6833   GNULIB_WCSNCAT=0;
6834   GNULIB_WCSCMP=0;
6835   GNULIB_WCSNCMP=0;
6836   GNULIB_WCSCASECMP=0;
6837   GNULIB_WCSNCASECMP=0;
6838   GNULIB_WCSCOLL=0;
6839   GNULIB_WCSXFRM=0;
6840   GNULIB_WCSDUP=0;
6841   GNULIB_WCSCHR=0;
6842   GNULIB_WCSRCHR=0;
6843   GNULIB_WCSCSPN=0;
6844   GNULIB_WCSSPN=0;
6845   GNULIB_WCSPBRK=0;
6846   GNULIB_WCSSTR=0;
6847   GNULIB_WCSTOK=0;
6848   GNULIB_WCSWIDTH=0;
6849     HAVE_BTOWC=1;
6850   HAVE_MBSINIT=1;
6851   HAVE_MBRTOWC=1;
6852   HAVE_MBRLEN=1;
6853   HAVE_MBSRTOWCS=1;
6854   HAVE_MBSNRTOWCS=1;
6855   HAVE_WCRTOMB=1;
6856   HAVE_WCSRTOMBS=1;
6857   HAVE_WCSNRTOMBS=1;
6858   HAVE_WMEMCHR=1;
6859   HAVE_WMEMCMP=1;
6860   HAVE_WMEMCPY=1;
6861   HAVE_WMEMMOVE=1;
6862   HAVE_WMEMSET=1;
6863   HAVE_WCSLEN=1;
6864   HAVE_WCSNLEN=1;
6865   HAVE_WCSCPY=1;
6866   HAVE_WCPCPY=1;
6867   HAVE_WCSNCPY=1;
6868   HAVE_WCPNCPY=1;
6869   HAVE_WCSCAT=1;
6870   HAVE_WCSNCAT=1;
6871   HAVE_WCSCMP=1;
6872   HAVE_WCSNCMP=1;
6873   HAVE_WCSCASECMP=1;
6874   HAVE_WCSNCASECMP=1;
6875   HAVE_WCSCOLL=1;
6876   HAVE_WCSXFRM=1;
6877   HAVE_WCSDUP=1;
6878   HAVE_WCSCHR=1;
6879   HAVE_WCSRCHR=1;
6880   HAVE_WCSCSPN=1;
6881   HAVE_WCSSPN=1;
6882   HAVE_WCSPBRK=1;
6883   HAVE_WCSSTR=1;
6884   HAVE_WCSTOK=1;
6885   HAVE_WCSWIDTH=1;
6886   HAVE_DECL_WCTOB=1;
6887   HAVE_DECL_WCWIDTH=1;
6888   REPLACE_MBSTATE_T=0;
6889   REPLACE_BTOWC=0;
6890   REPLACE_WCTOB=0;
6891   REPLACE_MBSINIT=0;
6892   REPLACE_MBRTOWC=0;
6893   REPLACE_MBRLEN=0;
6894   REPLACE_MBSRTOWCS=0;
6895   REPLACE_MBSNRTOWCS=0;
6896   REPLACE_WCRTOMB=0;
6897   REPLACE_WCSRTOMBS=0;
6898   REPLACE_WCSNRTOMBS=0;
6899   REPLACE_WCWIDTH=0;
6900   REPLACE_WCSWIDTH=0;
6901
6902
6903
6904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6905 $as_echo_n "checking for mbstate_t... " >&6; }
6906 if ${ac_cv_type_mbstate_t+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h.  */
6911 $ac_includes_default
6912 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6913    <wchar.h>.
6914    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6915    included before <wchar.h>.  */
6916 #include <stddef.h>
6917 #include <stdio.h>
6918 #include <time.h>
6919 #include <wchar.h>
6920 int
6921 main ()
6922 {
6923 mbstate_t x; return sizeof x;
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929   ac_cv_type_mbstate_t=yes
6930 else
6931   ac_cv_type_mbstate_t=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6936 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6937    if test $ac_cv_type_mbstate_t = yes; then
6938
6939 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6940
6941    else
6942
6943 $as_echo "#define mbstate_t int" >>confdefs.h
6944
6945    fi
6946
6947
6948
6949
6950
6951
6952
6953
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6955 $as_echo_n "checking for a traditional japanese locale... " >&6; }
6956 if ${gt_cv_locale_ja+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959
6960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h.  */
6962
6963 #include <locale.h>
6964 #include <time.h>
6965 #if HAVE_LANGINFO_CODESET
6966 # include <langinfo.h>
6967 #endif
6968 #include <stdlib.h>
6969 #include <string.h>
6970 struct tm t;
6971 char buf[16];
6972 int main ()
6973 {
6974   const char *p;
6975   /* Check whether the given locale name is recognized by the system.  */
6976 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6977   /* On native Windows, setlocale(category, "") looks at the system settings,
6978      not at the environment variables.  Also, when an encoding suffix such
6979      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6980      category of the locale to "C".  */
6981   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6982       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6983     return 1;
6984 #else
6985   if (setlocale (LC_ALL, "") == NULL) return 1;
6986 #endif
6987   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6988      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6989      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6990      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6991      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6992      some unit tests fail.
6993      On MirBSD 10, when an unsupported locale is specified, setlocale()
6994      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
6995 #if HAVE_LANGINFO_CODESET
6996   {
6997     const char *cs = nl_langinfo (CODESET);
6998     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6999         || strcmp (cs, "UTF-8") == 0)
7000       return 1;
7001   }
7002 #endif
7003 #ifdef __CYGWIN__
7004   /* On Cygwin, avoid locale names without encoding suffix, because the
7005      locale_charset() function relies on the encoding suffix.  Note that
7006      LC_ALL is set on the command line.  */
7007   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7008 #endif
7009   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
7010      on Cygwin 1.5.x.  */
7011   if (MB_CUR_MAX == 1)
7012     return 1;
7013   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7014      This excludes the UTF-8 encoding (except on MirBSD).  */
7015   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7016   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7017   for (p = buf; *p != '\0'; p++)
7018     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7019       return 1;
7020   return 0;
7021 }
7022
7023 _ACEOF
7024     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7025   (eval $ac_link) 2>&5
7026   ac_status=$?
7027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7029       case "$host_os" in
7030         # Handle native Windows specially, because there setlocale() interprets
7031         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7032         # "fr" or "fra" as "French" or "French_France.1252",
7033         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7034         # "ja" as "Japanese" or "Japanese_Japan.932",
7035         # and similar.
7036         mingw*)
7037           # Note that on native Windows, the Japanese locale is
7038           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
7039           # cannot use it here.
7040           gt_cv_locale_ja=none
7041           ;;
7042         *)
7043           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7044           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7045           # configure script would override the LC_ALL setting. Likewise for
7046           # LC_CTYPE, which is also set at the beginning of the configure script.
7047           # Test for the AIX locale name.
7048           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7049             gt_cv_locale_ja=ja_JP
7050           else
7051             # Test for the locale name with explicit encoding suffix.
7052             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7053               gt_cv_locale_ja=ja_JP.EUC-JP
7054             else
7055               # Test for the HP-UX, OSF/1, NetBSD locale name.
7056               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7057                 gt_cv_locale_ja=ja_JP.eucJP
7058               else
7059                 # Test for the IRIX, FreeBSD locale name.
7060                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7061                   gt_cv_locale_ja=ja_JP.EUC
7062                 else
7063                   # Test for the Solaris 7 locale name.
7064                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7065                     gt_cv_locale_ja=ja
7066                   else
7067                     # Special test for NetBSD 1.6.
7068                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
7069                       gt_cv_locale_ja=ja_JP.eucJP
7070                     else
7071                       # None found.
7072                       gt_cv_locale_ja=none
7073                     fi
7074                   fi
7075                 fi
7076               fi
7077             fi
7078           fi
7079           ;;
7080       esac
7081     fi
7082     rm -fr conftest*
7083
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
7086 $as_echo "$gt_cv_locale_ja" >&6; }
7087   LOCALE_JA=$gt_cv_locale_ja
7088
7089
7090
7091
7092
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
7094 $as_echo_n "checking for a transitional chinese locale... " >&6; }
7095 if ${gt_cv_locale_zh_CN+:} false; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098
7099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h.  */
7101
7102 #include <locale.h>
7103 #include <stdlib.h>
7104 #include <time.h>
7105 #if HAVE_LANGINFO_CODESET
7106 # include <langinfo.h>
7107 #endif
7108 #include <stdlib.h>
7109 #include <string.h>
7110 struct tm t;
7111 char buf[16];
7112 int main ()
7113 {
7114   const char *p;
7115   /* Check whether the given locale name is recognized by the system.  */
7116 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7117   /* On native Windows, setlocale(category, "") looks at the system settings,
7118      not at the environment variables.  Also, when an encoding suffix such
7119      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7120      category of the locale to "C".  */
7121   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7122       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7123     return 1;
7124 #else
7125   if (setlocale (LC_ALL, "") == NULL) return 1;
7126 #endif
7127   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7128      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7129      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7130      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7131      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7132      some unit tests fail.
7133      On MirBSD 10, when an unsupported locale is specified, setlocale()
7134      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
7135 #if HAVE_LANGINFO_CODESET
7136   {
7137     const char *cs = nl_langinfo (CODESET);
7138     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7139         || strcmp (cs, "UTF-8") == 0)
7140       return 1;
7141   }
7142 #endif
7143 #ifdef __CYGWIN__
7144   /* On Cygwin, avoid locale names without encoding suffix, because the
7145      locale_charset() function relies on the encoding suffix.  Note that
7146      LC_ALL is set on the command line.  */
7147   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7148 #endif
7149   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7150      This excludes the UTF-8 encoding (except on MirBSD).  */
7151   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7152   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7153   for (p = buf; *p != '\0'; p++)
7154     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7155       return 1;
7156   /* Check whether a typical GB18030 multibyte sequence is recognized as a
7157      single wide character.  This excludes the GB2312 and GBK encodings.  */
7158   if (mblen ("\203\062\332\066", 5) != 4)
7159     return 1;
7160   return 0;
7161 }
7162
7163 _ACEOF
7164     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7165   (eval $ac_link) 2>&5
7166   ac_status=$?
7167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7169       case "$host_os" in
7170         # Handle native Windows specially, because there setlocale() interprets
7171         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7172         # "fr" or "fra" as "French" or "French_France.1252",
7173         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7174         # "ja" as "Japanese" or "Japanese_Japan.932",
7175         # and similar.
7176         mingw*)
7177           # Test for the hypothetical native Windows locale name.
7178           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7179             gt_cv_locale_zh_CN=Chinese_China.54936
7180           else
7181             # None found.
7182             gt_cv_locale_zh_CN=none
7183           fi
7184           ;;
7185         solaris2.8)
7186           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7187           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7188           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7189           gt_cv_locale_zh_CN=none
7190           ;;
7191         *)
7192           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7193           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7194           # configure script would override the LC_ALL setting. Likewise for
7195           # LC_CTYPE, which is also set at the beginning of the configure script.
7196           # Test for the locale name without encoding suffix.
7197           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7198             gt_cv_locale_zh_CN=zh_CN
7199           else
7200             # Test for the locale name with explicit encoding suffix.
7201             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7202               gt_cv_locale_zh_CN=zh_CN.GB18030
7203             else
7204               # None found.
7205               gt_cv_locale_zh_CN=none
7206             fi
7207           fi
7208           ;;
7209       esac
7210     else
7211       # If there was a link error, due to mblen(), the system is so old that
7212       # it certainly doesn't have a chinese locale.
7213       gt_cv_locale_zh_CN=none
7214     fi
7215     rm -fr conftest*
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7219 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7220   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7221
7222
7223
7224
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7226 $as_echo_n "checking for a french Unicode locale... " >&6; }
7227 if ${gt_cv_locale_fr_utf8+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230
7231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h.  */
7233
7234 #include <locale.h>
7235 #include <time.h>
7236 #if HAVE_LANGINFO_CODESET
7237 # include <langinfo.h>
7238 #endif
7239 #include <stdlib.h>
7240 #include <string.h>
7241 struct tm t;
7242 char buf[16];
7243 int main () {
7244   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
7245      imitates locale dependent behaviour by looking at the environment
7246      variables, and all locales use the UTF-8 encoding.  */
7247 #if !(defined __BEOS__ || defined __HAIKU__)
7248   /* Check whether the given locale name is recognized by the system.  */
7249 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7250   /* On native Windows, setlocale(category, "") looks at the system settings,
7251      not at the environment variables.  Also, when an encoding suffix such
7252      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7253      category of the locale to "C".  */
7254   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7255       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7256     return 1;
7257 # else
7258   if (setlocale (LC_ALL, "") == NULL) return 1;
7259 # endif
7260   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7261      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7262      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7263      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7264      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7265      some unit tests fail.  */
7266 # if HAVE_LANGINFO_CODESET
7267   {
7268     const char *cs = nl_langinfo (CODESET);
7269     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7270       return 1;
7271   }
7272 # endif
7273 # ifdef __CYGWIN__
7274   /* On Cygwin, avoid locale names without encoding suffix, because the
7275      locale_charset() function relies on the encoding suffix.  Note that
7276      LC_ALL is set on the command line.  */
7277   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7278 # endif
7279   /* Check whether in the abbreviation of the second month, the second
7280      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7281      two bytes long, with UTF-8 encoding.  */
7282   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7283   if (strftime (buf, sizeof (buf), "%b", &t) < 4
7284       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7285     return 1;
7286 #endif
7287 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
7288   /* Check whether the decimal separator is a comma.
7289      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7290      are nl_langinfo(RADIXCHAR) are both ".".  */
7291   if (localeconv () ->decimal_point[0] != ',') return 1;
7292 #endif
7293   return 0;
7294 }
7295
7296 _ACEOF
7297     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7298   (eval $ac_link) 2>&5
7299   ac_status=$?
7300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7302       case "$host_os" in
7303         # Handle native Windows specially, because there setlocale() interprets
7304         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7305         # "fr" or "fra" as "French" or "French_France.1252",
7306         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7307         # "ja" as "Japanese" or "Japanese_Japan.932",
7308         # and similar.
7309         mingw*)
7310           # Test for the hypothetical native Windows locale name.
7311           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7312             gt_cv_locale_fr_utf8=French_France.65001
7313           else
7314             # None found.
7315             gt_cv_locale_fr_utf8=none
7316           fi
7317           ;;
7318         *)
7319           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7320           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7321           # configure script would override the LC_ALL setting. Likewise for
7322           # LC_CTYPE, which is also set at the beginning of the configure script.
7323           # Test for the usual locale name.
7324           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7325             gt_cv_locale_fr_utf8=fr_FR
7326           else
7327             # Test for the locale name with explicit encoding suffix.
7328             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7329               gt_cv_locale_fr_utf8=fr_FR.UTF-8
7330             else
7331               # Test for the Solaris 7 locale name.
7332               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7333                 gt_cv_locale_fr_utf8=fr.UTF-8
7334               else
7335                 # None found.
7336                 gt_cv_locale_fr_utf8=none
7337               fi
7338             fi
7339           fi
7340           ;;
7341       esac
7342     fi
7343     rm -fr conftest*
7344
7345 fi
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7347 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7348   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7349
7350
7351
7352
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7354 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7355 if ${ac_cv_header_stdbool_h+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h.  */
7360
7361              #include <stdbool.h>
7362              #ifndef bool
7363               "error: bool is not defined"
7364              #endif
7365              #ifndef false
7366               "error: false is not defined"
7367              #endif
7368              #if false
7369               "error: false is not 0"
7370              #endif
7371              #ifndef true
7372               "error: true is not defined"
7373              #endif
7374              #if true != 1
7375               "error: true is not 1"
7376              #endif
7377              #ifndef __bool_true_false_are_defined
7378               "error: __bool_true_false_are_defined is not defined"
7379              #endif
7380
7381              struct s { _Bool s: 1; _Bool t; } s;
7382
7383              char a[true == 1 ? 1 : -1];
7384              char b[false == 0 ? 1 : -1];
7385              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7386              char d[(bool) 0.5 == true ? 1 : -1];
7387              /* See body of main program for 'e'.  */
7388              char f[(_Bool) 0.0 == false ? 1 : -1];
7389              char g[true];
7390              char h[sizeof (_Bool)];
7391              char i[sizeof s.t];
7392              enum { j = false, k = true, l = false * true, m = true * 256 };
7393              /* The following fails for
7394                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7395              _Bool n[m];
7396              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7397              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7398              /* Catch a bug in an HP-UX C compiler.  See
7399                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7400                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7401               */
7402              _Bool q = true;
7403              _Bool *pq = &q;
7404
7405 int
7406 main ()
7407 {
7408
7409              bool e = &s;
7410              *pq |= q;
7411              *pq |= ! q;
7412              /* Refer to every declared value, to avoid compiler optimizations.  */
7413              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7414                      + !m + !n + !o + !p + !q + !pq);
7415
7416   ;
7417   return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421   ac_cv_header_stdbool_h=yes
7422 else
7423   ac_cv_header_stdbool_h=no
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7428 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7429    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7430 if test "x$ac_cv_type__Bool" = xyes; then :
7431
7432 cat >>confdefs.h <<_ACEOF
7433 #define HAVE__BOOL 1
7434 _ACEOF
7435
7436
7437 fi
7438
7439
7440
7441     REPLACE_NULL=0;
7442   HAVE_WCHAR_T=1;
7443
7444
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7446 $as_echo_n "checking for wchar_t... " >&6; }
7447 if ${gt_cv_c_wchar_t+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h.  */
7452 #include <stddef.h>
7453             wchar_t foo = (wchar_t)'\0';
7454 int
7455 main ()
7456 {
7457
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463   gt_cv_c_wchar_t=yes
7464 else
7465   gt_cv_c_wchar_t=no
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7470 $as_echo "$gt_cv_c_wchar_t" >&6; }
7471   if test $gt_cv_c_wchar_t = yes; then
7472
7473 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7474
7475   fi
7476
7477
7478   GNULIB__EXIT=0;
7479   GNULIB_ATOLL=0;
7480   GNULIB_CALLOC_POSIX=0;
7481   GNULIB_CANONICALIZE_FILE_NAME=0;
7482   GNULIB_GETLOADAVG=0;
7483   GNULIB_GETSUBOPT=0;
7484   GNULIB_GRANTPT=0;
7485   GNULIB_MALLOC_POSIX=0;
7486   GNULIB_MBTOWC=0;
7487   GNULIB_MKDTEMP=0;
7488   GNULIB_MKOSTEMP=0;
7489   GNULIB_MKOSTEMPS=0;
7490   GNULIB_MKSTEMP=0;
7491   GNULIB_MKSTEMPS=0;
7492   GNULIB_POSIX_OPENPT=0;
7493   GNULIB_PTSNAME=0;
7494   GNULIB_PTSNAME_R=0;
7495   GNULIB_PUTENV=0;
7496   GNULIB_RANDOM=0;
7497   GNULIB_RANDOM_R=0;
7498   GNULIB_REALLOC_POSIX=0;
7499   GNULIB_REALPATH=0;
7500   GNULIB_RPMATCH=0;
7501   GNULIB_SETENV=0;
7502   GNULIB_STRTOD=0;
7503   GNULIB_STRTOLL=0;
7504   GNULIB_STRTOULL=0;
7505   GNULIB_SYSTEM_POSIX=0;
7506   GNULIB_UNLOCKPT=0;
7507   GNULIB_UNSETENV=0;
7508   GNULIB_WCTOMB=0;
7509     HAVE__EXIT=1;
7510   HAVE_ATOLL=1;
7511   HAVE_CANONICALIZE_FILE_NAME=1;
7512   HAVE_DECL_GETLOADAVG=1;
7513   HAVE_GETSUBOPT=1;
7514   HAVE_GRANTPT=1;
7515   HAVE_MKDTEMP=1;
7516   HAVE_MKOSTEMP=1;
7517   HAVE_MKOSTEMPS=1;
7518   HAVE_MKSTEMP=1;
7519   HAVE_MKSTEMPS=1;
7520   HAVE_POSIX_OPENPT=1;
7521   HAVE_PTSNAME=1;
7522   HAVE_PTSNAME_R=1;
7523   HAVE_RANDOM=1;
7524   HAVE_RANDOM_H=1;
7525   HAVE_RANDOM_R=1;
7526   HAVE_REALPATH=1;
7527   HAVE_RPMATCH=1;
7528   HAVE_SETENV=1;
7529   HAVE_DECL_SETENV=1;
7530   HAVE_STRTOD=1;
7531   HAVE_STRTOLL=1;
7532   HAVE_STRTOULL=1;
7533   HAVE_STRUCT_RANDOM_DATA=1;
7534   HAVE_SYS_LOADAVG_H=0;
7535   HAVE_UNLOCKPT=1;
7536   HAVE_DECL_UNSETENV=1;
7537   REPLACE_CALLOC=0;
7538   REPLACE_CANONICALIZE_FILE_NAME=0;
7539   REPLACE_MALLOC=0;
7540   REPLACE_MBTOWC=0;
7541   REPLACE_MKSTEMP=0;
7542   REPLACE_PTSNAME_R=0;
7543   REPLACE_PUTENV=0;
7544   REPLACE_RANDOM_R=0;
7545   REPLACE_REALLOC=0;
7546   REPLACE_REALPATH=0;
7547   REPLACE_SETENV=0;
7548   REPLACE_STRTOD=0;
7549   REPLACE_UNSETENV=0;
7550   REPLACE_WCTOMB=0;
7551
7552
7553   GNULIB_FFSL=0;
7554   GNULIB_FFSLL=0;
7555   GNULIB_MEMCHR=0;
7556   GNULIB_MEMMEM=0;
7557   GNULIB_MEMPCPY=0;
7558   GNULIB_MEMRCHR=0;
7559   GNULIB_RAWMEMCHR=0;
7560   GNULIB_STPCPY=0;
7561   GNULIB_STPNCPY=0;
7562   GNULIB_STRCHRNUL=0;
7563   GNULIB_STRDUP=0;
7564   GNULIB_STRNCAT=0;
7565   GNULIB_STRNDUP=0;
7566   GNULIB_STRNLEN=0;
7567   GNULIB_STRPBRK=0;
7568   GNULIB_STRSEP=0;
7569   GNULIB_STRSTR=0;
7570   GNULIB_STRCASESTR=0;
7571   GNULIB_STRTOK_R=0;
7572   GNULIB_MBSLEN=0;
7573   GNULIB_MBSNLEN=0;
7574   GNULIB_MBSCHR=0;
7575   GNULIB_MBSRCHR=0;
7576   GNULIB_MBSSTR=0;
7577   GNULIB_MBSCASECMP=0;
7578   GNULIB_MBSNCASECMP=0;
7579   GNULIB_MBSPCASECMP=0;
7580   GNULIB_MBSCASESTR=0;
7581   GNULIB_MBSCSPN=0;
7582   GNULIB_MBSPBRK=0;
7583   GNULIB_MBSSPN=0;
7584   GNULIB_MBSSEP=0;
7585   GNULIB_MBSTOK_R=0;
7586   GNULIB_STRERROR=0;
7587   GNULIB_STRERROR_R=0;
7588   GNULIB_STRSIGNAL=0;
7589   GNULIB_STRVERSCMP=0;
7590   HAVE_MBSLEN=0;
7591     HAVE_FFSL=1;
7592   HAVE_FFSLL=1;
7593   HAVE_MEMCHR=1;
7594   HAVE_DECL_MEMMEM=1;
7595   HAVE_MEMPCPY=1;
7596   HAVE_DECL_MEMRCHR=1;
7597   HAVE_RAWMEMCHR=1;
7598   HAVE_STPCPY=1;
7599   HAVE_STPNCPY=1;
7600   HAVE_STRCHRNUL=1;
7601   HAVE_DECL_STRDUP=1;
7602   HAVE_DECL_STRNDUP=1;
7603   HAVE_DECL_STRNLEN=1;
7604   HAVE_STRPBRK=1;
7605   HAVE_STRSEP=1;
7606   HAVE_STRCASESTR=1;
7607   HAVE_DECL_STRTOK_R=1;
7608   HAVE_DECL_STRERROR_R=1;
7609   HAVE_DECL_STRSIGNAL=1;
7610   HAVE_STRVERSCMP=1;
7611   REPLACE_MEMCHR=0;
7612   REPLACE_MEMMEM=0;
7613   REPLACE_STPNCPY=0;
7614   REPLACE_STRDUP=0;
7615   REPLACE_STRSTR=0;
7616   REPLACE_STRCASESTR=0;
7617   REPLACE_STRCHRNUL=0;
7618   REPLACE_STRERROR=0;
7619   REPLACE_STRERROR_R=0;
7620   REPLACE_STRNCAT=0;
7621   REPLACE_STRNDUP=0;
7622   REPLACE_STRNLEN=0;
7623   REPLACE_STRSIGNAL=0;
7624   REPLACE_STRTOK_R=0;
7625   UNDEFINE_STRTOK_R=0;
7626
7627
7628   REPLACE_STRERROR_0=0
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
7630 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
7631 if ${gl_cv_func_strerror_0_works+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if test "$cross_compiling" = yes; then :
7635          gl_cv_func_strerror_0_works="guessing no"
7636 else
7637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h.  */
7639 #include <string.h>
7640            #include <errno.h>
7641
7642 int
7643 main ()
7644 {
7645 int result = 0;
7646            char *str;
7647            errno = 0;
7648            str = strerror (0);
7649            if (!*str) result |= 1;
7650            if (errno) result |= 2;
7651            if (strstr (str, "nknown") || strstr (str, "ndefined"))
7652              result |= 4;
7653            return result;
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_run "$LINENO"; then :
7659   gl_cv_func_strerror_0_works=yes
7660 else
7661   gl_cv_func_strerror_0_works=no
7662 fi
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7664   conftest.$ac_objext conftest.beam conftest.$ac_ext
7665 fi
7666
7667
7668 fi
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
7670 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
7671   if test "$gl_cv_func_strerror_0_works" != yes; then
7672     REPLACE_STRERROR_0=1
7673
7674 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
7675
7676   fi
7677
7678
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7681 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7682 if ${ac_cv_c_restrict+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   ac_cv_c_restrict=no
7686    # The order here caters to the fact that C++ does not require restrict.
7687    for ac_kw in __restrict __restrict__ _Restrict restrict; do
7688      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 typedef int * int_ptr;
7691         int foo (int_ptr $ac_kw ip) {
7692         return ip[0];
7693        }
7694 int
7695 main ()
7696 {
7697 int s[1];
7698         int * $ac_kw t = s;
7699         t[0] = 0;
7700         return foo(t)
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706   ac_cv_c_restrict=$ac_kw
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709      test "$ac_cv_c_restrict" != no && break
7710    done
7711
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7714 $as_echo "$ac_cv_c_restrict" >&6; }
7715
7716  case $ac_cv_c_restrict in
7717    restrict) ;;
7718    no) $as_echo "#define restrict /**/" >>confdefs.h
7719  ;;
7720    *)  cat >>confdefs.h <<_ACEOF
7721 #define restrict $ac_cv_c_restrict
7722 _ACEOF
7723  ;;
7724  esac
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737      if test $gl_cv_have_include_next = yes; then
7738        gl_cv_next_string_h='<'string.h'>'
7739      else
7740        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7741 $as_echo_n "checking absolute name of <string.h>... " >&6; }
7742 if ${gl_cv_next_string_h+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745
7746                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748 #include <string.h>
7749
7750 _ACEOF
7751                                                                                                                         case "$host_os" in
7752                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
7753                  *)    gl_absname_cpp="$ac_cpp" ;;
7754                esac
7755
7756                case "$host_os" in
7757                  mingw*)
7758                                                                                                                                      gl_dirsep_regex='[/\\]'
7759                    ;;
7760                  *)
7761                    gl_dirsep_regex='\/'
7762                    ;;
7763                esac
7764                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7765
7766                gl_header_literal_regex=`echo 'string.h' \
7767                                         | sed -e "$gl_make_literal_regex_sed"`
7768                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7769                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7770                    s|^/[^/]|//&|
7771                    p
7772                    q
7773                  }'
7774                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7775                       sed -n "$gl_absolute_header_sed"`'"'
7776
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7780 $as_echo "$gl_cv_next_string_h" >&6; }
7781      fi
7782      NEXT_STRING_H=$gl_cv_next_string_h
7783
7784      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7785        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7786        gl_next_as_first_directive='<'string.h'>'
7787      else
7788        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7789        gl_next_as_first_directive=$gl_cv_next_string_h
7790      fi
7791      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
7792
7793
7794
7795
7796
7797
7798     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
7799     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7801 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7802 if eval \${$as_gl_Symbol+:} false; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #include <string.h>
7808
7809 int
7810 main ()
7811 {
7812 #undef $gl_func
7813   (void) $gl_func;
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819   eval "$as_gl_Symbol=yes"
7820 else
7821   eval "$as_gl_Symbol=no"
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 fi
7825 eval ac_res=\$$as_gl_Symbol
7826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7828     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
7829   cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7831 _ACEOF
7832
7833                      eval ac_cv_have_decl_$gl_func=yes
7834 fi
7835       done
7836
7837
7838 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7839 if test "x$ac_cv_type_pid_t" = xyes; then :
7840
7841 else
7842
7843 cat >>confdefs.h <<_ACEOF
7844 #define pid_t int
7845 _ACEOF
7846
7847 fi
7848
7849
7850             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7851 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7852 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   gl_cv_header_wchar_h_correct_inline=yes
7856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h.  */
7858
7859        #define wcstod renamed_wcstod
7860 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7861    <wchar.h>.
7862    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7863    included before <wchar.h>.  */
7864 #include <stddef.h>
7865 #include <stdio.h>
7866 #include <time.h>
7867 #include <wchar.h>
7868 extern int zero (void);
7869 int main () { return zero(); }
7870
7871 _ACEOF
7872      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873   (eval $ac_compile) 2>&5
7874   ac_status=$?
7875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876   test $ac_status = 0; }; then
7877        mv conftest.$ac_objext conftest1.$ac_objext
7878        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h.  */
7880
7881          #define wcstod renamed_wcstod
7882 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7883    <wchar.h>.
7884    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7885    included before <wchar.h>.  */
7886 #include <stddef.h>
7887 #include <stdio.h>
7888 #include <time.h>
7889 #include <wchar.h>
7890 int zero (void) { return 0; }
7891
7892 _ACEOF
7893        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7894   (eval $ac_compile) 2>&5
7895   ac_status=$?
7896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897   test $ac_status = 0; }; then
7898          mv conftest.$ac_objext conftest2.$ac_objext
7899          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7900            :
7901          else
7902            gl_cv_header_wchar_h_correct_inline=no
7903          fi
7904        fi
7905      fi
7906      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7910 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7911   if test $gl_cv_header_wchar_h_correct_inline = no; then
7912     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7913 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7914 C99 mode. You have four options:
7915   - Add the flag -fgnu89-inline to CC and reconfigure, or
7916   - Fix your include files, using parts of
7917     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7918   - Use a gcc version older than 4.3, or
7919   - Don't use the flags -std=c99 or -std=gnu99.
7920 Configuration aborted." "$LINENO" 5
7921   fi
7922
7923
7924
7925
7926
7927
7928
7929   if test $ac_cv_header_features_h = yes; then
7930     HAVE_FEATURES_H=1
7931   else
7932     HAVE_FEATURES_H=0
7933   fi
7934
7935
7936
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
7938 $as_echo_n "checking for wint_t... " >&6; }
7939 if ${gt_cv_c_wint_t+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h.  */
7944
7945 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7946    <wchar.h>.
7947    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7948    before <wchar.h>.  */
7949 #include <stddef.h>
7950 #include <stdio.h>
7951 #include <time.h>
7952 #include <wchar.h>
7953             wint_t foo = (wchar_t)'\0';
7954 int
7955 main ()
7956 {
7957
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 if ac_fn_c_try_compile "$LINENO"; then :
7963   gt_cv_c_wint_t=yes
7964 else
7965   gt_cv_c_wint_t=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 fi
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
7970 $as_echo "$gt_cv_c_wint_t" >&6; }
7971   if test $gt_cv_c_wint_t = yes; then
7972
7973 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
7974
7975   fi
7976
7977
7978   GNULIB_ISWBLANK=0;
7979   GNULIB_WCTYPE=0;
7980   GNULIB_ISWCTYPE=0;
7981   GNULIB_WCTRANS=0;
7982   GNULIB_TOWCTRANS=0;
7983     HAVE_ISWBLANK=1;
7984   HAVE_WCTYPE_T=1;
7985   HAVE_WCTRANS_T=1;
7986   REPLACE_ISWBLANK=0;
7987
7988
7989
7990
7991
7992
7993    if false; then
7994   GL_COND_LIBTOOL_TRUE=
7995   GL_COND_LIBTOOL_FALSE='#'
7996 else
7997   GL_COND_LIBTOOL_TRUE='#'
7998   GL_COND_LIBTOOL_FALSE=
7999 fi
8000
8001   gl_cond_libtool=false
8002   gl_libdeps=
8003   gl_ltlibdeps=
8004   gl_m4_base='m4'
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014   gl_source_base='lib'
8015
8016   :
8017
8018
8019
8020 cat >>confdefs.h <<_ACEOF
8021 #define GNULIB_CLOSE_STREAM 1
8022 _ACEOF
8023
8024
8025
8026   :
8027
8028
8029           if test "x$datarootdir" = x; then
8030     datarootdir='${datadir}'
8031
8032   fi
8033     if test "x$docdir" = x; then
8034     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8035
8036   fi
8037     if test "x$htmldir" = x; then
8038     htmldir='${docdir}'
8039
8040   fi
8041   if test "x$dvidir" = x; then
8042     dvidir='${docdir}'
8043
8044   fi
8045   if test "x$pdfdir" = x; then
8046     pdfdir='${docdir}'
8047
8048   fi
8049   if test "x$psdir" = x; then
8050     psdir='${docdir}'
8051
8052   fi
8053   if test "x$lispdir" = x; then
8054     lispdir='${datarootdir}/emacs/site-lisp'
8055
8056   fi
8057   if test "x$localedir" = x; then
8058     localedir='${datarootdir}/locale'
8059
8060   fi
8061
8062       pkglibexecdir='${libexecdir}/${PACKAGE}'
8063
8064
8065
8066
8067       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
8068 $as_echo_n "checking for error_at_line... " >&6; }
8069 if ${ac_cv_lib_error_at_line+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074 #include <error.h>
8075 int
8076 main ()
8077 {
8078 error_at_line (0, 0, "", 0, "an error occurred");
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_link "$LINENO"; then :
8084   ac_cv_lib_error_at_line=yes
8085 else
8086   ac_cv_lib_error_at_line=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext \
8089     conftest$ac_exeext conftest.$ac_ext
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
8092 $as_echo "$ac_cv_lib_error_at_line" >&6; }
8093
8094 if test $ac_cv_lib_error_at_line = no; then
8095
8096
8097
8098
8099
8100
8101
8102
8103   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
8104
8105
8106
8107
8108   :
8109
8110 fi
8111
8112
8113   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
8114
8115
8116
8117   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
8118
8119
8120
8121
8122   fp_headers='
8123 #     include <stdio.h>
8124 #     if HAVE_STDIO_EXT_H
8125 #      include <stdio_ext.h>
8126 #     endif
8127 '
8128   ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
8129 "
8130 if test "x$ac_cv_have_decl___fpending" = xyes; then :
8131   ac_have_decl=1
8132 else
8133   ac_have_decl=0
8134 fi
8135
8136 cat >>confdefs.h <<_ACEOF
8137 #define HAVE_DECL___FPENDING $ac_have_decl
8138 _ACEOF
8139
8140
8141 if test $ac_cv_func___fpending = no; then
8142
8143
8144
8145
8146
8147
8148
8149
8150   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
8151
8152
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
8154 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
8155 if ${ac_cv_sys_pending_output_n_bytes+:} false; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158
8159       for ac_expr in                                                    \
8160                                                                         \
8161           '# glibc2'                                                    \
8162           'fp->_IO_write_ptr - fp->_IO_write_base'                      \
8163                                                                         \
8164           '# traditional Unix'                                          \
8165           'fp->_ptr - fp->_base'                                        \
8166                                                                         \
8167           '# BSD'                                                       \
8168           'fp->_p - fp->_bf._base'                                      \
8169                                                                         \
8170           '# SCO, Unixware'                                             \
8171           '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
8172                                                                         \
8173           '# QNX'                                                       \
8174           '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
8175                                                                         \
8176           '# old glibc?'                                                \
8177           'fp->__bufp - fp->__buffer'                                   \
8178                                                                         \
8179           '# old glibc iostream?'                                       \
8180           'fp->_pptr - fp->_pbase'                                      \
8181                                                                         \
8182           '# emx+gcc'                                                   \
8183           'fp->_ptr - fp->_buffer'                                      \
8184                                                                         \
8185           '# Minix'                                                     \
8186           'fp->_ptr - fp->_buf'                                         \
8187                                                                         \
8188           '# Plan9'                                                     \
8189           'fp->wp - fp->buf'                                            \
8190                                                                         \
8191           '# VMS'                                                       \
8192           '(*fp)->_ptr - (*fp)->_base'                                  \
8193                                                                         \
8194           '# e.g., DGUX R4.11; the info is not available'               \
8195           1                                                             \
8196           ; do
8197
8198         # Skip each embedded comment.
8199         case "$ac_expr" in '#'*) continue;; esac
8200
8201         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h.  */
8203 #include <stdio.h>
8204 int
8205 main ()
8206 {
8207 FILE *fp = stdin; (void) ($ac_expr);
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213   fp_done=yes
8214
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217         test "$fp_done" = yes && break
8218       done
8219
8220       ac_cv_sys_pending_output_n_bytes=$ac_expr
8221
8222
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
8225 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
8226
8227 cat >>confdefs.h <<_ACEOF
8228 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
8229 _ACEOF
8230
8231
8232 fi
8233
8234
8235
8236
8237
8238 if test $REPLACE_GETOPT = 1; then
8239
8240
8241
8242
8243
8244
8245
8246
8247   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
8258
8259
8260
8261
8262     GNULIB_GL_UNISTD_H_GETOPT=1
8263 fi
8264
8265
8266
8267 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
8268
8269
8270
8271
8272
8273
8274     REPLACE_GETOPT=0
8275
8276
8277   if test -n "$gl_replace_getopt"; then :
8278
8279       REPLACE_GETOPT=1
8280
8281 fi
8282
8283
8284   if test $REPLACE_GETOPT = 1; then
8285
8286   GETOPT_H=getopt.h
8287
8288 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
8289
8290
8291
8292   fi
8293
8294 if test $REPLACE_GETOPT = 1; then
8295
8296
8297
8298
8299
8300
8301
8302
8303   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
8314
8315
8316
8317
8318     GNULIB_GL_UNISTD_H_GETOPT=1
8319 fi
8320
8321
8322
8323
8324 # Autoconf 2.61a.99 and earlier don't support linking a file only
8325 # in VPATH builds.  But since GNUmakefile is for maintainer use
8326 # only, it does not matter if we skip the link with older autoconf.
8327 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
8328 # builds, so use a shell variable to bypass this.
8329 GNUmakefile=GNUmakefile
8330 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
8331
8332
8333
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
8335 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
8336 if ${gl_cv_c_inline_effective+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   if test $ac_cv_c_inline = no; then
8340        gl_cv_c_inline_effective=no
8341      else
8342                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h.  */
8344
8345 int
8346 main ()
8347 {
8348 #ifdef __NO_INLINE__
8349                #error "inline is not effective"
8350              #endif
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 if ac_fn_c_try_compile "$LINENO"; then :
8356   gl_cv_c_inline_effective=yes
8357 else
8358   gl_cv_c_inline_effective=no
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361      fi
8362
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
8365 $as_echo "$gl_cv_c_inline_effective" >&6; }
8366   if test $gl_cv_c_inline_effective = yes; then
8367
8368 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
8369
8370   fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8394
8395
8396
8397      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8398 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8399 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402
8403                   case "$host_os" in
8404                      # Guess no on AIX and OSF/1.
8405         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8406                      # Guess yes otherwise.
8407         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8408       esac
8409       if test $LOCALE_JA != none; then
8410         if test "$cross_compiling" = yes; then :
8411   :
8412 else
8413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h.  */
8415
8416 #include <locale.h>
8417 #include <string.h>
8418 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8419    <wchar.h>.
8420    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8421    included before <wchar.h>.  */
8422 #include <stddef.h>
8423 #include <stdio.h>
8424 #include <time.h>
8425 #include <wchar.h>
8426 int main ()
8427 {
8428   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8429     {
8430       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8431       mbstate_t state;
8432       wchar_t wc;
8433
8434       memset (&state, '\0', sizeof (mbstate_t));
8435       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8436         if (mbsinit (&state))
8437           return 1;
8438     }
8439   return 0;
8440 }
8441 _ACEOF
8442 if ac_fn_c_try_run "$LINENO"; then :
8443   gl_cv_func_mbrtowc_incomplete_state=yes
8444 else
8445   gl_cv_func_mbrtowc_incomplete_state=no
8446 fi
8447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8448   conftest.$ac_objext conftest.beam conftest.$ac_ext
8449 fi
8450
8451       fi
8452
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8455 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
8456
8457
8458
8459
8460      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8461 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8462 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465
8466                   case "$host_os" in
8467                     # Guess no on Solaris 8.
8468         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8469                     # Guess yes otherwise.
8470         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8471       esac
8472       if test $LOCALE_ZH_CN != none; then
8473         if test "$cross_compiling" = yes; then :
8474   :
8475 else
8476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h.  */
8478
8479 #include <locale.h>
8480 #include <stdlib.h>
8481 #include <string.h>
8482 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8483    <wchar.h>.
8484    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8485    included before <wchar.h>.  */
8486 #include <stddef.h>
8487 #include <stdio.h>
8488 #include <time.h>
8489 #include <wchar.h>
8490 int main ()
8491 {
8492   /* This fails on Solaris 8:
8493      mbrtowc returns 2, and sets wc to 0x00F0.
8494      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
8495   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
8496     {
8497       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
8498       mbstate_t state;
8499       wchar_t wc;
8500
8501       memset (&state, '\0', sizeof (mbstate_t));
8502       if (mbrtowc (&wc, input + 3, 6, &state) != 4
8503           && mbtowc (&wc, input + 3, 6) == 4)
8504         return 1;
8505     }
8506   return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_run "$LINENO"; then :
8510   gl_cv_func_mbrtowc_sanitycheck=yes
8511 else
8512   gl_cv_func_mbrtowc_sanitycheck=no
8513 fi
8514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8515   conftest.$ac_objext conftest.beam conftest.$ac_ext
8516 fi
8517
8518       fi
8519
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
8522 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
8523
8524     REPLACE_MBSTATE_T=0
8525     case "$gl_cv_func_mbrtowc_incomplete_state" in
8526       *yes) ;;
8527       *) REPLACE_MBSTATE_T=1 ;;
8528     esac
8529     case "$gl_cv_func_mbrtowc_sanitycheck" in
8530       *yes) ;;
8531       *) REPLACE_MBSTATE_T=1 ;;
8532     esac
8533   else
8534     REPLACE_MBSTATE_T=1
8535   fi
8536
8537
8538
8539   if test $ac_cv_func_mbrtowc = no; then
8540     HAVE_MBRTOWC=0
8541     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
8542 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8543    <wchar.h>.
8544    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8545    included before <wchar.h>.  */
8546 #include <stddef.h>
8547 #include <stdio.h>
8548 #include <time.h>
8549 #include <wchar.h>
8550
8551 "
8552 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
8553   ac_have_decl=1
8554 else
8555   ac_have_decl=0
8556 fi
8557
8558 cat >>confdefs.h <<_ACEOF
8559 #define HAVE_DECL_MBRTOWC $ac_have_decl
8560 _ACEOF
8561
8562     if test $ac_cv_have_decl_mbrtowc = yes; then
8563                         REPLACE_MBRTOWC=1
8564     fi
8565   else
8566     if test $REPLACE_MBSTATE_T = 1; then
8567       REPLACE_MBRTOWC=1
8568     else
8569
8570
8571
8572      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
8573 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
8574 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577
8578                   case "$host_os" in
8579                   # Guess no on Solaris.
8580         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
8581                   # Guess yes otherwise.
8582         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
8583       esac
8584       if test $LOCALE_FR_UTF8 != none; then
8585         if test "$cross_compiling" = yes; then :
8586   :
8587 else
8588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h.  */
8590
8591 #include <locale.h>
8592 #include <stdlib.h>
8593 #include <string.h>
8594 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8595    <wchar.h>.
8596    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8597    included before <wchar.h>.  */
8598 #include <stddef.h>
8599 #include <stdio.h>
8600 #include <time.h>
8601 #include <wchar.h>
8602 int main ()
8603 {
8604   int result = 0;
8605
8606   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
8607     {
8608       char input[] = "\303\237er";
8609       mbstate_t state;
8610       wchar_t wc;
8611       size_t ret;
8612
8613       memset (&state, '\0', sizeof (mbstate_t));
8614       wc = (wchar_t) 0xBADFACE;
8615       ret = mbrtowc (&wc, input, 5, &state);
8616       if (ret != 2)
8617         result |= 1;
8618       if (!mbsinit (&state))
8619         result |= 2;
8620
8621       memset (&state, '\0', sizeof (mbstate_t));
8622       ret = mbrtowc (NULL, input, 5, &state);
8623       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
8624         result |= 4;
8625       if (!mbsinit (&state))
8626         result |= 8;
8627     }
8628   return result;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_run "$LINENO"; then :
8632   gl_cv_func_mbrtowc_null_arg1=yes
8633 else
8634   gl_cv_func_mbrtowc_null_arg1=no
8635 fi
8636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8637   conftest.$ac_objext conftest.beam conftest.$ac_ext
8638 fi
8639
8640       fi
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
8644 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
8645
8646
8647
8648
8649      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
8650 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
8651 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654
8655                   case "$host_os" in
8656               # Guess no on OSF/1.
8657         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
8658               # Guess yes otherwise.
8659         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
8660       esac
8661       if test $LOCALE_FR_UTF8 != none; then
8662         if test "$cross_compiling" = yes; then :
8663   :
8664 else
8665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h.  */
8667
8668 #include <locale.h>
8669 #include <string.h>
8670 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8671    <wchar.h>.
8672    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8673    included before <wchar.h>.  */
8674 #include <stddef.h>
8675 #include <stdio.h>
8676 #include <time.h>
8677 #include <wchar.h>
8678 int main ()
8679 {
8680   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
8681     {
8682       mbstate_t state;
8683       wchar_t wc;
8684       int ret;
8685
8686       memset (&state, '\0', sizeof (mbstate_t));
8687       wc = (wchar_t) 0xBADFACE;
8688       mbrtowc (&wc, NULL, 5, &state);
8689       /* Check that wc was not modified.  */
8690       if (wc != (wchar_t) 0xBADFACE)
8691         return 1;
8692     }
8693   return 0;
8694 }
8695 _ACEOF
8696 if ac_fn_c_try_run "$LINENO"; then :
8697   gl_cv_func_mbrtowc_null_arg2=yes
8698 else
8699   gl_cv_func_mbrtowc_null_arg2=no
8700 fi
8701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8702   conftest.$ac_objext conftest.beam conftest.$ac_ext
8703 fi
8704
8705       fi
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
8709 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
8710
8711
8712
8713
8714
8715
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
8717 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
8718 if ${gl_cv_func_mbrtowc_retval+:} false; then :
8719   $as_echo_n "(cached) " >&6
8720 else
8721
8722                   case "$host_os" in
8723                                    # Guess no on HP-UX, Solaris, native Windows.
8724         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
8725                                    # Guess yes otherwise.
8726         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
8727       esac
8728       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
8729          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
8730         if test "$cross_compiling" = yes; then :
8731   :
8732 else
8733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h.  */
8735
8736 #include <locale.h>
8737 #include <string.h>
8738 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8739    <wchar.h>.
8740    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8741    included before <wchar.h>.  */
8742 #include <stddef.h>
8743 #include <stdio.h>
8744 #include <time.h>
8745 #include <wchar.h>
8746 int main ()
8747 {
8748   int result = 0;
8749   int found_some_locale = 0;
8750   /* This fails on Solaris.  */
8751   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
8752     {
8753       char input[] = "B\303\274\303\237er"; /* "Büßer" */
8754       mbstate_t state;
8755       wchar_t wc;
8756
8757       memset (&state, '\0', sizeof (mbstate_t));
8758       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8759         {
8760           input[1] = '\0';
8761           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
8762             result |= 1;
8763         }
8764       found_some_locale = 1;
8765     }
8766   /* This fails on HP-UX 11.11.  */
8767   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8768     {
8769       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8770       mbstate_t state;
8771       wchar_t wc;
8772
8773       memset (&state, '\0', sizeof (mbstate_t));
8774       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8775         {
8776           input[1] = '\0';
8777           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
8778             result |= 2;
8779         }
8780       found_some_locale = 1;
8781     }
8782   /* This fails on native Windows.  */
8783   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
8784     {
8785       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
8786       mbstate_t state;
8787       wchar_t wc;
8788
8789       memset (&state, '\0', sizeof (mbstate_t));
8790       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
8791         {
8792           input[3] = '\0';
8793           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
8794             result |= 4;
8795         }
8796       found_some_locale = 1;
8797     }
8798   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
8799     {
8800       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
8801       mbstate_t state;
8802       wchar_t wc;
8803
8804       memset (&state, '\0', sizeof (mbstate_t));
8805       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
8806         {
8807           input[3] = '\0';
8808           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
8809             result |= 8;
8810         }
8811       found_some_locale = 1;
8812     }
8813   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
8814     {
8815       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
8816       mbstate_t state;
8817       wchar_t wc;
8818
8819       memset (&state, '\0', sizeof (mbstate_t));
8820       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
8821         {
8822           input[3] = '\0';
8823           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
8824             result |= 16;
8825         }
8826       found_some_locale = 1;
8827     }
8828   return (found_some_locale ? result : 77);
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_run "$LINENO"; then :
8832   gl_cv_func_mbrtowc_retval=yes
8833 else
8834   if test $? != 77; then
8835              gl_cv_func_mbrtowc_retval=no
8836            fi
8837
8838 fi
8839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8840   conftest.$ac_objext conftest.beam conftest.$ac_ext
8841 fi
8842
8843       fi
8844
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
8847 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
8848
8849
8850
8851
8852      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
8853 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
8854 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857
8858                   case "$host_os" in
8859                        # Guess no on Solaris 8 and 9.
8860         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
8861                        # Guess yes otherwise.
8862         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
8863       esac
8864       if test $LOCALE_ZH_CN != none; then
8865         if test "$cross_compiling" = yes; then :
8866   :
8867 else
8868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h.  */
8870
8871 #include <locale.h>
8872 #include <string.h>
8873 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8874    <wchar.h>.
8875    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8876    included before <wchar.h>.  */
8877 #include <stddef.h>
8878 #include <stdio.h>
8879 #include <time.h>
8880 #include <wchar.h>
8881 int main ()
8882 {
8883   /* This fails on Solaris 8 and 9.  */
8884   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
8885     {
8886       mbstate_t state;
8887       wchar_t wc;
8888
8889       memset (&state, '\0', sizeof (mbstate_t));
8890       if (mbrtowc (&wc, "", 1, &state) != 0)
8891         return 1;
8892     }
8893   return 0;
8894 }
8895 _ACEOF
8896 if ac_fn_c_try_run "$LINENO"; then :
8897   gl_cv_func_mbrtowc_nul_retval=yes
8898 else
8899   gl_cv_func_mbrtowc_nul_retval=no
8900 fi
8901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8902   conftest.$ac_objext conftest.beam conftest.$ac_ext
8903 fi
8904
8905       fi
8906
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
8909 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
8910
8911       case "$gl_cv_func_mbrtowc_null_arg1" in
8912         *yes) ;;
8913         *)
8914 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
8915
8916            REPLACE_MBRTOWC=1
8917            ;;
8918       esac
8919       case "$gl_cv_func_mbrtowc_null_arg2" in
8920         *yes) ;;
8921         *)
8922 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
8923
8924            REPLACE_MBRTOWC=1
8925            ;;
8926       esac
8927       case "$gl_cv_func_mbrtowc_retval" in
8928         *yes) ;;
8929         *)
8930 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
8931
8932            REPLACE_MBRTOWC=1
8933            ;;
8934       esac
8935       case "$gl_cv_func_mbrtowc_nul_retval" in
8936         *yes) ;;
8937         *)
8938 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
8939
8940            REPLACE_MBRTOWC=1
8941            ;;
8942       esac
8943     fi
8944   fi
8945
8946 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
8947
8948
8949
8950
8951
8952
8953
8954
8955   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
8956
8957
8958   :
8959
8960 fi
8961
8962
8963
8964
8965
8966           GNULIB_MBRTOWC=1
8967
8968
8969
8970
8971
8972 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8988
8989
8990
8991      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8992 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8993 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996
8997                   case "$host_os" in
8998                      # Guess no on AIX and OSF/1.
8999         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9000                      # Guess yes otherwise.
9001         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9002       esac
9003       if test $LOCALE_JA != none; then
9004         if test "$cross_compiling" = yes; then :
9005   :
9006 else
9007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009
9010 #include <locale.h>
9011 #include <string.h>
9012 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9013    <wchar.h>.
9014    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9015    included before <wchar.h>.  */
9016 #include <stddef.h>
9017 #include <stdio.h>
9018 #include <time.h>
9019 #include <wchar.h>
9020 int main ()
9021 {
9022   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9023     {
9024       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9025       mbstate_t state;
9026       wchar_t wc;
9027
9028       memset (&state, '\0', sizeof (mbstate_t));
9029       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9030         if (mbsinit (&state))
9031           return 1;
9032     }
9033   return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_run "$LINENO"; then :
9037   gl_cv_func_mbrtowc_incomplete_state=yes
9038 else
9039   gl_cv_func_mbrtowc_incomplete_state=no
9040 fi
9041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9042   conftest.$ac_objext conftest.beam conftest.$ac_ext
9043 fi
9044
9045       fi
9046
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9049 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9050
9051
9052
9053
9054      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9055 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9056 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059
9060                   case "$host_os" in
9061                     # Guess no on Solaris 8.
9062         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9063                     # Guess yes otherwise.
9064         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9065       esac
9066       if test $LOCALE_ZH_CN != none; then
9067         if test "$cross_compiling" = yes; then :
9068   :
9069 else
9070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h.  */
9072
9073 #include <locale.h>
9074 #include <stdlib.h>
9075 #include <string.h>
9076 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9077    <wchar.h>.
9078    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9079    included before <wchar.h>.  */
9080 #include <stddef.h>
9081 #include <stdio.h>
9082 #include <time.h>
9083 #include <wchar.h>
9084 int main ()
9085 {
9086   /* This fails on Solaris 8:
9087      mbrtowc returns 2, and sets wc to 0x00F0.
9088      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
9089   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9090     {
9091       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9092       mbstate_t state;
9093       wchar_t wc;
9094
9095       memset (&state, '\0', sizeof (mbstate_t));
9096       if (mbrtowc (&wc, input + 3, 6, &state) != 4
9097           && mbtowc (&wc, input + 3, 6) == 4)
9098         return 1;
9099     }
9100   return 0;
9101 }
9102 _ACEOF
9103 if ac_fn_c_try_run "$LINENO"; then :
9104   gl_cv_func_mbrtowc_sanitycheck=yes
9105 else
9106   gl_cv_func_mbrtowc_sanitycheck=no
9107 fi
9108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9109   conftest.$ac_objext conftest.beam conftest.$ac_ext
9110 fi
9111
9112       fi
9113
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9116 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9117
9118     REPLACE_MBSTATE_T=0
9119     case "$gl_cv_func_mbrtowc_incomplete_state" in
9120       *yes) ;;
9121       *) REPLACE_MBSTATE_T=1 ;;
9122     esac
9123     case "$gl_cv_func_mbrtowc_sanitycheck" in
9124       *yes) ;;
9125       *) REPLACE_MBSTATE_T=1 ;;
9126     esac
9127   else
9128     REPLACE_MBSTATE_T=1
9129   fi
9130
9131
9132
9133   if test $ac_cv_func_mbsinit = no; then
9134     HAVE_MBSINIT=0
9135     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9137    <wchar.h>.
9138    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9139    included before <wchar.h>.  */
9140 #include <stddef.h>
9141 #include <stdio.h>
9142 #include <time.h>
9143 #include <wchar.h>
9144
9145 "
9146 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
9147   ac_have_decl=1
9148 else
9149   ac_have_decl=0
9150 fi
9151
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_DECL_MBSINIT $ac_have_decl
9154 _ACEOF
9155
9156     if test $ac_cv_have_decl_mbsinit = yes; then
9157                         REPLACE_MBSINIT=1
9158     fi
9159   else
9160     if test $REPLACE_MBSTATE_T = 1; then
9161       REPLACE_MBSINIT=1
9162     else
9163                         case "$host_os" in
9164         mingw*) REPLACE_MBSINIT=1 ;;
9165       esac
9166     fi
9167   fi
9168
9169 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
9170
9171
9172
9173
9174
9175
9176
9177
9178   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
9179
9180
9181   :
9182
9183 fi
9184
9185
9186
9187
9188
9189           GNULIB_MBSINIT=1
9190
9191
9192
9193
9194
9195 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
9196
9197
9198
9199
9200
9201   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
9202     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
9203
9204 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
9205
9206   else
9207     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
9208   fi
9209
9210
9211 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
9212
9213
9214
9215
9216
9217
9218
9219
9220   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
9221
9222 fi
9223
9224
9225
9226 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
9227
9228
9229
9230
9231
9232
9233
9234
9235   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
9236
9237 fi
9238 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
9239 "
9240 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
9241   ac_have_decl=1
9242 else
9243   ac_have_decl=0
9244 fi
9245
9246 cat >>confdefs.h <<_ACEOF
9247 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
9248 _ACEOF
9249
9250 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
9251 "
9252 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
9253   ac_have_decl=1
9254 else
9255   ac_have_decl=0
9256 fi
9257
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
9260 _ACEOF
9261
9262
9263   :
9264
9265
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
9267 $as_echo_n "checking for ssize_t... " >&6; }
9268 if ${gt_cv_ssize_t+:} false; then :
9269   $as_echo_n "(cached) " >&6
9270 else
9271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h.  */
9273 #include <sys/types.h>
9274 int
9275 main ()
9276 {
9277 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9278             return !x;
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284   gt_cv_ssize_t=yes
9285 else
9286   gt_cv_ssize_t=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
9291 $as_echo "$gt_cv_ssize_t" >&6; }
9292   if test $gt_cv_ssize_t = no; then
9293
9294 $as_echo "#define ssize_t int" >>confdefs.h
9295
9296   fi
9297
9298
9299
9300
9301   # Define two additional variables used in the Makefile substitution.
9302
9303   if test "$ac_cv_header_stdbool_h" = yes; then
9304     STDBOOL_H=''
9305   else
9306     STDBOOL_H='stdbool.h'
9307   fi
9308
9309    if test -n "$STDBOOL_H"; then
9310   GL_GENERATE_STDBOOL_H_TRUE=
9311   GL_GENERATE_STDBOOL_H_FALSE='#'
9312 else
9313   GL_GENERATE_STDBOOL_H_TRUE='#'
9314   GL_GENERATE_STDBOOL_H_FALSE=
9315 fi
9316
9317
9318   if test "$ac_cv_type__Bool" = yes; then
9319     HAVE__BOOL=1
9320   else
9321     HAVE__BOOL=0
9322   fi
9323
9324
9325
9326
9327
9328   STDDEF_H=
9329   if test $gt_cv_c_wchar_t = no; then
9330     HAVE_WCHAR_T=0
9331     STDDEF_H=stddef.h
9332   fi
9333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
9334 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
9335 if ${gl_cv_decl_null_works+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h.  */
9340 #include <stddef.h>
9341       int test[2 * (sizeof NULL == sizeof (void *)) -1];
9342
9343 int
9344 main ()
9345 {
9346
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_compile "$LINENO"; then :
9352   gl_cv_decl_null_works=yes
9353 else
9354   gl_cv_decl_null_works=no
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
9359 $as_echo "$gl_cv_decl_null_works" >&6; }
9360   if test $gl_cv_decl_null_works = no; then
9361     REPLACE_NULL=1
9362     STDDEF_H=stddef.h
9363   fi
9364
9365    if test -n "$STDDEF_H"; then
9366   GL_GENERATE_STDDEF_H_TRUE=
9367   GL_GENERATE_STDDEF_H_FALSE='#'
9368 else
9369   GL_GENERATE_STDDEF_H_TRUE='#'
9370   GL_GENERATE_STDDEF_H_FALSE=
9371 fi
9372
9373   if test -n "$STDDEF_H"; then
9374
9375
9376
9377
9378
9379
9380
9381
9382      if test $gl_cv_have_include_next = yes; then
9383        gl_cv_next_stddef_h='<'stddef.h'>'
9384      else
9385        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
9386 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
9387 if ${gl_cv_next_stddef_h+:} false; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390
9391                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h.  */
9393 #include <stddef.h>
9394
9395 _ACEOF
9396                                                                                                                         case "$host_os" in
9397                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
9398                  *)    gl_absname_cpp="$ac_cpp" ;;
9399                esac
9400
9401                case "$host_os" in
9402                  mingw*)
9403                                                                                                                                      gl_dirsep_regex='[/\\]'
9404                    ;;
9405                  *)
9406                    gl_dirsep_regex='\/'
9407                    ;;
9408                esac
9409                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9410
9411                gl_header_literal_regex=`echo 'stddef.h' \
9412                                         | sed -e "$gl_make_literal_regex_sed"`
9413                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9414                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9415                    s|^/[^/]|//&|
9416                    p
9417                    q
9418                  }'
9419                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9420                       sed -n "$gl_absolute_header_sed"`'"'
9421
9422
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
9425 $as_echo "$gl_cv_next_stddef_h" >&6; }
9426      fi
9427      NEXT_STDDEF_H=$gl_cv_next_stddef_h
9428
9429      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9430        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9431        gl_next_as_first_directive='<'stddef.h'>'
9432      else
9433        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9434        gl_next_as_first_directive=$gl_cv_next_stddef_h
9435      fi
9436      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
9437
9438
9439
9440
9441   fi
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453      if test $gl_cv_have_include_next = yes; then
9454        gl_cv_next_stdlib_h='<'stdlib.h'>'
9455      else
9456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
9457 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
9458 if ${gl_cv_next_stdlib_h+:} false; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461
9462                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h.  */
9464 #include <stdlib.h>
9465
9466 _ACEOF
9467                                                                                                                         case "$host_os" in
9468                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
9469                  *)    gl_absname_cpp="$ac_cpp" ;;
9470                esac
9471
9472                case "$host_os" in
9473                  mingw*)
9474                                                                                                                                      gl_dirsep_regex='[/\\]'
9475                    ;;
9476                  *)
9477                    gl_dirsep_regex='\/'
9478                    ;;
9479                esac
9480                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9481
9482                gl_header_literal_regex=`echo 'stdlib.h' \
9483                                         | sed -e "$gl_make_literal_regex_sed"`
9484                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9485                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9486                    s|^/[^/]|//&|
9487                    p
9488                    q
9489                  }'
9490                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9491                       sed -n "$gl_absolute_header_sed"`'"'
9492
9493
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
9496 $as_echo "$gl_cv_next_stdlib_h" >&6; }
9497      fi
9498      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
9499
9500      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9501        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9502        gl_next_as_first_directive='<'stdlib.h'>'
9503      else
9504        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9505        gl_next_as_first_directive=$gl_cv_next_stdlib_h
9506      fi
9507      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
9508
9509
9510
9511
9512
9513
9514     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
9515     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9518 if eval \${$as_gl_Symbol+:} false; then :
9519   $as_echo_n "(cached) " >&6
9520 else
9521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h.  */
9523 #include <stdlib.h>
9524 #if HAVE_SYS_LOADAVG_H
9525 # include <sys/loadavg.h>
9526 #endif
9527 #if HAVE_RANDOM_H
9528 # include <random.h>
9529 #endif
9530
9531 int
9532 main ()
9533 {
9534 #undef $gl_func
9535   (void) $gl_func;
9536   ;
9537   return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_compile "$LINENO"; then :
9541   eval "$as_gl_Symbol=yes"
9542 else
9543   eval "$as_gl_Symbol=no"
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 fi
9547 eval ac_res=\$$as_gl_Symbol
9548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9549 $as_echo "$ac_res" >&6; }
9550     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9551   cat >>confdefs.h <<_ACEOF
9552 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9553 _ACEOF
9554
9555                      eval ac_cv_have_decl_$gl_func=yes
9556 fi
9557       done
9558
9559
9560
9561
9562
9563
9564
9565   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
9566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
9567 $as_echo_n "checking for working strerror function... " >&6; }
9568 if ${gl_cv_func_working_strerror+:} false; then :
9569   $as_echo_n "(cached) " >&6
9570 else
9571   if test "$cross_compiling" = yes; then :
9572            gl_cv_func_working_strerror="guessing no"
9573 else
9574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h.  */
9576 #include <string.h>
9577
9578 int
9579 main ()
9580 {
9581 if (!*strerror (-2)) return 1;
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 if ac_fn_c_try_run "$LINENO"; then :
9587   gl_cv_func_working_strerror=yes
9588 else
9589   gl_cv_func_working_strerror=no
9590 fi
9591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9592   conftest.$ac_objext conftest.beam conftest.$ac_ext
9593 fi
9594
9595
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
9598 $as_echo "$gl_cv_func_working_strerror" >&6; }
9599     if test "$gl_cv_func_working_strerror" != yes; then
9600                   REPLACE_STRERROR=1
9601     fi
9602
9603   else
9604             REPLACE_STRERROR=1
9605   fi
9606
9607 if test $REPLACE_STRERROR = 1; then
9608
9609
9610
9611
9612
9613
9614
9615
9616   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
9617
9618 fi
9619
9620
9621 cat >>confdefs.h <<_ACEOF
9622 #define GNULIB_STRERROR 1
9623 _ACEOF
9624
9625
9626
9627
9628
9629
9630
9631           GNULIB_STRERROR=1
9632
9633
9634
9635
9636
9637 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
9638
9639
9640
9641
9642
9643 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
9644
9645
9646
9647
9648
9649
9650
9651
9652   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
9653
9654
9655
9656
9657
9658   if test $ac_cv_header_sys_socket_h != yes; then
9659                     for ac_header in winsock2.h
9660 do :
9661   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9662 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9663   cat >>confdefs.h <<_ACEOF
9664 #define HAVE_WINSOCK2_H 1
9665 _ACEOF
9666
9667 fi
9668
9669 done
9670
9671   fi
9672   if test "$ac_cv_header_winsock2_h" = yes; then
9673     HAVE_WINSOCK2_H=1
9674     UNISTD_H_HAVE_WINSOCK2_H=1
9675     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9676   else
9677     HAVE_WINSOCK2_H=0
9678   fi
9679
9680
9681 fi
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698      if test $gl_cv_have_include_next = yes; then
9699        gl_cv_next_unistd_h='<'unistd.h'>'
9700      else
9701        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
9702 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
9703 if ${gl_cv_next_unistd_h+:} false; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706
9707              if test $ac_cv_header_unistd_h = yes; then
9708
9709
9710                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h.  */
9712 #include <unistd.h>
9713
9714 _ACEOF
9715                                                                                                                         case "$host_os" in
9716                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
9717                  *)    gl_absname_cpp="$ac_cpp" ;;
9718                esac
9719
9720                case "$host_os" in
9721                  mingw*)
9722                                                                                                                                      gl_dirsep_regex='[/\\]'
9723                    ;;
9724                  *)
9725                    gl_dirsep_regex='\/'
9726                    ;;
9727                esac
9728                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9729
9730                gl_header_literal_regex=`echo 'unistd.h' \
9731                                         | sed -e "$gl_make_literal_regex_sed"`
9732                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9733                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9734                    s|^/[^/]|//&|
9735                    p
9736                    q
9737                  }'
9738                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9739                       sed -n "$gl_absolute_header_sed"`'"'
9740           else
9741                gl_cv_next_unistd_h='<'unistd.h'>'
9742              fi
9743
9744
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
9747 $as_echo "$gl_cv_next_unistd_h" >&6; }
9748      fi
9749      NEXT_UNISTD_H=$gl_cv_next_unistd_h
9750
9751      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9752        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9753        gl_next_as_first_directive='<'unistd.h'>'
9754      else
9755        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9756        gl_next_as_first_directive=$gl_cv_next_unistd_h
9757      fi
9758      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
9759
9760
9761
9762
9763   if test $ac_cv_header_unistd_h = yes; then
9764     HAVE_UNISTD_H=1
9765   else
9766     HAVE_UNISTD_H=0
9767   fi
9768
9769
9770
9771
9772
9773     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
9774     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9776 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9777 if eval \${$as_gl_Symbol+:} false; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782
9783 #if HAVE_UNISTD_H
9784 # include <unistd.h>
9785 #endif
9786 /* Some systems declare various items in the wrong headers.  */
9787 #if !(defined __GLIBC__ && !defined __UCLIBC__)
9788 # include <fcntl.h>
9789 # include <stdio.h>
9790 # include <stdlib.h>
9791 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9792 #  include <io.h>
9793 # endif
9794 #endif
9795
9796 int
9797 main ()
9798 {
9799 #undef $gl_func
9800   (void) $gl_func;
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 if ac_fn_c_try_compile "$LINENO"; then :
9806   eval "$as_gl_Symbol=yes"
9807 else
9808   eval "$as_gl_Symbol=no"
9809 fi
9810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811 fi
9812 eval ac_res=\$$as_gl_Symbol
9813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9814 $as_echo "$ac_res" >&6; }
9815     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9816   cat >>confdefs.h <<_ACEOF
9817 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9818 _ACEOF
9819
9820                      eval ac_cv_have_decl_$gl_func=yes
9821 fi
9822       done
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837      if test $gl_cv_have_include_next = yes; then
9838        gl_cv_next_wchar_h='<'wchar.h'>'
9839      else
9840        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
9841 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
9842 if ${gl_cv_next_wchar_h+:} false; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845
9846              if test $ac_cv_header_wchar_h = yes; then
9847
9848
9849                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h.  */
9851 #include <wchar.h>
9852
9853 _ACEOF
9854                                                                                                                         case "$host_os" in
9855                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
9856                  *)    gl_absname_cpp="$ac_cpp" ;;
9857                esac
9858
9859                case "$host_os" in
9860                  mingw*)
9861                                                                                                                                      gl_dirsep_regex='[/\\]'
9862                    ;;
9863                  *)
9864                    gl_dirsep_regex='\/'
9865                    ;;
9866                esac
9867                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9868
9869                gl_header_literal_regex=`echo 'wchar.h' \
9870                                         | sed -e "$gl_make_literal_regex_sed"`
9871                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9872                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9873                    s|^/[^/]|//&|
9874                    p
9875                    q
9876                  }'
9877                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9878                       sed -n "$gl_absolute_header_sed"`'"'
9879           else
9880                gl_cv_next_wchar_h='<'wchar.h'>'
9881              fi
9882
9883
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
9886 $as_echo "$gl_cv_next_wchar_h" >&6; }
9887      fi
9888      NEXT_WCHAR_H=$gl_cv_next_wchar_h
9889
9890      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9891        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9892        gl_next_as_first_directive='<'wchar.h'>'
9893      else
9894        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9895        gl_next_as_first_directive=$gl_cv_next_wchar_h
9896      fi
9897      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
9898
9899
9900
9901
9902   if test $ac_cv_header_wchar_h = yes; then
9903     HAVE_WCHAR_H=1
9904   else
9905     HAVE_WCHAR_H=0
9906   fi
9907
9908
9909
9910
9911
9912   if test $gt_cv_c_wint_t = yes; then
9913     HAVE_WINT_T=1
9914   else
9915     HAVE_WINT_T=0
9916   fi
9917
9918
9919
9920     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
9921     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9923 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9924 if eval \${$as_gl_Symbol+:} false; then :
9925   $as_echo_n "(cached) " >&6
9926 else
9927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h.  */
9929
9930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9931    <wchar.h>.
9932    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9933    included before <wchar.h>.  */
9934 #if !(defined __GLIBC__ && !defined __UCLIBC__)
9935 # include <stddef.h>
9936 # include <stdio.h>
9937 # include <time.h>
9938 #endif
9939 #include <wchar.h>
9940
9941 int
9942 main ()
9943 {
9944 #undef $gl_func
9945   (void) $gl_func;
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 if ac_fn_c_try_compile "$LINENO"; then :
9951   eval "$as_gl_Symbol=yes"
9952 else
9953   eval "$as_gl_Symbol=no"
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 fi
9957 eval ac_res=\$$as_gl_Symbol
9958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9959 $as_echo "$ac_res" >&6; }
9960     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9961   cat >>confdefs.h <<_ACEOF
9962 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9963 _ACEOF
9964
9965                      eval ac_cv_have_decl_$gl_func=yes
9966 fi
9967       done
9968
9969
9970
9971
9972
9973
9974
9975   if test $ac_cv_func_iswcntrl = yes; then
9976     HAVE_ISWCNTRL=1
9977   else
9978     HAVE_ISWCNTRL=0
9979   fi
9980
9981
9982
9983
9984
9985   if test $gt_cv_c_wint_t = yes; then
9986     HAVE_WINT_T=1
9987   else
9988     HAVE_WINT_T=0
9989   fi
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001      if test $gl_cv_have_include_next = yes; then
10002        gl_cv_next_wctype_h='<'wctype.h'>'
10003      else
10004        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10005 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10006 if ${gl_cv_next_wctype_h+:} false; then :
10007   $as_echo_n "(cached) " >&6
10008 else
10009
10010              if test $ac_cv_header_wctype_h = yes; then
10011
10012
10013                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h.  */
10015 #include <wctype.h>
10016
10017 _ACEOF
10018                                                                                                                         case "$host_os" in
10019                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
10020                  *)    gl_absname_cpp="$ac_cpp" ;;
10021                esac
10022
10023                case "$host_os" in
10024                  mingw*)
10025                                                                                                                                      gl_dirsep_regex='[/\\]'
10026                    ;;
10027                  *)
10028                    gl_dirsep_regex='\/'
10029                    ;;
10030                esac
10031                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10032
10033                gl_header_literal_regex=`echo 'wctype.h' \
10034                                         | sed -e "$gl_make_literal_regex_sed"`
10035                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10036                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10037                    s|^/[^/]|//&|
10038                    p
10039                    q
10040                  }'
10041                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10042                       sed -n "$gl_absolute_header_sed"`'"'
10043           else
10044                gl_cv_next_wctype_h='<'wctype.h'>'
10045              fi
10046
10047
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10050 $as_echo "$gl_cv_next_wctype_h" >&6; }
10051      fi
10052      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
10053
10054      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10055        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10056        gl_next_as_first_directive='<'wctype.h'>'
10057      else
10058        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10059        gl_next_as_first_directive=$gl_cv_next_wctype_h
10060      fi
10061      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10062
10063
10064
10065
10066   if test $ac_cv_header_wctype_h = yes; then
10067     if test $ac_cv_func_iswcntrl = yes; then
10068                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10069 $as_echo_n "checking whether iswcntrl works... " >&6; }
10070 if ${gl_cv_func_iswcntrl_works+:} false; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073
10074           if test "$cross_compiling" = yes; then :
10075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h.  */
10077 #include <stdlib.h>
10078                           #if __GNU_LIBRARY__ == 1
10079                           Linux libc5 i18n is broken.
10080                           #endif
10081 int
10082 main ()
10083 {
10084
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_compile "$LINENO"; then :
10090   gl_cv_func_iswcntrl_works=yes
10091 else
10092   gl_cv_func_iswcntrl_works=no
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095
10096 else
10097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h.  */
10099
10100                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10101                   included before <wchar.h>.
10102                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10103                   must be included before <wchar.h>.  */
10104                #include <stddef.h>
10105                #include <stdio.h>
10106                #include <time.h>
10107                #include <wchar.h>
10108                #include <wctype.h>
10109                int main () { return iswprint ('x') == 0; }
10110
10111 _ACEOF
10112 if ac_fn_c_try_run "$LINENO"; then :
10113   gl_cv_func_iswcntrl_works=yes
10114 else
10115   gl_cv_func_iswcntrl_works=no
10116 fi
10117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118   conftest.$ac_objext conftest.beam conftest.$ac_ext
10119 fi
10120
10121
10122 fi
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10124 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10125     fi
10126     HAVE_WCTYPE_H=1
10127   else
10128     HAVE_WCTYPE_H=0
10129   fi
10130
10131
10132   if test "$gl_cv_func_iswcntrl_works" = no; then
10133     REPLACE_ISWCNTRL=1
10134   else
10135     REPLACE_ISWCNTRL=0
10136   fi
10137
10138
10139   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10140         :
10141   fi
10142
10143   if test $REPLACE_ISWCNTRL = 1; then
10144     REPLACE_TOWLOWER=1
10145   else
10146     for ac_func in towlower
10147 do :
10148   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10149 if test "x$ac_cv_func_towlower" = xyes; then :
10150   cat >>confdefs.h <<_ACEOF
10151 #define HAVE_TOWLOWER 1
10152 _ACEOF
10153
10154 fi
10155 done
10156
10157     if test $ac_cv_func_towlower = yes; then
10158       REPLACE_TOWLOWER=0
10159     else
10160       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10161              included before <wchar.h>.
10162              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10163              must be included before <wchar.h>.  */
10164           #include <stddef.h>
10165           #include <stdio.h>
10166           #include <time.h>
10167           #include <wchar.h>
10168           #if HAVE_WCTYPE_H
10169           # include <wctype.h>
10170           #endif
10171
10172 "
10173 if test "x$ac_cv_have_decl_towlower" = xyes; then :
10174   ac_have_decl=1
10175 else
10176   ac_have_decl=0
10177 fi
10178
10179 cat >>confdefs.h <<_ACEOF
10180 #define HAVE_DECL_TOWLOWER $ac_have_decl
10181 _ACEOF
10182
10183       if test $ac_cv_have_decl_towlower = yes; then
10184                                 REPLACE_TOWLOWER=1
10185       else
10186         REPLACE_TOWLOWER=0
10187       fi
10188     fi
10189   fi
10190
10191
10192   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10193         :
10194   fi
10195
10196           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10197 $as_echo_n "checking for wctype_t... " >&6; }
10198 if ${gl_cv_type_wctype_t+:} false; then :
10199   $as_echo_n "(cached) " >&6
10200 else
10201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h.  */
10203 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10204                included before <wchar.h>.
10205                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10206                must be included before <wchar.h>.  */
10207             #include <stddef.h>
10208             #include <stdio.h>
10209             #include <time.h>
10210             #include <wchar.h>
10211             #if HAVE_WCTYPE_H
10212             # include <wctype.h>
10213             #endif
10214             wctype_t a;
10215
10216 int
10217 main ()
10218 {
10219
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_compile "$LINENO"; then :
10225   gl_cv_type_wctype_t=yes
10226 else
10227   gl_cv_type_wctype_t=no
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10233 $as_echo "$gl_cv_type_wctype_t" >&6; }
10234   if test $gl_cv_type_wctype_t = no; then
10235     HAVE_WCTYPE_T=0
10236   fi
10237
10238       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10239 $as_echo_n "checking for wctrans_t... " >&6; }
10240 if ${gl_cv_type_wctrans_t+:} false; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h.  */
10245 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10246                included before <wchar.h>.
10247                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10248                must be included before <wchar.h>.  */
10249             #include <stddef.h>
10250             #include <stdio.h>
10251             #include <time.h>
10252             #include <wchar.h>
10253             #include <wctype.h>
10254             wctrans_t a;
10255
10256 int
10257 main ()
10258 {
10259
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265   gl_cv_type_wctrans_t=yes
10266 else
10267   gl_cv_type_wctrans_t=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
10273 $as_echo "$gl_cv_type_wctrans_t" >&6; }
10274   if test $gl_cv_type_wctrans_t = no; then
10275     HAVE_WCTRANS_T=0
10276   fi
10277
10278
10279     for gl_func in wctype iswctype wctrans towctrans     ; do
10280     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10282 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10283 if eval \${$as_gl_Symbol+:} false; then :
10284   $as_echo_n "(cached) " >&6
10285 else
10286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h.  */
10288
10289 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10290    <wchar.h>.
10291    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10292    included before <wchar.h>.  */
10293 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10294 # include <stddef.h>
10295 # include <stdio.h>
10296 # include <time.h>
10297 # include <wchar.h>
10298 #endif
10299 #include <wctype.h>
10300
10301 int
10302 main ()
10303 {
10304 #undef $gl_func
10305   (void) $gl_func;
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_compile "$LINENO"; then :
10311   eval "$as_gl_Symbol=yes"
10312 else
10313   eval "$as_gl_Symbol=no"
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316 fi
10317 eval ac_res=\$$as_gl_Symbol
10318                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10319 $as_echo "$ac_res" >&6; }
10320     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
10321   cat >>confdefs.h <<_ACEOF
10322 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10323 _ACEOF
10324
10325                      eval ac_cv_have_decl_$gl_func=yes
10326 fi
10327       done
10328
10329
10330
10331
10332
10333   :
10334
10335
10336   :
10337
10338
10339   # End of code from modules
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349   gltests_libdeps=
10350   gltests_ltlibdeps=
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360   gl_source_base='tests'
10361   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
10362
10363   gl_module_indicator_condition=$gltests_WITNESS
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373   LIBHELLO_LIBDEPS="$gl_libdeps"
10374
10375   LIBHELLO_LTLIBDEPS="$gl_ltlibdeps"
10376
10377
10378
10379 # GNU help2man creates man pages from --help output; in many cases, this
10380 # is sufficient, and obviates the need to maintain man pages separately.
10381 # However, this means invoking executables, which we generally cannot do
10382 # when cross-compiling, so we test to avoid that (the variable
10383 # "cross_compiling" is set by AC_PROG_CC).
10384 if test $cross_compiling = no; then
10385
10386 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
10387
10388 else
10389   HELP2MAN=:
10390 fi
10391
10392 # i18n support from GNU gettext.
10393
10394
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10396 $as_echo_n "checking whether NLS is requested... " >&6; }
10397     # Check whether --enable-nls was given.
10398 if test "${enable_nls+set}" = set; then :
10399   enableval=$enable_nls; USE_NLS=$enableval
10400 else
10401   USE_NLS=yes
10402 fi
10403
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10405 $as_echo "$USE_NLS" >&6; }
10406
10407
10408
10409
10410       GETTEXT_MACRO_VERSION=0.18
10411
10412
10413
10414
10415 # Prepare PATH_SEPARATOR.
10416 # The user is always right.
10417 if test "${PATH_SEPARATOR+set}" != set; then
10418   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10419   # contains only /bin. Note that ksh looks also at the FPATH variable,
10420   # so we have to set that as well for the test.
10421   PATH_SEPARATOR=:
10422   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10423     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10424            || PATH_SEPARATOR=';'
10425        }
10426 fi
10427
10428 # Find out how to test for executable files. Don't use a zero-byte file,
10429 # as systems may use methods other than mode bits to determine executability.
10430 cat >conf$$.file <<_ASEOF
10431 #! /bin/sh
10432 exit 0
10433 _ASEOF
10434 chmod +x conf$$.file
10435 if test -x conf$$.file >/dev/null 2>&1; then
10436   ac_executable_p="test -x"
10437 else
10438   ac_executable_p="test -f"
10439 fi
10440 rm -f conf$$.file
10441
10442 # Extract the first word of "msgfmt", so it can be a program name with args.
10443 set dummy msgfmt; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445 $as_echo_n "checking for $ac_word... " >&6; }
10446 if ${ac_cv_path_MSGFMT+:} false; then :
10447   $as_echo_n "(cached) " >&6
10448 else
10449   case "$MSGFMT" in
10450   [\\/]* | ?:[\\/]*)
10451     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10452     ;;
10453   *)
10454     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10455     for ac_dir in $PATH; do
10456       IFS="$ac_save_IFS"
10457       test -z "$ac_dir" && ac_dir=.
10458       for ac_exec_ext in '' $ac_executable_extensions; do
10459         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10460           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10461           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10462      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10463             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10464             break 2
10465           fi
10466         fi
10467       done
10468     done
10469     IFS="$ac_save_IFS"
10470   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10471     ;;
10472 esac
10473 fi
10474 MSGFMT="$ac_cv_path_MSGFMT"
10475 if test "$MSGFMT" != ":"; then
10476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10477 $as_echo "$MSGFMT" >&6; }
10478 else
10479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10481 fi
10482
10483   # Extract the first word of "gmsgfmt", so it can be a program name with args.
10484 set dummy gmsgfmt; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_path_GMSGFMT+:} false; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   case $GMSGFMT in
10491   [\\/]* | ?:[\\/]*)
10492   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10493   ;;
10494   *)
10495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498   IFS=$as_save_IFS
10499   test -z "$as_dir" && as_dir=.
10500     for ac_exec_ext in '' $ac_executable_extensions; do
10501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504     break 2
10505   fi
10506 done
10507   done
10508 IFS=$as_save_IFS
10509
10510   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10511   ;;
10512 esac
10513 fi
10514 GMSGFMT=$ac_cv_path_GMSGFMT
10515 if test -n "$GMSGFMT"; then
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10517 $as_echo "$GMSGFMT" >&6; }
10518 else
10519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10521 fi
10522
10523
10524
10525     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10526     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10527     *) MSGFMT_015=$MSGFMT ;;
10528   esac
10529
10530   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10531     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10532     *) GMSGFMT_015=$GMSGFMT ;;
10533   esac
10534
10535
10536
10537 # Prepare PATH_SEPARATOR.
10538 # The user is always right.
10539 if test "${PATH_SEPARATOR+set}" != set; then
10540   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10541   # contains only /bin. Note that ksh looks also at the FPATH variable,
10542   # so we have to set that as well for the test.
10543   PATH_SEPARATOR=:
10544   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10545     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10546            || PATH_SEPARATOR=';'
10547        }
10548 fi
10549
10550 # Find out how to test for executable files. Don't use a zero-byte file,
10551 # as systems may use methods other than mode bits to determine executability.
10552 cat >conf$$.file <<_ASEOF
10553 #! /bin/sh
10554 exit 0
10555 _ASEOF
10556 chmod +x conf$$.file
10557 if test -x conf$$.file >/dev/null 2>&1; then
10558   ac_executable_p="test -x"
10559 else
10560   ac_executable_p="test -f"
10561 fi
10562 rm -f conf$$.file
10563
10564 # Extract the first word of "xgettext", so it can be a program name with args.
10565 set dummy xgettext; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if ${ac_cv_path_XGETTEXT+:} false; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   case "$XGETTEXT" in
10572   [\\/]* | ?:[\\/]*)
10573     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10574     ;;
10575   *)
10576     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10577     for ac_dir in $PATH; do
10578       IFS="$ac_save_IFS"
10579       test -z "$ac_dir" && ac_dir=.
10580       for ac_exec_ext in '' $ac_executable_extensions; do
10581         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10582           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10583           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10584      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10585             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10586             break 2
10587           fi
10588         fi
10589       done
10590     done
10591     IFS="$ac_save_IFS"
10592   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10593     ;;
10594 esac
10595 fi
10596 XGETTEXT="$ac_cv_path_XGETTEXT"
10597 if test "$XGETTEXT" != ":"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10599 $as_echo "$XGETTEXT" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605     rm -f messages.po
10606
10607     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10608     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10609     *) XGETTEXT_015=$XGETTEXT ;;
10610   esac
10611
10612
10613
10614 # Prepare PATH_SEPARATOR.
10615 # The user is always right.
10616 if test "${PATH_SEPARATOR+set}" != set; then
10617   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10618   # contains only /bin. Note that ksh looks also at the FPATH variable,
10619   # so we have to set that as well for the test.
10620   PATH_SEPARATOR=:
10621   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10622     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10623            || PATH_SEPARATOR=';'
10624        }
10625 fi
10626
10627 # Find out how to test for executable files. Don't use a zero-byte file,
10628 # as systems may use methods other than mode bits to determine executability.
10629 cat >conf$$.file <<_ASEOF
10630 #! /bin/sh
10631 exit 0
10632 _ASEOF
10633 chmod +x conf$$.file
10634 if test -x conf$$.file >/dev/null 2>&1; then
10635   ac_executable_p="test -x"
10636 else
10637   ac_executable_p="test -f"
10638 fi
10639 rm -f conf$$.file
10640
10641 # Extract the first word of "msgmerge", so it can be a program name with args.
10642 set dummy msgmerge; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if ${ac_cv_path_MSGMERGE+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   case "$MSGMERGE" in
10649   [\\/]* | ?:[\\/]*)
10650     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10651     ;;
10652   *)
10653     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10654     for ac_dir in $PATH; do
10655       IFS="$ac_save_IFS"
10656       test -z "$ac_dir" && ac_dir=.
10657       for ac_exec_ext in '' $ac_executable_extensions; do
10658         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10659           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10660           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10661             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10662             break 2
10663           fi
10664         fi
10665       done
10666     done
10667     IFS="$ac_save_IFS"
10668   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10669     ;;
10670 esac
10671 fi
10672 MSGMERGE="$ac_cv_path_MSGMERGE"
10673 if test "$MSGMERGE" != ":"; then
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10675 $as_echo "$MSGMERGE" >&6; }
10676 else
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 fi
10680
10681
10682         test -n "$localedir" || localedir='${datadir}/locale'
10683
10684
10685     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10686
10687
10688   ac_config_commands="$ac_config_commands po-directories"
10689
10690
10691
10692       if test "X$prefix" = "XNONE"; then
10693     acl_final_prefix="$ac_default_prefix"
10694   else
10695     acl_final_prefix="$prefix"
10696   fi
10697   if test "X$exec_prefix" = "XNONE"; then
10698     acl_final_exec_prefix='${prefix}'
10699   else
10700     acl_final_exec_prefix="$exec_prefix"
10701   fi
10702   acl_save_prefix="$prefix"
10703   prefix="$acl_final_prefix"
10704   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10705   prefix="$acl_save_prefix"
10706
10707
10708 # Check whether --with-gnu-ld was given.
10709 if test "${with_gnu_ld+set}" = set; then :
10710   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10711 else
10712   with_gnu_ld=no
10713 fi
10714
10715 # Prepare PATH_SEPARATOR.
10716 # The user is always right.
10717 if test "${PATH_SEPARATOR+set}" != set; then
10718   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10719   # contains only /bin. Note that ksh looks also at the FPATH variable,
10720   # so we have to set that as well for the test.
10721   PATH_SEPARATOR=:
10722   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10723     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10724            || PATH_SEPARATOR=';'
10725        }
10726 fi
10727 ac_prog=ld
10728 if test "$GCC" = yes; then
10729   # Check if gcc -print-prog-name=ld gives a path.
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10731 $as_echo_n "checking for ld used by GCC... " >&6; }
10732   case $host in
10733   *-*-mingw*)
10734     # gcc leaves a trailing carriage return which upsets mingw
10735     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10736   *)
10737     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10738   esac
10739   case $ac_prog in
10740     # Accept absolute paths.
10741     [\\/]* | [A-Za-z]:[\\/]*)
10742       re_direlt='/[^/][^/]*/\.\./'
10743       # Canonicalize the path of ld
10744       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10745       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10746         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10747       done
10748       test -z "$LD" && LD="$ac_prog"
10749       ;;
10750   "")
10751     # If it fails, then pretend we aren't using GCC.
10752     ac_prog=ld
10753     ;;
10754   *)
10755     # If it is relative, then search for the first ld in PATH.
10756     with_gnu_ld=unknown
10757     ;;
10758   esac
10759 elif test "$with_gnu_ld" = yes; then
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10761 $as_echo_n "checking for GNU ld... " >&6; }
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10764 $as_echo_n "checking for non-GNU ld... " >&6; }
10765 fi
10766 if ${acl_cv_path_LD+:} false; then :
10767   $as_echo_n "(cached) " >&6
10768 else
10769   if test -z "$LD"; then
10770   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10771   for ac_dir in $PATH; do
10772     test -z "$ac_dir" && ac_dir=.
10773     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10774       acl_cv_path_LD="$ac_dir/$ac_prog"
10775       # Check to see if the program is GNU ld.  I'd rather use --version,
10776       # but apparently some GNU ld's only accept -v.
10777       # Break only if it was the GNU/non-GNU ld that we prefer.
10778       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10779       *GNU* | *'with BFD'*)
10780         test "$with_gnu_ld" != no && break ;;
10781       *)
10782         test "$with_gnu_ld" != yes && break ;;
10783       esac
10784     fi
10785   done
10786   IFS="$ac_save_ifs"
10787 else
10788   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10789 fi
10790 fi
10791
10792 LD="$acl_cv_path_LD"
10793 if test -n "$LD"; then
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10795 $as_echo "$LD" >&6; }
10796 else
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10799 fi
10800 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10802 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10803 if ${acl_cv_prog_gnu_ld+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10807 case `$LD -v 2>&1 </dev/null` in
10808 *GNU* | *'with BFD'*)
10809   acl_cv_prog_gnu_ld=yes ;;
10810 *)
10811   acl_cv_prog_gnu_ld=no ;;
10812 esac
10813 fi
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10815 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10816 with_gnu_ld=$acl_cv_prog_gnu_ld
10817
10818
10819
10820
10821                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10822 $as_echo_n "checking for shared library run path origin... " >&6; }
10823 if ${acl_cv_rpath+:} false; then :
10824   $as_echo_n "(cached) " >&6
10825 else
10826
10827     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10828     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10829     . ./conftest.sh
10830     rm -f ./conftest.sh
10831     acl_cv_rpath=done
10832
10833 fi
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10835 $as_echo "$acl_cv_rpath" >&6; }
10836   wl="$acl_cv_wl"
10837   acl_libext="$acl_cv_libext"
10838   acl_shlibext="$acl_cv_shlibext"
10839   acl_libname_spec="$acl_cv_libname_spec"
10840   acl_library_names_spec="$acl_cv_library_names_spec"
10841   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10842   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10843   acl_hardcode_direct="$acl_cv_hardcode_direct"
10844   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10845     # Check whether --enable-rpath was given.
10846 if test "${enable_rpath+set}" = set; then :
10847   enableval=$enable_rpath; :
10848 else
10849   enable_rpath=yes
10850 fi
10851
10852
10853
10854
10855   acl_libdirstem=lib
10856   acl_libdirstem2=
10857   case "$host_os" in
10858     solaris*)
10859                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10860 $as_echo_n "checking for 64-bit host... " >&6; }
10861 if ${gl_cv_solaris_64bit+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h.  */
10866
10867 #ifdef _LP64
10868 sixtyfour bits
10869 #endif
10870
10871 _ACEOF
10872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10873   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10874   gl_cv_solaris_64bit=yes
10875 else
10876   gl_cv_solaris_64bit=no
10877 fi
10878 rm -f conftest*
10879
10880
10881 fi
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10883 $as_echo "$gl_cv_solaris_64bit" >&6; }
10884       if test $gl_cv_solaris_64bit = yes; then
10885         acl_libdirstem=lib/64
10886         case "$host_cpu" in
10887           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
10888           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10889         esac
10890       fi
10891       ;;
10892     *)
10893       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10894       if test -n "$searchpath"; then
10895         acl_save_IFS="${IFS=    }"; IFS=":"
10896         for searchdir in $searchpath; do
10897           if test -d "$searchdir"; then
10898             case "$searchdir" in
10899               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10900               */../ | */.. )
10901                 # Better ignore directories of this form. They are misleading.
10902                 ;;
10903               *) searchdir=`cd "$searchdir" && pwd`
10904                  case "$searchdir" in
10905                    */lib64 ) acl_libdirstem=lib64 ;;
10906                  esac ;;
10907             esac
10908           fi
10909         done
10910         IFS="$acl_save_IFS"
10911       fi
10912       ;;
10913   esac
10914   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927     use_additional=yes
10928
10929   acl_save_prefix="$prefix"
10930   prefix="$acl_final_prefix"
10931   acl_save_exec_prefix="$exec_prefix"
10932   exec_prefix="$acl_final_exec_prefix"
10933
10934     eval additional_includedir=\"$includedir\"
10935     eval additional_libdir=\"$libdir\"
10936
10937   exec_prefix="$acl_save_exec_prefix"
10938   prefix="$acl_save_prefix"
10939
10940
10941 # Check whether --with-libiconv-prefix was given.
10942 if test "${with_libiconv_prefix+set}" = set; then :
10943   withval=$with_libiconv_prefix;
10944     if test "X$withval" = "Xno"; then
10945       use_additional=no
10946     else
10947       if test "X$withval" = "X"; then
10948
10949   acl_save_prefix="$prefix"
10950   prefix="$acl_final_prefix"
10951   acl_save_exec_prefix="$exec_prefix"
10952   exec_prefix="$acl_final_exec_prefix"
10953
10954           eval additional_includedir=\"$includedir\"
10955           eval additional_libdir=\"$libdir\"
10956
10957   exec_prefix="$acl_save_exec_prefix"
10958   prefix="$acl_save_prefix"
10959
10960       else
10961         additional_includedir="$withval/include"
10962         additional_libdir="$withval/$acl_libdirstem"
10963         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10964            && ! test -d "$withval/$acl_libdirstem"; then
10965           additional_libdir="$withval/$acl_libdirstem2"
10966         fi
10967       fi
10968     fi
10969
10970 fi
10971
10972       LIBICONV=
10973   LTLIBICONV=
10974   INCICONV=
10975   LIBICONV_PREFIX=
10976       HAVE_LIBICONV=
10977   rpathdirs=
10978   ltrpathdirs=
10979   names_already_handled=
10980   names_next_round='iconv '
10981   while test -n "$names_next_round"; do
10982     names_this_round="$names_next_round"
10983     names_next_round=
10984     for name in $names_this_round; do
10985       already_handled=
10986       for n in $names_already_handled; do
10987         if test "$n" = "$name"; then
10988           already_handled=yes
10989           break
10990         fi
10991       done
10992       if test -z "$already_handled"; then
10993         names_already_handled="$names_already_handled $name"
10994                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10995         eval value=\"\$HAVE_LIB$uppername\"
10996         if test -n "$value"; then
10997           if test "$value" = yes; then
10998             eval value=\"\$LIB$uppername\"
10999             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11000             eval value=\"\$LTLIB$uppername\"
11001             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11002           else
11003                                     :
11004           fi
11005         else
11006                               found_dir=
11007           found_la=
11008           found_so=
11009           found_a=
11010           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11011           if test -n "$acl_shlibext"; then
11012             shrext=".$acl_shlibext"             # typically: shrext=.so
11013           else
11014             shrext=
11015           fi
11016           if test $use_additional = yes; then
11017             dir="$additional_libdir"
11018                                     if test -n "$acl_shlibext"; then
11019               if test -f "$dir/$libname$shrext"; then
11020                 found_dir="$dir"
11021                 found_so="$dir/$libname$shrext"
11022               else
11023                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11024                   ver=`(cd "$dir" && \
11025                         for f in "$libname$shrext".*; do echo "$f"; done \
11026                         | sed -e "s,^$libname$shrext\\\\.,," \
11027                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11028                         | sed 1q ) 2>/dev/null`
11029                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11030                     found_dir="$dir"
11031                     found_so="$dir/$libname$shrext.$ver"
11032                   fi
11033                 else
11034                   eval library_names=\"$acl_library_names_spec\"
11035                   for f in $library_names; do
11036                     if test -f "$dir/$f"; then
11037                       found_dir="$dir"
11038                       found_so="$dir/$f"
11039                       break
11040                     fi
11041                   done
11042                 fi
11043               fi
11044             fi
11045                         if test "X$found_dir" = "X"; then
11046               if test -f "$dir/$libname.$acl_libext"; then
11047                 found_dir="$dir"
11048                 found_a="$dir/$libname.$acl_libext"
11049               fi
11050             fi
11051             if test "X$found_dir" != "X"; then
11052               if test -f "$dir/$libname.la"; then
11053                 found_la="$dir/$libname.la"
11054               fi
11055             fi
11056           fi
11057           if test "X$found_dir" = "X"; then
11058             for x in $LDFLAGS $LTLIBICONV; do
11059
11060   acl_save_prefix="$prefix"
11061   prefix="$acl_final_prefix"
11062   acl_save_exec_prefix="$exec_prefix"
11063   exec_prefix="$acl_final_exec_prefix"
11064   eval x=\"$x\"
11065   exec_prefix="$acl_save_exec_prefix"
11066   prefix="$acl_save_prefix"
11067
11068               case "$x" in
11069                 -L*)
11070                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11071                                     if test -n "$acl_shlibext"; then
11072                     if test -f "$dir/$libname$shrext"; then
11073                       found_dir="$dir"
11074                       found_so="$dir/$libname$shrext"
11075                     else
11076                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11077                         ver=`(cd "$dir" && \
11078                               for f in "$libname$shrext".*; do echo "$f"; done \
11079                               | sed -e "s,^$libname$shrext\\\\.,," \
11080                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11081                               | sed 1q ) 2>/dev/null`
11082                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11083                           found_dir="$dir"
11084                           found_so="$dir/$libname$shrext.$ver"
11085                         fi
11086                       else
11087                         eval library_names=\"$acl_library_names_spec\"
11088                         for f in $library_names; do
11089                           if test -f "$dir/$f"; then
11090                             found_dir="$dir"
11091                             found_so="$dir/$f"
11092                             break
11093                           fi
11094                         done
11095                       fi
11096                     fi
11097                   fi
11098                                     if test "X$found_dir" = "X"; then
11099                     if test -f "$dir/$libname.$acl_libext"; then
11100                       found_dir="$dir"
11101                       found_a="$dir/$libname.$acl_libext"
11102                     fi
11103                   fi
11104                   if test "X$found_dir" != "X"; then
11105                     if test -f "$dir/$libname.la"; then
11106                       found_la="$dir/$libname.la"
11107                     fi
11108                   fi
11109                   ;;
11110               esac
11111               if test "X$found_dir" != "X"; then
11112                 break
11113               fi
11114             done
11115           fi
11116           if test "X$found_dir" != "X"; then
11117                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11118             if test "X$found_so" != "X"; then
11119                                                         if test "$enable_rpath" = no \
11120                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11121                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11122                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11123               else
11124                                                                                 haveit=
11125                 for x in $ltrpathdirs; do
11126                   if test "X$x" = "X$found_dir"; then
11127                     haveit=yes
11128                     break
11129                   fi
11130                 done
11131                 if test -z "$haveit"; then
11132                   ltrpathdirs="$ltrpathdirs $found_dir"
11133                 fi
11134                                 if test "$acl_hardcode_direct" = yes; then
11135                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11136                 else
11137                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11138                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11139                                                             haveit=
11140                     for x in $rpathdirs; do
11141                       if test "X$x" = "X$found_dir"; then
11142                         haveit=yes
11143                         break
11144                       fi
11145                     done
11146                     if test -z "$haveit"; then
11147                       rpathdirs="$rpathdirs $found_dir"
11148                     fi
11149                   else
11150                                                                                 haveit=
11151                     for x in $LDFLAGS $LIBICONV; do
11152
11153   acl_save_prefix="$prefix"
11154   prefix="$acl_final_prefix"
11155   acl_save_exec_prefix="$exec_prefix"
11156   exec_prefix="$acl_final_exec_prefix"
11157   eval x=\"$x\"
11158   exec_prefix="$acl_save_exec_prefix"
11159   prefix="$acl_save_prefix"
11160
11161                       if test "X$x" = "X-L$found_dir"; then
11162                         haveit=yes
11163                         break
11164                       fi
11165                     done
11166                     if test -z "$haveit"; then
11167                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11168                     fi
11169                     if test "$acl_hardcode_minus_L" != no; then
11170                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11171                     else
11172                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11173                     fi
11174                   fi
11175                 fi
11176               fi
11177             else
11178               if test "X$found_a" != "X"; then
11179                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11180               else
11181                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11182               fi
11183             fi
11184                         additional_includedir=
11185             case "$found_dir" in
11186               */$acl_libdirstem | */$acl_libdirstem/)
11187                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11188                 if test "$name" = 'iconv'; then
11189                   LIBICONV_PREFIX="$basedir"
11190                 fi
11191                 additional_includedir="$basedir/include"
11192                 ;;
11193               */$acl_libdirstem2 | */$acl_libdirstem2/)
11194                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11195                 if test "$name" = 'iconv'; then
11196                   LIBICONV_PREFIX="$basedir"
11197                 fi
11198                 additional_includedir="$basedir/include"
11199                 ;;
11200             esac
11201             if test "X$additional_includedir" != "X"; then
11202                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11203                 haveit=
11204                 if test "X$additional_includedir" = "X/usr/local/include"; then
11205                   if test -n "$GCC"; then
11206                     case $host_os in
11207                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11208                     esac
11209                   fi
11210                 fi
11211                 if test -z "$haveit"; then
11212                   for x in $CPPFLAGS $INCICONV; do
11213
11214   acl_save_prefix="$prefix"
11215   prefix="$acl_final_prefix"
11216   acl_save_exec_prefix="$exec_prefix"
11217   exec_prefix="$acl_final_exec_prefix"
11218   eval x=\"$x\"
11219   exec_prefix="$acl_save_exec_prefix"
11220   prefix="$acl_save_prefix"
11221
11222                     if test "X$x" = "X-I$additional_includedir"; then
11223                       haveit=yes
11224                       break
11225                     fi
11226                   done
11227                   if test -z "$haveit"; then
11228                     if test -d "$additional_includedir"; then
11229                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11230                     fi
11231                   fi
11232                 fi
11233               fi
11234             fi
11235                         if test -n "$found_la"; then
11236                                                         save_libdir="$libdir"
11237               case "$found_la" in
11238                 */* | *\\*) . "$found_la" ;;
11239                 *) . "./$found_la" ;;
11240               esac
11241               libdir="$save_libdir"
11242                             for dep in $dependency_libs; do
11243                 case "$dep" in
11244                   -L*)
11245                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11246                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11247                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11248                       haveit=
11249                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11250                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11251                         if test -n "$GCC"; then
11252                           case $host_os in
11253                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11254                           esac
11255                         fi
11256                       fi
11257                       if test -z "$haveit"; then
11258                         haveit=
11259                         for x in $LDFLAGS $LIBICONV; do
11260
11261   acl_save_prefix="$prefix"
11262   prefix="$acl_final_prefix"
11263   acl_save_exec_prefix="$exec_prefix"
11264   exec_prefix="$acl_final_exec_prefix"
11265   eval x=\"$x\"
11266   exec_prefix="$acl_save_exec_prefix"
11267   prefix="$acl_save_prefix"
11268
11269                           if test "X$x" = "X-L$additional_libdir"; then
11270                             haveit=yes
11271                             break
11272                           fi
11273                         done
11274                         if test -z "$haveit"; then
11275                           if test -d "$additional_libdir"; then
11276                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11277                           fi
11278                         fi
11279                         haveit=
11280                         for x in $LDFLAGS $LTLIBICONV; do
11281
11282   acl_save_prefix="$prefix"
11283   prefix="$acl_final_prefix"
11284   acl_save_exec_prefix="$exec_prefix"
11285   exec_prefix="$acl_final_exec_prefix"
11286   eval x=\"$x\"
11287   exec_prefix="$acl_save_exec_prefix"
11288   prefix="$acl_save_prefix"
11289
11290                           if test "X$x" = "X-L$additional_libdir"; then
11291                             haveit=yes
11292                             break
11293                           fi
11294                         done
11295                         if test -z "$haveit"; then
11296                           if test -d "$additional_libdir"; then
11297                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11298                           fi
11299                         fi
11300                       fi
11301                     fi
11302                     ;;
11303                   -R*)
11304                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11305                     if test "$enable_rpath" != no; then
11306                                                                   haveit=
11307                       for x in $rpathdirs; do
11308                         if test "X$x" = "X$dir"; then
11309                           haveit=yes
11310                           break
11311                         fi
11312                       done
11313                       if test -z "$haveit"; then
11314                         rpathdirs="$rpathdirs $dir"
11315                       fi
11316                                                                   haveit=
11317                       for x in $ltrpathdirs; do
11318                         if test "X$x" = "X$dir"; then
11319                           haveit=yes
11320                           break
11321                         fi
11322                       done
11323                       if test -z "$haveit"; then
11324                         ltrpathdirs="$ltrpathdirs $dir"
11325                       fi
11326                     fi
11327                     ;;
11328                   -l*)
11329                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11330                     ;;
11331                   *.la)
11332                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11333                     ;;
11334                   *)
11335                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11336                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11337                     ;;
11338                 esac
11339               done
11340             fi
11341           else
11342                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11343             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11344           fi
11345         fi
11346       fi
11347     done
11348   done
11349   if test "X$rpathdirs" != "X"; then
11350     if test -n "$acl_hardcode_libdir_separator"; then
11351                         alldirs=
11352       for found_dir in $rpathdirs; do
11353         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11354       done
11355             acl_save_libdir="$libdir"
11356       libdir="$alldirs"
11357       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11358       libdir="$acl_save_libdir"
11359       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11360     else
11361             for found_dir in $rpathdirs; do
11362         acl_save_libdir="$libdir"
11363         libdir="$found_dir"
11364         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11365         libdir="$acl_save_libdir"
11366         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11367       done
11368     fi
11369   fi
11370   if test "X$ltrpathdirs" != "X"; then
11371             for found_dir in $ltrpathdirs; do
11372       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11373     done
11374   fi
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11407 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11408 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   gt_save_LIBS="$LIBS"
11412      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11413      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h.  */
11415 #include <CoreFoundation/CFPreferences.h>
11416 int
11417 main ()
11418 {
11419 CFPreferencesCopyAppValue(NULL, NULL)
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425   gt_cv_func_CFPreferencesCopyAppValue=yes
11426 else
11427   gt_cv_func_CFPreferencesCopyAppValue=no
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext \
11430     conftest$ac_exeext conftest.$ac_ext
11431      LIBS="$gt_save_LIBS"
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11434 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11435   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11436
11437 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11438
11439   fi
11440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11441 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11442 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   gt_save_LIBS="$LIBS"
11446      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h.  */
11449 #include <CoreFoundation/CFLocale.h>
11450 int
11451 main ()
11452 {
11453 CFLocaleCopyCurrent();
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459   gt_cv_func_CFLocaleCopyCurrent=yes
11460 else
11461   gt_cv_func_CFLocaleCopyCurrent=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464     conftest$ac_exeext conftest.$ac_ext
11465      LIBS="$gt_save_LIBS"
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11468 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11469   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11470
11471 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11472
11473   fi
11474   INTL_MACOSX_LIBS=
11475   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11476     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11477   fi
11478
11479
11480
11481
11482
11483
11484   LIBINTL=
11485   LTLIBINTL=
11486   POSUB=
11487
11488     case " $gt_needs " in
11489     *" need-formatstring-macros "*) gt_api_version=3 ;;
11490     *" need-ngettext "*) gt_api_version=2 ;;
11491     *) gt_api_version=1 ;;
11492   esac
11493   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11494   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11495
11496     if test "$USE_NLS" = "yes"; then
11497     gt_use_preinstalled_gnugettext=no
11498
11499
11500         if test $gt_api_version -ge 3; then
11501           gt_revision_test_code='
11502 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11503 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11504 #endif
11505 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11506 '
11507         else
11508           gt_revision_test_code=
11509         fi
11510         if test $gt_api_version -ge 2; then
11511           gt_expression_test_code=' + * ngettext ("", "", 0)'
11512         else
11513           gt_expression_test_code=
11514         fi
11515
11516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11517 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11518 if eval \${$gt_func_gnugettext_libc+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h.  */
11523
11524 #include <libintl.h>
11525 $gt_revision_test_code
11526 extern int _nl_msg_cat_cntr;
11527 extern int *_nl_domain_bindings;
11528
11529 int
11530 main ()
11531 {
11532
11533 bindtextdomain ("", "");
11534 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11535
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541   eval "$gt_func_gnugettext_libc=yes"
11542 else
11543   eval "$gt_func_gnugettext_libc=no"
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext \
11546     conftest$ac_exeext conftest.$ac_ext
11547 fi
11548 eval ac_res=\$$gt_func_gnugettext_libc
11549                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11550 $as_echo "$ac_res" >&6; }
11551
11552         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11553
11554
11555
11556
11557
11558           am_save_CPPFLAGS="$CPPFLAGS"
11559
11560   for element in $INCICONV; do
11561     haveit=
11562     for x in $CPPFLAGS; do
11563
11564   acl_save_prefix="$prefix"
11565   prefix="$acl_final_prefix"
11566   acl_save_exec_prefix="$exec_prefix"
11567   exec_prefix="$acl_final_exec_prefix"
11568   eval x=\"$x\"
11569   exec_prefix="$acl_save_exec_prefix"
11570   prefix="$acl_save_prefix"
11571
11572       if test "X$x" = "X$element"; then
11573         haveit=yes
11574         break
11575       fi
11576     done
11577     if test -z "$haveit"; then
11578       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11579     fi
11580   done
11581
11582
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11584 $as_echo_n "checking for iconv... " >&6; }
11585 if ${am_cv_func_iconv+:} false; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588
11589     am_cv_func_iconv="no, consider installing GNU libiconv"
11590     am_cv_lib_iconv=no
11591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h.  */
11593
11594 #include <stdlib.h>
11595 #include <iconv.h>
11596
11597 int
11598 main ()
11599 {
11600 iconv_t cd = iconv_open("","");
11601            iconv(cd,NULL,NULL,NULL,NULL);
11602            iconv_close(cd);
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 if ac_fn_c_try_link "$LINENO"; then :
11608   am_cv_func_iconv=yes
11609 fi
11610 rm -f core conftest.err conftest.$ac_objext \
11611     conftest$ac_exeext conftest.$ac_ext
11612     if test "$am_cv_func_iconv" != yes; then
11613       am_save_LIBS="$LIBS"
11614       LIBS="$LIBS $LIBICONV"
11615       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h.  */
11617
11618 #include <stdlib.h>
11619 #include <iconv.h>
11620
11621 int
11622 main ()
11623 {
11624 iconv_t cd = iconv_open("","");
11625              iconv(cd,NULL,NULL,NULL,NULL);
11626              iconv_close(cd);
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_link "$LINENO"; then :
11632   am_cv_lib_iconv=yes
11633         am_cv_func_iconv=yes
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636     conftest$ac_exeext conftest.$ac_ext
11637       LIBS="$am_save_LIBS"
11638     fi
11639
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11642 $as_echo "$am_cv_func_iconv" >&6; }
11643   if test "$am_cv_func_iconv" = yes; then
11644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11645 $as_echo_n "checking for working iconv... " >&6; }
11646 if ${am_cv_func_iconv_works+:} false; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649
11650                   am_save_LIBS="$LIBS"
11651       if test $am_cv_lib_iconv = yes; then
11652         LIBS="$LIBS $LIBICONV"
11653       fi
11654       if test "$cross_compiling" = yes; then :
11655
11656          case "$host_os" in
11657            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11658            *)            am_cv_func_iconv_works="guessing yes" ;;
11659          esac
11660
11661 else
11662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h.  */
11664
11665 #include <iconv.h>
11666 #include <string.h>
11667 int main ()
11668 {
11669   int result = 0;
11670   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11671      returns.  */
11672   {
11673     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11674     if (cd_utf8_to_88591 != (iconv_t)(-1))
11675       {
11676         static const char input[] = "\342\202\254"; /* EURO SIGN */
11677         char buf[10];
11678         const char *inptr = input;
11679         size_t inbytesleft = strlen (input);
11680         char *outptr = buf;
11681         size_t outbytesleft = sizeof (buf);
11682         size_t res = iconv (cd_utf8_to_88591,
11683                             (char **) &inptr, &inbytesleft,
11684                             &outptr, &outbytesleft);
11685         if (res == 0)
11686           result |= 1;
11687         iconv_close (cd_utf8_to_88591);
11688       }
11689   }
11690   /* Test against Solaris 10 bug: Failures are not distinguishable from
11691      successful returns.  */
11692   {
11693     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11694     if (cd_ascii_to_88591 != (iconv_t)(-1))
11695       {
11696         static const char input[] = "\263";
11697         char buf[10];
11698         const char *inptr = input;
11699         size_t inbytesleft = strlen (input);
11700         char *outptr = buf;
11701         size_t outbytesleft = sizeof (buf);
11702         size_t res = iconv (cd_ascii_to_88591,
11703                             (char **) &inptr, &inbytesleft,
11704                             &outptr, &outbytesleft);
11705         if (res == 0)
11706           result |= 2;
11707         iconv_close (cd_ascii_to_88591);
11708       }
11709   }
11710   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11711   {
11712     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11713     if (cd_88591_to_utf8 != (iconv_t)(-1))
11714       {
11715         static const char input[] = "\304";
11716         static char buf[2] = { (char)0xDE, (char)0xAD };
11717         const char *inptr = input;
11718         size_t inbytesleft = 1;
11719         char *outptr = buf;
11720         size_t outbytesleft = 1;
11721         size_t res = iconv (cd_88591_to_utf8,
11722                             (char **) &inptr, &inbytesleft,
11723                             &outptr, &outbytesleft);
11724         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11725           result |= 4;
11726         iconv_close (cd_88591_to_utf8);
11727       }
11728   }
11729 #if 0 /* This bug could be worked around by the caller.  */
11730   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11731   {
11732     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11733     if (cd_88591_to_utf8 != (iconv_t)(-1))
11734       {
11735         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11736         char buf[50];
11737         const char *inptr = input;
11738         size_t inbytesleft = strlen (input);
11739         char *outptr = buf;
11740         size_t outbytesleft = sizeof (buf);
11741         size_t res = iconv (cd_88591_to_utf8,
11742                             (char **) &inptr, &inbytesleft,
11743                             &outptr, &outbytesleft);
11744         if ((int)res > 0)
11745           result |= 8;
11746         iconv_close (cd_88591_to_utf8);
11747       }
11748   }
11749 #endif
11750   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11751      provided.  */
11752   if (/* Try standardized names.  */
11753       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11754       /* Try IRIX, OSF/1 names.  */
11755       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11756       /* Try AIX names.  */
11757       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11758       /* Try HP-UX names.  */
11759       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11760     result |= 16;
11761   return result;
11762 }
11763 _ACEOF
11764 if ac_fn_c_try_run "$LINENO"; then :
11765   am_cv_func_iconv_works=yes
11766 else
11767   am_cv_func_iconv_works=no
11768 fi
11769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11770   conftest.$ac_objext conftest.beam conftest.$ac_ext
11771 fi
11772
11773       LIBS="$am_save_LIBS"
11774
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11777 $as_echo "$am_cv_func_iconv_works" >&6; }
11778     case "$am_cv_func_iconv_works" in
11779       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11780       *)   am_func_iconv=yes ;;
11781     esac
11782   else
11783     am_func_iconv=no am_cv_lib_iconv=no
11784   fi
11785   if test "$am_func_iconv" = yes; then
11786
11787 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11788
11789   fi
11790   if test "$am_cv_lib_iconv" = yes; then
11791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11792 $as_echo_n "checking how to link with libiconv... " >&6; }
11793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11794 $as_echo "$LIBICONV" >&6; }
11795   else
11796             CPPFLAGS="$am_save_CPPFLAGS"
11797     LIBICONV=
11798     LTLIBICONV=
11799   fi
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811     use_additional=yes
11812
11813   acl_save_prefix="$prefix"
11814   prefix="$acl_final_prefix"
11815   acl_save_exec_prefix="$exec_prefix"
11816   exec_prefix="$acl_final_exec_prefix"
11817
11818     eval additional_includedir=\"$includedir\"
11819     eval additional_libdir=\"$libdir\"
11820
11821   exec_prefix="$acl_save_exec_prefix"
11822   prefix="$acl_save_prefix"
11823
11824
11825 # Check whether --with-libintl-prefix was given.
11826 if test "${with_libintl_prefix+set}" = set; then :
11827   withval=$with_libintl_prefix;
11828     if test "X$withval" = "Xno"; then
11829       use_additional=no
11830     else
11831       if test "X$withval" = "X"; then
11832
11833   acl_save_prefix="$prefix"
11834   prefix="$acl_final_prefix"
11835   acl_save_exec_prefix="$exec_prefix"
11836   exec_prefix="$acl_final_exec_prefix"
11837
11838           eval additional_includedir=\"$includedir\"
11839           eval additional_libdir=\"$libdir\"
11840
11841   exec_prefix="$acl_save_exec_prefix"
11842   prefix="$acl_save_prefix"
11843
11844       else
11845         additional_includedir="$withval/include"
11846         additional_libdir="$withval/$acl_libdirstem"
11847         if test "$acl_libdirstem2" != "$acl_libdirstem" \
11848            && ! test -d "$withval/$acl_libdirstem"; then
11849           additional_libdir="$withval/$acl_libdirstem2"
11850         fi
11851       fi
11852     fi
11853
11854 fi
11855
11856       LIBINTL=
11857   LTLIBINTL=
11858   INCINTL=
11859   LIBINTL_PREFIX=
11860       HAVE_LIBINTL=
11861   rpathdirs=
11862   ltrpathdirs=
11863   names_already_handled=
11864   names_next_round='intl '
11865   while test -n "$names_next_round"; do
11866     names_this_round="$names_next_round"
11867     names_next_round=
11868     for name in $names_this_round; do
11869       already_handled=
11870       for n in $names_already_handled; do
11871         if test "$n" = "$name"; then
11872           already_handled=yes
11873           break
11874         fi
11875       done
11876       if test -z "$already_handled"; then
11877         names_already_handled="$names_already_handled $name"
11878                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11879         eval value=\"\$HAVE_LIB$uppername\"
11880         if test -n "$value"; then
11881           if test "$value" = yes; then
11882             eval value=\"\$LIB$uppername\"
11883             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11884             eval value=\"\$LTLIB$uppername\"
11885             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11886           else
11887                                     :
11888           fi
11889         else
11890                               found_dir=
11891           found_la=
11892           found_so=
11893           found_a=
11894           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11895           if test -n "$acl_shlibext"; then
11896             shrext=".$acl_shlibext"             # typically: shrext=.so
11897           else
11898             shrext=
11899           fi
11900           if test $use_additional = yes; then
11901             dir="$additional_libdir"
11902                                     if test -n "$acl_shlibext"; then
11903               if test -f "$dir/$libname$shrext"; then
11904                 found_dir="$dir"
11905                 found_so="$dir/$libname$shrext"
11906               else
11907                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11908                   ver=`(cd "$dir" && \
11909                         for f in "$libname$shrext".*; do echo "$f"; done \
11910                         | sed -e "s,^$libname$shrext\\\\.,," \
11911                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11912                         | sed 1q ) 2>/dev/null`
11913                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11914                     found_dir="$dir"
11915                     found_so="$dir/$libname$shrext.$ver"
11916                   fi
11917                 else
11918                   eval library_names=\"$acl_library_names_spec\"
11919                   for f in $library_names; do
11920                     if test -f "$dir/$f"; then
11921                       found_dir="$dir"
11922                       found_so="$dir/$f"
11923                       break
11924                     fi
11925                   done
11926                 fi
11927               fi
11928             fi
11929                         if test "X$found_dir" = "X"; then
11930               if test -f "$dir/$libname.$acl_libext"; then
11931                 found_dir="$dir"
11932                 found_a="$dir/$libname.$acl_libext"
11933               fi
11934             fi
11935             if test "X$found_dir" != "X"; then
11936               if test -f "$dir/$libname.la"; then
11937                 found_la="$dir/$libname.la"
11938               fi
11939             fi
11940           fi
11941           if test "X$found_dir" = "X"; then
11942             for x in $LDFLAGS $LTLIBINTL; do
11943
11944   acl_save_prefix="$prefix"
11945   prefix="$acl_final_prefix"
11946   acl_save_exec_prefix="$exec_prefix"
11947   exec_prefix="$acl_final_exec_prefix"
11948   eval x=\"$x\"
11949   exec_prefix="$acl_save_exec_prefix"
11950   prefix="$acl_save_prefix"
11951
11952               case "$x" in
11953                 -L*)
11954                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11955                                     if test -n "$acl_shlibext"; then
11956                     if test -f "$dir/$libname$shrext"; then
11957                       found_dir="$dir"
11958                       found_so="$dir/$libname$shrext"
11959                     else
11960                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11961                         ver=`(cd "$dir" && \
11962                               for f in "$libname$shrext".*; do echo "$f"; done \
11963                               | sed -e "s,^$libname$shrext\\\\.,," \
11964                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11965                               | sed 1q ) 2>/dev/null`
11966                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11967                           found_dir="$dir"
11968                           found_so="$dir/$libname$shrext.$ver"
11969                         fi
11970                       else
11971                         eval library_names=\"$acl_library_names_spec\"
11972                         for f in $library_names; do
11973                           if test -f "$dir/$f"; then
11974                             found_dir="$dir"
11975                             found_so="$dir/$f"
11976                             break
11977                           fi
11978                         done
11979                       fi
11980                     fi
11981                   fi
11982                                     if test "X$found_dir" = "X"; then
11983                     if test -f "$dir/$libname.$acl_libext"; then
11984                       found_dir="$dir"
11985                       found_a="$dir/$libname.$acl_libext"
11986                     fi
11987                   fi
11988                   if test "X$found_dir" != "X"; then
11989                     if test -f "$dir/$libname.la"; then
11990                       found_la="$dir/$libname.la"
11991                     fi
11992                   fi
11993                   ;;
11994               esac
11995               if test "X$found_dir" != "X"; then
11996                 break
11997               fi
11998             done
11999           fi
12000           if test "X$found_dir" != "X"; then
12001                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12002             if test "X$found_so" != "X"; then
12003                                                         if test "$enable_rpath" = no \
12004                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12005                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12006                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12007               else
12008                                                                                 haveit=
12009                 for x in $ltrpathdirs; do
12010                   if test "X$x" = "X$found_dir"; then
12011                     haveit=yes
12012                     break
12013                   fi
12014                 done
12015                 if test -z "$haveit"; then
12016                   ltrpathdirs="$ltrpathdirs $found_dir"
12017                 fi
12018                                 if test "$acl_hardcode_direct" = yes; then
12019                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12020                 else
12021                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12022                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12023                                                             haveit=
12024                     for x in $rpathdirs; do
12025                       if test "X$x" = "X$found_dir"; then
12026                         haveit=yes
12027                         break
12028                       fi
12029                     done
12030                     if test -z "$haveit"; then
12031                       rpathdirs="$rpathdirs $found_dir"
12032                     fi
12033                   else
12034                                                                                 haveit=
12035                     for x in $LDFLAGS $LIBINTL; do
12036
12037   acl_save_prefix="$prefix"
12038   prefix="$acl_final_prefix"
12039   acl_save_exec_prefix="$exec_prefix"
12040   exec_prefix="$acl_final_exec_prefix"
12041   eval x=\"$x\"
12042   exec_prefix="$acl_save_exec_prefix"
12043   prefix="$acl_save_prefix"
12044
12045                       if test "X$x" = "X-L$found_dir"; then
12046                         haveit=yes
12047                         break
12048                       fi
12049                     done
12050                     if test -z "$haveit"; then
12051                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12052                     fi
12053                     if test "$acl_hardcode_minus_L" != no; then
12054                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12055                     else
12056                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12057                     fi
12058                   fi
12059                 fi
12060               fi
12061             else
12062               if test "X$found_a" != "X"; then
12063                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12064               else
12065                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12066               fi
12067             fi
12068                         additional_includedir=
12069             case "$found_dir" in
12070               */$acl_libdirstem | */$acl_libdirstem/)
12071                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12072                 if test "$name" = 'intl'; then
12073                   LIBINTL_PREFIX="$basedir"
12074                 fi
12075                 additional_includedir="$basedir/include"
12076                 ;;
12077               */$acl_libdirstem2 | */$acl_libdirstem2/)
12078                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12079                 if test "$name" = 'intl'; then
12080                   LIBINTL_PREFIX="$basedir"
12081                 fi
12082                 additional_includedir="$basedir/include"
12083                 ;;
12084             esac
12085             if test "X$additional_includedir" != "X"; then
12086                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12087                 haveit=
12088                 if test "X$additional_includedir" = "X/usr/local/include"; then
12089                   if test -n "$GCC"; then
12090                     case $host_os in
12091                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12092                     esac
12093                   fi
12094                 fi
12095                 if test -z "$haveit"; then
12096                   for x in $CPPFLAGS $INCINTL; do
12097
12098   acl_save_prefix="$prefix"
12099   prefix="$acl_final_prefix"
12100   acl_save_exec_prefix="$exec_prefix"
12101   exec_prefix="$acl_final_exec_prefix"
12102   eval x=\"$x\"
12103   exec_prefix="$acl_save_exec_prefix"
12104   prefix="$acl_save_prefix"
12105
12106                     if test "X$x" = "X-I$additional_includedir"; then
12107                       haveit=yes
12108                       break
12109                     fi
12110                   done
12111                   if test -z "$haveit"; then
12112                     if test -d "$additional_includedir"; then
12113                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12114                     fi
12115                   fi
12116                 fi
12117               fi
12118             fi
12119                         if test -n "$found_la"; then
12120                                                         save_libdir="$libdir"
12121               case "$found_la" in
12122                 */* | *\\*) . "$found_la" ;;
12123                 *) . "./$found_la" ;;
12124               esac
12125               libdir="$save_libdir"
12126                             for dep in $dependency_libs; do
12127                 case "$dep" in
12128                   -L*)
12129                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12130                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12131                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12132                       haveit=
12133                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12134                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12135                         if test -n "$GCC"; then
12136                           case $host_os in
12137                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12138                           esac
12139                         fi
12140                       fi
12141                       if test -z "$haveit"; then
12142                         haveit=
12143                         for x in $LDFLAGS $LIBINTL; do
12144
12145   acl_save_prefix="$prefix"
12146   prefix="$acl_final_prefix"
12147   acl_save_exec_prefix="$exec_prefix"
12148   exec_prefix="$acl_final_exec_prefix"
12149   eval x=\"$x\"
12150   exec_prefix="$acl_save_exec_prefix"
12151   prefix="$acl_save_prefix"
12152
12153                           if test "X$x" = "X-L$additional_libdir"; then
12154                             haveit=yes
12155                             break
12156                           fi
12157                         done
12158                         if test -z "$haveit"; then
12159                           if test -d "$additional_libdir"; then
12160                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12161                           fi
12162                         fi
12163                         haveit=
12164                         for x in $LDFLAGS $LTLIBINTL; do
12165
12166   acl_save_prefix="$prefix"
12167   prefix="$acl_final_prefix"
12168   acl_save_exec_prefix="$exec_prefix"
12169   exec_prefix="$acl_final_exec_prefix"
12170   eval x=\"$x\"
12171   exec_prefix="$acl_save_exec_prefix"
12172   prefix="$acl_save_prefix"
12173
12174                           if test "X$x" = "X-L$additional_libdir"; then
12175                             haveit=yes
12176                             break
12177                           fi
12178                         done
12179                         if test -z "$haveit"; then
12180                           if test -d "$additional_libdir"; then
12181                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12182                           fi
12183                         fi
12184                       fi
12185                     fi
12186                     ;;
12187                   -R*)
12188                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12189                     if test "$enable_rpath" != no; then
12190                                                                   haveit=
12191                       for x in $rpathdirs; do
12192                         if test "X$x" = "X$dir"; then
12193                           haveit=yes
12194                           break
12195                         fi
12196                       done
12197                       if test -z "$haveit"; then
12198                         rpathdirs="$rpathdirs $dir"
12199                       fi
12200                                                                   haveit=
12201                       for x in $ltrpathdirs; do
12202                         if test "X$x" = "X$dir"; then
12203                           haveit=yes
12204                           break
12205                         fi
12206                       done
12207                       if test -z "$haveit"; then
12208                         ltrpathdirs="$ltrpathdirs $dir"
12209                       fi
12210                     fi
12211                     ;;
12212                   -l*)
12213                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12214                     ;;
12215                   *.la)
12216                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12217                     ;;
12218                   *)
12219                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12220                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12221                     ;;
12222                 esac
12223               done
12224             fi
12225           else
12226                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12227             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12228           fi
12229         fi
12230       fi
12231     done
12232   done
12233   if test "X$rpathdirs" != "X"; then
12234     if test -n "$acl_hardcode_libdir_separator"; then
12235                         alldirs=
12236       for found_dir in $rpathdirs; do
12237         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12238       done
12239             acl_save_libdir="$libdir"
12240       libdir="$alldirs"
12241       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12242       libdir="$acl_save_libdir"
12243       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12244     else
12245             for found_dir in $rpathdirs; do
12246         acl_save_libdir="$libdir"
12247         libdir="$found_dir"
12248         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12249         libdir="$acl_save_libdir"
12250         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12251       done
12252     fi
12253   fi
12254   if test "X$ltrpathdirs" != "X"; then
12255             for found_dir in $ltrpathdirs; do
12256       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12257     done
12258   fi
12259
12260
12261
12262
12263
12264
12265           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12266 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12267 if eval \${$gt_func_gnugettext_libintl+:} false; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270   gt_save_CPPFLAGS="$CPPFLAGS"
12271             CPPFLAGS="$CPPFLAGS $INCINTL"
12272             gt_save_LIBS="$LIBS"
12273             LIBS="$LIBS $LIBINTL"
12274                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h.  */
12276
12277 #include <libintl.h>
12278 $gt_revision_test_code
12279 extern int _nl_msg_cat_cntr;
12280 extern
12281 #ifdef __cplusplus
12282 "C"
12283 #endif
12284 const char *_nl_expand_alias (const char *);
12285
12286 int
12287 main ()
12288 {
12289
12290 bindtextdomain ("", "");
12291 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298   eval "$gt_func_gnugettext_libintl=yes"
12299 else
12300   eval "$gt_func_gnugettext_libintl=no"
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303     conftest$ac_exeext conftest.$ac_ext
12304                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12305               LIBS="$LIBS $LIBICONV"
12306               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h.  */
12308
12309 #include <libintl.h>
12310 $gt_revision_test_code
12311 extern int _nl_msg_cat_cntr;
12312 extern
12313 #ifdef __cplusplus
12314 "C"
12315 #endif
12316 const char *_nl_expand_alias (const char *);
12317
12318 int
12319 main ()
12320 {
12321
12322 bindtextdomain ("", "");
12323 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12324
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330   LIBINTL="$LIBINTL $LIBICONV"
12331                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12332                  eval "$gt_func_gnugettext_libintl=yes"
12333
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext \
12336     conftest$ac_exeext conftest.$ac_ext
12337             fi
12338             CPPFLAGS="$gt_save_CPPFLAGS"
12339             LIBS="$gt_save_LIBS"
12340 fi
12341 eval ac_res=\$$gt_func_gnugettext_libintl
12342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12343 $as_echo "$ac_res" >&6; }
12344         fi
12345
12346                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12347            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12348                 && test "$PACKAGE" != gettext-runtime \
12349                 && test "$PACKAGE" != gettext-tools; }; then
12350           gt_use_preinstalled_gnugettext=yes
12351         else
12352                     LIBINTL=
12353           LTLIBINTL=
12354           INCINTL=
12355         fi
12356
12357
12358
12359     if test -n "$INTL_MACOSX_LIBS"; then
12360       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12361          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12362                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12363         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12364       fi
12365     fi
12366
12367     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12368        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12369
12370 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12371
12372     else
12373       USE_NLS=no
12374     fi
12375   fi
12376
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12378 $as_echo_n "checking whether to use NLS... " >&6; }
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12380 $as_echo "$USE_NLS" >&6; }
12381   if test "$USE_NLS" = "yes"; then
12382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12383 $as_echo_n "checking where the gettext function comes from... " >&6; }
12384     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12385       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12386         gt_source="external libintl"
12387       else
12388         gt_source="libc"
12389       fi
12390     else
12391       gt_source="included intl directory"
12392     fi
12393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12394 $as_echo "$gt_source" >&6; }
12395   fi
12396
12397   if test "$USE_NLS" = "yes"; then
12398
12399     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12400       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12402 $as_echo_n "checking how to link with libintl... " >&6; }
12403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12404 $as_echo "$LIBINTL" >&6; }
12405
12406   for element in $INCINTL; do
12407     haveit=
12408     for x in $CPPFLAGS; do
12409
12410   acl_save_prefix="$prefix"
12411   prefix="$acl_final_prefix"
12412   acl_save_exec_prefix="$exec_prefix"
12413   exec_prefix="$acl_final_exec_prefix"
12414   eval x=\"$x\"
12415   exec_prefix="$acl_save_exec_prefix"
12416   prefix="$acl_save_prefix"
12417
12418       if test "X$x" = "X$element"; then
12419         haveit=yes
12420         break
12421       fi
12422     done
12423     if test -z "$haveit"; then
12424       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12425     fi
12426   done
12427
12428       fi
12429
12430
12431 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12432
12433
12434 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12435
12436     fi
12437
12438         POSUB=po
12439   fi
12440
12441
12442
12443     INTLLIBS="$LIBINTL"
12444
12445
12446
12447
12448
12449
12450
12451 ac_config_files="$ac_config_files Makefile contrib/Makefile doc/Makefile lib/Makefile man/Makefile po/Makefile.in src/Makefile tests/Makefile"
12452
12453 cat >confcache <<\_ACEOF
12454 # This file is a shell script that caches the results of configure
12455 # tests run on this system so they can be shared between configure
12456 # scripts and configure runs, see configure's option --config-cache.
12457 # It is not useful on other systems.  If it contains results you don't
12458 # want to keep, you may remove or edit it.
12459 #
12460 # config.status only pays attention to the cache file if you give it
12461 # the --recheck option to rerun configure.
12462 #
12463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12465 # following values.
12466
12467 _ACEOF
12468
12469 # The following way of writing the cache mishandles newlines in values,
12470 # but we know of no workaround that is simple, portable, and efficient.
12471 # So, we kill variables containing newlines.
12472 # Ultrix sh set writes to stderr and can't be redirected directly,
12473 # and sets the high bit in the cache file unless we assign to the vars.
12474 (
12475   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12476     eval ac_val=\$$ac_var
12477     case $ac_val in #(
12478     *${as_nl}*)
12479       case $ac_var in #(
12480       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12482       esac
12483       case $ac_var in #(
12484       _ | IFS | as_nl) ;; #(
12485       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12486       *) { eval $ac_var=; unset $ac_var;} ;;
12487       esac ;;
12488     esac
12489   done
12490
12491   (set) 2>&1 |
12492     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12493     *${as_nl}ac_space=\ *)
12494       # `set' does not quote correctly, so add quotes: double-quote
12495       # substitution turns \\\\ into \\, and sed turns \\ into \.
12496       sed -n \
12497         "s/'/'\\\\''/g;
12498           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12499       ;; #(
12500     *)
12501       # `set' quotes correctly as required by POSIX, so do not add quotes.
12502       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12503       ;;
12504     esac |
12505     sort
12506 ) |
12507   sed '
12508      /^ac_cv_env_/b end
12509      t clear
12510      :clear
12511      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12512      t end
12513      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12514      :end' >>confcache
12515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12516   if test -w "$cache_file"; then
12517     if test "x$cache_file" != "x/dev/null"; then
12518       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12519 $as_echo "$as_me: updating cache $cache_file" >&6;}
12520       if test ! -f "$cache_file" || test -h "$cache_file"; then
12521         cat confcache >"$cache_file"
12522       else
12523         case $cache_file in #(
12524         */* | ?:*)
12525           mv -f confcache "$cache_file"$$ &&
12526           mv -f "$cache_file"$$ "$cache_file" ;; #(
12527         *)
12528           mv -f confcache "$cache_file" ;;
12529         esac
12530       fi
12531     fi
12532   else
12533     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12535   fi
12536 fi
12537 rm -f confcache
12538
12539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12540 # Let make expand exec_prefix.
12541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12542
12543 DEFS=-DHAVE_CONFIG_H
12544
12545 ac_libobjs=
12546 ac_ltlibobjs=
12547 U=
12548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12549   # 1. Remove the extension, and $U if already installed.
12550   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12551   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12552   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12553   #    will be set to the directory where LIBOBJS objects are built.
12554   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12555   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12556 done
12557 LIBOBJS=$ac_libobjs
12558
12559 LTLIBOBJS=$ac_ltlibobjs
12560
12561
12562  if test -n "$EXEEXT"; then
12563   am__EXEEXT_TRUE=
12564   am__EXEEXT_FALSE='#'
12565 else
12566   am__EXEEXT_TRUE='#'
12567   am__EXEEXT_FALSE=
12568 fi
12569
12570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12571   as_fn_error $? "conditional \"AMDEP\" was never defined.
12572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12573 fi
12574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12575   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12577 fi
12578 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12579   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
12580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12581 fi
12582 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
12583   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
12584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12585 fi
12586 CONFIG_INCLUDE=config.h
12587
12588 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12589   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12591 fi
12592 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12593   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12595 fi
12596
12597     gl_libobjs=
12598     gl_ltlibobjs=
12599     if test -n "$gl_LIBOBJS"; then
12600       # Remove the extension.
12601       sed_drop_objext='s/\.o$//;s/\.obj$//'
12602       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12603         gl_libobjs="$gl_libobjs $i.$ac_objext"
12604         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12605       done
12606     fi
12607     gl_LIBOBJS=$gl_libobjs
12608
12609     gl_LTLIBOBJS=$gl_ltlibobjs
12610
12611
12612
12613     gltests_libobjs=
12614     gltests_ltlibobjs=
12615     if test -n "$gltests_LIBOBJS"; then
12616       # Remove the extension.
12617       sed_drop_objext='s/\.o$//;s/\.obj$//'
12618       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12619         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
12620         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
12621       done
12622     fi
12623     gltests_LIBOBJS=$gltests_libobjs
12624
12625     gltests_LTLIBOBJS=$gltests_ltlibobjs
12626
12627
12628
12629 : "${CONFIG_STATUS=./config.status}"
12630 ac_write_fail=0
12631 ac_clean_files_save=$ac_clean_files
12632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12635 as_write_fail=0
12636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12637 #! $SHELL
12638 # Generated by $as_me.
12639 # Run this file to recreate the current configuration.
12640 # Compiler output produced by configure, useful for debugging
12641 # configure, is in config.log if it exists.
12642
12643 debug=false
12644 ac_cs_recheck=false
12645 ac_cs_silent=false
12646
12647 SHELL=\${CONFIG_SHELL-$SHELL}
12648 export SHELL
12649 _ASEOF
12650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12651 ## -------------------- ##
12652 ## M4sh Initialization. ##
12653 ## -------------------- ##
12654
12655 # Be more Bourne compatible
12656 DUALCASE=1; export DUALCASE # for MKS sh
12657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12658   emulate sh
12659   NULLCMD=:
12660   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12661   # is contrary to our usage.  Disable this feature.
12662   alias -g '${1+"$@"}'='"$@"'
12663   setopt NO_GLOB_SUBST
12664 else
12665   case `(set -o) 2>/dev/null` in #(
12666   *posix*) :
12667     set -o posix ;; #(
12668   *) :
12669      ;;
12670 esac
12671 fi
12672
12673
12674 as_nl='
12675 '
12676 export as_nl
12677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12681 # Prefer a ksh shell builtin over an external printf program on Solaris,
12682 # but without wasting forks for bash or zsh.
12683 if test -z "$BASH_VERSION$ZSH_VERSION" \
12684     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12685   as_echo='print -r --'
12686   as_echo_n='print -rn --'
12687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12688   as_echo='printf %s\n'
12689   as_echo_n='printf %s'
12690 else
12691   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12692     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12693     as_echo_n='/usr/ucb/echo -n'
12694   else
12695     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12696     as_echo_n_body='eval
12697       arg=$1;
12698       case $arg in #(
12699       *"$as_nl"*)
12700         expr "X$arg" : "X\\(.*\\)$as_nl";
12701         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12702       esac;
12703       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12704     '
12705     export as_echo_n_body
12706     as_echo_n='sh -c $as_echo_n_body as_echo'
12707   fi
12708   export as_echo_body
12709   as_echo='sh -c $as_echo_body as_echo'
12710 fi
12711
12712 # The user is always right.
12713 if test "${PATH_SEPARATOR+set}" != set; then
12714   PATH_SEPARATOR=:
12715   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12716     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12717       PATH_SEPARATOR=';'
12718   }
12719 fi
12720
12721
12722 # IFS
12723 # We need space, tab and new line, in precisely that order.  Quoting is
12724 # there to prevent editors from complaining about space-tab.
12725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12726 # splitting by setting IFS to empty value.)
12727 IFS=" ""        $as_nl"
12728
12729 # Find who we are.  Look in the path if we contain no directory separator.
12730 as_myself=
12731 case $0 in #((
12732   *[\\/]* ) as_myself=$0 ;;
12733   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12735 do
12736   IFS=$as_save_IFS
12737   test -z "$as_dir" && as_dir=.
12738     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12739   done
12740 IFS=$as_save_IFS
12741
12742      ;;
12743 esac
12744 # We did not find ourselves, most probably we were run as `sh COMMAND'
12745 # in which case we are not to be found in the path.
12746 if test "x$as_myself" = x; then
12747   as_myself=$0
12748 fi
12749 if test ! -f "$as_myself"; then
12750   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12751   exit 1
12752 fi
12753
12754 # Unset variables that we do not need and which cause bugs (e.g. in
12755 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12756 # suppresses any "Segmentation fault" message there.  '((' could
12757 # trigger a bug in pdksh 5.2.14.
12758 for as_var in BASH_ENV ENV MAIL MAILPATH
12759 do eval test x\${$as_var+set} = xset \
12760   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12761 done
12762 PS1='$ '
12763 PS2='> '
12764 PS4='+ '
12765
12766 # NLS nuisances.
12767 LC_ALL=C
12768 export LC_ALL
12769 LANGUAGE=C
12770 export LANGUAGE
12771
12772 # CDPATH.
12773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12774
12775
12776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12777 # ----------------------------------------
12778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12780 # script with STATUS, using 1 if that was 0.
12781 as_fn_error ()
12782 {
12783   as_status=$1; test $as_status -eq 0 && as_status=1
12784   if test "$4"; then
12785     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12786     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12787   fi
12788   $as_echo "$as_me: error: $2" >&2
12789   as_fn_exit $as_status
12790 } # as_fn_error
12791
12792
12793 # as_fn_set_status STATUS
12794 # -----------------------
12795 # Set $? to STATUS, without forking.
12796 as_fn_set_status ()
12797 {
12798   return $1
12799 } # as_fn_set_status
12800
12801 # as_fn_exit STATUS
12802 # -----------------
12803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12804 as_fn_exit ()
12805 {
12806   set +e
12807   as_fn_set_status $1
12808   exit $1
12809 } # as_fn_exit
12810
12811 # as_fn_unset VAR
12812 # ---------------
12813 # Portably unset VAR.
12814 as_fn_unset ()
12815 {
12816   { eval $1=; unset $1;}
12817 }
12818 as_unset=as_fn_unset
12819 # as_fn_append VAR VALUE
12820 # ----------------------
12821 # Append the text in VALUE to the end of the definition contained in VAR. Take
12822 # advantage of any shell optimizations that allow amortized linear growth over
12823 # repeated appends, instead of the typical quadratic growth present in naive
12824 # implementations.
12825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12826   eval 'as_fn_append ()
12827   {
12828     eval $1+=\$2
12829   }'
12830 else
12831   as_fn_append ()
12832   {
12833     eval $1=\$$1\$2
12834   }
12835 fi # as_fn_append
12836
12837 # as_fn_arith ARG...
12838 # ------------------
12839 # Perform arithmetic evaluation on the ARGs, and store the result in the
12840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12841 # must be portable across $(()) and expr.
12842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12843   eval 'as_fn_arith ()
12844   {
12845     as_val=$(( $* ))
12846   }'
12847 else
12848   as_fn_arith ()
12849   {
12850     as_val=`expr "$@" || test $? -eq 1`
12851   }
12852 fi # as_fn_arith
12853
12854
12855 if expr a : '\(a\)' >/dev/null 2>&1 &&
12856    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12857   as_expr=expr
12858 else
12859   as_expr=false
12860 fi
12861
12862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12863   as_basename=basename
12864 else
12865   as_basename=false
12866 fi
12867
12868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12869   as_dirname=dirname
12870 else
12871   as_dirname=false
12872 fi
12873
12874 as_me=`$as_basename -- "$0" ||
12875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12876          X"$0" : 'X\(//\)$' \| \
12877          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12878 $as_echo X/"$0" |
12879     sed '/^.*\/\([^/][^/]*\)\/*$/{
12880             s//\1/
12881             q
12882           }
12883           /^X\/\(\/\/\)$/{
12884             s//\1/
12885             q
12886           }
12887           /^X\/\(\/\).*/{
12888             s//\1/
12889             q
12890           }
12891           s/.*/./; q'`
12892
12893 # Avoid depending upon Character Ranges.
12894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12897 as_cr_digits='0123456789'
12898 as_cr_alnum=$as_cr_Letters$as_cr_digits
12899
12900 ECHO_C= ECHO_N= ECHO_T=
12901 case `echo -n x` in #(((((
12902 -n*)
12903   case `echo 'xy\c'` in
12904   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12905   xy)  ECHO_C='\c';;
12906   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12907        ECHO_T=' ';;
12908   esac;;
12909 *)
12910   ECHO_N='-n';;
12911 esac
12912
12913 rm -f conf$$ conf$$.exe conf$$.file
12914 if test -d conf$$.dir; then
12915   rm -f conf$$.dir/conf$$.file
12916 else
12917   rm -f conf$$.dir
12918   mkdir conf$$.dir 2>/dev/null
12919 fi
12920 if (echo >conf$$.file) 2>/dev/null; then
12921   if ln -s conf$$.file conf$$ 2>/dev/null; then
12922     as_ln_s='ln -s'
12923     # ... but there are two gotchas:
12924     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12925     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12926     # In both cases, we have to default to `cp -p'.
12927     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12928       as_ln_s='cp -p'
12929   elif ln conf$$.file conf$$ 2>/dev/null; then
12930     as_ln_s=ln
12931   else
12932     as_ln_s='cp -p'
12933   fi
12934 else
12935   as_ln_s='cp -p'
12936 fi
12937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12938 rmdir conf$$.dir 2>/dev/null
12939
12940
12941 # as_fn_mkdir_p
12942 # -------------
12943 # Create "$as_dir" as a directory, including parents if necessary.
12944 as_fn_mkdir_p ()
12945 {
12946
12947   case $as_dir in #(
12948   -*) as_dir=./$as_dir;;
12949   esac
12950   test -d "$as_dir" || eval $as_mkdir_p || {
12951     as_dirs=
12952     while :; do
12953       case $as_dir in #(
12954       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12955       *) as_qdir=$as_dir;;
12956       esac
12957       as_dirs="'$as_qdir' $as_dirs"
12958       as_dir=`$as_dirname -- "$as_dir" ||
12959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12960          X"$as_dir" : 'X\(//\)[^/]' \| \
12961          X"$as_dir" : 'X\(//\)$' \| \
12962          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12963 $as_echo X"$as_dir" |
12964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12965             s//\1/
12966             q
12967           }
12968           /^X\(\/\/\)[^/].*/{
12969             s//\1/
12970             q
12971           }
12972           /^X\(\/\/\)$/{
12973             s//\1/
12974             q
12975           }
12976           /^X\(\/\).*/{
12977             s//\1/
12978             q
12979           }
12980           s/.*/./; q'`
12981       test -d "$as_dir" && break
12982     done
12983     test -z "$as_dirs" || eval "mkdir $as_dirs"
12984   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12985
12986
12987 } # as_fn_mkdir_p
12988 if mkdir -p . 2>/dev/null; then
12989   as_mkdir_p='mkdir -p "$as_dir"'
12990 else
12991   test -d ./-p && rmdir ./-p
12992   as_mkdir_p=false
12993 fi
12994
12995 if test -x / >/dev/null 2>&1; then
12996   as_test_x='test -x'
12997 else
12998   if ls -dL / >/dev/null 2>&1; then
12999     as_ls_L_option=L
13000   else
13001     as_ls_L_option=
13002   fi
13003   as_test_x='
13004     eval sh -c '\''
13005       if test -d "$1"; then
13006         test -d "$1/.";
13007       else
13008         case $1 in #(
13009         -*)set "./$1";;
13010         esac;
13011         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13012         ???[sx]*):;;*)false;;esac;fi
13013     '\'' sh
13014   '
13015 fi
13016 as_executable_p=$as_test_x
13017
13018 # Sed expression to map a string onto a valid CPP name.
13019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13020
13021 # Sed expression to map a string onto a valid variable name.
13022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13023
13024
13025 exec 6>&1
13026 ## ----------------------------------- ##
13027 ## Main body of $CONFIG_STATUS script. ##
13028 ## ----------------------------------- ##
13029 _ASEOF
13030 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13031
13032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13033 # Save the log message, to keep $0 and so on meaningful, and to
13034 # report actual input values of CONFIG_FILES etc. instead of their
13035 # values after options handling.
13036 ac_log="
13037 This file was extended by GNU Hello $as_me 2.8, which was
13038 generated by GNU Autoconf 2.68.  Invocation command line was
13039
13040   CONFIG_FILES    = $CONFIG_FILES
13041   CONFIG_HEADERS  = $CONFIG_HEADERS
13042   CONFIG_LINKS    = $CONFIG_LINKS
13043   CONFIG_COMMANDS = $CONFIG_COMMANDS
13044   $ $0 $@
13045
13046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13047 "
13048
13049 _ACEOF
13050
13051 case $ac_config_files in *"
13052 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13053 esac
13054
13055 case $ac_config_headers in *"
13056 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13057 esac
13058
13059
13060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13061 # Files that config.status was made for.
13062 config_files="$ac_config_files"
13063 config_headers="$ac_config_headers"
13064 config_links="$ac_config_links"
13065 config_commands="$ac_config_commands"
13066
13067 _ACEOF
13068
13069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13070 ac_cs_usage="\
13071 \`$as_me' instantiates files and other configuration actions
13072 from templates according to the current configuration.  Unless the files
13073 and actions are specified as TAGs, all are instantiated by default.
13074
13075 Usage: $0 [OPTION]... [TAG]...
13076
13077   -h, --help       print this help, then exit
13078   -V, --version    print version number and configuration settings, then exit
13079       --config     print configuration, then exit
13080   -q, --quiet, --silent
13081                    do not print progress messages
13082   -d, --debug      don't remove temporary files
13083       --recheck    update $as_me by reconfiguring in the same conditions
13084       --file=FILE[:TEMPLATE]
13085                    instantiate the configuration file FILE
13086       --header=FILE[:TEMPLATE]
13087                    instantiate the configuration header FILE
13088
13089 Configuration files:
13090 $config_files
13091
13092 Configuration headers:
13093 $config_headers
13094
13095 Configuration links:
13096 $config_links
13097
13098 Configuration commands:
13099 $config_commands
13100
13101 Report bugs to <bug-hello@gnu.org>.
13102 GNU Hello home page: <http://www.gnu.org/software/hello/>.
13103 General help using GNU software: <http://www.gnu.org/gethelp/>."
13104
13105 _ACEOF
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13108 ac_cs_version="\\
13109 GNU Hello config.status 2.8
13110 configured by $0, generated by GNU Autoconf 2.68,
13111   with options \\"\$ac_cs_config\\"
13112
13113 Copyright (C) 2010 Free Software Foundation, Inc.
13114 This config.status script is free software; the Free Software Foundation
13115 gives unlimited permission to copy, distribute and modify it."
13116
13117 ac_pwd='$ac_pwd'
13118 srcdir='$srcdir'
13119 INSTALL='$INSTALL'
13120 MKDIR_P='$MKDIR_P'
13121 AWK='$AWK'
13122 test -n "\$AWK" || AWK=awk
13123 _ACEOF
13124
13125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13126 # The default lists apply if the user does not specify any file.
13127 ac_need_defaults=:
13128 while test $# != 0
13129 do
13130   case $1 in
13131   --*=?*)
13132     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13133     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13134     ac_shift=:
13135     ;;
13136   --*=)
13137     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13138     ac_optarg=
13139     ac_shift=:
13140     ;;
13141   *)
13142     ac_option=$1
13143     ac_optarg=$2
13144     ac_shift=shift
13145     ;;
13146   esac
13147
13148   case $ac_option in
13149   # Handling of the options.
13150   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13151     ac_cs_recheck=: ;;
13152   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13153     $as_echo "$ac_cs_version"; exit ;;
13154   --config | --confi | --conf | --con | --co | --c )
13155     $as_echo "$ac_cs_config"; exit ;;
13156   --debug | --debu | --deb | --de | --d | -d )
13157     debug=: ;;
13158   --file | --fil | --fi | --f )
13159     $ac_shift
13160     case $ac_optarg in
13161     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13162     '') as_fn_error $? "missing file argument" ;;
13163     esac
13164     as_fn_append CONFIG_FILES " '$ac_optarg'"
13165     ac_need_defaults=false;;
13166   --header | --heade | --head | --hea )
13167     $ac_shift
13168     case $ac_optarg in
13169     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13170     esac
13171     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13172     ac_need_defaults=false;;
13173   --he | --h)
13174     # Conflict between --help and --header
13175     as_fn_error $? "ambiguous option: \`$1'
13176 Try \`$0 --help' for more information.";;
13177   --help | --hel | -h )
13178     $as_echo "$ac_cs_usage"; exit ;;
13179   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13180   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13181     ac_cs_silent=: ;;
13182
13183   # This is an error.
13184   -*) as_fn_error $? "unrecognized option: \`$1'
13185 Try \`$0 --help' for more information." ;;
13186
13187   *) as_fn_append ac_config_targets " $1"
13188      ac_need_defaults=false ;;
13189
13190   esac
13191   shift
13192 done
13193
13194 ac_configure_extra_args=
13195
13196 if $ac_cs_silent; then
13197   exec 6>/dev/null
13198   ac_configure_extra_args="$ac_configure_extra_args --silent"
13199 fi
13200
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 if \$ac_cs_recheck; then
13204   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13205   shift
13206   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13207   CONFIG_SHELL='$SHELL'
13208   export CONFIG_SHELL
13209   exec "\$@"
13210 fi
13211
13212 _ACEOF
13213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13214 exec 5>>config.log
13215 {
13216   echo
13217   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13218 ## Running $as_me. ##
13219 _ASBOX
13220   $as_echo "$ac_log"
13221 } >&5
13222
13223 _ACEOF
13224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13225 #
13226 # INIT-COMMANDS
13227 #
13228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13229 GNUmakefile=$GNUmakefile
13230 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13231     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13232     # from automake < 1.5.
13233     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13234     # Capture the value of LINGUAS because we need it to compute CATALOGS.
13235     LINGUAS="${LINGUAS-%UNSET%}"
13236
13237
13238 _ACEOF
13239
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241
13242 # Handling of arguments.
13243 for ac_config_target in $ac_config_targets
13244 do
13245   case $ac_config_target in
13246     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13247     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13248     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
13249     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13250     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13251     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13252     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13253     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13254     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13255     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13256     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13257     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13258
13259   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13260   esac
13261 done
13262
13263
13264 # If the user did not use the arguments to specify the items to instantiate,
13265 # then the envvar interface is used.  Set only those that are not.
13266 # We use the long form for the default assignment because of an extremely
13267 # bizarre bug on SunOS 4.1.3.
13268 if $ac_need_defaults; then
13269   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13270   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13271   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13272   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13273 fi
13274
13275 # Have a temporary directory for convenience.  Make it in the build tree
13276 # simply because there is no reason against having it here, and in addition,
13277 # creating and moving files from /tmp can sometimes cause problems.
13278 # Hook for its removal unless debugging.
13279 # Note that there is a small window in which the directory will not be cleaned:
13280 # after its creation but before its name has been assigned to `$tmp'.
13281 $debug ||
13282 {
13283   tmp= ac_tmp=
13284   trap 'exit_status=$?
13285   : "${ac_tmp:=$tmp}"
13286   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13287 ' 0
13288   trap 'as_fn_exit 1' 1 2 13 15
13289 }
13290 # Create a (secure) tmp directory for tmp files.
13291
13292 {
13293   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13294   test -d "$tmp"
13295 }  ||
13296 {
13297   tmp=./conf$$-$RANDOM
13298   (umask 077 && mkdir "$tmp")
13299 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13300 ac_tmp=$tmp
13301
13302 # Set up the scripts for CONFIG_FILES section.
13303 # No need to generate them if there are no CONFIG_FILES.
13304 # This happens for instance with `./config.status config.h'.
13305 if test -n "$CONFIG_FILES"; then
13306
13307
13308 ac_cr=`echo X | tr X '\015'`
13309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13310 # But we know of no other shell where ac_cr would be empty at this
13311 # point, so we can use a bashism as a fallback.
13312 if test "x$ac_cr" = x; then
13313   eval ac_cr=\$\'\\r\'
13314 fi
13315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13317   ac_cs_awk_cr='\\r'
13318 else
13319   ac_cs_awk_cr=$ac_cr
13320 fi
13321
13322 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13323 _ACEOF
13324
13325
13326 {
13327   echo "cat >conf$$subs.awk <<_ACEOF" &&
13328   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13329   echo "_ACEOF"
13330 } >conf$$subs.sh ||
13331   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13333 ac_delim='%!_!# '
13334 for ac_last_try in false false false false false :; do
13335   . ./conf$$subs.sh ||
13336     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13337
13338   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13339   if test $ac_delim_n = $ac_delim_num; then
13340     break
13341   elif $ac_last_try; then
13342     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13343   else
13344     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13345   fi
13346 done
13347 rm -f conf$$subs.sh
13348
13349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13350 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13351 _ACEOF
13352 sed -n '
13353 h
13354 s/^/S["/; s/!.*/"]=/
13355 p
13356 g
13357 s/^[^!]*!//
13358 :repl
13359 t repl
13360 s/'"$ac_delim"'$//
13361 t delim
13362 :nl
13363 h
13364 s/\(.\{148\}\)..*/\1/
13365 t more1
13366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13367 p
13368 n
13369 b repl
13370 :more1
13371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13372 p
13373 g
13374 s/.\{148\}//
13375 t nl
13376 :delim
13377 h
13378 s/\(.\{148\}\)..*/\1/
13379 t more2
13380 s/["\\]/\\&/g; s/^/"/; s/$/"/
13381 p
13382 b
13383 :more2
13384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13385 p
13386 g
13387 s/.\{148\}//
13388 t delim
13389 ' <conf$$subs.awk | sed '
13390 /^[^""]/{
13391   N
13392   s/\n//
13393 }
13394 ' >>$CONFIG_STATUS || ac_write_fail=1
13395 rm -f conf$$subs.awk
13396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13397 _ACAWK
13398 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13399   for (key in S) S_is_set[key] = 1
13400   FS = "\a"
13401
13402 }
13403 {
13404   line = $ 0
13405   nfields = split(line, field, "@")
13406   substed = 0
13407   len = length(field[1])
13408   for (i = 2; i < nfields; i++) {
13409     key = field[i]
13410     keylen = length(key)
13411     if (S_is_set[key]) {
13412       value = S[key]
13413       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13414       len += length(value) + length(field[++i])
13415       substed = 1
13416     } else
13417       len += 1 + keylen
13418   }
13419
13420   print line
13421 }
13422
13423 _ACAWK
13424 _ACEOF
13425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13427   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13428 else
13429   cat
13430 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13431   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13432 _ACEOF
13433
13434 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13435 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13436 # trailing colons and then remove the whole line if VPATH becomes empty
13437 # (actually we leave an empty line to preserve line numbers).
13438 if test "x$srcdir" = x.; then
13439   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13440 h
13441 s///
13442 s/^/:/
13443 s/[      ]*$/:/
13444 s/:\$(srcdir):/:/g
13445 s/:\${srcdir}:/:/g
13446 s/:@srcdir@:/:/g
13447 s/^:*//
13448 s/:*$//
13449 x
13450 s/\(=[   ]*\).*/\1/
13451 G
13452 s/\n//
13453 s/^[^=]*=[       ]*$//
13454 }'
13455 fi
13456
13457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458 fi # test -n "$CONFIG_FILES"
13459
13460 # Set up the scripts for CONFIG_HEADERS section.
13461 # No need to generate them if there are no CONFIG_HEADERS.
13462 # This happens for instance with `./config.status Makefile'.
13463 if test -n "$CONFIG_HEADERS"; then
13464 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13465 BEGIN {
13466 _ACEOF
13467
13468 # Transform confdefs.h into an awk script `defines.awk', embedded as
13469 # here-document in config.status, that substitutes the proper values into
13470 # config.h.in to produce config.h.
13471
13472 # Create a delimiter string that does not exist in confdefs.h, to ease
13473 # handling of long lines.
13474 ac_delim='%!_!# '
13475 for ac_last_try in false false :; do
13476   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13477   if test -z "$ac_tt"; then
13478     break
13479   elif $ac_last_try; then
13480     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13481   else
13482     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13483   fi
13484 done
13485
13486 # For the awk script, D is an array of macro values keyed by name,
13487 # likewise P contains macro parameters if any.  Preserve backslash
13488 # newline sequences.
13489
13490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13491 sed -n '
13492 s/.\{148\}/&'"$ac_delim"'/g
13493 t rset
13494 :rset
13495 s/^[     ]*#[    ]*define[       ][      ]*/ /
13496 t def
13497 d
13498 :def
13499 s/\\$//
13500 t bsnl
13501 s/["\\]/\\&/g
13502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13503 D["\1"]=" \3"/p
13504 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13505 d
13506 :bsnl
13507 s/["\\]/\\&/g
13508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13509 D["\1"]=" \3\\\\\\n"\\/p
13510 t cont
13511 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13512 t cont
13513 d
13514 :cont
13515 n
13516 s/.\{148\}/&'"$ac_delim"'/g
13517 t clear
13518 :clear
13519 s/\\$//
13520 t bsnlc
13521 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13522 d
13523 :bsnlc
13524 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13525 b cont
13526 ' <confdefs.h | sed '
13527 s/'"$ac_delim"'/"\\\
13528 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13529
13530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531   for (key in D) D_is_set[key] = 1
13532   FS = "\a"
13533 }
13534 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13535   line = \$ 0
13536   split(line, arg, " ")
13537   if (arg[1] == "#") {
13538     defundef = arg[2]
13539     mac1 = arg[3]
13540   } else {
13541     defundef = substr(arg[1], 2)
13542     mac1 = arg[2]
13543   }
13544   split(mac1, mac2, "(") #)
13545   macro = mac2[1]
13546   prefix = substr(line, 1, index(line, defundef) - 1)
13547   if (D_is_set[macro]) {
13548     # Preserve the white space surrounding the "#".
13549     print prefix "define", macro P[macro] D[macro]
13550     next
13551   } else {
13552     # Replace #undef with comments.  This is necessary, for example,
13553     # in the case of _POSIX_SOURCE, which is predefined and required
13554     # on some systems where configure will not decide to define it.
13555     if (defundef == "undef") {
13556       print "/*", prefix defundef, macro, "*/"
13557       next
13558     }
13559   }
13560 }
13561 { print }
13562 _ACAWK
13563 _ACEOF
13564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13566 fi # test -n "$CONFIG_HEADERS"
13567
13568
13569 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
13570 shift
13571 for ac_tag
13572 do
13573   case $ac_tag in
13574   :[FHLC]) ac_mode=$ac_tag; continue;;
13575   esac
13576   case $ac_mode$ac_tag in
13577   :[FHL]*:*);;
13578   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13579   :[FH]-) ac_tag=-:-;;
13580   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13581   esac
13582   ac_save_IFS=$IFS
13583   IFS=:
13584   set x $ac_tag
13585   IFS=$ac_save_IFS
13586   shift
13587   ac_file=$1
13588   shift
13589
13590   case $ac_mode in
13591   :L) ac_source=$1;;
13592   :[FH])
13593     ac_file_inputs=
13594     for ac_f
13595     do
13596       case $ac_f in
13597       -) ac_f="$ac_tmp/stdin";;
13598       *) # Look for the file first in the build tree, then in the source tree
13599          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13600          # because $ac_f cannot contain `:'.
13601          test -f "$ac_f" ||
13602            case $ac_f in
13603            [\\/$]*) false;;
13604            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13605            esac ||
13606            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13607       esac
13608       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13609       as_fn_append ac_file_inputs " '$ac_f'"
13610     done
13611
13612     # Let's still pretend it is `configure' which instantiates (i.e., don't
13613     # use $as_me), people would be surprised to read:
13614     #    /* config.h.  Generated by config.status.  */
13615     configure_input='Generated from '`
13616           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13617         `' by configure.'
13618     if test x"$ac_file" != x-; then
13619       configure_input="$ac_file.  $configure_input"
13620       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13621 $as_echo "$as_me: creating $ac_file" >&6;}
13622     fi
13623     # Neutralize special characters interpreted by sed in replacement strings.
13624     case $configure_input in #(
13625     *\&* | *\|* | *\\* )
13626        ac_sed_conf_input=`$as_echo "$configure_input" |
13627        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13628     *) ac_sed_conf_input=$configure_input;;
13629     esac
13630
13631     case $ac_tag in
13632     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13633       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13634     esac
13635     ;;
13636   esac
13637
13638   ac_dir=`$as_dirname -- "$ac_file" ||
13639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13640          X"$ac_file" : 'X\(//\)[^/]' \| \
13641          X"$ac_file" : 'X\(//\)$' \| \
13642          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13643 $as_echo X"$ac_file" |
13644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13645             s//\1/
13646             q
13647           }
13648           /^X\(\/\/\)[^/].*/{
13649             s//\1/
13650             q
13651           }
13652           /^X\(\/\/\)$/{
13653             s//\1/
13654             q
13655           }
13656           /^X\(\/\).*/{
13657             s//\1/
13658             q
13659           }
13660           s/.*/./; q'`
13661   as_dir="$ac_dir"; as_fn_mkdir_p
13662   ac_builddir=.
13663
13664 case "$ac_dir" in
13665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13666 *)
13667   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13668   # A ".." for each directory in $ac_dir_suffix.
13669   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13670   case $ac_top_builddir_sub in
13671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13673   esac ;;
13674 esac
13675 ac_abs_top_builddir=$ac_pwd
13676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13677 # for backward compatibility:
13678 ac_top_builddir=$ac_top_build_prefix
13679
13680 case $srcdir in
13681   .)  # We are building in place.
13682     ac_srcdir=.
13683     ac_top_srcdir=$ac_top_builddir_sub
13684     ac_abs_top_srcdir=$ac_pwd ;;
13685   [\\/]* | ?:[\\/]* )  # Absolute name.
13686     ac_srcdir=$srcdir$ac_dir_suffix;
13687     ac_top_srcdir=$srcdir
13688     ac_abs_top_srcdir=$srcdir ;;
13689   *) # Relative name.
13690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13691     ac_top_srcdir=$ac_top_build_prefix$srcdir
13692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13693 esac
13694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13695
13696
13697   case $ac_mode in
13698   :F)
13699   #
13700   # CONFIG_FILE
13701   #
13702
13703   case $INSTALL in
13704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13705   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13706   esac
13707   ac_MKDIR_P=$MKDIR_P
13708   case $MKDIR_P in
13709   [\\/$]* | ?:[\\/]* ) ;;
13710   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13711   esac
13712 _ACEOF
13713
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 # If the template does not know about datarootdir, expand it.
13716 # FIXME: This hack should be removed a few years after 2.60.
13717 ac_datarootdir_hack=; ac_datarootdir_seen=
13718 ac_sed_dataroot='
13719 /datarootdir/ {
13720   p
13721   q
13722 }
13723 /@datadir@/p
13724 /@docdir@/p
13725 /@infodir@/p
13726 /@localedir@/p
13727 /@mandir@/p'
13728 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13729 *datarootdir*) ac_datarootdir_seen=yes;;
13730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13732 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13733 _ACEOF
13734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735   ac_datarootdir_hack='
13736   s&@datadir@&$datadir&g
13737   s&@docdir@&$docdir&g
13738   s&@infodir@&$infodir&g
13739   s&@localedir@&$localedir&g
13740   s&@mandir@&$mandir&g
13741   s&\\\${datarootdir}&$datarootdir&g' ;;
13742 esac
13743 _ACEOF
13744
13745 # Neutralize VPATH when `$srcdir' = `.'.
13746 # Shell code in configure.ac might set extrasub.
13747 # FIXME: do we really want to maintain this feature?
13748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13749 ac_sed_extra="$ac_vpsub
13750 $extrasub
13751 _ACEOF
13752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13753 :t
13754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13755 s|@configure_input@|$ac_sed_conf_input|;t t
13756 s&@top_builddir@&$ac_top_builddir_sub&;t t
13757 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13758 s&@srcdir@&$ac_srcdir&;t t
13759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13760 s&@top_srcdir@&$ac_top_srcdir&;t t
13761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13762 s&@builddir@&$ac_builddir&;t t
13763 s&@abs_builddir@&$ac_abs_builddir&;t t
13764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13765 s&@INSTALL@&$ac_INSTALL&;t t
13766 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13767 $ac_datarootdir_hack
13768 "
13769 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13770   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13771
13772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13773   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13774   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13775       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13777 which seems to be undefined.  Please make sure it is defined" >&5
13778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13779 which seems to be undefined.  Please make sure it is defined" >&2;}
13780
13781   rm -f "$ac_tmp/stdin"
13782   case $ac_file in
13783   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13784   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13785   esac \
13786   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13787  ;;
13788   :H)
13789   #
13790   # CONFIG_HEADER
13791   #
13792   if test x"$ac_file" != x-; then
13793     {
13794       $as_echo "/* $configure_input  */" \
13795       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13796     } >"$ac_tmp/config.h" \
13797       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13798     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13799       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13801     else
13802       rm -f "$ac_file"
13803       mv "$ac_tmp/config.h" "$ac_file" \
13804         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13805     fi
13806   else
13807     $as_echo "/* $configure_input  */" \
13808       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13809       || as_fn_error $? "could not create -" "$LINENO" 5
13810   fi
13811 # Compute "$ac_file"'s index in $config_headers.
13812 _am_arg="$ac_file"
13813 _am_stamp_count=1
13814 for _am_header in $config_headers :; do
13815   case $_am_header in
13816     $_am_arg | $_am_arg:* )
13817       break ;;
13818     * )
13819       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13820   esac
13821 done
13822 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13823 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13824          X"$_am_arg" : 'X\(//\)[^/]' \| \
13825          X"$_am_arg" : 'X\(//\)$' \| \
13826          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13827 $as_echo X"$_am_arg" |
13828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13829             s//\1/
13830             q
13831           }
13832           /^X\(\/\/\)[^/].*/{
13833             s//\1/
13834             q
13835           }
13836           /^X\(\/\/\)$/{
13837             s//\1/
13838             q
13839           }
13840           /^X\(\/\).*/{
13841             s//\1/
13842             q
13843           }
13844           s/.*/./; q'`/stamp-h$_am_stamp_count
13845  ;;
13846   :L)
13847   #
13848   # CONFIG_LINK
13849   #
13850
13851   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
13852     :
13853   else
13854     # Prefer the file from the source tree if names are identical.
13855     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
13856       ac_source=$srcdir/$ac_source
13857     fi
13858
13859     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
13860 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
13861
13862     if test ! -r "$ac_source"; then
13863       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
13864     fi
13865     rm -f "$ac_file"
13866
13867     # Try a relative symlink, then a hard link, then a copy.
13868     case $ac_source in
13869     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
13870         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
13871     esac
13872     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
13873       ln "$ac_source" "$ac_file" 2>/dev/null ||
13874       cp -p "$ac_source" "$ac_file" ||
13875       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
13876   fi
13877  ;;
13878   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13879 $as_echo "$as_me: executing $ac_file commands" >&6;}
13880  ;;
13881   esac
13882
13883
13884   case $ac_file$ac_mode in
13885     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13886   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13887   # are listed without --file.  Let's play safe and only enable the eval
13888   # if we detect the quoting.
13889   case $CONFIG_FILES in
13890   *\'*) eval set x "$CONFIG_FILES" ;;
13891   *)   set x $CONFIG_FILES ;;
13892   esac
13893   shift
13894   for mf
13895   do
13896     # Strip MF so we end up with the name of the file.
13897     mf=`echo "$mf" | sed -e 's/:.*$//'`
13898     # Check whether this is an Automake generated Makefile or not.
13899     # We used to match only the files named `Makefile.in', but
13900     # some people rename them; so instead we look at the file content.
13901     # Grep'ing the first line is not enough: some people post-process
13902     # each Makefile.in and add a new line on top of each file to say so.
13903     # Grep'ing the whole file is not good either: AIX grep has a line
13904     # limit of 2048, but all sed's we know have understand at least 4000.
13905     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13906       dirpart=`$as_dirname -- "$mf" ||
13907 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13908          X"$mf" : 'X\(//\)[^/]' \| \
13909          X"$mf" : 'X\(//\)$' \| \
13910          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13911 $as_echo X"$mf" |
13912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13913             s//\1/
13914             q
13915           }
13916           /^X\(\/\/\)[^/].*/{
13917             s//\1/
13918             q
13919           }
13920           /^X\(\/\/\)$/{
13921             s//\1/
13922             q
13923           }
13924           /^X\(\/\).*/{
13925             s//\1/
13926             q
13927           }
13928           s/.*/./; q'`
13929     else
13930       continue
13931     fi
13932     # Extract the definition of DEPDIR, am__include, and am__quote
13933     # from the Makefile without running `make'.
13934     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13935     test -z "$DEPDIR" && continue
13936     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13937     test -z "am__include" && continue
13938     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13939     # When using ansi2knr, U may be empty or an underscore; expand it
13940     U=`sed -n 's/^U = //p' < "$mf"`
13941     # Find all dependency output files, they are included files with
13942     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13943     # simplest approach to changing $(DEPDIR) to its actual value in the
13944     # expansion.
13945     for file in `sed -n "
13946       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13947          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13948       # Make sure the directory exists.
13949       test -f "$dirpart/$file" && continue
13950       fdir=`$as_dirname -- "$file" ||
13951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952          X"$file" : 'X\(//\)[^/]' \| \
13953          X"$file" : 'X\(//\)$' \| \
13954          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13955 $as_echo X"$file" |
13956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13957             s//\1/
13958             q
13959           }
13960           /^X\(\/\/\)[^/].*/{
13961             s//\1/
13962             q
13963           }
13964           /^X\(\/\/\)$/{
13965             s//\1/
13966             q
13967           }
13968           /^X\(\/\).*/{
13969             s//\1/
13970             q
13971           }
13972           s/.*/./; q'`
13973       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13974       # echo "creating $dirpart/$file"
13975       echo '# dummy' > "$dirpart/$file"
13976     done
13977   done
13978 }
13979  ;;
13980     "po-directories":C)
13981     for ac_file in $CONFIG_FILES; do
13982       # Support "outfile[:infile[:infile...]]"
13983       case "$ac_file" in
13984         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13985       esac
13986       # PO directories have a Makefile.in generated from Makefile.in.in.
13987       case "$ac_file" in */Makefile.in)
13988         # Adjust a relative srcdir.
13989         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13990         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13991         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13992         # In autoconf-2.13 it is called $ac_given_srcdir.
13993         # In autoconf-2.50 it is called $srcdir.
13994         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13995         case "$ac_given_srcdir" in
13996           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13997           /*) top_srcdir="$ac_given_srcdir" ;;
13998           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13999         esac
14000         # Treat a directory as a PO directory if and only if it has a
14001         # POTFILES.in file. This allows packages to have multiple PO
14002         # directories under different names or in different locations.
14003         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14004           rm -f "$ac_dir/POTFILES"
14005           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14006           gt_tab=`printf '\t'`
14007           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14008           POMAKEFILEDEPS="POTFILES.in"
14009           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14010           # on $ac_dir but don't depend on user-specified configuration
14011           # parameters.
14012           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14013             # The LINGUAS file contains the set of available languages.
14014             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14015               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14016             fi
14017             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14018             # Hide the ALL_LINGUAS assignment from automake < 1.5.
14019             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14020             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14021           else
14022             # The set of available languages was given in configure.in.
14023             # Hide the ALL_LINGUAS assignment from automake < 1.5.
14024             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14025           fi
14026           # Compute POFILES
14027           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14028           # Compute UPDATEPOFILES
14029           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14030           # Compute DUMMYPOFILES
14031           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14032           # Compute GMOFILES
14033           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14034           case "$ac_given_srcdir" in
14035             .) srcdirpre= ;;
14036             *) srcdirpre='$(srcdir)/' ;;
14037           esac
14038           POFILES=
14039           UPDATEPOFILES=
14040           DUMMYPOFILES=
14041           GMOFILES=
14042           for lang in $ALL_LINGUAS; do
14043             POFILES="$POFILES $srcdirpre$lang.po"
14044             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14045             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14046             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14047           done
14048           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14049           # environment variable.
14050           INST_LINGUAS=
14051           if test -n "$ALL_LINGUAS"; then
14052             for presentlang in $ALL_LINGUAS; do
14053               useit=no
14054               if test "%UNSET%" != "$LINGUAS"; then
14055                 desiredlanguages="$LINGUAS"
14056               else
14057                 desiredlanguages="$ALL_LINGUAS"
14058               fi
14059               for desiredlang in $desiredlanguages; do
14060                 # Use the presentlang catalog if desiredlang is
14061                 #   a. equal to presentlang, or
14062                 #   b. a variant of presentlang (because in this case,
14063                 #      presentlang can be used as a fallback for messages
14064                 #      which are not translated in the desiredlang catalog).
14065                 case "$desiredlang" in
14066                   "$presentlang"*) useit=yes;;
14067                 esac
14068               done
14069               if test $useit = yes; then
14070                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14071               fi
14072             done
14073           fi
14074           CATALOGS=
14075           if test -n "$INST_LINGUAS"; then
14076             for lang in $INST_LINGUAS; do
14077               CATALOGS="$CATALOGS $lang.gmo"
14078             done
14079           fi
14080           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14081           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14082           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14083             if test -f "$f"; then
14084               case "$f" in
14085                 *.orig | *.bak | *~) ;;
14086                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14087               esac
14088             fi
14089           done
14090         fi
14091         ;;
14092       esac
14093     done ;;
14094
14095   esac
14096 done # for ac_tag
14097
14098
14099 as_fn_exit 0
14100 _ACEOF
14101 ac_clean_files=$ac_clean_files_save
14102
14103 test $ac_write_fail = 0 ||
14104   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14105
14106
14107 # configure is writing to config.log, and then calls config.status.
14108 # config.status does its own redirection, appending to config.log.
14109 # Unfortunately, on DOS this fails, as config.log is still kept open
14110 # by configure, so config.status won't be able to write to it; its
14111 # output is simply discarded.  So we exec the FD to /dev/null,
14112 # effectively closing config.log, so it can be properly (re)opened and
14113 # appended to by config.status.  When coming back to configure, we
14114 # need to make the FD available again.
14115 if test "$no_create" != yes; then
14116   ac_cs_success=:
14117   ac_config_status_args=
14118   test "$silent" = yes &&
14119     ac_config_status_args="$ac_config_status_args --quiet"
14120   exec 5>/dev/null
14121   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14122   exec 5>>config.log
14123   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14124   # would make configure fail if this is the last instruction.
14125   $ac_cs_success || as_fn_exit 1
14126 fi
14127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14130 fi
14131