Imported Upstream version 1.22.4
[platform/upstream/groff.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Troff 1.22.4.
4 #
5 # Report bugs to <http://savannah.gnu.org/bugs/?group=groff>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://savannah.gnu.org/bugs/?group=groff about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='GNU Troff'
582 PACKAGE_TARNAME='groff'
583 PACKAGE_VERSION='1.22.4'
584 PACKAGE_STRING='GNU Troff 1.22.4'
585 PACKAGE_BUGREPORT='http://savannah.gnu.org/bugs/?group=groff'
586 PACKAGE_URL='http://www.gnu.org/software/groff/'
587
588 ac_unique_file="src/roff/groff/groff.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_func_list=
626 ac_header_list=
627 ac_config_libobj_dir=lib
628 ac_subst_vars='gltests_LTLIBOBJS
629 gltests_LIBOBJS
630 gl_LTLIBOBJS
631 gl_LIBOBJS
632 am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 HAVE_TEXI2DVI_FALSE
636 HAVE_TEXI2DVI_TRUE
637 HAVE_PDFTOOLS_FALSE
638 HAVE_PDFTOOLS_TRUE
639 INSTALL_SHIPPED_HTML_FALSE
640 INSTALL_SHIPPED_HTML_TRUE
641 BUILD_EXAMPLES_FALSE
642 BUILD_EXAMPLES_TRUE
643 BUILD_OTHERDOC_FALSE
644 BUILD_OTHERDOC_TRUE
645 BUILD_PDFEXAMPLES_FALSE
646 BUILD_PDFEXAMPLES_TRUE
647 BUILD_PDFDOC_FALSE
648 BUILD_PDFDOC_TRUE
649 BUILD_HTMLEXAMPLES_FALSE
650 BUILD_HTMLEXAMPLES_TRUE
651 BUILD_HTML_FALSE
652 BUILD_HTML_TRUE
653 BUILD_INFODOC_FALSE
654 BUILD_INFODOC_TRUE
655 USEPROGRAMPREFIX_FALSE
656 USEPROGRAMPREFIX_TRUE
657 MAKE_DONT_HAVE_RM_FALSE
658 MAKE_DONT_HAVE_RM_TRUE
659 WITHOUT_X11_FALSE
660 WITHOUT_X11_TRUE
661 BUILD_WINSCRIPTS_FALSE
662 BUILD_WINSCRIPTS_TRUE
663 groff_have_urw_fonts
664 BASH_PROG
665 HAVE_TEST_EF_OPTION
666 DIFF_PROG
667 GDIFF
668 pnmtops_nosetpage
669 make_uninstall_pdfexamples
670 make_install_pdfexamples
671 make_pdfexamples
672 make_uninstall_pdfdoc
673 make_install_pdfdoc
674 make_pdfdoc
675 ac_ct_AWK
676 ALT_AWK_PROGS
677 make_uninstall_htmlexamples
678 make_install_htmlexamples
679 make_htmlexamples
680 make_uninstall_htmldoc
681 make_install_htmldoc
682 make_htmldoc
683 pnmtops
684 psselect
685 pnmtopng
686 pnmcrop
687 pnmcut
688 ac_ct_GHOSTSCRIPT
689 GHOSTSCRIPT
690 ALT_GHOSTSCRIPT_PROGS
691 GROFF_PATH_SEPARATOR
692 compatibility_wrappers
693 tmac_wrap
694 sys_tmac_prefix
695 g
696 PAGE
697 BROKEN_SPOOLER_FLAGS
698 urwfontsdir
699 LIBOBJS
700 LIBEXT
701 LTLIBICONV
702 LIBICONV
703 CXXCPP
704 LIBM
705 LIBC
706 SH_SCRIPT_SED_CMD
707 PDFIMAGES
708 PDFFONTS
709 PDFINFO
710 UCHARDET_LIBS
711 UCHARDET_CFLAGS
712 PKG_CONFIG_LIBDIR
713 PKG_CONFIG_PATH
714 PKG_CONFIG
715 XPMTOPPM
716 LN_S
717 INSTALL_INFO
718 PROG_TEXI2DVI
719 makeinfo_version_numeric
720 make_uninstall_infodoc
721 make_install_infodoc
722 make_infodoc
723 make_uninstall_examples
724 make_install_examples
725 make_examples
726 make_uninstall_otherdoc
727 make_install_otherdoc
728 make_otherdoc
729 make_uninstall_shipped_htmldoc
730 make_install_shipped_htmldoc
731 doc_dist_target_ok
732 YACC
733 DVIPRINT
734 PSPRINT
735 LPQ
736 LP
737 LPR
738 PERL_VERSION
739 SED
740 PERL
741 groffer_dir
742 appresdir
743 XLIBDIRS
744 XPROGDIRS
745 XDEVDIRS
746 X_EXTRA_LIBS
747 X_LIBS
748 X_PRE_LIBS
749 X_CFLAGS
750 XMKMF
751 make_winscripts
752 OTHERDEVDIRS
753 TTYDEVDIRS
754 LIBGNU_LTLIBDEPS
755 LIBGNU_LIBDEPS
756 gltests_WITNESS
757 REPLACE_TOWLOWER
758 REPLACE_ISWCNTRL
759 HAVE_WCTYPE_H
760 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
761 NEXT_WCTYPE_H
762 HAVE_ISWCNTRL
763 REPLACE_ISWBLANK
764 HAVE_WCTRANS_T
765 HAVE_WCTYPE_T
766 HAVE_ISWBLANK
767 GNULIB_TOWCTRANS
768 GNULIB_WCTRANS
769 GNULIB_ISWCTYPE
770 GNULIB_WCTYPE
771 GNULIB_ISWBLANK
772 HAVE_CRTDEFS_H
773 HAVE_WINT_T
774 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
775 NEXT_WCHAR_H
776 REPLACE_WCSFTIME
777 REPLACE_WCSWIDTH
778 REPLACE_WCWIDTH
779 REPLACE_WCSNRTOMBS
780 REPLACE_WCSRTOMBS
781 REPLACE_WCRTOMB
782 REPLACE_MBSNRTOWCS
783 REPLACE_MBSRTOWCS
784 REPLACE_MBRLEN
785 REPLACE_MBRTOWC
786 REPLACE_MBSINIT
787 REPLACE_WCTOB
788 REPLACE_BTOWC
789 REPLACE_MBSTATE_T
790 HAVE_DECL_WCWIDTH
791 HAVE_DECL_WCTOB
792 HAVE_WCSFTIME
793 HAVE_WCSWIDTH
794 HAVE_WCSTOK
795 HAVE_WCSSTR
796 HAVE_WCSPBRK
797 HAVE_WCSSPN
798 HAVE_WCSCSPN
799 HAVE_WCSRCHR
800 HAVE_WCSCHR
801 HAVE_WCSDUP
802 HAVE_WCSXFRM
803 HAVE_WCSCOLL
804 HAVE_WCSNCASECMP
805 HAVE_WCSCASECMP
806 HAVE_WCSNCMP
807 HAVE_WCSCMP
808 HAVE_WCSNCAT
809 HAVE_WCSCAT
810 HAVE_WCPNCPY
811 HAVE_WCSNCPY
812 HAVE_WCPCPY
813 HAVE_WCSCPY
814 HAVE_WCSNLEN
815 HAVE_WCSLEN
816 HAVE_WMEMSET
817 HAVE_WMEMMOVE
818 HAVE_WMEMCPY
819 HAVE_WMEMCMP
820 HAVE_WMEMCHR
821 HAVE_WCSNRTOMBS
822 HAVE_WCSRTOMBS
823 HAVE_WCRTOMB
824 HAVE_MBSNRTOWCS
825 HAVE_MBSRTOWCS
826 HAVE_MBRLEN
827 HAVE_MBRTOWC
828 HAVE_MBSINIT
829 HAVE_BTOWC
830 GNULIB_WCSFTIME
831 GNULIB_WCSWIDTH
832 GNULIB_WCSTOK
833 GNULIB_WCSSTR
834 GNULIB_WCSPBRK
835 GNULIB_WCSSPN
836 GNULIB_WCSCSPN
837 GNULIB_WCSRCHR
838 GNULIB_WCSCHR
839 GNULIB_WCSDUP
840 GNULIB_WCSXFRM
841 GNULIB_WCSCOLL
842 GNULIB_WCSNCASECMP
843 GNULIB_WCSCASECMP
844 GNULIB_WCSNCMP
845 GNULIB_WCSCMP
846 GNULIB_WCSNCAT
847 GNULIB_WCSCAT
848 GNULIB_WCPNCPY
849 GNULIB_WCSNCPY
850 GNULIB_WCPCPY
851 GNULIB_WCSCPY
852 GNULIB_WCSNLEN
853 GNULIB_WCSLEN
854 GNULIB_WMEMSET
855 GNULIB_WMEMMOVE
856 GNULIB_WMEMCPY
857 GNULIB_WMEMCMP
858 GNULIB_WMEMCHR
859 GNULIB_WCWIDTH
860 GNULIB_WCSNRTOMBS
861 GNULIB_WCSRTOMBS
862 GNULIB_WCRTOMB
863 GNULIB_MBSNRTOWCS
864 GNULIB_MBSRTOWCS
865 GNULIB_MBRLEN
866 GNULIB_MBRTOWC
867 GNULIB_MBSINIT
868 GNULIB_WCTOB
869 GNULIB_BTOWC
870 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
871 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
872 LIBUNISTRING_UNIWIDTH_H
873 LIBUNISTRING_UNITYPES_H
874 WINDOWS_STAT_INODES
875 WINDOWS_64_BIT_OFF_T
876 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
877 NEXT_SYS_TYPES_H
878 NEXT_AS_FIRST_DIRECTIVE_STRING_H
879 NEXT_STRING_H
880 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
881 NEXT_STDIO_H
882 GL_GENERATE_STDINT_H_FALSE
883 GL_GENERATE_STDINT_H_TRUE
884 STDINT_H
885 HAVE_SYS_INTTYPES_H
886 HAVE_SYS_BITYPES_H
887 HAVE_C99_STDINT_H
888 WINT_T_SUFFIX
889 WCHAR_T_SUFFIX
890 SIG_ATOMIC_T_SUFFIX
891 SIZE_T_SUFFIX
892 PTRDIFF_T_SUFFIX
893 HAVE_SIGNED_WINT_T
894 HAVE_SIGNED_WCHAR_T
895 HAVE_SIGNED_SIG_ATOMIC_T
896 BITSIZEOF_WINT_T
897 BITSIZEOF_WCHAR_T
898 BITSIZEOF_SIG_ATOMIC_T
899 BITSIZEOF_SIZE_T
900 BITSIZEOF_PTRDIFF_T
901 HAVE_STDINT_H
902 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
903 NEXT_STDINT_H
904 HAVE_SYS_TYPES_H
905 HAVE_INTTYPES_H
906 HAVE_WCHAR_H
907 HAVE_UNSIGNED_LONG_LONG_INT
908 HAVE_LONG_LONG_INT
909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
910 NEXT_STDDEF_H
911 GL_GENERATE_STDDEF_H_FALSE
912 GL_GENERATE_STDDEF_H_TRUE
913 STDDEF_H
914 HAVE_WCHAR_T
915 HAVE_MAX_ALIGN_T
916 REPLACE_NULL
917 UNDEFINE_STRTOK_R
918 REPLACE_STRSIGNAL
919 REPLACE_STRERROR_R
920 REPLACE_STRERROR
921 REPLACE_STRTOK_R
922 REPLACE_STRCASESTR
923 REPLACE_STRSTR
924 REPLACE_STRNLEN
925 REPLACE_STRNDUP
926 REPLACE_STRNCAT
927 REPLACE_STRDUP
928 REPLACE_STRCHRNUL
929 REPLACE_STPNCPY
930 REPLACE_MEMMEM
931 REPLACE_MEMCHR
932 HAVE_STRVERSCMP
933 HAVE_DECL_STRSIGNAL
934 HAVE_DECL_STRERROR_R
935 HAVE_DECL_STRTOK_R
936 HAVE_STRCASESTR
937 HAVE_STRSEP
938 HAVE_STRPBRK
939 HAVE_DECL_STRNLEN
940 HAVE_DECL_STRNDUP
941 HAVE_DECL_STRDUP
942 HAVE_STRCHRNUL
943 HAVE_STPNCPY
944 HAVE_STPCPY
945 HAVE_RAWMEMCHR
946 HAVE_DECL_MEMRCHR
947 HAVE_MEMPCPY
948 HAVE_DECL_MEMMEM
949 HAVE_MEMCHR
950 HAVE_FFSLL
951 HAVE_FFSL
952 HAVE_EXPLICIT_BZERO
953 HAVE_MBSLEN
954 GNULIB_STRVERSCMP
955 GNULIB_STRSIGNAL
956 GNULIB_STRERROR_R
957 GNULIB_STRERROR
958 GNULIB_MBSTOK_R
959 GNULIB_MBSSEP
960 GNULIB_MBSSPN
961 GNULIB_MBSPBRK
962 GNULIB_MBSCSPN
963 GNULIB_MBSCASESTR
964 GNULIB_MBSPCASECMP
965 GNULIB_MBSNCASECMP
966 GNULIB_MBSCASECMP
967 GNULIB_MBSSTR
968 GNULIB_MBSRCHR
969 GNULIB_MBSCHR
970 GNULIB_MBSNLEN
971 GNULIB_MBSLEN
972 GNULIB_STRTOK_R
973 GNULIB_STRCASESTR
974 GNULIB_STRSTR
975 GNULIB_STRSEP
976 GNULIB_STRPBRK
977 GNULIB_STRNLEN
978 GNULIB_STRNDUP
979 GNULIB_STRNCAT
980 GNULIB_STRDUP
981 GNULIB_STRCHRNUL
982 GNULIB_STPNCPY
983 GNULIB_STPCPY
984 GNULIB_RAWMEMCHR
985 GNULIB_MEMRCHR
986 GNULIB_MEMPCPY
987 GNULIB_MEMMEM
988 GNULIB_MEMCHR
989 GNULIB_FFSLL
990 GNULIB_FFSL
991 GNULIB_EXPLICIT_BZERO
992 NEXT_AS_FIRST_DIRECTIVE_MATH_H
993 NEXT_MATH_H
994 LOCALCHARSET_TESTS_ENVIRONMENT
995 GLIBC21
996 GL_GENERATE_LIMITS_H_FALSE
997 GL_GENERATE_LIMITS_H_TRUE
998 LIMITS_H
999 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1000 NEXT_LIMITS_H
1001 HOST_CPU_C_ABI
1002 HOST_CPU
1003 REPLACE_TRUNCL
1004 REPLACE_TRUNCF
1005 REPLACE_TRUNC
1006 REPLACE_TANHF
1007 REPLACE_TANF
1008 REPLACE_SQRTL
1009 REPLACE_SQRTF
1010 REPLACE_SINHF
1011 REPLACE_SINF
1012 REPLACE_SIGNBIT_USING_GCC
1013 REPLACE_SIGNBIT
1014 REPLACE_ROUNDL
1015 REPLACE_ROUNDF
1016 REPLACE_ROUND
1017 REPLACE_REMAINDERL
1018 REPLACE_REMAINDERF
1019 REPLACE_REMAINDER
1020 REPLACE_NAN
1021 REPLACE_MODFL
1022 REPLACE_MODFF
1023 REPLACE_MODF
1024 REPLACE_LOGBL
1025 REPLACE_LOGBF
1026 REPLACE_LOGB
1027 REPLACE_LOG2L
1028 REPLACE_LOG2F
1029 REPLACE_LOG2
1030 REPLACE_LOG1PL
1031 REPLACE_LOG1PF
1032 REPLACE_LOG1P
1033 REPLACE_LOG10L
1034 REPLACE_LOG10F
1035 REPLACE_LOG10
1036 REPLACE_LOGL
1037 REPLACE_LOGF
1038 REPLACE_LOG
1039 REPLACE_LDEXPL
1040 REPLACE_ISNAN
1041 REPLACE_ISINF
1042 REPLACE_ISFINITE
1043 REPLACE_ILOGBL
1044 REPLACE_ILOGBF
1045 REPLACE_ILOGB
1046 REPLACE_HYPOTL
1047 REPLACE_HYPOTF
1048 REPLACE_HYPOT
1049 REPLACE_HUGE_VAL
1050 REPLACE_FREXPL
1051 REPLACE_FREXP
1052 REPLACE_FREXPF
1053 REPLACE_FMODL
1054 REPLACE_FMODF
1055 REPLACE_FMOD
1056 REPLACE_FMAL
1057 REPLACE_FMAF
1058 REPLACE_FMA
1059 REPLACE_FLOORL
1060 REPLACE_FLOORF
1061 REPLACE_FLOOR
1062 REPLACE_FABSL
1063 REPLACE_EXP2L
1064 REPLACE_EXP2
1065 REPLACE_EXPM1F
1066 REPLACE_EXPM1
1067 REPLACE_EXPF
1068 REPLACE_COSHF
1069 REPLACE_COSF
1070 REPLACE_CEILL
1071 REPLACE_CEILF
1072 REPLACE_CEIL
1073 REPLACE_CBRTL
1074 REPLACE_CBRTF
1075 REPLACE_ATAN2F
1076 REPLACE_ATANF
1077 REPLACE_ASINF
1078 REPLACE_ACOSF
1079 HAVE_DECL_TRUNCL
1080 HAVE_DECL_TRUNCF
1081 HAVE_DECL_TRUNC
1082 HAVE_DECL_TANL
1083 HAVE_DECL_SQRTL
1084 HAVE_DECL_SINL
1085 HAVE_DECL_ROUNDL
1086 HAVE_DECL_ROUNDF
1087 HAVE_DECL_ROUND
1088 HAVE_DECL_RINTF
1089 HAVE_DECL_REMAINDERL
1090 HAVE_DECL_REMAINDER
1091 HAVE_DECL_LOGB
1092 HAVE_DECL_LOG2L
1093 HAVE_DECL_LOG2F
1094 HAVE_DECL_LOG2
1095 HAVE_DECL_LOG10L
1096 HAVE_DECL_LOGL
1097 HAVE_DECL_LDEXPL
1098 HAVE_DECL_FREXPL
1099 HAVE_DECL_FLOORL
1100 HAVE_DECL_FLOORF
1101 HAVE_DECL_EXPM1L
1102 HAVE_DECL_EXP2L
1103 HAVE_DECL_EXP2F
1104 HAVE_DECL_EXP2
1105 HAVE_DECL_EXPL
1106 HAVE_DECL_COSL
1107 HAVE_DECL_COPYSIGNF
1108 HAVE_DECL_CEILL
1109 HAVE_DECL_CEILF
1110 HAVE_DECL_CBRTL
1111 HAVE_DECL_CBRTF
1112 HAVE_DECL_ATANL
1113 HAVE_DECL_ASINL
1114 HAVE_DECL_ACOSL
1115 HAVE_TANHF
1116 HAVE_TANL
1117 HAVE_TANF
1118 HAVE_SQRTL
1119 HAVE_SQRTF
1120 HAVE_SINHF
1121 HAVE_SINL
1122 HAVE_SINF
1123 HAVE_RINTL
1124 HAVE_RINT
1125 HAVE_REMAINDERF
1126 HAVE_REMAINDER
1127 HAVE_POWF
1128 HAVE_MODFL
1129 HAVE_MODFF
1130 HAVE_LOGBL
1131 HAVE_LOGBF
1132 HAVE_LOG1PL
1133 HAVE_LOG1PF
1134 HAVE_LOG1P
1135 HAVE_LOG10L
1136 HAVE_LOG10F
1137 HAVE_LOGL
1138 HAVE_LOGF
1139 HAVE_LDEXPF
1140 HAVE_ISNANL
1141 HAVE_ISNAND
1142 HAVE_ISNANF
1143 HAVE_ILOGBL
1144 HAVE_ILOGBF
1145 HAVE_ILOGB
1146 HAVE_HYPOTL
1147 HAVE_HYPOTF
1148 HAVE_FREXPF
1149 HAVE_FMODL
1150 HAVE_FMODF
1151 HAVE_FMAL
1152 HAVE_FMAF
1153 HAVE_FMA
1154 HAVE_FABSL
1155 HAVE_FABSF
1156 HAVE_EXPM1F
1157 HAVE_EXPM1
1158 HAVE_EXPL
1159 HAVE_EXPF
1160 HAVE_COSHF
1161 HAVE_COSL
1162 HAVE_COSF
1163 HAVE_COPYSIGNL
1164 HAVE_COPYSIGN
1165 HAVE_CBRTL
1166 HAVE_CBRTF
1167 HAVE_CBRT
1168 HAVE_ATAN2F
1169 HAVE_ATANL
1170 HAVE_ATANF
1171 HAVE_ASINL
1172 HAVE_ASINF
1173 HAVE_ACOSL
1174 HAVE_ACOSF
1175 GNULIB_TRUNCL
1176 GNULIB_TRUNCF
1177 GNULIB_TRUNC
1178 GNULIB_TANHF
1179 GNULIB_TANL
1180 GNULIB_TANF
1181 GNULIB_SQRTL
1182 GNULIB_SQRTF
1183 GNULIB_SINHF
1184 GNULIB_SINL
1185 GNULIB_SINF
1186 GNULIB_SIGNBIT
1187 GNULIB_ROUNDL
1188 GNULIB_ROUNDF
1189 GNULIB_ROUND
1190 GNULIB_RINTL
1191 GNULIB_RINTF
1192 GNULIB_RINT
1193 GNULIB_REMAINDERL
1194 GNULIB_REMAINDERF
1195 GNULIB_REMAINDER
1196 GNULIB_POWF
1197 GNULIB_MODFL
1198 GNULIB_MODFF
1199 GNULIB_MODF
1200 GNULIB_LOGBL
1201 GNULIB_LOGBF
1202 GNULIB_LOGB
1203 GNULIB_LOG2L
1204 GNULIB_LOG2F
1205 GNULIB_LOG2
1206 GNULIB_LOG1PL
1207 GNULIB_LOG1PF
1208 GNULIB_LOG1P
1209 GNULIB_LOG10L
1210 GNULIB_LOG10F
1211 GNULIB_LOG10
1212 GNULIB_LOGL
1213 GNULIB_LOGF
1214 GNULIB_LOG
1215 GNULIB_LDEXPL
1216 GNULIB_LDEXPF
1217 GNULIB_ISNANL
1218 GNULIB_ISNAND
1219 GNULIB_ISNANF
1220 GNULIB_ISNAN
1221 GNULIB_ISINF
1222 GNULIB_ISFINITE
1223 GNULIB_ILOGBL
1224 GNULIB_ILOGBF
1225 GNULIB_ILOGB
1226 GNULIB_HYPOTL
1227 GNULIB_HYPOTF
1228 GNULIB_HYPOT
1229 GNULIB_FREXPL
1230 GNULIB_FREXP
1231 GNULIB_FREXPF
1232 GNULIB_FMODL
1233 GNULIB_FMODF
1234 GNULIB_FMOD
1235 GNULIB_FMAL
1236 GNULIB_FMAF
1237 GNULIB_FMA
1238 GNULIB_FLOORL
1239 GNULIB_FLOORF
1240 GNULIB_FLOOR
1241 GNULIB_FABSL
1242 GNULIB_FABSF
1243 GNULIB_EXPM1L
1244 GNULIB_EXPM1F
1245 GNULIB_EXPM1
1246 GNULIB_EXP2L
1247 GNULIB_EXP2F
1248 GNULIB_EXP2
1249 GNULIB_EXPL
1250 GNULIB_EXPF
1251 GNULIB_COSHF
1252 GNULIB_COSL
1253 GNULIB_COSF
1254 GNULIB_COPYSIGNL
1255 GNULIB_COPYSIGNF
1256 GNULIB_COPYSIGN
1257 GNULIB_CEILL
1258 GNULIB_CEILF
1259 GNULIB_CEIL
1260 GNULIB_CBRTL
1261 GNULIB_CBRTF
1262 GNULIB_CBRT
1263 GNULIB_ATAN2F
1264 GNULIB_ATANL
1265 GNULIB_ATANF
1266 GNULIB_ASINL
1267 GNULIB_ASINF
1268 GNULIB_ACOSL
1269 GNULIB_ACOSF
1270 REPLACE_VSPRINTF
1271 REPLACE_VSNPRINTF
1272 REPLACE_VPRINTF
1273 REPLACE_VFPRINTF
1274 REPLACE_VDPRINTF
1275 REPLACE_VASPRINTF
1276 REPLACE_TMPFILE
1277 REPLACE_STDIO_WRITE_FUNCS
1278 REPLACE_STDIO_READ_FUNCS
1279 REPLACE_SPRINTF
1280 REPLACE_SNPRINTF
1281 REPLACE_RENAMEAT
1282 REPLACE_RENAME
1283 REPLACE_REMOVE
1284 REPLACE_PRINTF
1285 REPLACE_POPEN
1286 REPLACE_PERROR
1287 REPLACE_OBSTACK_PRINTF
1288 REPLACE_GETLINE
1289 REPLACE_GETDELIM
1290 REPLACE_FTELLO
1291 REPLACE_FTELL
1292 REPLACE_FSEEKO
1293 REPLACE_FSEEK
1294 REPLACE_FREOPEN
1295 REPLACE_FPURGE
1296 REPLACE_FPRINTF
1297 REPLACE_FOPEN
1298 REPLACE_FFLUSH
1299 REPLACE_FDOPEN
1300 REPLACE_FCLOSE
1301 REPLACE_DPRINTF
1302 HAVE_VDPRINTF
1303 HAVE_VASPRINTF
1304 HAVE_RENAMEAT
1305 HAVE_POPEN
1306 HAVE_PCLOSE
1307 HAVE_FTELLO
1308 HAVE_FSEEKO
1309 HAVE_DPRINTF
1310 HAVE_DECL_VSNPRINTF
1311 HAVE_DECL_SNPRINTF
1312 HAVE_DECL_OBSTACK_PRINTF
1313 HAVE_DECL_GETLINE
1314 HAVE_DECL_GETDELIM
1315 HAVE_DECL_FTELLO
1316 HAVE_DECL_FSEEKO
1317 HAVE_DECL_FPURGE
1318 GNULIB_VSPRINTF_POSIX
1319 GNULIB_VSNPRINTF
1320 GNULIB_VPRINTF_POSIX
1321 GNULIB_VPRINTF
1322 GNULIB_VFPRINTF_POSIX
1323 GNULIB_VFPRINTF
1324 GNULIB_VDPRINTF
1325 GNULIB_VSCANF
1326 GNULIB_VFSCANF
1327 GNULIB_VASPRINTF
1328 GNULIB_TMPFILE
1329 GNULIB_STDIO_H_SIGPIPE
1330 GNULIB_STDIO_H_NONBLOCKING
1331 GNULIB_SPRINTF_POSIX
1332 GNULIB_SNPRINTF
1333 GNULIB_SCANF
1334 GNULIB_RENAMEAT
1335 GNULIB_RENAME
1336 GNULIB_REMOVE
1337 GNULIB_PUTS
1338 GNULIB_PUTCHAR
1339 GNULIB_PUTC
1340 GNULIB_PRINTF_POSIX
1341 GNULIB_PRINTF
1342 GNULIB_POPEN
1343 GNULIB_PERROR
1344 GNULIB_PCLOSE
1345 GNULIB_OBSTACK_PRINTF_POSIX
1346 GNULIB_OBSTACK_PRINTF
1347 GNULIB_GETLINE
1348 GNULIB_GETDELIM
1349 GNULIB_GETCHAR
1350 GNULIB_GETC
1351 GNULIB_FWRITE
1352 GNULIB_FTELLO
1353 GNULIB_FTELL
1354 GNULIB_FSEEKO
1355 GNULIB_FSEEK
1356 GNULIB_FSCANF
1357 GNULIB_FREOPEN
1358 GNULIB_FREAD
1359 GNULIB_FPUTS
1360 GNULIB_FPUTC
1361 GNULIB_FPURGE
1362 GNULIB_FPRINTF_POSIX
1363 GNULIB_FPRINTF
1364 GNULIB_FOPEN
1365 GNULIB_FGETS
1366 GNULIB_FGETC
1367 GNULIB_FFLUSH
1368 GNULIB_FDOPEN
1369 GNULIB_FCLOSE
1370 GNULIB_DPRINTF
1371 HAVE_FEATURES_H
1372 GNULIB_OVERRIDES_WINT_T
1373 APPLE_UNIVERSAL_BUILD
1374 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1375 REPLACE_ITOLD
1376 GL_GENERATE_FLOAT_H_FALSE
1377 GL_GENERATE_FLOAT_H_TRUE
1378 FLOAT_H
1379 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1380 NEXT_FLOAT_H
1381 EOVERFLOW_VALUE
1382 EOVERFLOW_HIDDEN
1383 ENOLINK_VALUE
1384 ENOLINK_HIDDEN
1385 EMULTIHOP_VALUE
1386 EMULTIHOP_HIDDEN
1387 GL_GENERATE_ERRNO_H_FALSE
1388 GL_GENERATE_ERRNO_H_TRUE
1389 ERRNO_H
1390 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1391 NEXT_ERRNO_H
1392 PRAGMA_COLUMNS
1393 PRAGMA_SYSTEM_HEADER
1394 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1395 INCLUDE_NEXT
1396 GL_GENERATE_ALLOCA_H_FALSE
1397 GL_GENERATE_ALLOCA_H_TRUE
1398 ALLOCA_H
1399 ALLOCA
1400 GL_COND_LIBTOOL_FALSE
1401 GL_COND_LIBTOOL_TRUE
1402 host_os
1403 host_vendor
1404 host_cpu
1405 host
1406 build_os
1407 build_vendor
1408 build_cpu
1409 build
1410 RANLIB
1411 ARFLAGS
1412 AR
1413 am__fastdepCXX_FALSE
1414 am__fastdepCXX_TRUE
1415 CXXDEPMODE
1416 ac_ct_CXX
1417 CXXFLAGS
1418 CXX
1419 AM_BACKSLASH
1420 AM_DEFAULT_VERBOSITY
1421 AM_DEFAULT_V
1422 AM_V
1423 am__fastdepCC_FALSE
1424 am__fastdepCC_TRUE
1425 CCDEPMODE
1426 am__nodep
1427 AMDEPBACKSLASH
1428 AMDEP_FALSE
1429 AMDEP_TRUE
1430 am__include
1431 DEPDIR
1432 am__untar
1433 am__tar
1434 AMTAR
1435 am__leading_dot
1436 SET_MAKE
1437 AWK
1438 mkdir_p
1439 MKDIR_P
1440 INSTALL_STRIP_PROGRAM
1441 STRIP
1442 install_sh
1443 MAKEINFO
1444 AUTOHEADER
1445 AUTOMAKE
1446 AUTOCONF
1447 ACLOCAL
1448 VERSION
1449 PACKAGE
1450 CYGPATH_W
1451 am__isrc
1452 INSTALL_DATA
1453 INSTALL_SCRIPT
1454 INSTALL_PROGRAM
1455 EGREP
1456 GREP
1457 CPP
1458 OBJEXT
1459 EXEEXT
1460 ac_ct_CC
1461 CPPFLAGS
1462 LDFLAGS
1463 CFLAGS
1464 CC
1465 SHORT_VERSION
1466 target_alias
1467 host_alias
1468 build_alias
1469 LIBS
1470 ECHO_T
1471 ECHO_N
1472 ECHO_C
1473 DEFS
1474 mandir
1475 localedir
1476 libdir
1477 psdir
1478 pdfdir
1479 dvidir
1480 htmldir
1481 infodir
1482 docdir
1483 oldincludedir
1484 includedir
1485 localstatedir
1486 sharedstatedir
1487 sysconfdir
1488 datadir
1489 datarootdir
1490 libexecdir
1491 sbindir
1492 bindir
1493 program_transform_name
1494 prefix
1495 exec_prefix
1496 PACKAGE_URL
1497 PACKAGE_BUGREPORT
1498 PACKAGE_STRING
1499 PACKAGE_VERSION
1500 PACKAGE_TARNAME
1501 PACKAGE_NAME
1502 PATH_SEPARATOR
1503 SHELL
1504 referdir
1505 grog_dir
1506 gpinyin_dir
1507 glilypond_dir
1508 libprogramdir
1509 am__quote'
1510 ac_subst_files=''
1511 ac_user_opts='
1512 enable_option_checking
1513 enable_dependency_tracking
1514 enable_silent_rules
1515 with_x
1516 with_appresdir
1517 with_grofferdir
1518 with_doc
1519 with_uchardet
1520 with_gnu_ld
1521 enable_rpath
1522 with_libiconv_prefix
1523 with_urw_fonts_dir
1524 with_compatibility_wrappers
1525 with_alt_gs
1526 with_gs
1527 with_alt_awk
1528 with_awk
1529 '
1530       ac_precious_vars='build_alias
1531 host_alias
1532 target_alias
1533 CC
1534 CFLAGS
1535 LDFLAGS
1536 LIBS
1537 CPPFLAGS
1538 CPP
1539 CXX
1540 CXXFLAGS
1541 CCC
1542 XMKMF
1543 PKG_CONFIG
1544 PKG_CONFIG_PATH
1545 PKG_CONFIG_LIBDIR
1546 UCHARDET_CFLAGS
1547 UCHARDET_LIBS
1548 CXXCPP'
1549
1550
1551 # Initialize some variables set by options.
1552 ac_init_help=
1553 ac_init_version=false
1554 ac_unrecognized_opts=
1555 ac_unrecognized_sep=
1556 # The variables have the same names as the options, with
1557 # dashes changed to underlines.
1558 cache_file=/dev/null
1559 exec_prefix=NONE
1560 no_create=
1561 no_recursion=
1562 prefix=NONE
1563 program_prefix=NONE
1564 program_suffix=NONE
1565 program_transform_name=s,x,x,
1566 silent=
1567 site=
1568 srcdir=
1569 verbose=
1570 x_includes=NONE
1571 x_libraries=NONE
1572
1573 # Installation directory options.
1574 # These are left unexpanded so users can "make install exec_prefix=/foo"
1575 # and all the variables that are supposed to be based on exec_prefix
1576 # by default will actually change.
1577 # Use braces instead of parens because sh, perl, etc. also accept them.
1578 # (The list follows the same order as the GNU Coding Standards.)
1579 bindir='${exec_prefix}/bin'
1580 sbindir='${exec_prefix}/sbin'
1581 libexecdir='${exec_prefix}/libexec'
1582 datarootdir='${prefix}/share'
1583 datadir='${datarootdir}'
1584 sysconfdir='${prefix}/etc'
1585 sharedstatedir='${prefix}/com'
1586 localstatedir='${prefix}/var'
1587 includedir='${prefix}/include'
1588 oldincludedir='/usr/include'
1589 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1590 infodir='${datarootdir}/info'
1591 htmldir='${docdir}'
1592 dvidir='${docdir}'
1593 pdfdir='${docdir}'
1594 psdir='${docdir}'
1595 libdir='${exec_prefix}/lib'
1596 localedir='${datarootdir}/locale'
1597 mandir='${datarootdir}/man'
1598
1599 ac_prev=
1600 ac_dashdash=
1601 for ac_option
1602 do
1603   # If the previous option needs an argument, assign it.
1604   if test -n "$ac_prev"; then
1605     eval $ac_prev=\$ac_option
1606     ac_prev=
1607     continue
1608   fi
1609
1610   case $ac_option in
1611   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1612   *=)   ac_optarg= ;;
1613   *)    ac_optarg=yes ;;
1614   esac
1615
1616   # Accept the important Cygnus configure options, so we can diagnose typos.
1617
1618   case $ac_dashdash$ac_option in
1619   --)
1620     ac_dashdash=yes ;;
1621
1622   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1623     ac_prev=bindir ;;
1624   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1625     bindir=$ac_optarg ;;
1626
1627   -build | --build | --buil | --bui | --bu)
1628     ac_prev=build_alias ;;
1629   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1630     build_alias=$ac_optarg ;;
1631
1632   -cache-file | --cache-file | --cache-fil | --cache-fi \
1633   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1634     ac_prev=cache_file ;;
1635   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1636   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1637     cache_file=$ac_optarg ;;
1638
1639   --config-cache | -C)
1640     cache_file=config.cache ;;
1641
1642   -datadir | --datadir | --datadi | --datad)
1643     ac_prev=datadir ;;
1644   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1645     datadir=$ac_optarg ;;
1646
1647   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1648   | --dataroo | --dataro | --datar)
1649     ac_prev=datarootdir ;;
1650   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1651   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1652     datarootdir=$ac_optarg ;;
1653
1654   -disable-* | --disable-*)
1655     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1656     # Reject names that are not valid shell variable names.
1657     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1658       as_fn_error $? "invalid feature name: $ac_useropt"
1659     ac_useropt_orig=$ac_useropt
1660     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1661     case $ac_user_opts in
1662       *"
1663 "enable_$ac_useropt"
1664 "*) ;;
1665       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1666          ac_unrecognized_sep=', ';;
1667     esac
1668     eval enable_$ac_useropt=no ;;
1669
1670   -docdir | --docdir | --docdi | --doc | --do)
1671     ac_prev=docdir ;;
1672   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1673     docdir=$ac_optarg ;;
1674
1675   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1676     ac_prev=dvidir ;;
1677   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1678     dvidir=$ac_optarg ;;
1679
1680   -enable-* | --enable-*)
1681     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1682     # Reject names that are not valid shell variable names.
1683     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684       as_fn_error $? "invalid feature name: $ac_useropt"
1685     ac_useropt_orig=$ac_useropt
1686     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687     case $ac_user_opts in
1688       *"
1689 "enable_$ac_useropt"
1690 "*) ;;
1691       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1692          ac_unrecognized_sep=', ';;
1693     esac
1694     eval enable_$ac_useropt=\$ac_optarg ;;
1695
1696   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1697   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1698   | --exec | --exe | --ex)
1699     ac_prev=exec_prefix ;;
1700   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1701   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1702   | --exec=* | --exe=* | --ex=*)
1703     exec_prefix=$ac_optarg ;;
1704
1705   -gas | --gas | --ga | --g)
1706     # Obsolete; use --with-gas.
1707     with_gas=yes ;;
1708
1709   -help | --help | --hel | --he | -h)
1710     ac_init_help=long ;;
1711   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1712     ac_init_help=recursive ;;
1713   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1714     ac_init_help=short ;;
1715
1716   -host | --host | --hos | --ho)
1717     ac_prev=host_alias ;;
1718   -host=* | --host=* | --hos=* | --ho=*)
1719     host_alias=$ac_optarg ;;
1720
1721   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1722     ac_prev=htmldir ;;
1723   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1724   | --ht=*)
1725     htmldir=$ac_optarg ;;
1726
1727   -includedir | --includedir | --includedi | --included | --include \
1728   | --includ | --inclu | --incl | --inc)
1729     ac_prev=includedir ;;
1730   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1731   | --includ=* | --inclu=* | --incl=* | --inc=*)
1732     includedir=$ac_optarg ;;
1733
1734   -infodir | --infodir | --infodi | --infod | --info | --inf)
1735     ac_prev=infodir ;;
1736   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1737     infodir=$ac_optarg ;;
1738
1739   -libdir | --libdir | --libdi | --libd)
1740     ac_prev=libdir ;;
1741   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1742     libdir=$ac_optarg ;;
1743
1744   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1745   | --libexe | --libex | --libe)
1746     ac_prev=libexecdir ;;
1747   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1748   | --libexe=* | --libex=* | --libe=*)
1749     libexecdir=$ac_optarg ;;
1750
1751   -localedir | --localedir | --localedi | --localed | --locale)
1752     ac_prev=localedir ;;
1753   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1754     localedir=$ac_optarg ;;
1755
1756   -localstatedir | --localstatedir | --localstatedi | --localstated \
1757   | --localstate | --localstat | --localsta | --localst | --locals)
1758     ac_prev=localstatedir ;;
1759   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1760   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1761     localstatedir=$ac_optarg ;;
1762
1763   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1764     ac_prev=mandir ;;
1765   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1766     mandir=$ac_optarg ;;
1767
1768   -nfp | --nfp | --nf)
1769     # Obsolete; use --without-fp.
1770     with_fp=no ;;
1771
1772   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1773   | --no-cr | --no-c | -n)
1774     no_create=yes ;;
1775
1776   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1777   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1778     no_recursion=yes ;;
1779
1780   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1781   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1782   | --oldin | --oldi | --old | --ol | --o)
1783     ac_prev=oldincludedir ;;
1784   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1785   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1786   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1787     oldincludedir=$ac_optarg ;;
1788
1789   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1790     ac_prev=prefix ;;
1791   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1792     prefix=$ac_optarg ;;
1793
1794   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1795   | --program-pre | --program-pr | --program-p)
1796     ac_prev=program_prefix ;;
1797   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1798   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1799     program_prefix=$ac_optarg ;;
1800
1801   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1802   | --program-suf | --program-su | --program-s)
1803     ac_prev=program_suffix ;;
1804   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1805   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1806     program_suffix=$ac_optarg ;;
1807
1808   -program-transform-name | --program-transform-name \
1809   | --program-transform-nam | --program-transform-na \
1810   | --program-transform-n | --program-transform- \
1811   | --program-transform | --program-transfor \
1812   | --program-transfo | --program-transf \
1813   | --program-trans | --program-tran \
1814   | --progr-tra | --program-tr | --program-t)
1815     ac_prev=program_transform_name ;;
1816   -program-transform-name=* | --program-transform-name=* \
1817   | --program-transform-nam=* | --program-transform-na=* \
1818   | --program-transform-n=* | --program-transform-=* \
1819   | --program-transform=* | --program-transfor=* \
1820   | --program-transfo=* | --program-transf=* \
1821   | --program-trans=* | --program-tran=* \
1822   | --progr-tra=* | --program-tr=* | --program-t=*)
1823     program_transform_name=$ac_optarg ;;
1824
1825   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1826     ac_prev=pdfdir ;;
1827   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1828     pdfdir=$ac_optarg ;;
1829
1830   -psdir | --psdir | --psdi | --psd | --ps)
1831     ac_prev=psdir ;;
1832   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1833     psdir=$ac_optarg ;;
1834
1835   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836   | -silent | --silent | --silen | --sile | --sil)
1837     silent=yes ;;
1838
1839   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1840     ac_prev=sbindir ;;
1841   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1842   | --sbi=* | --sb=*)
1843     sbindir=$ac_optarg ;;
1844
1845   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1846   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1847   | --sharedst | --shareds | --shared | --share | --shar \
1848   | --sha | --sh)
1849     ac_prev=sharedstatedir ;;
1850   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1851   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1852   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1853   | --sha=* | --sh=*)
1854     sharedstatedir=$ac_optarg ;;
1855
1856   -site | --site | --sit)
1857     ac_prev=site ;;
1858   -site=* | --site=* | --sit=*)
1859     site=$ac_optarg ;;
1860
1861   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1862     ac_prev=srcdir ;;
1863   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1864     srcdir=$ac_optarg ;;
1865
1866   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1867   | --syscon | --sysco | --sysc | --sys | --sy)
1868     ac_prev=sysconfdir ;;
1869   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1870   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1871     sysconfdir=$ac_optarg ;;
1872
1873   -target | --target | --targe | --targ | --tar | --ta | --t)
1874     ac_prev=target_alias ;;
1875   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1876     target_alias=$ac_optarg ;;
1877
1878   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1879     verbose=yes ;;
1880
1881   -version | --version | --versio | --versi | --vers | -V)
1882     ac_init_version=: ;;
1883
1884   -with-* | --with-*)
1885     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1886     # Reject names that are not valid shell variable names.
1887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1888       as_fn_error $? "invalid package name: $ac_useropt"
1889     ac_useropt_orig=$ac_useropt
1890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1891     case $ac_user_opts in
1892       *"
1893 "with_$ac_useropt"
1894 "*) ;;
1895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1896          ac_unrecognized_sep=', ';;
1897     esac
1898     eval with_$ac_useropt=\$ac_optarg ;;
1899
1900   -without-* | --without-*)
1901     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1902     # Reject names that are not valid shell variable names.
1903     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1904       as_fn_error $? "invalid package name: $ac_useropt"
1905     ac_useropt_orig=$ac_useropt
1906     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1907     case $ac_user_opts in
1908       *"
1909 "with_$ac_useropt"
1910 "*) ;;
1911       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1912          ac_unrecognized_sep=', ';;
1913     esac
1914     eval with_$ac_useropt=no ;;
1915
1916   --x)
1917     # Obsolete; use --with-x.
1918     with_x=yes ;;
1919
1920   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1921   | --x-incl | --x-inc | --x-in | --x-i)
1922     ac_prev=x_includes ;;
1923   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1924   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1925     x_includes=$ac_optarg ;;
1926
1927   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1928   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1929     ac_prev=x_libraries ;;
1930   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1931   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1932     x_libraries=$ac_optarg ;;
1933
1934   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1935 Try \`$0 --help' for more information"
1936     ;;
1937
1938   *=*)
1939     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1940     # Reject names that are not valid shell variable names.
1941     case $ac_envvar in #(
1942       '' | [0-9]* | *[!_$as_cr_alnum]* )
1943       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1944     esac
1945     eval $ac_envvar=\$ac_optarg
1946     export $ac_envvar ;;
1947
1948   *)
1949     # FIXME: should be removed in autoconf 3.0.
1950     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1951     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1952       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1953     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1954     ;;
1955
1956   esac
1957 done
1958
1959 if test -n "$ac_prev"; then
1960   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1961   as_fn_error $? "missing argument to $ac_option"
1962 fi
1963
1964 if test -n "$ac_unrecognized_opts"; then
1965   case $enable_option_checking in
1966     no) ;;
1967     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1968     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1969   esac
1970 fi
1971
1972 # Check all directory arguments for consistency.
1973 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1974                 datadir sysconfdir sharedstatedir localstatedir includedir \
1975                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1976                 libdir localedir mandir
1977 do
1978   eval ac_val=\$$ac_var
1979   # Remove trailing slashes.
1980   case $ac_val in
1981     */ )
1982       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1983       eval $ac_var=\$ac_val;;
1984   esac
1985   # Be sure to have absolute directory names.
1986   case $ac_val in
1987     [\\/$]* | ?:[\\/]* )  continue;;
1988     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1989   esac
1990   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1991 done
1992
1993 # There might be people who depend on the old broken behavior: `$host'
1994 # used to hold the argument of --host etc.
1995 # FIXME: To remove some day.
1996 build=$build_alias
1997 host=$host_alias
1998 target=$target_alias
1999
2000 # FIXME: To remove some day.
2001 if test "x$host_alias" != x; then
2002   if test "x$build_alias" = x; then
2003     cross_compiling=maybe
2004   elif test "x$build_alias" != "x$host_alias"; then
2005     cross_compiling=yes
2006   fi
2007 fi
2008
2009 ac_tool_prefix=
2010 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2011
2012 test "$silent" = yes && exec 6>/dev/null
2013
2014
2015 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2016 ac_ls_di=`ls -di .` &&
2017 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018   as_fn_error $? "working directory cannot be determined"
2019 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2020   as_fn_error $? "pwd does not report name of working directory"
2021
2022
2023 # Find the source files, if location was not specified.
2024 if test -z "$srcdir"; then
2025   ac_srcdir_defaulted=yes
2026   # Try the directory containing this script, then the parent directory.
2027   ac_confdir=`$as_dirname -- "$as_myself" ||
2028 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2029          X"$as_myself" : 'X\(//\)[^/]' \| \
2030          X"$as_myself" : 'X\(//\)$' \| \
2031          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2032 $as_echo X"$as_myself" |
2033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2034             s//\1/
2035             q
2036           }
2037           /^X\(\/\/\)[^/].*/{
2038             s//\1/
2039             q
2040           }
2041           /^X\(\/\/\)$/{
2042             s//\1/
2043             q
2044           }
2045           /^X\(\/\).*/{
2046             s//\1/
2047             q
2048           }
2049           s/.*/./; q'`
2050   srcdir=$ac_confdir
2051   if test ! -r "$srcdir/$ac_unique_file"; then
2052     srcdir=..
2053   fi
2054 else
2055   ac_srcdir_defaulted=no
2056 fi
2057 if test ! -r "$srcdir/$ac_unique_file"; then
2058   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2059   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2060 fi
2061 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2062 ac_abs_confdir=`(
2063         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2064         pwd)`
2065 # When building in place, set srcdir=.
2066 if test "$ac_abs_confdir" = "$ac_pwd"; then
2067   srcdir=.
2068 fi
2069 # Remove unnecessary trailing slashes from srcdir.
2070 # Double slashes in file names in object file debugging info
2071 # mess up M-x gdb in Emacs.
2072 case $srcdir in
2073 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2074 esac
2075 for ac_var in $ac_precious_vars; do
2076   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2077   eval ac_env_${ac_var}_value=\$${ac_var}
2078   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2079   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2080 done
2081
2082 #
2083 # Report the --help message.
2084 #
2085 if test "$ac_init_help" = "long"; then
2086   # Omit some internal or obsolete options to make the list less imposing.
2087   # This message is too long to be a string in the A/UX 3.1 sh.
2088   cat <<_ACEOF
2089 \`configure' configures GNU Troff 1.22.4 to adapt to many kinds of systems.
2090
2091 Usage: $0 [OPTION]... [VAR=VALUE]...
2092
2093 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2094 VAR=VALUE.  See below for descriptions of some of the useful variables.
2095
2096 Defaults for the options are specified in brackets.
2097
2098 Configuration:
2099   -h, --help              display this help and exit
2100       --help=short        display options specific to this package
2101       --help=recursive    display the short help of all the included packages
2102   -V, --version           display version information and exit
2103   -q, --quiet, --silent   do not print \`checking ...' messages
2104       --cache-file=FILE   cache test results in FILE [disabled]
2105   -C, --config-cache      alias for \`--cache-file=config.cache'
2106   -n, --no-create         do not create output files
2107       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2108
2109 Installation directories:
2110   --prefix=PREFIX         install architecture-independent files in PREFIX
2111                           [$ac_default_prefix]
2112   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2113                           [PREFIX]
2114
2115 By default, \`make install' will install all the files in
2116 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2117 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2118 for instance \`--prefix=\$HOME'.
2119
2120 For better control, use the options below.
2121
2122 Fine tuning of the installation directories:
2123   --bindir=DIR            user executables [EPREFIX/bin]
2124   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2125   --libexecdir=DIR        program executables [EPREFIX/libexec]
2126   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2127   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2128   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2129   --libdir=DIR            object code libraries [EPREFIX/lib]
2130   --includedir=DIR        C header files [PREFIX/include]
2131   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2132   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2133   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2134   --infodir=DIR           info documentation [DATAROOTDIR/info]
2135   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2136   --mandir=DIR            man documentation [DATAROOTDIR/man]
2137   --docdir=DIR            documentation root [DATAROOTDIR/doc/groff]
2138   --htmldir=DIR           html documentation [DOCDIR]
2139   --dvidir=DIR            dvi documentation [DOCDIR]
2140   --pdfdir=DIR            pdf documentation [DOCDIR]
2141   --psdir=DIR             ps documentation [DOCDIR]
2142 _ACEOF
2143
2144   cat <<\_ACEOF
2145
2146 Program names:
2147   --program-prefix=PREFIX            prepend PREFIX to installed program names
2148   --program-suffix=SUFFIX            append SUFFIX to installed program names
2149   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2150
2151 X features:
2152   --x-includes=DIR    X include files are in DIR
2153   --x-libraries=DIR   X library files are in DIR
2154
2155 System types:
2156   --build=BUILD     configure for building on BUILD [guessed]
2157   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2158 _ACEOF
2159 fi
2160
2161 if test -n "$ac_init_help"; then
2162   case $ac_init_help in
2163      short | recursive ) echo "Configuration of GNU Troff 1.22.4:";;
2164    esac
2165   cat <<\_ACEOF
2166
2167 Optional Features:
2168   --disable-option-checking  ignore unrecognized --enable/--with options
2169   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2170   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2171   --enable-dependency-tracking
2172                           do not reject slow dependency extractors
2173   --disable-dependency-tracking
2174                           speeds up one-time build
2175   --enable-silent-rules   less verbose build output (undo: "make V=1")
2176   --disable-silent-rules  verbose build output (undo: "make V=0")
2177   --disable-rpath         do not hardcode runtime library paths
2178
2179 Optional Packages:
2180   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2181   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2182   --with-x                use the X Window System
2183   --with-appresdir=DIR    X11 application resource files
2184   --with-grofferdir=DIR   groffer files location
2185   --with-doc[=TYPE]       choose which manuals (beside man pages) are
2186                           desirable. TYPE can be 'yes' or 'no', or a
2187                           comma-separated list of one or multiple of 'html',
2188                           'info', 'other', 'pdf', and 'examples', to restrict
2189                           what is produced
2190   --with-uchardet         Build 'preconv' with uchardet library for file
2191                           encoding automatic detection [=auto|no|yes]
2192   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2193   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2194   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2195   --with-urw-fonts-dir=DIR
2196                           Search for URW fonts in this directory
2197   --with-compatibility-wrappers[=VALUE]
2198                           choose whether and how groff compatibility wrappers
2199                           for vendor-provided non-GNU macro sets are
2200                           installed. VALUE can be 'check', 'yes', 'no' or
2201                           'manual'. 'check' (the default) checks for the
2202                           existence of vendor-provided non-GNU macro sets, and
2203                           implements the 'yes' or 'no' option accordingly.
2204                           'yes' generates compatibility wrappers for
2205                           vendor-provided non-GNU macro sets to allow their
2206                           use with groff-based tools. The compatibility
2207                           wrappers are installed with the original macro set
2208                           name, while groff implementation of these macro sets
2209                           are installed with a 'g' prefix. Thus use of the
2210                           groff implementation of these macro sets requires
2211                           use of the '-mg<macro>' option (example: -mgan).
2212                           'no' only installs the groff implementation of macro
2213                           sets. 'manual' generates compatibility wrappers for
2214                           vendor-provided non-GNU macro sets as '<macro>-os'.
2215                           Use of these groff compatibility wrappers (for
2216                           vendor-provided non-GNU macro sets) requires the use
2217                           of the '-m<macro>-os' option (example: -man-os).
2218   --with-alt-gs=LIST      alternative names for ghostscript executable
2219   --with-gs=PROG          actual [/path/]name of ghostscript executable
2220   --with-alt-awk=LIST     alternative names for awk executable
2221   --with-awk=PROG         actual [/path/]name of awk executable
2222
2223 Some influential environment variables:
2224   CC          C compiler command
2225   CFLAGS      C compiler flags
2226   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2227               nonstandard directory <lib dir>
2228   LIBS        libraries to pass to the linker, e.g. -l<library>
2229   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2230               you have headers in a nonstandard directory <include dir>
2231   CPP         C preprocessor
2232   CXX         C++ compiler command
2233   CXXFLAGS    C++ compiler flags
2234   XMKMF       Path to xmkmf, Makefile generator for X Window System
2235   PKG_CONFIG  path to pkg-config utility
2236   PKG_CONFIG_PATH
2237               directories to add to pkg-config's search path
2238   PKG_CONFIG_LIBDIR
2239               path overriding pkg-config's built-in search path
2240   UCHARDET_CFLAGS
2241               C compiler flags for UCHARDET, overriding pkg-config
2242   UCHARDET_LIBS
2243               linker flags for UCHARDET, overriding pkg-config
2244   CXXCPP      C++ preprocessor
2245
2246 Use these variables to override the choices made by `configure' or to help
2247 it to find libraries and programs with nonstandard names/locations.
2248
2249 Report bugs to <http://savannah.gnu.org/bugs/?group=groff>.
2250 GNU Troff home page: <http://www.gnu.org/software/groff/>.
2251 General help using GNU software: <http://www.gnu.org/gethelp/>.
2252 _ACEOF
2253 ac_status=$?
2254 fi
2255
2256 if test "$ac_init_help" = "recursive"; then
2257   # If there are subdirs, report their specific --help.
2258   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2259     test -d "$ac_dir" ||
2260       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2261       continue
2262     ac_builddir=.
2263
2264 case "$ac_dir" in
2265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2266 *)
2267   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2268   # A ".." for each directory in $ac_dir_suffix.
2269   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2270   case $ac_top_builddir_sub in
2271   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2272   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2273   esac ;;
2274 esac
2275 ac_abs_top_builddir=$ac_pwd
2276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2277 # for backward compatibility:
2278 ac_top_builddir=$ac_top_build_prefix
2279
2280 case $srcdir in
2281   .)  # We are building in place.
2282     ac_srcdir=.
2283     ac_top_srcdir=$ac_top_builddir_sub
2284     ac_abs_top_srcdir=$ac_pwd ;;
2285   [\\/]* | ?:[\\/]* )  # Absolute name.
2286     ac_srcdir=$srcdir$ac_dir_suffix;
2287     ac_top_srcdir=$srcdir
2288     ac_abs_top_srcdir=$srcdir ;;
2289   *) # Relative name.
2290     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2291     ac_top_srcdir=$ac_top_build_prefix$srcdir
2292     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2293 esac
2294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2295
2296     cd "$ac_dir" || { ac_status=$?; continue; }
2297     # Check for guested configure.
2298     if test -f "$ac_srcdir/configure.gnu"; then
2299       echo &&
2300       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2301     elif test -f "$ac_srcdir/configure"; then
2302       echo &&
2303       $SHELL "$ac_srcdir/configure" --help=recursive
2304     else
2305       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2306     fi || ac_status=$?
2307     cd "$ac_pwd" || { ac_status=$?; break; }
2308   done
2309 fi
2310
2311 test -n "$ac_init_help" && exit $ac_status
2312 if $ac_init_version; then
2313   cat <<\_ACEOF
2314 GNU Troff configure 1.22.4
2315 generated by GNU Autoconf 2.69
2316
2317 Copyright (C) 2012 Free Software Foundation, Inc.
2318 This configure script is free software; the Free Software Foundation
2319 gives unlimited permission to copy, distribute and modify it.
2320 _ACEOF
2321   exit
2322 fi
2323
2324 ## ------------------------ ##
2325 ## Autoconf initialization. ##
2326 ## ------------------------ ##
2327
2328 # ac_fn_c_try_compile LINENO
2329 # --------------------------
2330 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2331 ac_fn_c_try_compile ()
2332 {
2333   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334   rm -f conftest.$ac_objext
2335   if { { ac_try="$ac_compile"
2336 case "(($ac_try" in
2337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338   *) ac_try_echo=$ac_try;;
2339 esac
2340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341 $as_echo "$ac_try_echo"; } >&5
2342   (eval "$ac_compile") 2>conftest.err
2343   ac_status=$?
2344   if test -s conftest.err; then
2345     grep -v '^ *+' conftest.err >conftest.er1
2346     cat conftest.er1 >&5
2347     mv -f conftest.er1 conftest.err
2348   fi
2349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2350   test $ac_status = 0; } && {
2351          test -z "$ac_c_werror_flag" ||
2352          test ! -s conftest.err
2353        } && test -s conftest.$ac_objext; then :
2354   ac_retval=0
2355 else
2356   $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359         ac_retval=1
2360 fi
2361   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362   as_fn_set_status $ac_retval
2363
2364 } # ac_fn_c_try_compile
2365
2366 # ac_fn_c_try_cpp LINENO
2367 # ----------------------
2368 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2369 ac_fn_c_try_cpp ()
2370 {
2371   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372   if { { ac_try="$ac_cpp conftest.$ac_ext"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2380   ac_status=$?
2381   if test -s conftest.err; then
2382     grep -v '^ *+' conftest.err >conftest.er1
2383     cat conftest.er1 >&5
2384     mv -f conftest.er1 conftest.err
2385   fi
2386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387   test $ac_status = 0; } > conftest.i && {
2388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2389          test ! -s conftest.err
2390        }; then :
2391   ac_retval=0
2392 else
2393   $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396     ac_retval=1
2397 fi
2398   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399   as_fn_set_status $ac_retval
2400
2401 } # ac_fn_c_try_cpp
2402
2403 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2404 # -------------------------------------------------------
2405 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2406 # the include files in INCLUDES and setting the cache variable VAR
2407 # accordingly.
2408 ac_fn_c_check_header_mongrel ()
2409 {
2410   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411   if eval \${$3+:} false; then :
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if eval \${$3+:} false; then :
2415   $as_echo_n "(cached) " >&6
2416 fi
2417 eval ac_res=\$$3
2418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 else
2421   # Is the header compilable?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2423 $as_echo_n "checking $2 usability... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 $4
2427 #include <$2>
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430   ac_header_compiler=yes
2431 else
2432   ac_header_compiler=no
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2436 $as_echo "$ac_header_compiler" >&6; }
2437
2438 # Is the header present?
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2440 $as_echo_n "checking $2 presence... " >&6; }
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h.  */
2443 #include <$2>
2444 _ACEOF
2445 if ac_fn_c_try_cpp "$LINENO"; then :
2446   ac_header_preproc=yes
2447 else
2448   ac_header_preproc=no
2449 fi
2450 rm -f conftest.err conftest.i conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2452 $as_echo "$ac_header_preproc" >&6; }
2453
2454 # So?  What about this header?
2455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2456   yes:no: )
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2458 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461     ;;
2462   no:yes:* )
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2464 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2466 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2468 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2470 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473 ( $as_echo "## -------------------------------------------------------- ##
2474 ## Report this to http://savannah.gnu.org/bugs/?group=groff ##
2475 ## -------------------------------------------------------- ##"
2476      ) | sed "s/^/$as_me: WARNING:     /" >&2
2477     ;;
2478 esac
2479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if eval \${$3+:} false; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   eval "$3=\$ac_header_compiler"
2485 fi
2486 eval ac_res=\$$3
2487                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 fi
2490   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492 } # ac_fn_c_check_header_mongrel
2493
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2497 # that executables *can* be run.
2498 ac_fn_c_try_run ()
2499 {
2500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501   if { { ac_try="$ac_link"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508   (eval "$ac_link") 2>&5
2509   ac_status=$?
2510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512   { { case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518   (eval "$ac_try") 2>&5
2519   ac_status=$?
2520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521   test $ac_status = 0; }; }; then :
2522   ac_retval=0
2523 else
2524   $as_echo "$as_me: program exited with status $ac_status" >&5
2525        $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528        ac_retval=$ac_status
2529 fi
2530   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2531   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532   as_fn_set_status $ac_retval
2533
2534 } # ac_fn_c_try_run
2535
2536 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2537 # -------------------------------------------------------
2538 # Tests whether HEADER exists and can be compiled using the include files in
2539 # INCLUDES, setting the cache variable VAR accordingly.
2540 ac_fn_c_check_header_compile ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h.  */
2550 $4
2551 #include <$2>
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554   eval "$3=yes"
2555 else
2556   eval "$3=no"
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 fi
2560 eval ac_res=\$$3
2561                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564
2565 } # ac_fn_c_check_header_compile
2566
2567 # ac_fn_cxx_try_compile LINENO
2568 # ----------------------------
2569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_cxx_try_compile ()
2571 {
2572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573   rm -f conftest.$ac_objext
2574   if { { ac_try="$ac_compile"
2575 case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581   (eval "$ac_compile") 2>conftest.err
2582   ac_status=$?
2583   if test -s conftest.err; then
2584     grep -v '^ *+' conftest.err >conftest.er1
2585     cat conftest.er1 >&5
2586     mv -f conftest.er1 conftest.err
2587   fi
2588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589   test $ac_status = 0; } && {
2590          test -z "$ac_cxx_werror_flag" ||
2591          test ! -s conftest.err
2592        } && test -s conftest.$ac_objext; then :
2593   ac_retval=0
2594 else
2595   $as_echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598         ac_retval=1
2599 fi
2600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2601   as_fn_set_status $ac_retval
2602
2603 } # ac_fn_cxx_try_compile
2604
2605 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2606 # -------------------------------------------
2607 # Tests whether TYPE exists after having included INCLUDES, setting cache
2608 # variable VAR accordingly.
2609 ac_fn_c_check_type ()
2610 {
2611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if eval \${$3+:} false; then :
2615   $as_echo_n "(cached) " >&6
2616 else
2617   eval "$3=no"
2618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h.  */
2620 $4
2621 int
2622 main ()
2623 {
2624 if (sizeof ($2))
2625          return 0;
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h.  */
2633 $4
2634 int
2635 main ()
2636 {
2637 if (sizeof (($2)))
2638             return 0;
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644
2645 else
2646   eval "$3=yes"
2647 fi
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2652 eval ac_res=\$$3
2653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656
2657 } # ac_fn_c_check_type
2658
2659 # ac_fn_c_try_link LINENO
2660 # -----------------------
2661 # Try to link conftest.$ac_ext, and return whether this succeeded.
2662 ac_fn_c_try_link ()
2663 {
2664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665   rm -f conftest.$ac_objext conftest$ac_exeext
2666   if { { ac_try="$ac_link"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673   (eval "$ac_link") 2>conftest.err
2674   ac_status=$?
2675   if test -s conftest.err; then
2676     grep -v '^ *+' conftest.err >conftest.er1
2677     cat conftest.er1 >&5
2678     mv -f conftest.er1 conftest.err
2679   fi
2680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681   test $ac_status = 0; } && {
2682          test -z "$ac_c_werror_flag" ||
2683          test ! -s conftest.err
2684        } && test -s conftest$ac_exeext && {
2685          test "$cross_compiling" = yes ||
2686          test -x conftest$ac_exeext
2687        }; then :
2688   ac_retval=0
2689 else
2690   $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693         ac_retval=1
2694 fi
2695   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2696   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2697   # interfere with the next link command; also delete a directory that is
2698   # left behind by Apple's compiler.  We do this before executing the actions.
2699   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701   as_fn_set_status $ac_retval
2702
2703 } # ac_fn_c_try_link
2704
2705 # ac_fn_c_check_func LINENO FUNC VAR
2706 # ----------------------------------
2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2708 ac_fn_c_check_func ()
2709 {
2710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2712 $as_echo_n "checking for $2... " >&6; }
2713 if eval \${$3+:} false; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h.  */
2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2720 #define $2 innocuous_$2
2721
2722 /* System header to define __stub macros and hopefully few prototypes,
2723     which can conflict with char $2 (); below.
2724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725     <limits.h> exists even on freestanding compilers.  */
2726
2727 #ifdef __STDC__
2728 # include <limits.h>
2729 #else
2730 # include <assert.h>
2731 #endif
2732
2733 #undef $2
2734
2735 /* Override any GCC internal prototype to avoid an error.
2736    Use char because int might match the return type of a GCC
2737    builtin and then its argument prototype would still apply.  */
2738 #ifdef __cplusplus
2739 extern "C"
2740 #endif
2741 char $2 ();
2742 /* The GNU C library defines this for functions which it implements
2743     to always fail with ENOSYS.  Some functions are actually named
2744     something starting with __ and the normal name is an alias.  */
2745 #if defined __stub_$2 || defined __stub___$2
2746 choke me
2747 #endif
2748
2749 int
2750 main ()
2751 {
2752 return $2 ();
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_link "$LINENO"; then :
2758   eval "$3=yes"
2759 else
2760   eval "$3=no"
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext \
2763     conftest$ac_exeext conftest.$ac_ext
2764 fi
2765 eval ac_res=\$$3
2766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2769
2770 } # ac_fn_c_check_func
2771
2772 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2773 # --------------------------------------------
2774 # Tries to find the compile-time value of EXPR in a program that includes
2775 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2776 # computed
2777 ac_fn_c_compute_int ()
2778 {
2779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2780   if test "$cross_compiling" = yes; then
2781     # Depending upon the size, compute the lo and hi bounds.
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h.  */
2784 $4
2785 int
2786 main ()
2787 {
2788 static int test_array [1 - 2 * !(($2) >= 0)];
2789 test_array [0] = 0;
2790 return test_array [0];
2791
2792   ;
2793   return 0;
2794 }
2795 _ACEOF
2796 if ac_fn_c_try_compile "$LINENO"; then :
2797   ac_lo=0 ac_mid=0
2798   while :; do
2799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h.  */
2801 $4
2802 int
2803 main ()
2804 {
2805 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2806 test_array [0] = 0;
2807 return test_array [0];
2808
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814   ac_hi=$ac_mid; break
2815 else
2816   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2817                         if test $ac_lo -le $ac_mid; then
2818                           ac_lo= ac_hi=
2819                           break
2820                         fi
2821                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824   done
2825 else
2826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h.  */
2828 $4
2829 int
2830 main ()
2831 {
2832 static int test_array [1 - 2 * !(($2) < 0)];
2833 test_array [0] = 0;
2834 return test_array [0];
2835
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 if ac_fn_c_try_compile "$LINENO"; then :
2841   ac_hi=-1 ac_mid=-1
2842   while :; do
2843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h.  */
2845 $4
2846 int
2847 main ()
2848 {
2849 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2850 test_array [0] = 0;
2851 return test_array [0];
2852
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 if ac_fn_c_try_compile "$LINENO"; then :
2858   ac_lo=$ac_mid; break
2859 else
2860   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2861                         if test $ac_mid -le $ac_hi; then
2862                           ac_lo= ac_hi=
2863                           break
2864                         fi
2865                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868   done
2869 else
2870   ac_lo= ac_hi=
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 fi
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 # Binary search between lo and hi bounds.
2876 while test "x$ac_lo" != "x$ac_hi"; do
2877   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h.  */
2880 $4
2881 int
2882 main ()
2883 {
2884 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2885 test_array [0] = 0;
2886 return test_array [0];
2887
2888   ;
2889   return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893   ac_hi=$ac_mid
2894 else
2895   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 done
2899 case $ac_lo in #((
2900 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2901 '') ac_retval=1 ;;
2902 esac
2903   else
2904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h.  */
2906 $4
2907 static long int longval () { return $2; }
2908 static unsigned long int ulongval () { return $2; }
2909 #include <stdio.h>
2910 #include <stdlib.h>
2911 int
2912 main ()
2913 {
2914
2915   FILE *f = fopen ("conftest.val", "w");
2916   if (! f)
2917     return 1;
2918   if (($2) < 0)
2919     {
2920       long int i = longval ();
2921       if (i != ($2))
2922         return 1;
2923       fprintf (f, "%ld", i);
2924     }
2925   else
2926     {
2927       unsigned long int i = ulongval ();
2928       if (i != ($2))
2929         return 1;
2930       fprintf (f, "%lu", i);
2931     }
2932   /* Do not output a trailing newline, as this causes \r\n confusion
2933      on some platforms.  */
2934   return ferror (f) || fclose (f) != 0;
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 if ac_fn_c_try_run "$LINENO"; then :
2941   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2942 else
2943   ac_retval=1
2944 fi
2945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2946   conftest.$ac_objext conftest.beam conftest.$ac_ext
2947 rm -f conftest.val
2948
2949   fi
2950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2951   as_fn_set_status $ac_retval
2952
2953 } # ac_fn_c_compute_int
2954
2955 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2956 # ---------------------------------------------
2957 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2958 # accordingly.
2959 ac_fn_c_check_decl ()
2960 {
2961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962   as_decl_name=`echo $2|sed 's/ *(.*//'`
2963   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2965 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2966 if eval \${$3+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h.  */
2971 $4
2972 int
2973 main ()
2974 {
2975 #ifndef $as_decl_name
2976 #ifdef __cplusplus
2977   (void) $as_decl_use;
2978 #else
2979   (void) $as_decl_name;
2980 #endif
2981 #endif
2982
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 if ac_fn_c_try_compile "$LINENO"; then :
2988   eval "$3=yes"
2989 else
2990   eval "$3=no"
2991 fi
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 fi
2994 eval ac_res=\$$3
2995                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2996 $as_echo "$ac_res" >&6; }
2997   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2998
2999 } # ac_fn_c_check_decl
3000
3001 # ac_fn_cxx_try_run LINENO
3002 # ------------------------
3003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3004 # that executables *can* be run.
3005 ac_fn_cxx_try_run ()
3006 {
3007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3008   if { { ac_try="$ac_link"
3009 case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015   (eval "$ac_link") 2>&5
3016   ac_status=$?
3017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3019   { { case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028   test $ac_status = 0; }; }; then :
3029   ac_retval=0
3030 else
3031   $as_echo "$as_me: program exited with status $ac_status" >&5
3032        $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035        ac_retval=$ac_status
3036 fi
3037   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3039   as_fn_set_status $ac_retval
3040
3041 } # ac_fn_cxx_try_run
3042
3043 # ac_fn_cxx_try_link LINENO
3044 # -------------------------
3045 # Try to link conftest.$ac_ext, and return whether this succeeded.
3046 ac_fn_cxx_try_link ()
3047 {
3048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3049   rm -f conftest.$ac_objext conftest$ac_exeext
3050   if { { ac_try="$ac_link"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057   (eval "$ac_link") 2>conftest.err
3058   ac_status=$?
3059   if test -s conftest.err; then
3060     grep -v '^ *+' conftest.err >conftest.er1
3061     cat conftest.er1 >&5
3062     mv -f conftest.er1 conftest.err
3063   fi
3064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065   test $ac_status = 0; } && {
3066          test -z "$ac_cxx_werror_flag" ||
3067          test ! -s conftest.err
3068        } && test -s conftest$ac_exeext && {
3069          test "$cross_compiling" = yes ||
3070          test -x conftest$ac_exeext
3071        }; then :
3072   ac_retval=0
3073 else
3074   $as_echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_retval=1
3078 fi
3079   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3080   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3081   # interfere with the next link command; also delete a directory that is
3082   # left behind by Apple's compiler.  We do this before executing the actions.
3083   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3084   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3085   as_fn_set_status $ac_retval
3086
3087 } # ac_fn_cxx_try_link
3088
3089 # ac_fn_cxx_try_cpp LINENO
3090 # ------------------------
3091 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3092 ac_fn_cxx_try_cpp ()
3093 {
3094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3095   if { { ac_try="$ac_cpp conftest.$ac_ext"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3103   ac_status=$?
3104   if test -s conftest.err; then
3105     grep -v '^ *+' conftest.err >conftest.er1
3106     cat conftest.er1 >&5
3107     mv -f conftest.er1 conftest.err
3108   fi
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; } > conftest.i && {
3111          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3112          test ! -s conftest.err
3113        }; then :
3114   ac_retval=0
3115 else
3116   $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119     ac_retval=1
3120 fi
3121   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3122   as_fn_set_status $ac_retval
3123
3124 } # ac_fn_cxx_try_cpp
3125 cat >config.log <<_ACEOF
3126 This file contains any messages produced by compilers while
3127 running configure, to aid debugging if configure makes a mistake.
3128
3129 It was created by GNU Troff $as_me 1.22.4, which was
3130 generated by GNU Autoconf 2.69.  Invocation command line was
3131
3132   $ $0 $@
3133
3134 _ACEOF
3135 exec 5>>config.log
3136 {
3137 cat <<_ASUNAME
3138 ## --------- ##
3139 ## Platform. ##
3140 ## --------- ##
3141
3142 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3143 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3144 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3145 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3146 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3147
3148 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3149 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3150
3151 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3152 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3153 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3154 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3155 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3156 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3157 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3158
3159 _ASUNAME
3160
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     $as_echo "PATH: $as_dir"
3167   done
3168 IFS=$as_save_IFS
3169
3170 } >&5
3171
3172 cat >&5 <<_ACEOF
3173
3174
3175 ## ----------- ##
3176 ## Core tests. ##
3177 ## ----------- ##
3178
3179 _ACEOF
3180
3181
3182 # Keep a trace of the command line.
3183 # Strip out --no-create and --no-recursion so they do not pile up.
3184 # Strip out --silent because we don't want to record it for future runs.
3185 # Also quote any args containing shell meta-characters.
3186 # Make two passes to allow for proper duplicate-argument suppression.
3187 ac_configure_args=
3188 ac_configure_args0=
3189 ac_configure_args1=
3190 ac_must_keep_next=false
3191 for ac_pass in 1 2
3192 do
3193   for ac_arg
3194   do
3195     case $ac_arg in
3196     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3197     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3198     | -silent | --silent | --silen | --sile | --sil)
3199       continue ;;
3200     *\'*)
3201       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3202     esac
3203     case $ac_pass in
3204     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3205     2)
3206       as_fn_append ac_configure_args1 " '$ac_arg'"
3207       if test $ac_must_keep_next = true; then
3208         ac_must_keep_next=false # Got value, back to normal.
3209       else
3210         case $ac_arg in
3211           *=* | --config-cache | -C | -disable-* | --disable-* \
3212           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3213           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3214           | -with-* | --with-* | -without-* | --without-* | --x)
3215             case "$ac_configure_args0 " in
3216               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3217             esac
3218             ;;
3219           -* ) ac_must_keep_next=true ;;
3220         esac
3221       fi
3222       as_fn_append ac_configure_args " '$ac_arg'"
3223       ;;
3224     esac
3225   done
3226 done
3227 { ac_configure_args0=; unset ac_configure_args0;}
3228 { ac_configure_args1=; unset ac_configure_args1;}
3229
3230 # When interrupted or exit'd, cleanup temporary files, and complete
3231 # config.log.  We remove comments because anyway the quotes in there
3232 # would cause problems or look ugly.
3233 # WARNING: Use '\'' to represent an apostrophe within the trap.
3234 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3235 trap 'exit_status=$?
3236   # Save into config.log some information that might help in debugging.
3237   {
3238     echo
3239
3240     $as_echo "## ---------------- ##
3241 ## Cache variables. ##
3242 ## ---------------- ##"
3243     echo
3244     # The following way of writing the cache mishandles newlines in values,
3245 (
3246   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3247     eval ac_val=\$$ac_var
3248     case $ac_val in #(
3249     *${as_nl}*)
3250       case $ac_var in #(
3251       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3253       esac
3254       case $ac_var in #(
3255       _ | IFS | as_nl) ;; #(
3256       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3257       *) { eval $ac_var=; unset $ac_var;} ;;
3258       esac ;;
3259     esac
3260   done
3261   (set) 2>&1 |
3262     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3263     *${as_nl}ac_space=\ *)
3264       sed -n \
3265         "s/'\''/'\''\\\\'\'''\''/g;
3266           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3267       ;; #(
3268     *)
3269       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3270       ;;
3271     esac |
3272     sort
3273 )
3274     echo
3275
3276     $as_echo "## ----------------- ##
3277 ## Output variables. ##
3278 ## ----------------- ##"
3279     echo
3280     for ac_var in $ac_subst_vars
3281     do
3282       eval ac_val=\$$ac_var
3283       case $ac_val in
3284       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3285       esac
3286       $as_echo "$ac_var='\''$ac_val'\''"
3287     done | sort
3288     echo
3289
3290     if test -n "$ac_subst_files"; then
3291       $as_echo "## ------------------- ##
3292 ## File substitutions. ##
3293 ## ------------------- ##"
3294       echo
3295       for ac_var in $ac_subst_files
3296       do
3297         eval ac_val=\$$ac_var
3298         case $ac_val in
3299         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3300         esac
3301         $as_echo "$ac_var='\''$ac_val'\''"
3302       done | sort
3303       echo
3304     fi
3305
3306     if test -s confdefs.h; then
3307       $as_echo "## ----------- ##
3308 ## confdefs.h. ##
3309 ## ----------- ##"
3310       echo
3311       cat confdefs.h
3312       echo
3313     fi
3314     test "$ac_signal" != 0 &&
3315       $as_echo "$as_me: caught signal $ac_signal"
3316     $as_echo "$as_me: exit $exit_status"
3317   } >&5
3318   rm -f core *.core core.conftest.* &&
3319     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3320     exit $exit_status
3321 ' 0
3322 for ac_signal in 1 2 13 15; do
3323   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3324 done
3325 ac_signal=0
3326
3327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3328 rm -f -r conftest* confdefs.h
3329
3330 $as_echo "/* confdefs.h */" > confdefs.h
3331
3332 # Predefined preprocessor variables.
3333
3334 cat >>confdefs.h <<_ACEOF
3335 #define PACKAGE_NAME "$PACKAGE_NAME"
3336 _ACEOF
3337
3338 cat >>confdefs.h <<_ACEOF
3339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3340 _ACEOF
3341
3342 cat >>confdefs.h <<_ACEOF
3343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3344 _ACEOF
3345
3346 cat >>confdefs.h <<_ACEOF
3347 #define PACKAGE_STRING "$PACKAGE_STRING"
3348 _ACEOF
3349
3350 cat >>confdefs.h <<_ACEOF
3351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3352 _ACEOF
3353
3354 cat >>confdefs.h <<_ACEOF
3355 #define PACKAGE_URL "$PACKAGE_URL"
3356 _ACEOF
3357
3358
3359 # Let the site file select an alternate cache file if it wants to.
3360 # Prefer an explicitly selected file to automatically selected ones.
3361 ac_site_file1=NONE
3362 ac_site_file2=NONE
3363 if test -n "$CONFIG_SITE"; then
3364   # We do not want a PATH search for config.site.
3365   case $CONFIG_SITE in #((
3366     -*)  ac_site_file1=./$CONFIG_SITE;;
3367     */*) ac_site_file1=$CONFIG_SITE;;
3368     *)   ac_site_file1=./$CONFIG_SITE;;
3369   esac
3370 elif test "x$prefix" != xNONE; then
3371   ac_site_file1=$prefix/share/config.site
3372   ac_site_file2=$prefix/etc/config.site
3373 else
3374   ac_site_file1=$ac_default_prefix/share/config.site
3375   ac_site_file2=$ac_default_prefix/etc/config.site
3376 fi
3377 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3378 do
3379   test "x$ac_site_file" = xNONE && continue
3380   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3381     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3382 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3383     sed 's/^/| /' "$ac_site_file" >&5
3384     . "$ac_site_file" \
3385       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "failed to load site script $ac_site_file
3388 See \`config.log' for more details" "$LINENO" 5; }
3389   fi
3390 done
3391
3392 if test -r "$cache_file"; then
3393   # Some versions of bash will fail to source /dev/null (special files
3394   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3395   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3396     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3397 $as_echo "$as_me: loading cache $cache_file" >&6;}
3398     case $cache_file in
3399       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3400       *)                      . "./$cache_file";;
3401     esac
3402   fi
3403 else
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3405 $as_echo "$as_me: creating cache $cache_file" >&6;}
3406   >$cache_file
3407 fi
3408
3409 as_fn_append ac_func_list " vasnprintf"
3410 as_fn_append ac_header_list " features.h"
3411 as_fn_append ac_func_list " snprintf"
3412 as_fn_append ac_func_list " __fseterr"
3413 as_fn_append ac_header_list " limits.h"
3414 as_fn_append ac_header_list " unistd.h"
3415 as_fn_append ac_func_list " symlink"
3416 as_fn_append ac_header_list " math.h"
3417 as_fn_append ac_header_list " sys/mman.h"
3418 as_fn_append ac_func_list " mprotect"
3419 gl_printf_safe=yes
3420 as_fn_append ac_header_list " wchar.h"
3421 as_fn_append ac_header_list " stdint.h"
3422 as_fn_append ac_header_list " crtdefs.h"
3423 as_fn_append ac_func_list " iswcntrl"
3424 as_fn_append ac_header_list " wctype.h"
3425 as_fn_append ac_func_list " wcwidth"
3426 as_fn_append ac_header_list " stdlib.h"
3427 as_fn_append ac_header_list " sys/param.h"
3428 # Check that the precious variables saved in the cache have kept the same
3429 # value.
3430 ac_cache_corrupted=false
3431 for ac_var in $ac_precious_vars; do
3432   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3433   eval ac_new_set=\$ac_env_${ac_var}_set
3434   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3435   eval ac_new_val=\$ac_env_${ac_var}_value
3436   case $ac_old_set,$ac_new_set in
3437     set,)
3438       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3439 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440       ac_cache_corrupted=: ;;
3441     ,set)
3442       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3443 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444       ac_cache_corrupted=: ;;
3445     ,);;
3446     *)
3447       if test "x$ac_old_val" != "x$ac_new_val"; then
3448         # differences in whitespace do not lead to failure.
3449         ac_old_val_w=`echo x $ac_old_val`
3450         ac_new_val_w=`echo x $ac_new_val`
3451         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3452           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3453 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454           ac_cache_corrupted=:
3455         else
3456           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3457 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458           eval $ac_var=\$ac_old_val
3459         fi
3460         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3461 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3462         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3463 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3464       fi;;
3465   esac
3466   # Pass precious variables to config.status.
3467   if test "$ac_new_set" = set; then
3468     case $ac_new_val in
3469     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470     *) ac_arg=$ac_var=$ac_new_val ;;
3471     esac
3472     case " $ac_configure_args " in
3473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3474       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3475     esac
3476   fi
3477 done
3478 if $ac_cache_corrupted; then
3479   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3482 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3483   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3484 fi
3485 ## -------------------- ##
3486 ## Main body of script. ##
3487 ## -------------------- ##
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495
3496
3497
3498
3499 # SHORT_VERSION contains only the number of REVISION before the first '.',
3500 # e.g. if REVISION is '3.real.434-5aafd' then SHORT_VERSION is 'x.yy.3',
3501 # where x and yy are MAJOR_VERSION and MINOR_VERSION, respectively.
3502 SHORT_VERSION=1.22.4
3503
3504
3505 # Directories where the helper scripts should be found. This must be consistent
3506 # with the variable build_aux in bootstrap.conf
3507 ac_aux_dir=
3508 for ac_dir in build-aux "$srcdir"/build-aux; do
3509   if test -f "$ac_dir/install-sh"; then
3510     ac_aux_dir=$ac_dir
3511     ac_install_sh="$ac_aux_dir/install-sh -c"
3512     break
3513   elif test -f "$ac_dir/install.sh"; then
3514     ac_aux_dir=$ac_dir
3515     ac_install_sh="$ac_aux_dir/install.sh -c"
3516     break
3517   elif test -f "$ac_dir/shtool"; then
3518     ac_aux_dir=$ac_dir
3519     ac_install_sh="$ac_aux_dir/shtool install -c"
3520     break
3521   fi
3522 done
3523 if test -z "$ac_aux_dir"; then
3524   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3525 fi
3526
3527 # These three variables are undocumented and unsupported,
3528 # and are intended to be withdrawn in a future Autoconf release.
3529 # They can cause serious problems if a builder's source tree is in a directory
3530 # whose full name contains unusual characters.
3531 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3532 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3533 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3534
3535
3536
3537 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
3538
3539
3540
3541 # Expand $ac_aux_dir to an absolute path.
3542 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 if test -n "$ac_tool_prefix"; then
3550   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3551 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_CC+:} false; then :
3555   $as_echo_n "(cached) " >&6
3556 else
3557   if test -n "$CC"; then
3558   ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565     for ac_exec_ext in '' $ac_executable_extensions; do
3566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572   done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3581 else
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 fi
3588 if test -z "$ac_cv_prog_CC"; then
3589   ac_ct_CC=$CC
3590   # Extract the first word of "gcc", so it can be a program name with args.
3591 set dummy gcc; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   if test -n "$ac_ct_CC"; then
3598   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605     for ac_exec_ext in '' $ac_executable_extensions; do
3606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_prog_ac_ct_CC="gcc"
3608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612   done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3620 $as_echo "$ac_ct_CC" >&6; }
3621 else
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626   if test "x$ac_ct_CC" = x; then
3627     CC=""
3628   else
3629     case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635     CC=$ac_ct_CC
3636   fi
3637 else
3638   CC="$ac_cv_prog_CC"
3639 fi
3640
3641 if test -z "$CC"; then
3642           if test -n "$ac_tool_prefix"; then
3643     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}cc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_CC+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   if test -n "$CC"; then
3651   ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658     for ac_exec_ext in '' $ac_executable_extensions; do
3659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660     ac_cv_prog_CC="${ac_tool_prefix}cc"
3661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662     break 2
3663   fi
3664 done
3665   done
3666 IFS=$as_save_IFS
3667
3668 fi
3669 fi
3670 CC=$ac_cv_prog_CC
3671 if test -n "$CC"; then
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3674 else
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679
3680   fi
3681 fi
3682 if test -z "$CC"; then
3683   # Extract the first word of "cc", so it can be a program name with args.
3684 set dummy cc; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_CC+:} false; then :
3688   $as_echo_n "(cached) " >&6
3689 else
3690   if test -n "$CC"; then
3691   ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693   ac_prog_rejected=no
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699     for ac_exec_ext in '' $ac_executable_extensions; do
3700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3702        ac_prog_rejected=yes
3703        continue
3704      fi
3705     ac_cv_prog_CC="cc"
3706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710   done
3711 IFS=$as_save_IFS
3712
3713 if test $ac_prog_rejected = yes; then
3714   # We found a bogon in the path, so make sure we never use it.
3715   set dummy $ac_cv_prog_CC
3716   shift
3717   if test $# != 0; then
3718     # We chose a different compiler from the bogus one.
3719     # However, it has the same basename, so the bogon will be chosen
3720     # first if we set CC to just the basename; use the full file name.
3721     shift
3722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3723   fi
3724 fi
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 fi
3738 if test -z "$CC"; then
3739   if test -n "$ac_tool_prefix"; then
3740   for ac_prog in cl.exe
3741   do
3742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_CC+:} false; then :
3747   $as_echo_n "(cached) " >&6
3748 else
3749   if test -n "$CC"; then
3750   ac_cv_prog_CC="$CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757     for ac_exec_ext in '' $ac_executable_extensions; do
3758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764   done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 CC=$ac_cv_prog_CC
3770 if test -n "$CC"; then
3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3773 else
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779     test -n "$CC" && break
3780   done
3781 fi
3782 if test -z "$CC"; then
3783   ac_ct_CC=$CC
3784   for ac_prog in cl.exe
3785 do
3786   # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   if test -n "$ac_ct_CC"; then
3794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799   IFS=$as_save_IFS
3800   test -z "$as_dir" && as_dir=.
3801     for ac_exec_ext in '' $ac_executable_extensions; do
3802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803     ac_cv_prog_ac_ct_CC="$ac_prog"
3804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805     break 2
3806   fi
3807 done
3808   done
3809 IFS=$as_save_IFS
3810
3811 fi
3812 fi
3813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814 if test -n "$ac_ct_CC"; then
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816 $as_echo "$ac_ct_CC" >&6; }
3817 else
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3820 fi
3821
3822
3823   test -n "$ac_ct_CC" && break
3824 done
3825
3826   if test "x$ac_ct_CC" = x; then
3827     CC=""
3828   else
3829     case $cross_compiling:$ac_tool_warned in
3830 yes:)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833 ac_tool_warned=yes ;;
3834 esac
3835     CC=$ac_ct_CC
3836   fi
3837 fi
3838
3839 fi
3840
3841
3842 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "no acceptable C compiler found in \$PATH
3845 See \`config.log' for more details" "$LINENO" 5; }
3846
3847 # Provide some information about the compiler.
3848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3849 set X $ac_compile
3850 ac_compiler=$2
3851 for ac_option in --version -v -V -qversion; do
3852   { { ac_try="$ac_compiler $ac_option >&5"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3860   ac_status=$?
3861   if test -s conftest.err; then
3862     sed '10a\
3863 ... rest of stderr output deleted ...
3864          10q' conftest.err >conftest.er1
3865     cat conftest.er1 >&5
3866   fi
3867   rm -f conftest.er1 conftest.err
3868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869   test $ac_status = 0; }
3870 done
3871
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 ac_clean_files_save=$ac_clean_files
3884 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3885 # Try to create an executable without -o first, disregard a.out.
3886 # It will help us diagnose broken compilers, and finding out an intuition
3887 # of exeext.
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3889 $as_echo_n "checking whether the C compiler works... " >&6; }
3890 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3891
3892 # The possible output files:
3893 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3894
3895 ac_rmfiles=
3896 for ac_file in $ac_files
3897 do
3898   case $ac_file in
3899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3901   esac
3902 done
3903 rm -f $ac_rmfiles
3904
3905 if { { ac_try="$ac_link_default"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912   (eval "$ac_link_default") 2>&5
3913   ac_status=$?
3914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915   test $ac_status = 0; }; then :
3916   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3917 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3918 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3919 # so that the user can short-circuit this test for compilers unknown to
3920 # Autoconf.
3921 for ac_file in $ac_files ''
3922 do
3923   test -f "$ac_file" || continue
3924   case $ac_file in
3925     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3926         ;;
3927     [ab].out )
3928         # We found the default executable, but exeext='' is most
3929         # certainly right.
3930         break;;
3931     *.* )
3932         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3933         then :; else
3934            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3935         fi
3936         # We set ac_cv_exeext here because the later test for it is not
3937         # safe: cross compilers may not add the suffix if given an `-o'
3938         # argument, so we may need to know it at that point already.
3939         # Even if this section looks crufty: it has the advantage of
3940         # actually working.
3941         break;;
3942     * )
3943         break;;
3944   esac
3945 done
3946 test "$ac_cv_exeext" = no && ac_cv_exeext=
3947
3948 else
3949   ac_file=''
3950 fi
3951 if test -z "$ac_file"; then :
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error 77 "C compiler cannot create executables
3960 See \`config.log' for more details" "$LINENO" 5; }
3961 else
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3963 $as_echo "yes" >&6; }
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3966 $as_echo_n "checking for C compiler default output file name... " >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3968 $as_echo "$ac_file" >&6; }
3969 ac_exeext=$ac_cv_exeext
3970
3971 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3972 ac_clean_files=$ac_clean_files_save
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3974 $as_echo_n "checking for suffix of executables... " >&6; }
3975 if { { ac_try="$ac_link"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 $as_echo "$ac_try_echo"; } >&5
3982   (eval "$ac_link") 2>&5
3983   ac_status=$?
3984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985   test $ac_status = 0; }; then :
3986   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3987 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3988 # work properly (i.e., refer to `conftest.exe'), while it won't with
3989 # `rm'.
3990 for ac_file in conftest.exe conftest conftest.*; do
3991   test -f "$ac_file" || continue
3992   case $ac_file in
3993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3994     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3995           break;;
3996     * ) break;;
3997   esac
3998 done
3999 else
4000   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4003 See \`config.log' for more details" "$LINENO" 5; }
4004 fi
4005 rm -f conftest conftest$ac_cv_exeext
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4007 $as_echo "$ac_cv_exeext" >&6; }
4008
4009 rm -f conftest.$ac_ext
4010 EXEEXT=$ac_cv_exeext
4011 ac_exeext=$EXEEXT
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014 #include <stdio.h>
4015 int
4016 main ()
4017 {
4018 FILE *f = fopen ("conftest.out", "w");
4019  return ferror (f) || fclose (f) != 0;
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 ac_clean_files="$ac_clean_files conftest.out"
4026 # Check that the compiler produces executables we can run.  If not, either
4027 # the compiler is broken, or we cross compile.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4029 $as_echo_n "checking whether we are cross compiling... " >&6; }
4030 if test "$cross_compiling" != yes; then
4031   { { ac_try="$ac_link"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038   (eval "$ac_link") 2>&5
4039   ac_status=$?
4040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041   test $ac_status = 0; }
4042   if { ac_try='./conftest$ac_cv_exeext'
4043   { { case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049   (eval "$ac_try") 2>&5
4050   ac_status=$?
4051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052   test $ac_status = 0; }; }; then
4053     cross_compiling=no
4054   else
4055     if test "$cross_compiling" = maybe; then
4056         cross_compiling=yes
4057     else
4058         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot run C compiled programs.
4061 If you meant to cross compile, use \`--host'.
4062 See \`config.log' for more details" "$LINENO" 5; }
4063     fi
4064   fi
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4067 $as_echo "$cross_compiling" >&6; }
4068
4069 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4070 ac_clean_files=$ac_clean_files_save
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4072 $as_echo_n "checking for suffix of object files... " >&6; }
4073 if ${ac_cv_objext+:} false; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.o conftest.obj
4088 if { { ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095   (eval "$ac_compile") 2>&5
4096   ac_status=$?
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }; then :
4099   for ac_file in conftest.o conftest.obj conftest.*; do
4100   test -f "$ac_file" || continue;
4101   case $ac_file in
4102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4103     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4104        break;;
4105   esac
4106 done
4107 else
4108   $as_echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot compute suffix of object files: cannot compile
4114 See \`config.log' for more details" "$LINENO" 5; }
4115 fi
4116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4119 $as_echo "$ac_cv_objext" >&6; }
4120 OBJEXT=$ac_cv_objext
4121 ac_objext=$OBJEXT
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4124 if ${ac_cv_c_compiler_gnu+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133 #ifndef __GNUC__
4134        choke me
4135 #endif
4136
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142   ac_compiler_gnu=yes
4143 else
4144   ac_compiler_gnu=no
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4148
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4152 if test $ac_compiler_gnu = yes; then
4153   GCC=yes
4154 else
4155   GCC=
4156 fi
4157 ac_test_CFLAGS=${CFLAGS+set}
4158 ac_save_CFLAGS=$CFLAGS
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4161 if ${ac_cv_prog_cc_g+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   ac_save_c_werror_flag=$ac_c_werror_flag
4165    ac_c_werror_flag=yes
4166    ac_cv_prog_cc_g=no
4167    CFLAGS="-g"
4168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h.  */
4170
4171 int
4172 main ()
4173 {
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180   ac_cv_prog_cc_g=yes
4181 else
4182   CFLAGS=""
4183       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h.  */
4185
4186 int
4187 main ()
4188 {
4189
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195
4196 else
4197   ac_c_werror_flag=$ac_save_c_werror_flag
4198          CFLAGS="-g"
4199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h.  */
4201
4202 int
4203 main ()
4204 {
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211   ac_cv_prog_cc_g=yes
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218    ac_c_werror_flag=$ac_save_c_werror_flag
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4221 $as_echo "$ac_cv_prog_cc_g" >&6; }
4222 if test "$ac_test_CFLAGS" = set; then
4223   CFLAGS=$ac_save_CFLAGS
4224 elif test $ac_cv_prog_cc_g = yes; then
4225   if test "$GCC" = yes; then
4226     CFLAGS="-g -O2"
4227   else
4228     CFLAGS="-g"
4229   fi
4230 else
4231   if test "$GCC" = yes; then
4232     CFLAGS="-O2"
4233   else
4234     CFLAGS=
4235   fi
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4239 if ${ac_cv_prog_cc_c89+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   ac_cv_prog_cc_c89=no
4243 ac_save_CC=$CC
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 #include <stdarg.h>
4247 #include <stdio.h>
4248 struct stat;
4249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4250 struct buf { int x; };
4251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4252 static char *e (p, i)
4253      char **p;
4254      int i;
4255 {
4256   return p[i];
4257 }
4258 static char *f (char * (*g) (char **, int), char **p, ...)
4259 {
4260   char *s;
4261   va_list v;
4262   va_start (v,p);
4263   s = g (p, va_arg (v,int));
4264   va_end (v);
4265   return s;
4266 }
4267
4268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4269    function prototypes and stuff, but not '\xHH' hex character constants.
4270    These don't provoke an error unfortunately, instead are silently treated
4271    as 'x'.  The following induces an error, until -std is added to get
4272    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4273    array size at least.  It's necessary to write '\x00'==0 to get something
4274    that's true only with -std.  */
4275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4276
4277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4278    inside strings and character constants.  */
4279 #define FOO(x) 'x'
4280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4281
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 int argc;
4287 char **argv;
4288 int
4289 main ()
4290 {
4291 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4297         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4298 do
4299   CC="$ac_save_CC $ac_arg"
4300   if ac_fn_c_try_compile "$LINENO"; then :
4301   ac_cv_prog_cc_c89=$ac_arg
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext
4304   test "x$ac_cv_prog_cc_c89" != "xno" && break
4305 done
4306 rm -f conftest.$ac_ext
4307 CC=$ac_save_CC
4308
4309 fi
4310 # AC_CACHE_VAL
4311 case "x$ac_cv_prog_cc_c89" in
4312   x)
4313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4314 $as_echo "none needed" >&6; } ;;
4315   xno)
4316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4317 $as_echo "unsupported" >&6; } ;;
4318   *)
4319     CC="$CC $ac_cv_prog_cc_c89"
4320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4321 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4322 esac
4323 if test "x$ac_cv_prog_cc_c89" != xno; then :
4324
4325 fi
4326
4327 ac_ext=c
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4339 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4340 if ${am_cv_prog_cc_c_o+:} false; then :
4341   $as_echo_n "(cached) " >&6
4342 else
4343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354   # Make sure it works both with $CC and with simple cc.
4355   # Following AC_PROG_CC_C_O, we do the test twice because some
4356   # compilers refuse to overwrite an existing .o file with -o,
4357   # though they will create one.
4358   am_cv_prog_cc_c_o=yes
4359   for am_i in 1 2; do
4360     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4361    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4362    ac_status=$?
4363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364    (exit $ac_status); } \
4365          && test -f conftest2.$ac_objext; then
4366       : OK
4367     else
4368       am_cv_prog_cc_c_o=no
4369       break
4370     fi
4371   done
4372   rm -f core conftest*
4373   unset am_i
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4376 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4377 if test "$am_cv_prog_cc_c_o" != yes; then
4378    # Losing compiler, so override with the script.
4379    # FIXME: It is wrong to rewrite CC.
4380    # But if we don't then we get into trouble of one sort or another.
4381    # A longer-term fix would be to have automake use am__CC in this case,
4382    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4383    CC="$am_aux_dir/compile $CC"
4384 fi
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391
4392
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4400 # On Suns, sometimes $CPP names a directory.
4401 if test -n "$CPP" && test -d "$CPP"; then
4402   CPP=
4403 fi
4404 if test -z "$CPP"; then
4405   if ${ac_cv_prog_CPP+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408       # Double quotes because CPP needs to be expanded
4409     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410     do
4411       ac_preproc_ok=false
4412 for ac_c_preproc_warn_flag in '' yes
4413 do
4414   # Use a header file that comes with gcc, so configuring glibc
4415   # with a fresh cross-compiler works.
4416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417   # <limits.h> exists even on freestanding compilers.
4418   # On the NeXT, cc -E runs the code through the compiler's parser,
4419   # not just through cpp. "Syntax error" is here to catch this case.
4420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h.  */
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427                      Syntax error
4428 _ACEOF
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4430
4431 else
4432   # Broken: fails on valid input.
4433 continue
4434 fi
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437   # OK, works on sane cases.  Now check whether nonexistent headers
4438   # can be detected and how.
4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #include <ac_nonexistent.h>
4442 _ACEOF
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444   # Broken: success on invalid input.
4445 continue
4446 else
4447   # Passes both tests.
4448 ac_preproc_ok=:
4449 break
4450 fi
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4452
4453 done
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4457   break
4458 fi
4459
4460     done
4461     ac_cv_prog_CPP=$CPP
4462
4463 fi
4464   CPP=$ac_cv_prog_CPP
4465 else
4466   ac_cv_prog_CPP=$CPP
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4469 $as_echo "$CPP" >&6; }
4470 ac_preproc_ok=false
4471 for ac_c_preproc_warn_flag in '' yes
4472 do
4473   # Use a header file that comes with gcc, so configuring glibc
4474   # with a fresh cross-compiler works.
4475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476   # <limits.h> exists even on freestanding compilers.
4477   # On the NeXT, cc -E runs the code through the compiler's parser,
4478   # not just through cpp. "Syntax error" is here to catch this case.
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #ifdef __STDC__
4482 # include <limits.h>
4483 #else
4484 # include <assert.h>
4485 #endif
4486                      Syntax error
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489
4490 else
4491   # Broken: fails on valid input.
4492 continue
4493 fi
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4495
4496   # OK, works on sane cases.  Now check whether nonexistent headers
4497   # can be detected and how.
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 #include <ac_nonexistent.h>
4501 _ACEOF
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503   # Broken: success on invalid input.
4504 continue
4505 else
4506   # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512 done
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4516
4517 else
4518   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details" "$LINENO" 5; }
4522 fi
4523
4524 ac_ext=c
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4532 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4533 if ${ac_cv_path_GREP+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if test -z "$GREP"; then
4537   ac_path_GREP_found=false
4538   # Loop through the user's path and test for each of PROGNAME-LIST
4539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544     for ac_prog in grep ggrep; do
4545     for ac_exec_ext in '' $ac_executable_extensions; do
4546       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4547       as_fn_executable_p "$ac_path_GREP" || continue
4548 # Check for GNU ac_path_GREP and select it if it is found.
4549   # Check for GNU $ac_path_GREP
4550 case `"$ac_path_GREP" --version 2>&1` in
4551 *GNU*)
4552   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4553 *)
4554   ac_count=0
4555   $as_echo_n 0123456789 >"conftest.in"
4556   while :
4557   do
4558     cat "conftest.in" "conftest.in" >"conftest.tmp"
4559     mv "conftest.tmp" "conftest.in"
4560     cp "conftest.in" "conftest.nl"
4561     $as_echo 'GREP' >> "conftest.nl"
4562     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564     as_fn_arith $ac_count + 1 && ac_count=$as_val
4565     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566       # Best one so far, save it but keep looking for a better one
4567       ac_cv_path_GREP="$ac_path_GREP"
4568       ac_path_GREP_max=$ac_count
4569     fi
4570     # 10*(2^10) chars as input seems more than enough
4571     test $ac_count -gt 10 && break
4572   done
4573   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4575
4576       $ac_path_GREP_found && break 3
4577     done
4578   done
4579   done
4580 IFS=$as_save_IFS
4581   if test -z "$ac_cv_path_GREP"; then
4582     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4583   fi
4584 else
4585   ac_cv_path_GREP=$GREP
4586 fi
4587
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4590 $as_echo "$ac_cv_path_GREP" >&6; }
4591  GREP="$ac_cv_path_GREP"
4592
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4595 $as_echo_n "checking for egrep... " >&6; }
4596 if ${ac_cv_path_EGREP+:} false; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4600    then ac_cv_path_EGREP="$GREP -E"
4601    else
4602      if test -z "$EGREP"; then
4603   ac_path_EGREP_found=false
4604   # Loop through the user's path and test for each of PROGNAME-LIST
4605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610     for ac_prog in egrep; do
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4613       as_fn_executable_p "$ac_path_EGREP" || continue
4614 # Check for GNU ac_path_EGREP and select it if it is found.
4615   # Check for GNU $ac_path_EGREP
4616 case `"$ac_path_EGREP" --version 2>&1` in
4617 *GNU*)
4618   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4619 *)
4620   ac_count=0
4621   $as_echo_n 0123456789 >"conftest.in"
4622   while :
4623   do
4624     cat "conftest.in" "conftest.in" >"conftest.tmp"
4625     mv "conftest.tmp" "conftest.in"
4626     cp "conftest.in" "conftest.nl"
4627     $as_echo 'EGREP' >> "conftest.nl"
4628     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630     as_fn_arith $ac_count + 1 && ac_count=$as_val
4631     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4632       # Best one so far, save it but keep looking for a better one
4633       ac_cv_path_EGREP="$ac_path_EGREP"
4634       ac_path_EGREP_max=$ac_count
4635     fi
4636     # 10*(2^10) chars as input seems more than enough
4637     test $ac_count -gt 10 && break
4638   done
4639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640 esac
4641
4642       $ac_path_EGREP_found && break 3
4643     done
4644   done
4645   done
4646 IFS=$as_save_IFS
4647   if test -z "$ac_cv_path_EGREP"; then
4648     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4649   fi
4650 else
4651   ac_cv_path_EGREP=$EGREP
4652 fi
4653
4654    fi
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4657 $as_echo "$ac_cv_path_EGREP" >&6; }
4658  EGREP="$ac_cv_path_EGREP"
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4662 $as_echo_n "checking for ANSI C header files... " >&6; }
4663 if ${ac_cv_header_stdc+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h.  */
4668 #include <stdlib.h>
4669 #include <stdarg.h>
4670 #include <string.h>
4671 #include <float.h>
4672
4673 int
4674 main ()
4675 {
4676
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681 if ac_fn_c_try_compile "$LINENO"; then :
4682   ac_cv_header_stdc=yes
4683 else
4684   ac_cv_header_stdc=no
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687
4688 if test $ac_cv_header_stdc = yes; then
4689   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 #include <string.h>
4693
4694 _ACEOF
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696   $EGREP "memchr" >/dev/null 2>&1; then :
4697
4698 else
4699   ac_cv_header_stdc=no
4700 fi
4701 rm -f conftest*
4702
4703 fi
4704
4705 if test $ac_cv_header_stdc = yes; then
4706   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h.  */
4709 #include <stdlib.h>
4710
4711 _ACEOF
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713   $EGREP "free" >/dev/null 2>&1; then :
4714
4715 else
4716   ac_cv_header_stdc=no
4717 fi
4718 rm -f conftest*
4719
4720 fi
4721
4722 if test $ac_cv_header_stdc = yes; then
4723   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724   if test "$cross_compiling" = yes; then :
4725   :
4726 else
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #include <ctype.h>
4730 #include <stdlib.h>
4731 #if ((' ' & 0x0FF) == 0x020)
4732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4734 #else
4735 # define ISLOWER(c) \
4736                    (('a' <= (c) && (c) <= 'i') \
4737                      || ('j' <= (c) && (c) <= 'r') \
4738                      || ('s' <= (c) && (c) <= 'z'))
4739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4740 #endif
4741
4742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4743 int
4744 main ()
4745 {
4746   int i;
4747   for (i = 0; i < 256; i++)
4748     if (XOR (islower (i), ISLOWER (i))
4749         || toupper (i) != TOUPPER (i))
4750       return 2;
4751   return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_run "$LINENO"; then :
4755
4756 else
4757   ac_cv_header_stdc=no
4758 fi
4759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4760   conftest.$ac_objext conftest.beam conftest.$ac_ext
4761 fi
4762
4763 fi
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4766 $as_echo "$ac_cv_header_stdc" >&6; }
4767 if test $ac_cv_header_stdc = yes; then
4768
4769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4770
4771 fi
4772
4773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4775                   inttypes.h stdint.h unistd.h
4776 do :
4777   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4779 "
4780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4781   cat >>confdefs.h <<_ACEOF
4782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 _ACEOF
4784
4785 fi
4786
4787 done
4788
4789
4790
4791   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4792 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4793   MINIX=yes
4794 else
4795   MINIX=
4796 fi
4797
4798
4799   if test "$MINIX" = yes; then
4800
4801 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4802
4803
4804 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4805
4806
4807 $as_echo "#define _MINIX 1" >>confdefs.h
4808
4809
4810 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4811
4812   fi
4813
4814
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4816 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4817 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822
4823 #         define __EXTENSIONS__ 1
4824           $ac_includes_default
4825 int
4826 main ()
4827 {
4828
4829   ;
4830   return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834   ac_cv_safe_to_define___extensions__=yes
4835 else
4836   ac_cv_safe_to_define___extensions__=no
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4841 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4842   test $ac_cv_safe_to_define___extensions__ = yes &&
4843     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4844
4845   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4846
4847   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4848
4849   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4850
4851   $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4852
4853   $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
4854
4855   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4856
4857   $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4858
4859   $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4860
4861   $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4862
4863   $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4864
4865   $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4866
4867   $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4868
4869   $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4870
4871   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4872
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4874 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4875 if ${ac_cv_should_define__xopen_source+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   ac_cv_should_define__xopen_source=no
4879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881
4882           #include <wchar.h>
4883           mbstate_t x;
4884 int
4885 main ()
4886 {
4887
4888   ;
4889   return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893
4894 else
4895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897
4898              #define _XOPEN_SOURCE 500
4899              #include <wchar.h>
4900              mbstate_t x;
4901 int
4902 main ()
4903 {
4904
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910   ac_cv_should_define__xopen_source=yes
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4917 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4918   test $ac_cv_should_define__xopen_source = yes &&
4919     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4920
4921   $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4922
4923
4924
4925 am__api_version='1.16'
4926
4927 # Find a good install program.  We prefer a C program (faster),
4928 # so one script is as good as another.  But avoid the broken or
4929 # incompatible versions:
4930 # SysV /etc/install, /usr/sbin/install
4931 # SunOS /usr/etc/install
4932 # IRIX /sbin/install
4933 # AIX /bin/install
4934 # AmigaOS /C/install, which installs bootblocks on floppy discs
4935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4938 # OS/2's system install, which has a completely different semantic
4939 # ./install, which can be erroneously created by make from ./install.sh.
4940 # Reject install programs that cannot install multiple files.
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4942 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4943 if test -z "$INSTALL"; then
4944 if ${ac_cv_path_install+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952     # Account for people who put trailing slashes in PATH elements.
4953 case $as_dir/ in #((
4954   ./ | .// | /[cC]/* | \
4955   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4956   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4957   /usr/ucb/* ) ;;
4958   *)
4959     # OSF1 and SCO ODT 3.0 have their own names for install.
4960     # Don't use installbsd from OSF since it installs stuff as root
4961     # by default.
4962     for ac_prog in ginstall scoinst install; do
4963       for ac_exec_ext in '' $ac_executable_extensions; do
4964         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4965           if test $ac_prog = install &&
4966             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967             # AIX install.  It has an incompatible calling convention.
4968             :
4969           elif test $ac_prog = install &&
4970             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4971             # program-specific install script used by HP pwplus--don't use.
4972             :
4973           else
4974             rm -rf conftest.one conftest.two conftest.dir
4975             echo one > conftest.one
4976             echo two > conftest.two
4977             mkdir conftest.dir
4978             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4979               test -s conftest.one && test -s conftest.two &&
4980               test -s conftest.dir/conftest.one &&
4981               test -s conftest.dir/conftest.two
4982             then
4983               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4984               break 3
4985             fi
4986           fi
4987         fi
4988       done
4989     done
4990     ;;
4991 esac
4992
4993   done
4994 IFS=$as_save_IFS
4995
4996 rm -rf conftest.one conftest.two conftest.dir
4997
4998 fi
4999   if test "${ac_cv_path_install+set}" = set; then
5000     INSTALL=$ac_cv_path_install
5001   else
5002     # As a last resort, use the slow shell script.  Don't cache a
5003     # value for INSTALL within a source directory, because that will
5004     # break other packages using the cache if that directory is
5005     # removed, or if the value is a relative name.
5006     INSTALL=$ac_install_sh
5007   fi
5008 fi
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5010 $as_echo "$INSTALL" >&6; }
5011
5012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5013 # It thinks the first close brace ends the variable substitution.
5014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5015
5016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5017
5018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5021 $as_echo_n "checking whether build environment is sane... " >&6; }
5022 # Reject unsafe characters in $srcdir or the absolute working directory
5023 # name.  Accept space and tab only in the latter.
5024 am_lf='
5025 '
5026 case `pwd` in
5027   *[\\\"\#\$\&\'\`$am_lf]*)
5028     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5029 esac
5030 case $srcdir in
5031   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5032     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5033 esac
5034
5035 # Do 'set' in a subshell so we don't clobber the current shell's
5036 # arguments.  Must try -L first in case configure is actually a
5037 # symlink; some systems play weird games with the mod time of symlinks
5038 # (eg FreeBSD returns the mod time of the symlink's containing
5039 # directory).
5040 if (
5041    am_has_slept=no
5042    for am_try in 1 2; do
5043      echo "timestamp, slept: $am_has_slept" > conftest.file
5044      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5045      if test "$*" = "X"; then
5046         # -L didn't work.
5047         set X `ls -t "$srcdir/configure" conftest.file`
5048      fi
5049      if test "$*" != "X $srcdir/configure conftest.file" \
5050         && test "$*" != "X conftest.file $srcdir/configure"; then
5051
5052         # If neither matched, then we have a broken ls.  This can happen
5053         # if, for instance, CONFIG_SHELL is bash and it inherits a
5054         # broken ls alias from the environment.  This has actually
5055         # happened.  Such a system could not be considered "sane".
5056         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5057   alias in your environment" "$LINENO" 5
5058      fi
5059      if test "$2" = conftest.file || test $am_try -eq 2; then
5060        break
5061      fi
5062      # Just in case.
5063      sleep 1
5064      am_has_slept=yes
5065    done
5066    test "$2" = conftest.file
5067    )
5068 then
5069    # Ok.
5070    :
5071 else
5072    as_fn_error $? "newly created file is older than distributed files!
5073 Check your system clock" "$LINENO" 5
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5076 $as_echo "yes" >&6; }
5077 # If we didn't sleep, we still need to ensure time stamps of config.status and
5078 # generated files are strictly newer.
5079 am_sleep_pid=
5080 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5081   ( sleep 1 ) &
5082   am_sleep_pid=$!
5083 fi
5084
5085 rm -f conftest.file
5086
5087 test "$program_prefix" != NONE &&
5088   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5089 # Use a double $ so make ignores it.
5090 test "$program_suffix" != NONE &&
5091   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5092 # Double any \ or $.
5093 # By default was `s,x,x', remove it if useless.
5094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5096
5097 if test x"${MISSING+set}" != xset; then
5098   case $am_aux_dir in
5099   *\ * | *\     *)
5100     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5101   *)
5102     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5103   esac
5104 fi
5105 # Use eval to expand $SHELL
5106 if eval "$MISSING --is-lightweight"; then
5107   am_missing_run="$MISSING "
5108 else
5109   am_missing_run=
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5111 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5112 fi
5113
5114 if test x"${install_sh+set}" != xset; then
5115   case $am_aux_dir in
5116   *\ * | *\     *)
5117     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5118   *)
5119     install_sh="\${SHELL} $am_aux_dir/install-sh"
5120   esac
5121 fi
5122
5123 # Installed binaries are usually stripped using 'strip' when the user
5124 # run "make install-strip".  However 'strip' might not be the right
5125 # tool to use in cross-compilation environments, therefore Automake
5126 # will honor the 'STRIP' environment variable to overrule this program.
5127 if test "$cross_compiling" != no; then
5128   if test -n "$ac_tool_prefix"; then
5129   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}strip; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_STRIP+:} false; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test -n "$STRIP"; then
5137   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 STRIP=$ac_cv_prog_STRIP
5157 if test -n "$STRIP"; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5159 $as_echo "$STRIP" >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 fi
5167 if test -z "$ac_cv_prog_STRIP"; then
5168   ac_ct_STRIP=$STRIP
5169   # Extract the first word of "strip", so it can be a program name with args.
5170 set dummy strip; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if test -n "$ac_ct_STRIP"; then
5177   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186     ac_cv_prog_ac_ct_STRIP="strip"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5197 if test -n "$ac_ct_STRIP"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5199 $as_echo "$ac_ct_STRIP" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205   if test "x$ac_ct_STRIP" = x; then
5206     STRIP=":"
5207   else
5208     case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214     STRIP=$ac_ct_STRIP
5215   fi
5216 else
5217   STRIP="$ac_cv_prog_STRIP"
5218 fi
5219
5220 fi
5221 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5224 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5225 if test -z "$MKDIR_P"; then
5226   if ${ac_cv_path_mkdir+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_prog in mkdir gmkdir; do
5235          for ac_exec_ext in '' $ac_executable_extensions; do
5236            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5237            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5238              'mkdir (GNU coreutils) '* | \
5239              'mkdir (coreutils) '* | \
5240              'mkdir (fileutils) '4.1*)
5241                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5242                break 3;;
5243            esac
5244          done
5245        done
5246   done
5247 IFS=$as_save_IFS
5248
5249 fi
5250
5251   test -d ./--version && rmdir ./--version
5252   if test "${ac_cv_path_mkdir+set}" = set; then
5253     MKDIR_P="$ac_cv_path_mkdir -p"
5254   else
5255     # As a last resort, use the slow shell script.  Don't cache a
5256     # value for MKDIR_P within a source directory, because that will
5257     # break other packages using the cache if that directory is
5258     # removed, or if the value is a relative name.
5259     MKDIR_P="$ac_install_sh -d"
5260   fi
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5263 $as_echo "$MKDIR_P" >&6; }
5264
5265 for ac_prog in gawk mawk nawk awk
5266 do
5267   # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_AWK+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   if test -n "$AWK"; then
5275   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_prog_AWK="$ac_prog"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 AWK=$ac_cv_prog_AWK
5295 if test -n "$AWK"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5297 $as_echo "$AWK" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304   test -n "$AWK" && break
5305 done
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5308 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5309 set x ${MAKE-make}
5310 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5311 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   cat >conftest.make <<\_ACEOF
5315 SHELL = /bin/sh
5316 all:
5317         @echo '@@@%%%=$(MAKE)=@@@%%%'
5318 _ACEOF
5319 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5320 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5321   *@@@%%%=?*=@@@%%%*)
5322     eval ac_cv_prog_make_${ac_make}_set=yes;;
5323   *)
5324     eval ac_cv_prog_make_${ac_make}_set=no;;
5325 esac
5326 rm -f conftest.make
5327 fi
5328 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5331   SET_MAKE=
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335   SET_MAKE="MAKE=${MAKE-make}"
5336 fi
5337
5338 rm -rf .tst 2>/dev/null
5339 mkdir .tst 2>/dev/null
5340 if test -d .tst; then
5341   am__leading_dot=.
5342 else
5343   am__leading_dot=_
5344 fi
5345 rmdir .tst 2>/dev/null
5346
5347 DEPDIR="${am__leading_dot}deps"
5348
5349 ac_config_commands="$ac_config_commands depfiles"
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5352 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5353 cat > confinc.mk << 'END'
5354 am__doit:
5355         @echo this is the am__doit target >confinc.out
5356 .PHONY: am__doit
5357 END
5358 am__include="#"
5359 am__quote=
5360 # BSD make does it like this.
5361 echo '.include "confinc.mk" # ignored' > confmf.BSD
5362 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5363 echo 'include confinc.mk # ignored' > confmf.GNU
5364 _am_result=no
5365 for s in GNU BSD; do
5366   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5367    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5368    ac_status=$?
5369    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370    (exit $ac_status); }
5371   case $?:`cat confinc.out 2>/dev/null` in #(
5372   '0:this is the am__doit target') :
5373     case $s in #(
5374   BSD) :
5375     am__include='.include' am__quote='"' ;; #(
5376   *) :
5377     am__include='include' am__quote='' ;;
5378 esac ;; #(
5379   *) :
5380      ;;
5381 esac
5382   if test "$am__include" != "#"; then
5383     _am_result="yes ($s style)"
5384     break
5385   fi
5386 done
5387 rm -f confinc.* confmf.*
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5389 $as_echo "${_am_result}" >&6; }
5390
5391 # Check whether --enable-dependency-tracking was given.
5392 if test "${enable_dependency_tracking+set}" = set; then :
5393   enableval=$enable_dependency_tracking;
5394 fi
5395
5396 if test "x$enable_dependency_tracking" != xno; then
5397   am_depcomp="$ac_aux_dir/depcomp"
5398   AMDEPBACKSLASH='\'
5399   am__nodep='_no'
5400 fi
5401  if test "x$enable_dependency_tracking" != xno; then
5402   AMDEP_TRUE=
5403   AMDEP_FALSE='#'
5404 else
5405   AMDEP_TRUE='#'
5406   AMDEP_FALSE=
5407 fi
5408
5409
5410 # Check whether --enable-silent-rules was given.
5411 if test "${enable_silent_rules+set}" = set; then :
5412   enableval=$enable_silent_rules;
5413 fi
5414
5415 case $enable_silent_rules in # (((
5416   yes) AM_DEFAULT_VERBOSITY=0;;
5417    no) AM_DEFAULT_VERBOSITY=1;;
5418     *) AM_DEFAULT_VERBOSITY=1;;
5419 esac
5420 am_make=${MAKE-make}
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5422 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5423 if ${am_cv_make_support_nested_variables+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if $as_echo 'TRUE=$(BAR$(V))
5427 BAR0=false
5428 BAR1=true
5429 V=1
5430 am__doit:
5431         @$(TRUE)
5432 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5433   am_cv_make_support_nested_variables=yes
5434 else
5435   am_cv_make_support_nested_variables=no
5436 fi
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5439 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5440 if test $am_cv_make_support_nested_variables = yes; then
5441     AM_V='$(V)'
5442   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5443 else
5444   AM_V=$AM_DEFAULT_VERBOSITY
5445   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5446 fi
5447 AM_BACKSLASH='\'
5448
5449 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5450   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5451   # is not polluted with repeated "-I."
5452   am__isrc=' -I$(srcdir)'
5453   # test to see if srcdir already configured
5454   if test -f $srcdir/config.status; then
5455     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5456   fi
5457 fi
5458
5459 # test whether we have cygpath
5460 if test -z "$CYGPATH_W"; then
5461   if (cygpath --version) >/dev/null 2>/dev/null; then
5462     CYGPATH_W='cygpath -w'
5463   else
5464     CYGPATH_W=echo
5465   fi
5466 fi
5467
5468
5469 # Define the identity of the package.
5470  PACKAGE='groff'
5471  VERSION='1.22.4'
5472
5473
5474 cat >>confdefs.h <<_ACEOF
5475 #define PACKAGE "$PACKAGE"
5476 _ACEOF
5477
5478
5479 cat >>confdefs.h <<_ACEOF
5480 #define VERSION "$VERSION"
5481 _ACEOF
5482
5483 # Some tools Automake needs.
5484
5485 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5486
5487
5488 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5489
5490
5491 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5492
5493
5494 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5495
5496
5497 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5498
5499 # For better backward compatibility.  To be removed once Automake 1.9.x
5500 # dies out for good.  For more background, see:
5501 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5502 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5503 mkdir_p='$(MKDIR_P)'
5504
5505 # We need awk for the "check" target (and possibly the TAP driver).  The
5506 # system "awk" is bad on some platforms.
5507 # Always define AMTAR for backward compatibility.  Yes, it's still used
5508 # in the wild :-(  We should find a proper way to deprecate it ...
5509 AMTAR='$${TAR-tar}'
5510
5511
5512 # We'll loop over all known methods to create a tar archive until one works.
5513 _am_tools='gnutar  pax cpio none'
5514
5515 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5516
5517
5518
5519
5520
5521 depcc="$CC"   am_compiler_list=
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5524 $as_echo_n "checking dependency style of $depcc... " >&6; }
5525 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529   # We make a subdir and do the tests there.  Otherwise we can end up
5530   # making bogus files that we don't know about and never remove.  For
5531   # instance it was reported that on HP-UX the gcc test will end up
5532   # making a dummy file named 'D' -- because '-MD' means "put the output
5533   # in D".
5534   rm -rf conftest.dir
5535   mkdir conftest.dir
5536   # Copy depcomp to subdir because otherwise we won't find it if we're
5537   # using a relative directory.
5538   cp "$am_depcomp" conftest.dir
5539   cd conftest.dir
5540   # We will build objects and dependencies in a subdirectory because
5541   # it helps to detect inapplicable dependency modes.  For instance
5542   # both Tru64's cc and ICC support -MD to output dependencies as a
5543   # side effect of compilation, but ICC will put the dependencies in
5544   # the current directory while Tru64 will put them in the object
5545   # directory.
5546   mkdir sub
5547
5548   am_cv_CC_dependencies_compiler_type=none
5549   if test "$am_compiler_list" = ""; then
5550      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5551   fi
5552   am__universal=false
5553   case " $depcc " in #(
5554      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5555      esac
5556
5557   for depmode in $am_compiler_list; do
5558     # Setup a source with many dependencies, because some compilers
5559     # like to wrap large dependency lists on column 80 (with \), and
5560     # we should not choose a depcomp mode which is confused by this.
5561     #
5562     # We need to recreate these files for each test, as the compiler may
5563     # overwrite some of them when testing with obscure command lines.
5564     # This happens at least with the AIX C compiler.
5565     : > sub/conftest.c
5566     for i in 1 2 3 4 5 6; do
5567       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5569       # Solaris 10 /bin/sh.
5570       echo '/* dummy */' > sub/conftst$i.h
5571     done
5572     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5573
5574     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5575     # mode.  It turns out that the SunPro C++ compiler does not properly
5576     # handle '-M -o', and we need to detect this.  Also, some Intel
5577     # versions had trouble with output in subdirs.
5578     am__obj=sub/conftest.${OBJEXT-o}
5579     am__minus_obj="-o $am__obj"
5580     case $depmode in
5581     gcc)
5582       # This depmode causes a compiler race in universal mode.
5583       test "$am__universal" = false || continue
5584       ;;
5585     nosideeffect)
5586       # After this tag, mechanisms are not by side-effect, so they'll
5587       # only be used when explicitly requested.
5588       if test "x$enable_dependency_tracking" = xyes; then
5589         continue
5590       else
5591         break
5592       fi
5593       ;;
5594     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5595       # This compiler won't grok '-c -o', but also, the minuso test has
5596       # not run yet.  These depmodes are late enough in the game, and
5597       # so weak that their functioning should not be impacted.
5598       am__obj=conftest.${OBJEXT-o}
5599       am__minus_obj=
5600       ;;
5601     none) break ;;
5602     esac
5603     if depmode=$depmode \
5604        source=sub/conftest.c object=$am__obj \
5605        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5606        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5607          >/dev/null 2>conftest.err &&
5608        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5609        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5610        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5611        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5612       # icc doesn't choke on unknown options, it will just issue warnings
5613       # or remarks (even with -Werror).  So we grep stderr for any message
5614       # that says an option was ignored or not supported.
5615       # When given -MP, icc 7.0 and 7.1 complain thusly:
5616       #   icc: Command line warning: ignoring option '-M'; no argument required
5617       # The diagnosis changed in icc 8.0:
5618       #   icc: Command line remark: option '-MP' not supported
5619       if (grep 'ignoring option' conftest.err ||
5620           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5621         am_cv_CC_dependencies_compiler_type=$depmode
5622         break
5623       fi
5624     fi
5625   done
5626
5627   cd ..
5628   rm -rf conftest.dir
5629 else
5630   am_cv_CC_dependencies_compiler_type=none
5631 fi
5632
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5635 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5637
5638  if
5639   test "x$enable_dependency_tracking" != xno \
5640   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5641   am__fastdepCC_TRUE=
5642   am__fastdepCC_FALSE='#'
5643 else
5644   am__fastdepCC_TRUE='#'
5645   am__fastdepCC_FALSE=
5646 fi
5647
5648
5649
5650 # POSIX will say in a future version that running "rm -f" with no argument
5651 # is OK; and we want to be able to make that assumption in our Makefile
5652 # recipes.  So use an aggressive probe to check that the usage we want is
5653 # actually supported "in the wild" to an acceptable degree.
5654 # See automake bug#10828.
5655 # To make any issue more visible, cause the running configure to be aborted
5656 # by default if the 'rm' program in use doesn't match our expectations; the
5657 # user can still override this though.
5658 if rm -f && rm -fr && rm -rf; then : OK; else
5659   cat >&2 <<'END'
5660 Oops!
5661
5662 Your 'rm' program seems unable to run without file operands specified
5663 on the command line, even when the '-f' option is present.  This is contrary
5664 to the behaviour of most rm programs out there, and not conforming with
5665 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5666
5667 Please tell bug-automake@gnu.org about your system, including the value
5668 of your $PATH and any error possibly output before this message.  This
5669 can help us improve future automake versions.
5670
5671 END
5672   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5673     echo 'Configuration will proceed anyway, since you have set the' >&2
5674     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5675     echo >&2
5676   else
5677     cat >&2 <<'END'
5678 Aborting the configuration process, to ensure you take notice of the issue.
5679
5680 You can download and install GNU coreutils to get an 'rm' implementation
5681 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5682
5683 If you want to complete the configuration process using your problematic
5684 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5685 to "yes", and re-run configure.
5686
5687 END
5688     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5689   fi
5690 fi
5691
5692
5693 # Check whether --enable-silent-rules was given.
5694 if test "${enable_silent_rules+set}" = set; then :
5695   enableval=$enable_silent_rules;
5696 fi
5697
5698 case $enable_silent_rules in # (((
5699   yes) AM_DEFAULT_VERBOSITY=0;;
5700    no) AM_DEFAULT_VERBOSITY=1;;
5701     *) AM_DEFAULT_VERBOSITY=0;;
5702 esac
5703 am_make=${MAKE-make}
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5705 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5706 if ${am_cv_make_support_nested_variables+:} false; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   if $as_echo 'TRUE=$(BAR$(V))
5710 BAR0=false
5711 BAR1=true
5712 V=1
5713 am__doit:
5714         @$(TRUE)
5715 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5716   am_cv_make_support_nested_variables=yes
5717 else
5718   am_cv_make_support_nested_variables=no
5719 fi
5720 fi
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5722 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5723 if test $am_cv_make_support_nested_variables = yes; then
5724     AM_V='$(V)'
5725   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5726 else
5727   AM_V=$AM_DEFAULT_VERBOSITY
5728   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5729 fi
5730 AM_BACKSLASH='\'
5731
5732
5733 # checks for programs
5734 ac_ext=c
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 if test -n "$ac_tool_prefix"; then
5740   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_CC+:} false; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747   if test -n "$CC"; then
5748   ac_cv_prog_CC="$CC" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755     for ac_exec_ext in '' $ac_executable_extensions; do
5756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762   done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 CC=$ac_cv_prog_CC
5768 if test -n "$CC"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5770 $as_echo "$CC" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776
5777 fi
5778 if test -z "$ac_cv_prog_CC"; then
5779   ac_ct_CC=$CC
5780   # Extract the first word of "gcc", so it can be a program name with args.
5781 set dummy gcc; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5785   $as_echo_n "(cached) " >&6
5786 else
5787   if test -n "$ac_ct_CC"; then
5788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_prog_ac_ct_CC="gcc"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804
5805 fi
5806 fi
5807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5808 if test -n "$ac_ct_CC"; then
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5810 $as_echo "$ac_ct_CC" >&6; }
5811 else
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5814 fi
5815
5816   if test "x$ac_ct_CC" = x; then
5817     CC=""
5818   else
5819     case $cross_compiling:$ac_tool_warned in
5820 yes:)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5823 ac_tool_warned=yes ;;
5824 esac
5825     CC=$ac_ct_CC
5826   fi
5827 else
5828   CC="$ac_cv_prog_CC"
5829 fi
5830
5831 if test -z "$CC"; then
5832           if test -n "$ac_tool_prefix"; then
5833     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}cc; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_CC+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -n "$CC"; then
5841   ac_cv_prog_CC="$CC" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848     for ac_exec_ext in '' $ac_executable_extensions; do
5849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850     ac_cv_prog_CC="${ac_tool_prefix}cc"
5851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855   done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 CC=$ac_cv_prog_CC
5861 if test -n "$CC"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5863 $as_echo "$CC" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869
5870   fi
5871 fi
5872 if test -z "$CC"; then
5873   # Extract the first word of "cc", so it can be a program name with args.
5874 set dummy cc; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_CC+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$CC"; then
5881   ac_cv_prog_CC="$CC" # Let the user override the test.
5882 else
5883   ac_prog_rejected=no
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5892        ac_prog_rejected=yes
5893        continue
5894      fi
5895     ac_cv_prog_CC="cc"
5896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900   done
5901 IFS=$as_save_IFS
5902
5903 if test $ac_prog_rejected = yes; then
5904   # We found a bogon in the path, so make sure we never use it.
5905   set dummy $ac_cv_prog_CC
5906   shift
5907   if test $# != 0; then
5908     # We chose a different compiler from the bogus one.
5909     # However, it has the same basename, so the bogon will be chosen
5910     # first if we set CC to just the basename; use the full file name.
5911     shift
5912     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5913   fi
5914 fi
5915 fi
5916 fi
5917 CC=$ac_cv_prog_CC
5918 if test -n "$CC"; then
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5920 $as_echo "$CC" >&6; }
5921 else
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926
5927 fi
5928 if test -z "$CC"; then
5929   if test -n "$ac_tool_prefix"; then
5930   for ac_prog in cl.exe
5931   do
5932     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_CC+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -n "$CC"; then
5940   ac_cv_prog_CC="$CC" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_exec_ext in '' $ac_executable_extensions; do
5948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954   done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 CC=$ac_cv_prog_CC
5960 if test -n "$CC"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5962 $as_echo "$CC" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968
5969     test -n "$CC" && break
5970   done
5971 fi
5972 if test -z "$CC"; then
5973   ac_ct_CC=$CC
5974   for ac_prog in cl.exe
5975 do
5976   # Extract the first word of "$ac_prog", so it can be a program name with args.
5977 set dummy $ac_prog; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if test -n "$ac_ct_CC"; then
5984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_exec_ext in '' $ac_executable_extensions; do
5992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993     ac_cv_prog_ac_ct_CC="$ac_prog"
5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998   done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6004 if test -n "$ac_ct_CC"; then
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6006 $as_echo "$ac_ct_CC" >&6; }
6007 else
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 fi
6011
6012
6013   test -n "$ac_ct_CC" && break
6014 done
6015
6016   if test "x$ac_ct_CC" = x; then
6017     CC=""
6018   else
6019     case $cross_compiling:$ac_tool_warned in
6020 yes:)
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023 ac_tool_warned=yes ;;
6024 esac
6025     CC=$ac_ct_CC
6026   fi
6027 fi
6028
6029 fi
6030
6031
6032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 as_fn_error $? "no acceptable C compiler found in \$PATH
6035 See \`config.log' for more details" "$LINENO" 5; }
6036
6037 # Provide some information about the compiler.
6038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6039 set X $ac_compile
6040 ac_compiler=$2
6041 for ac_option in --version -v -V -qversion; do
6042   { { ac_try="$ac_compiler $ac_option >&5"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6048 $as_echo "$ac_try_echo"; } >&5
6049   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6050   ac_status=$?
6051   if test -s conftest.err; then
6052     sed '10a\
6053 ... rest of stderr output deleted ...
6054          10q' conftest.err >conftest.er1
6055     cat conftest.er1 >&5
6056   fi
6057   rm -f conftest.er1 conftest.err
6058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059   test $ac_status = 0; }
6060 done
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6064 if ${ac_cv_c_compiler_gnu+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h.  */
6069
6070 int
6071 main ()
6072 {
6073 #ifndef __GNUC__
6074        choke me
6075 #endif
6076
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082   ac_compiler_gnu=yes
6083 else
6084   ac_compiler_gnu=no
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6088
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6092 if test $ac_compiler_gnu = yes; then
6093   GCC=yes
6094 else
6095   GCC=
6096 fi
6097 ac_test_CFLAGS=${CFLAGS+set}
6098 ac_save_CFLAGS=$CFLAGS
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6101 if ${ac_cv_prog_cc_g+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   ac_save_c_werror_flag=$ac_c_werror_flag
6105    ac_c_werror_flag=yes
6106    ac_cv_prog_cc_g=no
6107    CFLAGS="-g"
6108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h.  */
6110
6111 int
6112 main ()
6113 {
6114
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120   ac_cv_prog_cc_g=yes
6121 else
6122   CFLAGS=""
6123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h.  */
6125
6126 int
6127 main ()
6128 {
6129
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"; then :
6135
6136 else
6137   ac_c_werror_flag=$ac_save_c_werror_flag
6138          CFLAGS="-g"
6139          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h.  */
6141
6142 int
6143 main ()
6144 {
6145
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151   ac_cv_prog_cc_g=yes
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 fi
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158    ac_c_werror_flag=$ac_save_c_werror_flag
6159 fi
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6161 $as_echo "$ac_cv_prog_cc_g" >&6; }
6162 if test "$ac_test_CFLAGS" = set; then
6163   CFLAGS=$ac_save_CFLAGS
6164 elif test $ac_cv_prog_cc_g = yes; then
6165   if test "$GCC" = yes; then
6166     CFLAGS="-g -O2"
6167   else
6168     CFLAGS="-g"
6169   fi
6170 else
6171   if test "$GCC" = yes; then
6172     CFLAGS="-O2"
6173   else
6174     CFLAGS=
6175   fi
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6179 if ${ac_cv_prog_cc_c89+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   ac_cv_prog_cc_c89=no
6183 ac_save_CC=$CC
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186 #include <stdarg.h>
6187 #include <stdio.h>
6188 struct stat;
6189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6190 struct buf { int x; };
6191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6192 static char *e (p, i)
6193      char **p;
6194      int i;
6195 {
6196   return p[i];
6197 }
6198 static char *f (char * (*g) (char **, int), char **p, ...)
6199 {
6200   char *s;
6201   va_list v;
6202   va_start (v,p);
6203   s = g (p, va_arg (v,int));
6204   va_end (v);
6205   return s;
6206 }
6207
6208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6209    function prototypes and stuff, but not '\xHH' hex character constants.
6210    These don't provoke an error unfortunately, instead are silently treated
6211    as 'x'.  The following induces an error, until -std is added to get
6212    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6213    array size at least.  It's necessary to write '\x00'==0 to get something
6214    that's true only with -std.  */
6215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6216
6217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6218    inside strings and character constants.  */
6219 #define FOO(x) 'x'
6220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6221
6222 int test (int i, double x);
6223 struct s1 {int (*f) (int a);};
6224 struct s2 {int (*f) (double a);};
6225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6226 int argc;
6227 char **argv;
6228 int
6229 main ()
6230 {
6231 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6232   ;
6233   return 0;
6234 }
6235 _ACEOF
6236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6237         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6238 do
6239   CC="$ac_save_CC $ac_arg"
6240   if ac_fn_c_try_compile "$LINENO"; then :
6241   ac_cv_prog_cc_c89=$ac_arg
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext
6244   test "x$ac_cv_prog_cc_c89" != "xno" && break
6245 done
6246 rm -f conftest.$ac_ext
6247 CC=$ac_save_CC
6248
6249 fi
6250 # AC_CACHE_VAL
6251 case "x$ac_cv_prog_cc_c89" in
6252   x)
6253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6254 $as_echo "none needed" >&6; } ;;
6255   xno)
6256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6257 $as_echo "unsupported" >&6; } ;;
6258   *)
6259     CC="$CC $ac_cv_prog_cc_c89"
6260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6262 esac
6263 if test "x$ac_cv_prog_cc_c89" != xno; then :
6264
6265 fi
6266
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273 ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6279 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6280 if ${am_cv_prog_cc_c_o+:} false; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h.  */
6285
6286 int
6287 main ()
6288 {
6289
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294   # Make sure it works both with $CC and with simple cc.
6295   # Following AC_PROG_CC_C_O, we do the test twice because some
6296   # compilers refuse to overwrite an existing .o file with -o,
6297   # though they will create one.
6298   am_cv_prog_cc_c_o=yes
6299   for am_i in 1 2; do
6300     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6301    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6302    ac_status=$?
6303    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304    (exit $ac_status); } \
6305          && test -f conftest2.$ac_objext; then
6306       : OK
6307     else
6308       am_cv_prog_cc_c_o=no
6309       break
6310     fi
6311   done
6312   rm -f core conftest*
6313   unset am_i
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6316 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6317 if test "$am_cv_prog_cc_c_o" != yes; then
6318    # Losing compiler, so override with the script.
6319    # FIXME: It is wrong to rewrite CC.
6320    # But if we don't then we get into trouble of one sort or another.
6321    # A longer-term fix would be to have automake use am__CC in this case,
6322    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6323    CC="$am_aux_dir/compile $CC"
6324 fi
6325 ac_ext=c
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330
6331
6332 ac_ext=cpp
6333 ac_cpp='$CXXCPP $CPPFLAGS'
6334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337 if test -z "$CXX"; then
6338   if test -n "$CCC"; then
6339     CXX=$CCC
6340   else
6341     if test -n "$ac_tool_prefix"; then
6342   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6343   do
6344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_CXX+:} false; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$CXX"; then
6352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 CXX=$ac_cv_prog_CXX
6372 if test -n "$CXX"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6374 $as_echo "$CXX" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381     test -n "$CXX" && break
6382   done
6383 fi
6384 if test -z "$CXX"; then
6385   ac_ct_CXX=$CXX
6386   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6387 do
6388   # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$ac_ct_CXX"; then
6396   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405     ac_cv_prog_ac_ct_CXX="$ac_prog"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6416 if test -n "$ac_ct_CXX"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6418 $as_echo "$ac_ct_CXX" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425   test -n "$ac_ct_CXX" && break
6426 done
6427
6428   if test "x$ac_ct_CXX" = x; then
6429     CXX="g++"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437     CXX=$ac_ct_CXX
6438   fi
6439 fi
6440
6441   fi
6442 fi
6443 # Provide some information about the compiler.
6444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6445 set X $ac_compile
6446 ac_compiler=$2
6447 for ac_option in --version -v -V -qversion; do
6448   { { ac_try="$ac_compiler $ac_option >&5"
6449 case "(($ac_try" in
6450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451   *) ac_try_echo=$ac_try;;
6452 esac
6453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6454 $as_echo "$ac_try_echo"; } >&5
6455   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6456   ac_status=$?
6457   if test -s conftest.err; then
6458     sed '10a\
6459 ... rest of stderr output deleted ...
6460          10q' conftest.err >conftest.er1
6461     cat conftest.er1 >&5
6462   fi
6463   rm -f conftest.er1 conftest.err
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; }
6466 done
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6469 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6470 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475
6476 int
6477 main ()
6478 {
6479 #ifndef __GNUC__
6480        choke me
6481 #endif
6482
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 if ac_fn_cxx_try_compile "$LINENO"; then :
6488   ac_compiler_gnu=yes
6489 else
6490   ac_compiler_gnu=no
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6494
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6497 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6498 if test $ac_compiler_gnu = yes; then
6499   GXX=yes
6500 else
6501   GXX=
6502 fi
6503 ac_test_CXXFLAGS=${CXXFLAGS+set}
6504 ac_save_CXXFLAGS=$CXXFLAGS
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6506 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6507 if ${ac_cv_prog_cxx_g+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6511    ac_cxx_werror_flag=yes
6512    ac_cv_prog_cxx_g=no
6513    CXXFLAGS="-g"
6514    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h.  */
6516
6517 int
6518 main ()
6519 {
6520
6521   ;
6522   return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526   ac_cv_prog_cxx_g=yes
6527 else
6528   CXXFLAGS=""
6529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h.  */
6531
6532 int
6533 main ()
6534 {
6535
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_cxx_try_compile "$LINENO"; then :
6541
6542 else
6543   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6544          CXXFLAGS="-g"
6545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h.  */
6547
6548 int
6549 main ()
6550 {
6551
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 if ac_fn_cxx_try_compile "$LINENO"; then :
6557   ac_cv_prog_cxx_g=yes
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6567 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6568 if test "$ac_test_CXXFLAGS" = set; then
6569   CXXFLAGS=$ac_save_CXXFLAGS
6570 elif test $ac_cv_prog_cxx_g = yes; then
6571   if test "$GXX" = yes; then
6572     CXXFLAGS="-g -O2"
6573   else
6574     CXXFLAGS="-g"
6575   fi
6576 else
6577   if test "$GXX" = yes; then
6578     CXXFLAGS="-O2"
6579   else
6580     CXXFLAGS=
6581   fi
6582 fi
6583 ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589 depcc="$CXX"  am_compiler_list=
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6592 $as_echo_n "checking dependency style of $depcc... " >&6; }
6593 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6597   # We make a subdir and do the tests there.  Otherwise we can end up
6598   # making bogus files that we don't know about and never remove.  For
6599   # instance it was reported that on HP-UX the gcc test will end up
6600   # making a dummy file named 'D' -- because '-MD' means "put the output
6601   # in D".
6602   rm -rf conftest.dir
6603   mkdir conftest.dir
6604   # Copy depcomp to subdir because otherwise we won't find it if we're
6605   # using a relative directory.
6606   cp "$am_depcomp" conftest.dir
6607   cd conftest.dir
6608   # We will build objects and dependencies in a subdirectory because
6609   # it helps to detect inapplicable dependency modes.  For instance
6610   # both Tru64's cc and ICC support -MD to output dependencies as a
6611   # side effect of compilation, but ICC will put the dependencies in
6612   # the current directory while Tru64 will put them in the object
6613   # directory.
6614   mkdir sub
6615
6616   am_cv_CXX_dependencies_compiler_type=none
6617   if test "$am_compiler_list" = ""; then
6618      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6619   fi
6620   am__universal=false
6621   case " $depcc " in #(
6622      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6623      esac
6624
6625   for depmode in $am_compiler_list; do
6626     # Setup a source with many dependencies, because some compilers
6627     # like to wrap large dependency lists on column 80 (with \), and
6628     # we should not choose a depcomp mode which is confused by this.
6629     #
6630     # We need to recreate these files for each test, as the compiler may
6631     # overwrite some of them when testing with obscure command lines.
6632     # This happens at least with the AIX C compiler.
6633     : > sub/conftest.c
6634     for i in 1 2 3 4 5 6; do
6635       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6636       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6637       # Solaris 10 /bin/sh.
6638       echo '/* dummy */' > sub/conftst$i.h
6639     done
6640     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6641
6642     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6643     # mode.  It turns out that the SunPro C++ compiler does not properly
6644     # handle '-M -o', and we need to detect this.  Also, some Intel
6645     # versions had trouble with output in subdirs.
6646     am__obj=sub/conftest.${OBJEXT-o}
6647     am__minus_obj="-o $am__obj"
6648     case $depmode in
6649     gcc)
6650       # This depmode causes a compiler race in universal mode.
6651       test "$am__universal" = false || continue
6652       ;;
6653     nosideeffect)
6654       # After this tag, mechanisms are not by side-effect, so they'll
6655       # only be used when explicitly requested.
6656       if test "x$enable_dependency_tracking" = xyes; then
6657         continue
6658       else
6659         break
6660       fi
6661       ;;
6662     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6663       # This compiler won't grok '-c -o', but also, the minuso test has
6664       # not run yet.  These depmodes are late enough in the game, and
6665       # so weak that their functioning should not be impacted.
6666       am__obj=conftest.${OBJEXT-o}
6667       am__minus_obj=
6668       ;;
6669     none) break ;;
6670     esac
6671     if depmode=$depmode \
6672        source=sub/conftest.c object=$am__obj \
6673        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6674        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6675          >/dev/null 2>conftest.err &&
6676        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6677        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6679        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6680       # icc doesn't choke on unknown options, it will just issue warnings
6681       # or remarks (even with -Werror).  So we grep stderr for any message
6682       # that says an option was ignored or not supported.
6683       # When given -MP, icc 7.0 and 7.1 complain thusly:
6684       #   icc: Command line warning: ignoring option '-M'; no argument required
6685       # The diagnosis changed in icc 8.0:
6686       #   icc: Command line remark: option '-MP' not supported
6687       if (grep 'ignoring option' conftest.err ||
6688           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6689         am_cv_CXX_dependencies_compiler_type=$depmode
6690         break
6691       fi
6692     fi
6693   done
6694
6695   cd ..
6696   rm -rf conftest.dir
6697 else
6698   am_cv_CXX_dependencies_compiler_type=none
6699 fi
6700
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6703 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6704 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6705
6706  if
6707   test "x$enable_dependency_tracking" != xno \
6708   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6709   am__fastdepCXX_TRUE=
6710   am__fastdepCXX_FALSE='#'
6711 else
6712   am__fastdepCXX_TRUE='#'
6713   am__fastdepCXX_FALSE=
6714 fi
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6727 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6728 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731
6732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h.  */
6734
6735 #ifdef __ACK__
6736 Amsterdam
6737 #endif
6738
6739 _ACEOF
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6742   gl_cv_c_amsterdam_compiler=yes
6743 else
6744   gl_cv_c_amsterdam_compiler=no
6745 fi
6746 rm -f conftest*
6747
6748
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6751 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6752
6753       if test $gl_cv_c_amsterdam_compiler = yes; then
6754     if test -z "$AR"; then
6755       AR='cc -c.a'
6756     fi
6757     if test -z "$ARFLAGS"; then
6758       ARFLAGS='-o'
6759     fi
6760   else
6761                                                 :
6762   fi
6763
6764         if test -n "$ac_tool_prefix"; then
6765   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}ar; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_AR+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   if test -n "$AR"; then
6773   ac_cv_prog_AR="$AR" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780     for ac_exec_ext in '' $ac_executable_extensions; do
6781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782     ac_cv_prog_AR="${ac_tool_prefix}ar"
6783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787   done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 AR=$ac_cv_prog_AR
6793 if test -n "$AR"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6795 $as_echo "$AR" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801
6802 fi
6803 if test -z "$ac_cv_prog_AR"; then
6804   ac_ct_AR=$AR
6805   # Extract the first word of "ar", so it can be a program name with args.
6806 set dummy ar; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   if test -n "$ac_ct_AR"; then
6813   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820     for ac_exec_ext in '' $ac_executable_extensions; do
6821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822     ac_cv_prog_ac_ct_AR="ar"
6823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827   done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6833 if test -n "$ac_ct_AR"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6835 $as_echo "$ac_ct_AR" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841   if test "x$ac_ct_AR" = x; then
6842     AR="ar"
6843   else
6844     case $cross_compiling:$ac_tool_warned in
6845 yes:)
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848 ac_tool_warned=yes ;;
6849 esac
6850     AR=$ac_ct_AR
6851   fi
6852 else
6853   AR="$ac_cv_prog_AR"
6854 fi
6855
6856   if test -z "$ARFLAGS"; then
6857     ARFLAGS='cr'
6858   fi
6859
6860
6861
6862   if test -z "$RANLIB"; then
6863     if test $gl_cv_c_amsterdam_compiler = yes; then
6864       RANLIB=':'
6865     else
6866             if test -n "$ac_tool_prefix"; then
6867   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_RANLIB+:} false; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$RANLIB"; then
6875   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 RANLIB=$ac_cv_prog_RANLIB
6895 if test -n "$RANLIB"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6897 $as_echo "$RANLIB" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_RANLIB"; then
6906   ac_ct_RANLIB=$RANLIB
6907   # Extract the first word of "ranlib", so it can be a program name with args.
6908 set dummy ranlib; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   if test -n "$ac_ct_RANLIB"; then
6915   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924     ac_cv_prog_ac_ct_RANLIB="ranlib"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6935 if test -n "$ac_ct_RANLIB"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6937 $as_echo "$ac_ct_RANLIB" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943   if test "x$ac_ct_RANLIB" = x; then
6944     RANLIB=":"
6945   else
6946     case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952     RANLIB=$ac_ct_RANLIB
6953   fi
6954 else
6955   RANLIB="$ac_cv_prog_RANLIB"
6956 fi
6957
6958     fi
6959   fi
6960
6961
6962
6963 # Make sure we can run config.sub.
6964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6965   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6968 $as_echo_n "checking build system type... " >&6; }
6969 if ${ac_cv_build+:} false; then :
6970   $as_echo_n "(cached) " >&6
6971 else
6972   ac_build_alias=$build_alias
6973 test "x$ac_build_alias" = x &&
6974   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6975 test "x$ac_build_alias" = x &&
6976   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6977 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6978   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6979
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6982 $as_echo "$ac_cv_build" >&6; }
6983 case $ac_cv_build in
6984 *-*-*) ;;
6985 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6986 esac
6987 build=$ac_cv_build
6988 ac_save_IFS=$IFS; IFS='-'
6989 set x $ac_cv_build
6990 shift
6991 build_cpu=$1
6992 build_vendor=$2
6993 shift; shift
6994 # Remember, the first character of IFS is used to create $*,
6995 # except with old shells:
6996 build_os=$*
6997 IFS=$ac_save_IFS
6998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6999
7000
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7002 $as_echo_n "checking host system type... " >&6; }
7003 if ${ac_cv_host+:} false; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   if test "x$host_alias" = x; then
7007   ac_cv_host=$ac_cv_build
7008 else
7009   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7010     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7011 fi
7012
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7015 $as_echo "$ac_cv_host" >&6; }
7016 case $ac_cv_host in
7017 *-*-*) ;;
7018 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7019 esac
7020 host=$ac_cv_host
7021 ac_save_IFS=$IFS; IFS='-'
7022 set x $ac_cv_host
7023 shift
7024 host_cpu=$1
7025 host_vendor=$2
7026 shift; shift
7027 # Remember, the first character of IFS is used to create $*,
7028 # except with old shells:
7029 host_os=$*
7030 IFS=$ac_save_IFS
7031 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7032
7033
7034
7035
7036
7037   # IEEE behaviour is the default on all CPUs except Alpha and SH
7038   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
7039   # and the GCC 4.1.2 manual).
7040   case "$host_cpu" in
7041     alpha*)
7042       # On Alpha systems, a compiler option provides the behaviour.
7043       # See the ieee(3) manual page, also available at
7044       # <https://backdrift.org/man/tru64/man3/ieee.3.html>
7045       if test -n "$GCC"; then
7046         # GCC has the option -mieee.
7047         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
7048         CPPFLAGS="$CPPFLAGS -mieee"
7049       else
7050         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
7051         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
7052         CPPFLAGS="$CPPFLAGS -ieee"
7053       fi
7054       ;;
7055     sh*)
7056       if test -n "$GCC"; then
7057         # GCC has the option -mieee.
7058         CPPFLAGS="$CPPFLAGS -mieee"
7059       fi
7060       ;;
7061   esac
7062
7063
7064
7065   # Pre-early section.
7066
7067
7068
7069
7070   # Code from module absolute-header:
7071   # Code from module alloca-opt:
7072   # Code from module errno:
7073   # Code from module extensions:
7074   # Code from module extern-inline:
7075   # Code from module float:
7076   # Code from module fpieee:
7077
7078   # Code from module fprintf-posix:
7079   # Code from module fpucw:
7080   # Code from module frexp-nolibm:
7081   # Code from module frexpl-nolibm:
7082   # Code from module fseterr:
7083   # Code from module git-version-gen:
7084   # Code from module havelib:
7085   # Code from module host-cpu-c-abi:
7086   # Code from module include_next:
7087   # Code from module isnand-nolibm:
7088   # Code from module isnanf-nolibm:
7089   # Code from module isnanl-nolibm:
7090   # Code from module limits-h:
7091   # Code from module localcharset:
7092   # Code from module math:
7093   # Code from module memchr:
7094   # Code from module multiarch:
7095   # Code from module nocrash:
7096   # Code from module non-recursive-gnulib-prefix-hack:
7097   # Code from module printf-frexp:
7098   # Code from module printf-frexpl:
7099   # Code from module printf-safe:
7100   # Code from module signbit:
7101   # Code from module size_max:
7102   # Code from module snippet/arg-nonnull:
7103   # Code from module snippet/c++defs:
7104   # Code from module snippet/warn-on-use:
7105   # Code from module snprintf:
7106   # Code from module ssize_t:
7107   # Code from module stddef:
7108   # Code from module stdint:
7109   # Code from module stdio:
7110   # Code from module streq:
7111   # Code from module string:
7112   # Code from module sys_types:
7113   # Code from module unitypes:
7114   # Code from module uniwidth/base:
7115   # Code from module uniwidth/width:
7116   # Code from module vasnprintf:
7117   # Code from module verify:
7118   # Code from module vsnprintf:
7119   # Code from module wchar:
7120   # Code from module wctype-h:
7121   # Code from module wcwidth:
7122   # Code from module xsize:
7123
7124
7125
7126
7127
7128
7129           LIBC_FATAL_STDERR_=1
7130   export LIBC_FATAL_STDERR_
7131
7132 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7133 if test "x$ac_cv_type_size_t" = xyes; then :
7134
7135 else
7136
7137 cat >>confdefs.h <<_ACEOF
7138 #define size_t unsigned int
7139 _ACEOF
7140
7141 fi
7142
7143 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7144 # for constant arguments.  Useless!
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7146 $as_echo_n "checking for working alloca.h... " >&6; }
7147 if ${ac_cv_working_alloca_h+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h.  */
7152 #include <alloca.h>
7153 int
7154 main ()
7155 {
7156 char *p = (char *) alloca (2 * sizeof (int));
7157                           if (p) return 0;
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 if ac_fn_c_try_link "$LINENO"; then :
7163   ac_cv_working_alloca_h=yes
7164 else
7165   ac_cv_working_alloca_h=no
7166 fi
7167 rm -f core conftest.err conftest.$ac_objext \
7168     conftest$ac_exeext conftest.$ac_ext
7169 fi
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7171 $as_echo "$ac_cv_working_alloca_h" >&6; }
7172 if test $ac_cv_working_alloca_h = yes; then
7173
7174 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7175
7176 fi
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7179 $as_echo_n "checking for alloca... " >&6; }
7180 if ${ac_cv_func_alloca_works+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h.  */
7185 #ifdef __GNUC__
7186 # define alloca __builtin_alloca
7187 #else
7188 # ifdef _MSC_VER
7189 #  include <malloc.h>
7190 #  define alloca _alloca
7191 # else
7192 #  ifdef HAVE_ALLOCA_H
7193 #   include <alloca.h>
7194 #  else
7195 #   ifdef _AIX
7196  #pragma alloca
7197 #   else
7198 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7199 void *alloca (size_t);
7200 #    endif
7201 #   endif
7202 #  endif
7203 # endif
7204 #endif
7205
7206 int
7207 main ()
7208 {
7209 char *p = (char *) alloca (1);
7210                                     if (p) return 0;
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 if ac_fn_c_try_link "$LINENO"; then :
7216   ac_cv_func_alloca_works=yes
7217 else
7218   ac_cv_func_alloca_works=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext \
7221     conftest$ac_exeext conftest.$ac_ext
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7224 $as_echo "$ac_cv_func_alloca_works" >&6; }
7225
7226 if test $ac_cv_func_alloca_works = yes; then
7227
7228 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7229
7230 else
7231   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7232 # that cause trouble.  Some versions do not even contain alloca or
7233 # contain a buggy version.  If you still want to use their alloca,
7234 # use ar to extract alloca.o from them instead of compiling alloca.c.
7235
7236
7237
7238
7239
7240 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7241
7242 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7243
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7246 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7247 if ${ac_cv_os_cray+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h.  */
7252 #if defined CRAY && ! defined CRAY2
7253 webecray
7254 #else
7255 wenotbecray
7256 #endif
7257
7258 _ACEOF
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260   $EGREP "webecray" >/dev/null 2>&1; then :
7261   ac_cv_os_cray=yes
7262 else
7263   ac_cv_os_cray=no
7264 fi
7265 rm -f conftest*
7266
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7269 $as_echo "$ac_cv_os_cray" >&6; }
7270 if test $ac_cv_os_cray = yes; then
7271   for ac_func in _getb67 GETB67 getb67; do
7272     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7275
7276 cat >>confdefs.h <<_ACEOF
7277 #define CRAY_STACKSEG_END $ac_func
7278 _ACEOF
7279
7280     break
7281 fi
7282
7283   done
7284 fi
7285
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7287 $as_echo_n "checking stack direction for C alloca... " >&6; }
7288 if ${ac_cv_c_stack_direction+:} false; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   if test "$cross_compiling" = yes; then :
7292   ac_cv_c_stack_direction=0
7293 else
7294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h.  */
7296 $ac_includes_default
7297 int
7298 find_stack_direction (int *addr, int depth)
7299 {
7300   int dir, dummy = 0;
7301   if (! addr)
7302     addr = &dummy;
7303   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7304   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7305   return dir + dummy;
7306 }
7307
7308 int
7309 main (int argc, char **argv)
7310 {
7311   return find_stack_direction (0, argc + !argv + 20) < 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_run "$LINENO"; then :
7315   ac_cv_c_stack_direction=1
7316 else
7317   ac_cv_c_stack_direction=-1
7318 fi
7319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7320   conftest.$ac_objext conftest.beam conftest.$ac_ext
7321 fi
7322
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7325 $as_echo "$ac_cv_c_stack_direction" >&6; }
7326 cat >>confdefs.h <<_ACEOF
7327 #define STACK_DIRECTION $ac_cv_c_stack_direction
7328 _ACEOF
7329
7330
7331 fi
7332
7333
7334
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7336 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7337 if ${gl_cv_have_include_next+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   rm -rf conftestd1a conftestd1b conftestd2
7341      mkdir conftestd1a conftestd1b conftestd2
7342                                                   cat <<EOF > conftestd1a/conftest.h
7343 #define DEFINED_IN_CONFTESTD1
7344 #include_next <conftest.h>
7345 #ifdef DEFINED_IN_CONFTESTD2
7346 int foo;
7347 #else
7348 #error "include_next doesn't work"
7349 #endif
7350 EOF
7351      cat <<EOF > conftestd1b/conftest.h
7352 #define DEFINED_IN_CONFTESTD1
7353 #include <stdio.h>
7354 #include_next <conftest.h>
7355 #ifdef DEFINED_IN_CONFTESTD2
7356 int foo;
7357 #else
7358 #error "include_next doesn't work"
7359 #endif
7360 EOF
7361      cat <<EOF > conftestd2/conftest.h
7362 #ifndef DEFINED_IN_CONFTESTD1
7363 #error "include_next test doesn't work"
7364 #endif
7365 #define DEFINED_IN_CONFTESTD2
7366 EOF
7367      gl_save_CPPFLAGS="$CPPFLAGS"
7368      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7369      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h.  */
7371 #include <conftest.h>
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374   gl_cv_have_include_next=yes
7375 else
7376   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7377         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h.  */
7379 #include <conftest.h>
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382   gl_cv_have_include_next=buggy
7383 else
7384   gl_cv_have_include_next=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390      CPPFLAGS="$gl_save_CPPFLAGS"
7391      rm -rf conftestd1a conftestd1b conftestd2
7392
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7395 $as_echo "$gl_cv_have_include_next" >&6; }
7396   PRAGMA_SYSTEM_HEADER=
7397   if test $gl_cv_have_include_next = yes; then
7398     INCLUDE_NEXT=include_next
7399     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7400     if test -n "$GCC"; then
7401       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7402     fi
7403   else
7404     if test $gl_cv_have_include_next = buggy; then
7405       INCLUDE_NEXT=include
7406       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7407     else
7408       INCLUDE_NEXT=include
7409       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7410     fi
7411   fi
7412
7413
7414
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7416 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7417 if ${gl_cv_pragma_columns+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h.  */
7422
7423 #ifdef __TANDEM
7424 choke me
7425 #endif
7426
7427 _ACEOF
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429   $EGREP "choke me" >/dev/null 2>&1; then :
7430   gl_cv_pragma_columns=yes
7431 else
7432   gl_cv_pragma_columns=no
7433 fi
7434 rm -f conftest*
7435
7436
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7439 $as_echo "$gl_cv_pragma_columns" >&6; }
7440   if test $gl_cv_pragma_columns = yes; then
7441     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
7442   else
7443     PRAGMA_COLUMNS=
7444   fi
7445
7446
7447
7448
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7450 $as_echo_n "checking for complete errno.h... " >&6; }
7451 if ${gl_cv_header_errno_h_complete+:} false; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454
7455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h.  */
7457
7458 #include <errno.h>
7459 #if !defined ETXTBSY
7460 booboo
7461 #endif
7462 #if !defined ENOMSG
7463 booboo
7464 #endif
7465 #if !defined EIDRM
7466 booboo
7467 #endif
7468 #if !defined ENOLINK
7469 booboo
7470 #endif
7471 #if !defined EPROTO
7472 booboo
7473 #endif
7474 #if !defined EMULTIHOP
7475 booboo
7476 #endif
7477 #if !defined EBADMSG
7478 booboo
7479 #endif
7480 #if !defined EOVERFLOW
7481 booboo
7482 #endif
7483 #if !defined ENOTSUP
7484 booboo
7485 #endif
7486 #if !defined ENETRESET
7487 booboo
7488 #endif
7489 #if !defined ECONNABORTED
7490 booboo
7491 #endif
7492 #if !defined ESTALE
7493 booboo
7494 #endif
7495 #if !defined EDQUOT
7496 booboo
7497 #endif
7498 #if !defined ECANCELED
7499 booboo
7500 #endif
7501 #if !defined EOWNERDEAD
7502 booboo
7503 #endif
7504 #if !defined ENOTRECOVERABLE
7505 booboo
7506 #endif
7507 #if !defined EILSEQ
7508 booboo
7509 #endif
7510
7511 _ACEOF
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513   $EGREP "booboo" >/dev/null 2>&1; then :
7514   gl_cv_header_errno_h_complete=no
7515 else
7516   gl_cv_header_errno_h_complete=yes
7517 fi
7518 rm -f conftest*
7519
7520
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7523 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7524   if test $gl_cv_header_errno_h_complete = yes; then
7525     ERRNO_H=''
7526   else
7527
7528
7529
7530
7531
7532
7533
7534
7535      if test $gl_cv_have_include_next = yes; then
7536        gl_cv_next_errno_h='<'errno.h'>'
7537      else
7538        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7539 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7540 if ${gl_cv_next_errno_h+:} false; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543
7544
7545
7546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h.  */
7548 #include <errno.h>
7549 _ACEOF
7550                 case "$host_os" in
7551     aix*) gl_absname_cpp="$ac_cpp -C" ;;
7552     *)    gl_absname_cpp="$ac_cpp" ;;
7553   esac
7554
7555   case "$host_os" in
7556     mingw*)
7557                                           gl_dirsep_regex='[/\\]'
7558       ;;
7559     *)
7560       gl_dirsep_regex='\/'
7561       ;;
7562   esac
7563       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7564   gl_header_literal_regex=`echo 'errno.h' \
7565                            | sed -e "$gl_make_literal_regex_sed"`
7566   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7567       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7568       s|^/[^/]|//&|
7569       p
7570       q
7571     }'
7572
7573         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7574   sed -n "$gl_absolute_header_sed"`
7575
7576            gl_header=$gl_cv_absolute_errno_h
7577            gl_cv_next_errno_h='"'$gl_header'"'
7578
7579
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7582 $as_echo "$gl_cv_next_errno_h" >&6; }
7583      fi
7584      NEXT_ERRNO_H=$gl_cv_next_errno_h
7585
7586      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7587        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7588        gl_next_as_first_directive='<'errno.h'>'
7589      else
7590        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7591        gl_next_as_first_directive=$gl_cv_next_errno_h
7592      fi
7593      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7594
7595
7596
7597
7598     ERRNO_H='errno.h'
7599   fi
7600
7601    if test -n "$ERRNO_H"; then
7602   GL_GENERATE_ERRNO_H_TRUE=
7603   GL_GENERATE_ERRNO_H_FALSE='#'
7604 else
7605   GL_GENERATE_ERRNO_H_TRUE='#'
7606   GL_GENERATE_ERRNO_H_FALSE=
7607 fi
7608
7609
7610   if test -n "$ERRNO_H"; then
7611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7612 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7613 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616
7617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h.  */
7619
7620 #include <errno.h>
7621 #ifdef EMULTIHOP
7622 yes
7623 #endif
7624
7625 _ACEOF
7626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7627   $EGREP "yes" >/dev/null 2>&1; then :
7628   gl_cv_header_errno_h_EMULTIHOP=yes
7629 else
7630   gl_cv_header_errno_h_EMULTIHOP=no
7631 fi
7632 rm -f conftest*
7633
7634       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637
7638 #define _XOPEN_SOURCE_EXTENDED 1
7639 #include <errno.h>
7640 #ifdef EMULTIHOP
7641 yes
7642 #endif
7643
7644 _ACEOF
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646   $EGREP "yes" >/dev/null 2>&1; then :
7647   gl_cv_header_errno_h_EMULTIHOP=hidden
7648 fi
7649 rm -f conftest*
7650
7651         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7652                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
7653 #define _XOPEN_SOURCE_EXTENDED 1
7654 #include <errno.h>
7655 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7656 #include <stdio.h>
7657 #include <stdlib.h>
7658 "; then :
7659
7660 fi
7661
7662         fi
7663       fi
7664
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7667 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7668     case $gl_cv_header_errno_h_EMULTIHOP in
7669       yes | no)
7670         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7671         ;;
7672       *)
7673         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7674         ;;
7675     esac
7676
7677
7678   fi
7679
7680
7681   if test -n "$ERRNO_H"; then
7682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7683 $as_echo_n "checking for ENOLINK value... " >&6; }
7684 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687
7688       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690
7691 #include <errno.h>
7692 #ifdef ENOLINK
7693 yes
7694 #endif
7695
7696 _ACEOF
7697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7698   $EGREP "yes" >/dev/null 2>&1; then :
7699   gl_cv_header_errno_h_ENOLINK=yes
7700 else
7701   gl_cv_header_errno_h_ENOLINK=no
7702 fi
7703 rm -f conftest*
7704
7705       if test $gl_cv_header_errno_h_ENOLINK = no; then
7706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h.  */
7708
7709 #define _XOPEN_SOURCE_EXTENDED 1
7710 #include <errno.h>
7711 #ifdef ENOLINK
7712 yes
7713 #endif
7714
7715 _ACEOF
7716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7717   $EGREP "yes" >/dev/null 2>&1; then :
7718   gl_cv_header_errno_h_ENOLINK=hidden
7719 fi
7720 rm -f conftest*
7721
7722         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7723                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
7724 #define _XOPEN_SOURCE_EXTENDED 1
7725 #include <errno.h>
7726 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7727 #include <stdio.h>
7728 #include <stdlib.h>
7729 "; then :
7730
7731 fi
7732
7733         fi
7734       fi
7735
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7738 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7739     case $gl_cv_header_errno_h_ENOLINK in
7740       yes | no)
7741         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7742         ;;
7743       *)
7744         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7745         ;;
7746     esac
7747
7748
7749   fi
7750
7751
7752   if test -n "$ERRNO_H"; then
7753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7754 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7755 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758
7759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h.  */
7761
7762 #include <errno.h>
7763 #ifdef EOVERFLOW
7764 yes
7765 #endif
7766
7767 _ACEOF
7768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769   $EGREP "yes" >/dev/null 2>&1; then :
7770   gl_cv_header_errno_h_EOVERFLOW=yes
7771 else
7772   gl_cv_header_errno_h_EOVERFLOW=no
7773 fi
7774 rm -f conftest*
7775
7776       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7777         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779
7780 #define _XOPEN_SOURCE_EXTENDED 1
7781 #include <errno.h>
7782 #ifdef EOVERFLOW
7783 yes
7784 #endif
7785
7786 _ACEOF
7787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7788   $EGREP "yes" >/dev/null 2>&1; then :
7789   gl_cv_header_errno_h_EOVERFLOW=hidden
7790 fi
7791 rm -f conftest*
7792
7793         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7794                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
7795 #define _XOPEN_SOURCE_EXTENDED 1
7796 #include <errno.h>
7797 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7798 #include <stdio.h>
7799 #include <stdlib.h>
7800 "; then :
7801
7802 fi
7803
7804         fi
7805       fi
7806
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7809 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7810     case $gl_cv_header_errno_h_EOVERFLOW in
7811       yes | no)
7812         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7813         ;;
7814       *)
7815         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7816         ;;
7817     esac
7818
7819
7820   fi
7821
7822
7823
7824
7825
7826
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7828 $as_echo_n "checking for stdint.h... " >&6; }
7829 if ${gl_cv_header_stdint_h+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834 #include <sys/types.h>
7835             #include <stdint.h>
7836 int
7837 main ()
7838 {
7839 uintmax_t i = (uintmax_t) -1; return !i;
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_compile "$LINENO"; then :
7845   gl_cv_header_stdint_h=yes
7846 else
7847   gl_cv_header_stdint_h=no
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7852 $as_echo "$gl_cv_header_stdint_h" >&6; }
7853   if test $gl_cv_header_stdint_h = yes; then
7854
7855 cat >>confdefs.h <<_ACEOF
7856 #define HAVE_STDINT_H_WITH_UINTMAX 1
7857 _ACEOF
7858
7859   fi
7860
7861
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7863 $as_echo_n "checking for inttypes.h... " >&6; }
7864 if ${gl_cv_header_inttypes_h+:} false; then :
7865   $as_echo_n "(cached) " >&6
7866 else
7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869
7870 #include <sys/types.h>
7871 #include <inttypes.h>
7872
7873 int
7874 main ()
7875 {
7876 uintmax_t i = (uintmax_t) -1; return !i;
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_compile "$LINENO"; then :
7882   gl_cv_header_inttypes_h=yes
7883 else
7884   gl_cv_header_inttypes_h=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7889 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7890   if test $gl_cv_header_inttypes_h = yes; then
7891
7892 cat >>confdefs.h <<_ACEOF
7893 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7894 _ACEOF
7895
7896   fi
7897
7898
7899
7900
7901
7902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
7903 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
7904 if ${gl_cv_func_printf_sizes_c99+:} false; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907
7908       if test "$cross_compiling" = yes; then :
7909
7910          case "$host_os" in
7911                                  # Guess yes on glibc systems.
7912            *-gnu* | gnu*)        gl_cv_func_printf_sizes_c99="guessing yes";;
7913                                  # Guess yes on FreeBSD >= 5.
7914            freebsd[1-4].*)       gl_cv_func_printf_sizes_c99="guessing no";;
7915            freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7916                                  # Guess yes on Mac OS X >= 10.3.
7917            darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
7918            darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
7919                                  # Guess yes on OpenBSD >= 3.9.
7920            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
7921                                  gl_cv_func_printf_sizes_c99="guessing no";;
7922            openbsd*)             gl_cv_func_printf_sizes_c99="guessing yes";;
7923                                  # Guess yes on Solaris >= 2.10.
7924            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
7925            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
7926                                  # Guess yes on NetBSD >= 3.
7927            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7928                                  gl_cv_func_printf_sizes_c99="guessing no";;
7929            netbsd*)              gl_cv_func_printf_sizes_c99="guessing yes";;
7930                                  # Guess yes on MSVC, no on mingw.
7931            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933
7934 #ifdef _MSC_VER
7935  Known
7936 #endif
7937
7938 _ACEOF
7939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940   $EGREP "Known" >/dev/null 2>&1; then :
7941   gl_cv_func_printf_sizes_c99="guessing yes"
7942 else
7943   gl_cv_func_printf_sizes_c99="guessing no"
7944 fi
7945 rm -f conftest*
7946
7947                                  ;;
7948                                  # If we don't know, assume the worst.
7949            *)                    gl_cv_func_printf_sizes_c99="guessing no";;
7950          esac
7951
7952 else
7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h.  */
7955
7956 #include <stddef.h>
7957 #include <stdio.h>
7958 #include <string.h>
7959 #include <sys/types.h>
7960 #if HAVE_STDINT_H_WITH_UINTMAX
7961 # include <stdint.h>
7962 #endif
7963 #if HAVE_INTTYPES_H_WITH_UINTMAX
7964 # include <inttypes.h>
7965 #endif
7966 static char buf[100];
7967 int main ()
7968 {
7969   int result = 0;
7970 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
7971   buf[0] = '\0';
7972   if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
7973       || strcmp (buf, "12345671 33") != 0)
7974     result |= 1;
7975 #else
7976   result |= 1;
7977 #endif
7978   buf[0] = '\0';
7979   if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
7980       || strcmp (buf, "12345672 33") != 0)
7981     result |= 2;
7982   buf[0] = '\0';
7983   if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
7984       || strcmp (buf, "12345673 33") != 0)
7985     result |= 4;
7986   buf[0] = '\0';
7987   if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
7988       || strcmp (buf, "1.5 33") != 0)
7989     result |= 8;
7990   return result;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_run "$LINENO"; then :
7994   gl_cv_func_printf_sizes_c99=yes
7995 else
7996   gl_cv_func_printf_sizes_c99=no
7997 fi
7998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7999   conftest.$ac_objext conftest.beam conftest.$ac_ext
8000 fi
8001
8002
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
8005 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
8006
8007
8008
8009      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
8010 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
8011 if ${gl_cv_func_printf_long_double+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014
8015       if test "$cross_compiling" = yes; then :
8016   case "$host_os" in
8017            beos*)  gl_cv_func_printf_long_double="guessing no";;
8018                    # Guess yes on MSVC, no on mingw.
8019            mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h.  */
8021
8022 #ifdef _MSC_VER
8023  Known
8024 #endif
8025
8026 _ACEOF
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028   $EGREP "Known" >/dev/null 2>&1; then :
8029   gl_cv_func_printf_long_double="guessing yes"
8030 else
8031   gl_cv_func_printf_long_double="guessing no"
8032 fi
8033 rm -f conftest*
8034
8035                    ;;
8036            *)      gl_cv_func_printf_long_double="guessing yes";;
8037          esac
8038
8039 else
8040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h.  */
8042
8043 #include <stdio.h>
8044 #include <string.h>
8045 static char buf[10000];
8046 int main ()
8047 {
8048   int result = 0;
8049   buf[0] = '\0';
8050   if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
8051       || strcmp (buf, "1.750000 33") != 0)
8052     result |= 1;
8053   buf[0] = '\0';
8054   if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
8055       || strcmp (buf, "1.750000e+00 33") != 0)
8056     result |= 2;
8057   buf[0] = '\0';
8058   if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
8059       || strcmp (buf, "1.75 33") != 0)
8060     result |= 4;
8061   return result;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_run "$LINENO"; then :
8065   gl_cv_func_printf_long_double=yes
8066 else
8067   gl_cv_func_printf_long_double=no
8068 fi
8069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8070   conftest.$ac_objext conftest.beam conftest.$ac_ext
8071 fi
8072
8073
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
8076 $as_echo "$gl_cv_func_printf_long_double" >&6; }
8077
8078
8079
8080      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
8081 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
8082 if ${gl_cv_func_printf_infinite+:} false; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085
8086       if test "$cross_compiling" = yes; then :
8087
8088          case "$host_os" in
8089                                  # Guess yes on glibc systems.
8090            *-gnu* | gnu*)        gl_cv_func_printf_infinite="guessing yes";;
8091                                  # Guess yes on FreeBSD >= 6.
8092            freebsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
8093            freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
8094                                  # Guess yes on Mac OS X >= 10.3.
8095            darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
8096            darwin*)              gl_cv_func_printf_infinite="guessing yes";;
8097                                  # Guess yes on HP-UX >= 11.
8098            hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
8099            hpux*)                gl_cv_func_printf_infinite="guessing yes";;
8100                                  # Guess yes on NetBSD >= 3.
8101            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
8102                                  gl_cv_func_printf_infinite="guessing no";;
8103            netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
8104                                  # Guess yes on BeOS.
8105            beos*)                gl_cv_func_printf_infinite="guessing yes";;
8106                                  # Guess yes on MSVC, no on mingw.
8107            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h.  */
8109
8110 #ifdef _MSC_VER
8111  Known
8112 #endif
8113
8114 _ACEOF
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116   $EGREP "Known" >/dev/null 2>&1; then :
8117   gl_cv_func_printf_infinite="guessing yes"
8118 else
8119   gl_cv_func_printf_infinite="guessing no"
8120 fi
8121 rm -f conftest*
8122
8123                                  ;;
8124                                  # If we don't know, assume the worst.
8125            *)                    gl_cv_func_printf_infinite="guessing no";;
8126          esac
8127
8128 else
8129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h.  */
8131
8132 #include <stdio.h>
8133 #include <string.h>
8134 static int
8135 strisnan (const char *string, size_t start_index, size_t end_index)
8136 {
8137   if (start_index < end_index)
8138     {
8139       if (string[start_index] == '-')
8140         start_index++;
8141       if (start_index + 3 <= end_index
8142           && memcmp (string + start_index, "nan", 3) == 0)
8143         {
8144           start_index += 3;
8145           if (start_index == end_index
8146               || (string[start_index] == '(' && string[end_index - 1] == ')'))
8147             return 1;
8148         }
8149     }
8150   return 0;
8151 }
8152 static int
8153 have_minus_zero ()
8154 {
8155   static double plus_zero = 0.0;
8156   double minus_zero = - plus_zero;
8157   return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
8158 }
8159 static char buf[10000];
8160 static double zero = 0.0;
8161 int main ()
8162 {
8163   int result = 0;
8164   if (sprintf (buf, "%f", 1.0 / zero) < 0
8165       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8166     result |= 1;
8167   if (sprintf (buf, "%f", -1.0 / zero) < 0
8168       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8169     result |= 1;
8170   if (sprintf (buf, "%f", zero / zero) < 0
8171       || !strisnan (buf, 0, strlen (buf)))
8172     result |= 2;
8173   if (sprintf (buf, "%e", 1.0 / zero) < 0
8174       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8175     result |= 4;
8176   if (sprintf (buf, "%e", -1.0 / zero) < 0
8177       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8178     result |= 4;
8179   if (sprintf (buf, "%e", zero / zero) < 0
8180       || !strisnan (buf, 0, strlen (buf)))
8181     result |= 8;
8182   if (sprintf (buf, "%g", 1.0 / zero) < 0
8183       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8184     result |= 16;
8185   if (sprintf (buf, "%g", -1.0 / zero) < 0
8186       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8187     result |= 16;
8188   if (sprintf (buf, "%g", zero / zero) < 0
8189       || !strisnan (buf, 0, strlen (buf)))
8190     result |= 32;
8191   /* This test fails on HP-UX 10.20.  */
8192   if (have_minus_zero ())
8193     if (sprintf (buf, "%g", - zero) < 0
8194         || strcmp (buf, "-0") != 0)
8195     result |= 64;
8196   return result;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_run "$LINENO"; then :
8200   gl_cv_func_printf_infinite=yes
8201 else
8202   gl_cv_func_printf_infinite=no
8203 fi
8204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8205   conftest.$ac_objext conftest.beam conftest.$ac_ext
8206 fi
8207
8208
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
8211 $as_echo "$gl_cv_func_printf_infinite" >&6; }
8212
8213
8214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8215 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8216 if ${ac_cv_c_bigendian+:} false; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   ac_cv_c_bigendian=unknown
8220     # See if we're dealing with a universal compiler.
8221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223 #ifndef __APPLE_CC__
8224                not a universal capable compiler
8225              #endif
8226              typedef int dummy;
8227
8228 _ACEOF
8229 if ac_fn_c_try_compile "$LINENO"; then :
8230
8231         # Check for potential -arch flags.  It is not universal unless
8232         # there are at least two -arch flags with different values.
8233         ac_arch=
8234         ac_prev=
8235         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8236          if test -n "$ac_prev"; then
8237            case $ac_word in
8238              i?86 | x86_64 | ppc | ppc64)
8239                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8240                  ac_arch=$ac_word
8241                else
8242                  ac_cv_c_bigendian=universal
8243                  break
8244                fi
8245                ;;
8246            esac
8247            ac_prev=
8248          elif test "x$ac_word" = "x-arch"; then
8249            ac_prev=arch
8250          fi
8251        done
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254     if test $ac_cv_c_bigendian = unknown; then
8255       # See if sys/param.h defines the BYTE_ORDER macro.
8256       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258 #include <sys/types.h>
8259              #include <sys/param.h>
8260
8261 int
8262 main ()
8263 {
8264 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8265                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8266                      && LITTLE_ENDIAN)
8267               bogus endian macros
8268              #endif
8269
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275   # It does; now see whether it defined to BIG_ENDIAN or not.
8276          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h.  */
8278 #include <sys/types.h>
8279                 #include <sys/param.h>
8280
8281 int
8282 main ()
8283 {
8284 #if BYTE_ORDER != BIG_ENDIAN
8285                  not big endian
8286                 #endif
8287
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_compile "$LINENO"; then :
8293   ac_cv_c_bigendian=yes
8294 else
8295   ac_cv_c_bigendian=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300     fi
8301     if test $ac_cv_c_bigendian = unknown; then
8302       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h.  */
8305 #include <limits.h>
8306
8307 int
8308 main ()
8309 {
8310 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8311               bogus endian macros
8312              #endif
8313
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319   # It does; now see whether it defined to _BIG_ENDIAN or not.
8320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h.  */
8322 #include <limits.h>
8323
8324 int
8325 main ()
8326 {
8327 #ifndef _BIG_ENDIAN
8328                  not big endian
8329                 #endif
8330
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336   ac_cv_c_bigendian=yes
8337 else
8338   ac_cv_c_bigendian=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343     fi
8344     if test $ac_cv_c_bigendian = unknown; then
8345       # Compile a test program.
8346       if test "$cross_compiling" = yes; then :
8347   # Try to guess by grepping values from an object file.
8348          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h.  */
8350 short int ascii_mm[] =
8351                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8352                 short int ascii_ii[] =
8353                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8354                 int use_ascii (int i) {
8355                   return ascii_mm[i] + ascii_ii[i];
8356                 }
8357                 short int ebcdic_ii[] =
8358                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8359                 short int ebcdic_mm[] =
8360                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8361                 int use_ebcdic (int i) {
8362                   return ebcdic_mm[i] + ebcdic_ii[i];
8363                 }
8364                 extern int foo;
8365
8366 int
8367 main ()
8368 {
8369 return use_ascii (foo) == use_ebcdic (foo);
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_compile "$LINENO"; then :
8375   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8376               ac_cv_c_bigendian=yes
8377             fi
8378             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8379               if test "$ac_cv_c_bigendian" = unknown; then
8380                 ac_cv_c_bigendian=no
8381               else
8382                 # finding both strings is unlikely to happen, but who knows?
8383                 ac_cv_c_bigendian=unknown
8384               fi
8385             fi
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 else
8389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h.  */
8391 $ac_includes_default
8392 int
8393 main ()
8394 {
8395
8396              /* Are we little or big endian?  From Harbison&Steele.  */
8397              union
8398              {
8399                long int l;
8400                char c[sizeof (long int)];
8401              } u;
8402              u.l = 1;
8403              return u.c[sizeof (long int) - 1] == 1;
8404
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_run "$LINENO"; then :
8410   ac_cv_c_bigendian=no
8411 else
8412   ac_cv_c_bigendian=yes
8413 fi
8414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8415   conftest.$ac_objext conftest.beam conftest.$ac_ext
8416 fi
8417
8418     fi
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8421 $as_echo "$ac_cv_c_bigendian" >&6; }
8422  case $ac_cv_c_bigendian in #(
8423    yes)
8424      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8425 ;; #(
8426    no)
8427       ;; #(
8428    universal)
8429
8430 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8431
8432      ;; #(
8433    *)
8434      as_fn_error $? "unknown endianness
8435  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8436  esac
8437
8438
8439
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8441 $as_echo_n "checking whether long double and double are the same... " >&6; }
8442 if ${gl_cv_long_double_equals_double+:} false; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h.  */
8447 #include <float.h>
8448 int
8449 main ()
8450 {
8451 typedef int check[sizeof (long double) == sizeof (double)
8452                               && LDBL_MANT_DIG == DBL_MANT_DIG
8453                               && LDBL_MAX_EXP == DBL_MAX_EXP
8454                               && LDBL_MIN_EXP == DBL_MIN_EXP
8455                               ? 1 : -1];
8456
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462   gl_cv_long_double_equals_double=yes
8463 else
8464   gl_cv_long_double_equals_double=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467
8468 fi
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8470 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8471   if test $gl_cv_long_double_equals_double = yes; then
8472
8473 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8474
8475     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8476   else
8477     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8478   fi
8479
8480
8481
8482
8483
8484
8485
8486          if test -n "$gl_printf_safe"; then
8487
8488 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
8489
8490   fi
8491   case "$gl_cv_func_printf_long_double" in
8492     *yes)
8493       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
8494 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
8495 if ${gl_cv_func_printf_infinite_long_double+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498
8499           if test "$cross_compiling" = yes; then :
8500   case "$host_cpu" in
8501                                      # Guess no on ia64, x86_64, i386.
8502                ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
8503                *)
8504                  case "$host_os" in
8505                                          # Guess yes on glibc systems.
8506                    *-gnu* | gnu*)        gl_cv_func_printf_infinite_long_double="guessing yes";;
8507                                          # Guess yes on FreeBSD >= 6.
8508                    freebsd[1-5].*)       gl_cv_func_printf_infinite_long_double="guessing no";;
8509                    freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8510                                          # Guess yes on HP-UX >= 11.
8511                    hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
8512                    hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
8513                                          # Guess yes on MSVC, no on mingw.
8514                    mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h.  */
8516
8517 #ifdef _MSC_VER
8518  Known
8519 #endif
8520
8521 _ACEOF
8522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8523   $EGREP "Known" >/dev/null 2>&1; then :
8524   gl_cv_func_printf_infinite_long_double="guessing yes"
8525 else
8526   gl_cv_func_printf_infinite_long_double="guessing no"
8527 fi
8528 rm -f conftest*
8529
8530                                          ;;
8531                                          # If we don't know, assume the worst.
8532                    *)                    gl_cv_func_printf_infinite_long_double="guessing no";;
8533                  esac
8534                  ;;
8535              esac
8536
8537 else
8538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h.  */
8540
8541
8542 #include <stdlib.h>
8543 #if defined __MACH__ && defined __APPLE__
8544 /* Avoid a crash on Mac OS X.  */
8545 #include <mach/mach.h>
8546 #include <mach/mach_error.h>
8547 #include <mach/thread_status.h>
8548 #include <mach/exception.h>
8549 #include <mach/task.h>
8550 #include <pthread.h>
8551 /* The exception port on which our thread listens.  */
8552 static mach_port_t our_exception_port;
8553 /* The main function of the thread listening for exceptions of type
8554    EXC_BAD_ACCESS.  */
8555 static void *
8556 mach_exception_thread (void *arg)
8557 {
8558   /* Buffer for a message to be received.  */
8559   struct {
8560     mach_msg_header_t head;
8561     mach_msg_body_t msgh_body;
8562     char data[1024];
8563   } msg;
8564   mach_msg_return_t retval;
8565   /* Wait for a message on the exception port.  */
8566   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8567                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8568   if (retval != MACH_MSG_SUCCESS)
8569     abort ();
8570   exit (1);
8571 }
8572 static void
8573 nocrash_init (void)
8574 {
8575   mach_port_t self = mach_task_self ();
8576   /* Allocate a port on which the thread shall listen for exceptions.  */
8577   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8578       == KERN_SUCCESS) {
8579     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
8580     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8581                                 MACH_MSG_TYPE_MAKE_SEND)
8582         == KERN_SUCCESS) {
8583       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
8584          for us.  */
8585       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8586       /* Create the thread listening on the exception port.  */
8587       pthread_attr_t attr;
8588       pthread_t thread;
8589       if (pthread_attr_init (&attr) == 0
8590           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8591           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8592         pthread_attr_destroy (&attr);
8593         /* Replace the exception port info for these exceptions with our own.
8594            Note that we replace the exception port for the entire task, not only
8595            for a particular thread.  This has the effect that when our exception
8596            port gets the message, the thread specific exception port has already
8597            been asked, and we don't need to bother about it.
8598            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
8599         task_set_exception_ports (self, mask, our_exception_port,
8600                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8601       }
8602     }
8603   }
8604 }
8605 #elif defined _WIN32 && ! defined __CYGWIN__
8606 /* Avoid a crash on native Windows.  */
8607 #define WIN32_LEAN_AND_MEAN
8608 #include <windows.h>
8609 #include <winerror.h>
8610 static LONG WINAPI
8611 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
8612 {
8613   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
8614     {
8615     case EXCEPTION_ACCESS_VIOLATION:
8616     case EXCEPTION_IN_PAGE_ERROR:
8617     case EXCEPTION_STACK_OVERFLOW:
8618     case EXCEPTION_GUARD_PAGE:
8619     case EXCEPTION_PRIV_INSTRUCTION:
8620     case EXCEPTION_ILLEGAL_INSTRUCTION:
8621     case EXCEPTION_DATATYPE_MISALIGNMENT:
8622     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
8623     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
8624       exit (1);
8625     }
8626   return EXCEPTION_CONTINUE_SEARCH;
8627 }
8628 static void
8629 nocrash_init (void)
8630 {
8631   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
8632 }
8633 #else
8634 /* Avoid a crash on POSIX systems.  */
8635 #include <signal.h>
8636 #include <unistd.h>
8637 /* A POSIX signal handler.  */
8638 static void
8639 exception_handler (int sig)
8640 {
8641   _exit (1);
8642 }
8643 static void
8644 nocrash_init (void)
8645 {
8646 #ifdef SIGSEGV
8647   signal (SIGSEGV, exception_handler);
8648 #endif
8649 #ifdef SIGBUS
8650   signal (SIGBUS, exception_handler);
8651 #endif
8652 }
8653 #endif
8654
8655 #include <float.h>
8656 #include <stdio.h>
8657 #include <string.h>
8658 static int
8659 strisnan (const char *string, size_t start_index, size_t end_index)
8660 {
8661   if (start_index < end_index)
8662     {
8663       if (string[start_index] == '-')
8664         start_index++;
8665       if (start_index + 3 <= end_index
8666           && memcmp (string + start_index, "nan", 3) == 0)
8667         {
8668           start_index += 3;
8669           if (start_index == end_index
8670               || (string[start_index] == '(' && string[end_index - 1] == ')'))
8671             return 1;
8672         }
8673     }
8674   return 0;
8675 }
8676 static char buf[10000];
8677 static long double zeroL = 0.0L;
8678 int main ()
8679 {
8680   int result = 0;
8681   nocrash_init();
8682   if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
8683       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8684     result |= 1;
8685   if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
8686       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8687     result |= 1;
8688   if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
8689       || !strisnan (buf, 0, strlen (buf)))
8690     result |= 1;
8691   if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
8692       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8693     result |= 1;
8694   if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
8695       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8696     result |= 1;
8697   if (sprintf (buf, "%Le", zeroL / zeroL) < 0
8698       || !strisnan (buf, 0, strlen (buf)))
8699     result |= 1;
8700   if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
8701       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8702     result |= 1;
8703   if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
8704       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8705     result |= 1;
8706   if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
8707       || !strisnan (buf, 0, strlen (buf)))
8708     result |= 1;
8709 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
8710 /* Representation of an 80-bit 'long double' as an initializer for a sequence
8711    of 'unsigned int' words.  */
8712 # ifdef WORDS_BIGENDIAN
8713 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
8714      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
8715        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
8716        (unsigned int) (mantlo) << 16                                        \
8717      }
8718 # else
8719 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
8720      { mantlo, manthi, exponent }
8721 # endif
8722   { /* Quiet NaN.  */
8723     static union { unsigned int word[4]; long double value; } x =
8724       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
8725     if (sprintf (buf, "%Lf", x.value) < 0
8726         || !strisnan (buf, 0, strlen (buf)))
8727       result |= 2;
8728     if (sprintf (buf, "%Le", x.value) < 0
8729         || !strisnan (buf, 0, strlen (buf)))
8730       result |= 2;
8731     if (sprintf (buf, "%Lg", x.value) < 0
8732         || !strisnan (buf, 0, strlen (buf)))
8733       result |= 2;
8734   }
8735   {
8736     /* Signalling NaN.  */
8737     static union { unsigned int word[4]; long double value; } x =
8738       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
8739     if (sprintf (buf, "%Lf", x.value) < 0
8740         || !strisnan (buf, 0, strlen (buf)))
8741       result |= 2;
8742     if (sprintf (buf, "%Le", x.value) < 0
8743         || !strisnan (buf, 0, strlen (buf)))
8744       result |= 2;
8745     if (sprintf (buf, "%Lg", x.value) < 0
8746         || !strisnan (buf, 0, strlen (buf)))
8747       result |= 2;
8748   }
8749   { /* Pseudo-NaN.  */
8750     static union { unsigned int word[4]; long double value; } x =
8751       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
8752     if (sprintf (buf, "%Lf", x.value) <= 0)
8753       result |= 4;
8754     if (sprintf (buf, "%Le", x.value) <= 0)
8755       result |= 4;
8756     if (sprintf (buf, "%Lg", x.value) <= 0)
8757       result |= 4;
8758   }
8759   { /* Pseudo-Infinity.  */
8760     static union { unsigned int word[4]; long double value; } x =
8761       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
8762     if (sprintf (buf, "%Lf", x.value) <= 0)
8763       result |= 8;
8764     if (sprintf (buf, "%Le", x.value) <= 0)
8765       result |= 8;
8766     if (sprintf (buf, "%Lg", x.value) <= 0)
8767       result |= 8;
8768   }
8769   { /* Pseudo-Zero.  */
8770     static union { unsigned int word[4]; long double value; } x =
8771       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
8772     if (sprintf (buf, "%Lf", x.value) <= 0)
8773       result |= 16;
8774     if (sprintf (buf, "%Le", x.value) <= 0)
8775       result |= 16;
8776     if (sprintf (buf, "%Lg", x.value) <= 0)
8777       result |= 16;
8778   }
8779   { /* Unnormalized number.  */
8780     static union { unsigned int word[4]; long double value; } x =
8781       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
8782     if (sprintf (buf, "%Lf", x.value) <= 0)
8783       result |= 32;
8784     if (sprintf (buf, "%Le", x.value) <= 0)
8785       result |= 32;
8786     if (sprintf (buf, "%Lg", x.value) <= 0)
8787       result |= 32;
8788   }
8789   { /* Pseudo-Denormal.  */
8790     static union { unsigned int word[4]; long double value; } x =
8791       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
8792     if (sprintf (buf, "%Lf", x.value) <= 0)
8793       result |= 64;
8794     if (sprintf (buf, "%Le", x.value) <= 0)
8795       result |= 64;
8796     if (sprintf (buf, "%Lg", x.value) <= 0)
8797       result |= 64;
8798   }
8799 #endif
8800   return result;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_run "$LINENO"; then :
8804   gl_cv_func_printf_infinite_long_double=yes
8805 else
8806   gl_cv_func_printf_infinite_long_double=no
8807 fi
8808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8809   conftest.$ac_objext conftest.beam conftest.$ac_ext
8810 fi
8811
8812
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
8815 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
8816       ;;
8817     *)
8818       gl_cv_func_printf_infinite_long_double="irrelevant"
8819       ;;
8820   esac
8821
8822
8823
8824      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
8825 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
8826 if ${gl_cv_func_printf_directive_a+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829
8830       if test "$cross_compiling" = yes; then :
8831
8832          case "$host_os" in
8833                                  # Guess yes on glibc >= 2.5 systems.
8834            *-gnu* | gnu*)
8835              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h.  */
8837
8838                #include <features.h>
8839                #ifdef __GNU_LIBRARY__
8840                 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
8841                  BZ2908
8842                 #endif
8843                #endif
8844
8845 _ACEOF
8846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847   $EGREP "BZ2908" >/dev/null 2>&1; then :
8848   gl_cv_func_printf_directive_a="guessing yes"
8849 else
8850   gl_cv_func_printf_directive_a="guessing no"
8851 fi
8852 rm -f conftest*
8853
8854              ;;
8855                                  # Guess no on native Windows.
8856            mingw*)               gl_cv_func_printf_directive_a="guessing no";;
8857                                  # If we don't know, assume the worst.
8858            *)                    gl_cv_func_printf_directive_a="guessing no";;
8859          esac
8860
8861 else
8862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h.  */
8864
8865 #include <stdio.h>
8866 #include <string.h>
8867 static char buf[100];
8868 static double zero = 0.0;
8869 int main ()
8870 {
8871   int result = 0;
8872   if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
8873       || (strcmp (buf, "0x1.922p+1 33") != 0
8874           && strcmp (buf, "0x3.244p+0 33") != 0
8875           && strcmp (buf, "0x6.488p-1 33") != 0
8876           && strcmp (buf, "0xc.91p-2 33") != 0))
8877     result |= 1;
8878   if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
8879       || (strcmp (buf, "-0X1.922P+1 33") != 0
8880           && strcmp (buf, "-0X3.244P+0 33") != 0
8881           && strcmp (buf, "-0X6.488P-1 33") != 0
8882           && strcmp (buf, "-0XC.91P-2 33") != 0))
8883     result |= 2;
8884   /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
8885   if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
8886       || (strcmp (buf, "0x1.83p+0 33") != 0
8887           && strcmp (buf, "0x3.05p-1 33") != 0
8888           && strcmp (buf, "0x6.0ap-2 33") != 0
8889           && strcmp (buf, "0xc.14p-3 33") != 0))
8890     result |= 4;
8891   /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round.  */
8892   if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0
8893       || (strcmp (buf, "0x2p+0 33") != 0
8894           && strcmp (buf, "0x3p-1 33") != 0
8895           && strcmp (buf, "0x6p-2 33") != 0
8896           && strcmp (buf, "0xcp-3 33") != 0))
8897     result |= 4;
8898   /* This catches a FreeBSD 6.1 bug.  See
8899      <https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html> */
8900   if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
8901       || buf[0] == '0')
8902     result |= 8;
8903   /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug.  */
8904   if (sprintf (buf, "%.1a", 1.999) < 0
8905       || (strcmp (buf, "0x1.0p+1") != 0
8906           && strcmp (buf, "0x2.0p+0") != 0
8907           && strcmp (buf, "0x4.0p-1") != 0
8908           && strcmp (buf, "0x8.0p-2") != 0))
8909     result |= 16;
8910   /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
8911      glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
8912   if (sprintf (buf, "%.1La", 1.999L) < 0
8913       || (strcmp (buf, "0x1.0p+1") != 0
8914           && strcmp (buf, "0x2.0p+0") != 0
8915           && strcmp (buf, "0x4.0p-1") != 0
8916           && strcmp (buf, "0x8.0p-2") != 0))
8917     result |= 32;
8918   return result;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_run "$LINENO"; then :
8922   gl_cv_func_printf_directive_a=yes
8923 else
8924   gl_cv_func_printf_directive_a=no
8925 fi
8926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8927   conftest.$ac_objext conftest.beam conftest.$ac_ext
8928 fi
8929
8930
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
8933 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
8934
8935
8936
8937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
8938 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
8939 if ${gl_cv_func_printf_directive_f+:} false; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942
8943       if test "$cross_compiling" = yes; then :
8944
8945          case "$host_os" in
8946                                  # Guess yes on glibc systems.
8947            *-gnu* | gnu*)        gl_cv_func_printf_directive_f="guessing yes";;
8948                                  # Guess yes on FreeBSD >= 6.
8949            freebsd[1-5].*)       gl_cv_func_printf_directive_f="guessing no";;
8950            freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
8951                                  # Guess yes on Mac OS X >= 10.3.
8952            darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
8953            darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
8954                                  # Guess yes on Solaris >= 2.10.
8955            solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
8956            solaris*)             gl_cv_func_printf_directive_f="guessing no";;
8957                                  # Guess yes on MSVC, no on mingw.
8958            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h.  */
8960
8961 #ifdef _MSC_VER
8962  Known
8963 #endif
8964
8965 _ACEOF
8966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8967   $EGREP "Known" >/dev/null 2>&1; then :
8968   gl_cv_func_printf_directive_f="guessing yes"
8969 else
8970   gl_cv_func_printf_directive_f="guessing no"
8971 fi
8972 rm -f conftest*
8973
8974                                  ;;
8975                                  # If we don't know, assume the worst.
8976            *)                    gl_cv_func_printf_directive_f="guessing no";;
8977          esac
8978
8979 else
8980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h.  */
8982
8983 #include <stdio.h>
8984 #include <string.h>
8985 static char buf[100];
8986 static double zero = 0.0;
8987 int main ()
8988 {
8989   int result = 0;
8990   if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
8991       || strcmp (buf, "1234567.000000 33") != 0)
8992     result |= 1;
8993   if (sprintf (buf, "%F", 1.0 / zero) < 0
8994       || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
8995     result |= 2;
8996   /* This catches a Cygwin 1.5.x bug.  */
8997   if (sprintf (buf, "%.F", 1234.0) < 0
8998       || strcmp (buf, "1234") != 0)
8999     result |= 4;
9000   return result;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_run "$LINENO"; then :
9004   gl_cv_func_printf_directive_f=yes
9005 else
9006   gl_cv_func_printf_directive_f=no
9007 fi
9008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9009   conftest.$ac_objext conftest.beam conftest.$ac_ext
9010 fi
9011
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
9015 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
9016
9017
9018
9019      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
9020 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
9021 if ${gl_cv_func_printf_directive_n+:} false; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024
9025       if test "$cross_compiling" = yes; then :
9026   case "$host_os" in
9027                    # Guess no on native Windows.
9028            mingw*) gl_cv_func_printf_directive_n="guessing no";;
9029            *)      gl_cv_func_printf_directive_n="guessing yes";;
9030          esac
9031
9032 else
9033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h.  */
9035
9036 #include <stdio.h>
9037 #include <stdlib.h>
9038 #include <string.h>
9039 #ifdef _MSC_VER
9040 /* See page about "Parameter Validation" on msdn.microsoft.com.  */
9041 static void cdecl
9042 invalid_parameter_handler (const wchar_t *expression,
9043                            const wchar_t *function,
9044                            const wchar_t *file, unsigned int line,
9045                            uintptr_t dummy)
9046 {
9047   exit (1);
9048 }
9049 #endif
9050 static char fmtstring[10];
9051 static char buf[100];
9052 int main ()
9053 {
9054   int count = -1;
9055 #ifdef _MSC_VER
9056   _set_invalid_parameter_handler (invalid_parameter_handler);
9057 #endif
9058   /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
9059      support %n in format strings in read-only memory but not in writable
9060      memory.  */
9061   strcpy (fmtstring, "%d %n");
9062   if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
9063       || strcmp (buf, "123 ") != 0
9064       || count != 4)
9065     return 1;
9066   return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_run "$LINENO"; then :
9070   gl_cv_func_printf_directive_n=yes
9071 else
9072   gl_cv_func_printf_directive_n=no
9073 fi
9074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9075   conftest.$ac_objext conftest.beam conftest.$ac_ext
9076 fi
9077
9078
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
9081 $as_echo "$gl_cv_func_printf_directive_n" >&6; }
9082
9083
9084
9085      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
9086 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
9087 if ${gl_cv_func_printf_directive_ls+:} false; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090
9091       if test "$cross_compiling" = yes; then :
9092
9093          case "$host_os" in
9094            openbsd*)       gl_cv_func_printf_directive_ls="guessing no";;
9095            irix*)          gl_cv_func_printf_directive_ls="guessing no";;
9096            solaris*)       gl_cv_func_printf_directive_ls="guessing no";;
9097            cygwin*)        gl_cv_func_printf_directive_ls="guessing no";;
9098            beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
9099                            # Guess yes on native Windows.
9100            mingw*)         gl_cv_func_printf_directive_ls="guessing yes";;
9101            *)              gl_cv_func_printf_directive_ls="guessing yes";;
9102          esac
9103
9104 else
9105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h.  */
9107
9108 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9109    <wchar.h>.
9110    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9111    included before <wchar.h>.  */
9112 #include <stddef.h>
9113 #include <stdio.h>
9114 #include <time.h>
9115 #include <wchar.h>
9116 #include <string.h>
9117 int main ()
9118 {
9119   int result = 0;
9120   char buf[100];
9121   /* Test whether %ls works at all.
9122      This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
9123      Cygwin 1.5.  */
9124   {
9125     static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
9126     buf[0] = '\0';
9127     if (sprintf (buf, "%ls", wstring) < 0
9128         || strcmp (buf, "abc") != 0)
9129       result |= 1;
9130   }
9131   /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
9132      assertion failure inside libc), but not on OpenBSD 4.0.  */
9133   {
9134     static const wchar_t wstring[] = { 'a', 0 };
9135     buf[0] = '\0';
9136     if (sprintf (buf, "%ls", wstring) < 0
9137         || strcmp (buf, "a") != 0)
9138       result |= 2;
9139   }
9140   /* Test whether precisions in %ls are supported as specified in ISO C 99
9141      section 7.19.6.1:
9142        "If a precision is specified, no more than that many bytes are written
9143         (including shift sequences, if any), and the array shall contain a
9144         null wide character if, to equal the multibyte character sequence
9145         length given by the precision, the function would need to access a
9146         wide character one past the end of the array."
9147      This test fails on Solaris 10.  */
9148   {
9149     static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
9150     buf[0] = '\0';
9151     if (sprintf (buf, "%.2ls", wstring) < 0
9152         || strcmp (buf, "ab") != 0)
9153       result |= 8;
9154   }
9155   return result;
9156 }
9157 _ACEOF
9158 if ac_fn_c_try_run "$LINENO"; then :
9159   gl_cv_func_printf_directive_ls=yes
9160 else
9161   gl_cv_func_printf_directive_ls=no
9162 fi
9163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9164   conftest.$ac_objext conftest.beam conftest.$ac_ext
9165 fi
9166
9167
9168 fi
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
9170 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
9171
9172
9173
9174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
9175 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
9176 if ${gl_cv_func_printf_positions+:} false; then :
9177   $as_echo_n "(cached) " >&6
9178 else
9179
9180       if test "$cross_compiling" = yes; then :
9181
9182          case "$host_os" in
9183            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
9184                          gl_cv_func_printf_positions="guessing no";;
9185            beos*)        gl_cv_func_printf_positions="guessing no";;
9186                          # Guess no on native Windows.
9187            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
9188            *)            gl_cv_func_printf_positions="guessing yes";;
9189          esac
9190
9191 else
9192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h.  */
9194
9195 #include <stdio.h>
9196 #include <string.h>
9197 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9198    dollar expansion (possibly an autoconf bug).  */
9199 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9200 static char buf[100];
9201 int main ()
9202 {
9203   sprintf (buf, format, 33, 55);
9204   return (strcmp (buf, "55 33") != 0);
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_run "$LINENO"; then :
9208   gl_cv_func_printf_positions=yes
9209 else
9210   gl_cv_func_printf_positions=no
9211 fi
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213   conftest.$ac_objext conftest.beam conftest.$ac_ext
9214 fi
9215
9216
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
9219 $as_echo "$gl_cv_func_printf_positions" >&6; }
9220
9221
9222
9223      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
9224 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
9225 if ${gl_cv_func_printf_flag_grouping+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228
9229       if test "$cross_compiling" = yes; then :
9230
9231          case "$host_os" in
9232            cygwin*)      gl_cv_func_printf_flag_grouping="guessing no";;
9233            netbsd*)      gl_cv_func_printf_flag_grouping="guessing no";;
9234                          # Guess no on native Windows.
9235            mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
9236            *)            gl_cv_func_printf_flag_grouping="guessing yes";;
9237          esac
9238
9239 else
9240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h.  */
9242
9243 #include <stdio.h>
9244 #include <string.h>
9245 static char buf[100];
9246 int main ()
9247 {
9248   if (sprintf (buf, "%'d %d", 1234567, 99) < 0
9249       || buf[strlen (buf) - 1] != '9')
9250     return 1;
9251   return 0;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_run "$LINENO"; then :
9255   gl_cv_func_printf_flag_grouping=yes
9256 else
9257   gl_cv_func_printf_flag_grouping=no
9258 fi
9259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9260   conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 fi
9262
9263
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
9266 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
9267
9268
9269
9270      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
9271 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
9272 if ${gl_cv_func_printf_flag_leftadjust+:} false; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275
9276       if test "$cross_compiling" = yes; then :
9277
9278          case "$host_os" in
9279                     # Guess yes on HP-UX 11.
9280            hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
9281                     # Guess no on HP-UX 10 and older.
9282            hpux*)   gl_cv_func_printf_flag_leftadjust="guessing no";;
9283                     # Guess yes on native Windows.
9284            mingw*)  gl_cv_func_printf_flag_leftadjust="guessing yes";;
9285                     # Guess yes otherwise.
9286            *)       gl_cv_func_printf_flag_leftadjust="guessing yes";;
9287          esac
9288
9289 else
9290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h.  */
9292
9293 #include <stdio.h>
9294 #include <string.h>
9295 static char buf[100];
9296 int main ()
9297 {
9298   /* Check that a '-' flag is not annihilated by a negative width.  */
9299   if (sprintf (buf, "a%-*sc", -3, "b") < 0
9300       || strcmp (buf, "ab  c") != 0)
9301     return 1;
9302   return 0;
9303 }
9304 _ACEOF
9305 if ac_fn_c_try_run "$LINENO"; then :
9306   gl_cv_func_printf_flag_leftadjust=yes
9307 else
9308   gl_cv_func_printf_flag_leftadjust=no
9309 fi
9310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9311   conftest.$ac_objext conftest.beam conftest.$ac_ext
9312 fi
9313
9314
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
9317 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
9318
9319
9320
9321      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
9322 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
9323 if ${gl_cv_func_printf_flag_zero+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326
9327       if test "$cross_compiling" = yes; then :
9328
9329          case "$host_os" in
9330                           # Guess yes on glibc systems.
9331            *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
9332                           # Guess yes on BeOS.
9333            beos*)         gl_cv_func_printf_flag_zero="guessing yes";;
9334                           # Guess no on native Windows.
9335            mingw*)        gl_cv_func_printf_flag_zero="guessing no";;
9336                           # If we don't know, assume the worst.
9337            *)             gl_cv_func_printf_flag_zero="guessing no";;
9338          esac
9339
9340 else
9341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h.  */
9343
9344 #include <stdio.h>
9345 #include <string.h>
9346 static char buf[100];
9347 static double zero = 0.0;
9348 int main ()
9349 {
9350   if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
9351       || (strcmp (buf, "       inf") != 0
9352           && strcmp (buf, "  infinity") != 0))
9353     return 1;
9354   return 0;
9355 }
9356 _ACEOF
9357 if ac_fn_c_try_run "$LINENO"; then :
9358   gl_cv_func_printf_flag_zero=yes
9359 else
9360   gl_cv_func_printf_flag_zero=no
9361 fi
9362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9363   conftest.$ac_objext conftest.beam conftest.$ac_ext
9364 fi
9365
9366
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
9369 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
9370
9371
9372
9373      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
9374 $as_echo_n "checking whether printf supports large precisions... " >&6; }
9375 if ${gl_cv_func_printf_precision+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378
9379       if test "$cross_compiling" = yes; then :
9380
9381          case "$host_os" in
9382            # Guess no only on Solaris, native Windows, and BeOS systems.
9383            solaris*)     gl_cv_func_printf_precision="guessing no" ;;
9384            mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
9385            beos*)        gl_cv_func_printf_precision="guessing no" ;;
9386            *)            gl_cv_func_printf_precision="guessing yes" ;;
9387          esac
9388
9389 else
9390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h.  */
9392
9393 #include <stdio.h>
9394 #include <string.h>
9395 static char buf[5000];
9396 int main ()
9397 {
9398   int result = 0;
9399 #ifdef __BEOS__
9400   /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
9401   return 1;
9402 #endif
9403   if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
9404     result |= 1;
9405   if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
9406     result |= 2;
9407   if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
9408       || buf[0] != '1')
9409     result |= 4;
9410   if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
9411       || buf[0] != '1')
9412     result |= 4;
9413   return result;
9414 }
9415 _ACEOF
9416 if ac_fn_c_try_run "$LINENO"; then :
9417   gl_cv_func_printf_precision=yes
9418 else
9419   gl_cv_func_printf_precision=no
9420 fi
9421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422   conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 fi
9424
9425
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
9428 $as_echo "$gl_cv_func_printf_precision" >&6; }
9429
9430
9431     gl_cv_c_multiarch=no
9432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h.  */
9434 #ifndef __APPLE_CC__
9435          not a universal capable compiler
9436         #endif
9437         typedef int dummy;
9438
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"; then :
9441
9442                arch=
9443      prev=
9444      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9445        if test -n "$prev"; then
9446          case $word in
9447            i?86 | x86_64 | ppc | ppc64)
9448              if test -z "$arch" || test "$arch" = "$word"; then
9449                arch="$word"
9450              else
9451                gl_cv_c_multiarch=yes
9452              fi
9453              ;;
9454          esac
9455          prev=
9456        else
9457          if test "x$word" = "x-arch"; then
9458            prev=arch
9459          fi
9460        fi
9461      done
9462
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465   if test $gl_cv_c_multiarch = yes; then
9466     APPLE_UNIVERSAL_BUILD=1
9467   else
9468     APPLE_UNIVERSAL_BUILD=0
9469   fi
9470
9471
9472
9473
9474
9475      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
9476 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
9477 if ${gl_cv_func_printf_enomem+:} false; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480
9481       gl_cv_func_printf_enomem="guessing no"
9482       if test "$cross_compiling" = no; then
9483         if test $APPLE_UNIVERSAL_BUILD = 0; then
9484           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h.  */
9486
9487
9488 #include <stdlib.h>
9489 #if defined __MACH__ && defined __APPLE__
9490 /* Avoid a crash on Mac OS X.  */
9491 #include <mach/mach.h>
9492 #include <mach/mach_error.h>
9493 #include <mach/thread_status.h>
9494 #include <mach/exception.h>
9495 #include <mach/task.h>
9496 #include <pthread.h>
9497 /* The exception port on which our thread listens.  */
9498 static mach_port_t our_exception_port;
9499 /* The main function of the thread listening for exceptions of type
9500    EXC_BAD_ACCESS.  */
9501 static void *
9502 mach_exception_thread (void *arg)
9503 {
9504   /* Buffer for a message to be received.  */
9505   struct {
9506     mach_msg_header_t head;
9507     mach_msg_body_t msgh_body;
9508     char data1024;
9509   } msg;
9510   mach_msg_return_t retval;
9511   /* Wait for a message on the exception port.  */
9512   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9513                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9514   if (retval != MACH_MSG_SUCCESS)
9515     abort ();
9516   exit (1);
9517 }
9518 static void
9519 nocrash_init (void)
9520 {
9521   mach_port_t self = mach_task_self ();
9522   /* Allocate a port on which the thread shall listen for exceptions.  */
9523   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9524       == KERN_SUCCESS) {
9525     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
9526     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9527                                 MACH_MSG_TYPE_MAKE_SEND)
9528         == KERN_SUCCESS) {
9529       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
9530          for us.  */
9531       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9532       /* Create the thread listening on the exception port.  */
9533       pthread_attr_t attr;
9534       pthread_t thread;
9535       if (pthread_attr_init (&attr) == 0
9536           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9537           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9538         pthread_attr_destroy (&attr);
9539         /* Replace the exception port info for these exceptions with our own.
9540            Note that we replace the exception port for the entire task, not only
9541            for a particular thread.  This has the effect that when our exception
9542            port gets the message, the thread specific exception port has already
9543            been asked, and we don't need to bother about it.
9544            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
9545         task_set_exception_ports (self, mask, our_exception_port,
9546                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9547       }
9548     }
9549   }
9550 }
9551 #elif defined _WIN32 && ! defined __CYGWIN__
9552 /* Avoid a crash on native Windows.  */
9553 #define WIN32_LEAN_AND_MEAN
9554 #include <windows.h>
9555 #include <winerror.h>
9556 static LONG WINAPI
9557 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9558 {
9559   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9560     {
9561     case EXCEPTION_ACCESS_VIOLATION:
9562     case EXCEPTION_IN_PAGE_ERROR:
9563     case EXCEPTION_STACK_OVERFLOW:
9564     case EXCEPTION_GUARD_PAGE:
9565     case EXCEPTION_PRIV_INSTRUCTION:
9566     case EXCEPTION_ILLEGAL_INSTRUCTION:
9567     case EXCEPTION_DATATYPE_MISALIGNMENT:
9568     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9569     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9570       exit (1);
9571     }
9572   return EXCEPTION_CONTINUE_SEARCH;
9573 }
9574 static void
9575 nocrash_init (void)
9576 {
9577   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9578 }
9579 #else
9580 /* Avoid a crash on POSIX systems.  */
9581 #include <signal.h>
9582 #include <unistd.h>
9583 /* A POSIX signal handler.  */
9584 static void
9585 exception_handler (int sig)
9586 {
9587   _exit (1);
9588 }
9589 static void
9590 nocrash_init (void)
9591 {
9592 #ifdef SIGSEGV
9593   signal (SIGSEGV, exception_handler);
9594 #endif
9595 #ifdef SIGBUS
9596   signal (SIGBUS, exception_handler);
9597 #endif
9598 }
9599 #endif
9600
9601 #include <stdio.h>
9602 #include <sys/types.h>
9603 #include <sys/time.h>
9604 #include <sys/resource.h>
9605 #include <errno.h>
9606 int main()
9607 {
9608   struct rlimit limit;
9609   int ret;
9610   nocrash_init ();
9611   /* Some printf implementations allocate temporary space with malloc.  */
9612   /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
9613 #ifdef RLIMIT_DATA
9614   if (getrlimit (RLIMIT_DATA, &limit) < 0)
9615     return 77;
9616   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9617     limit.rlim_max = 5000000;
9618   limit.rlim_cur = limit.rlim_max;
9619   if (setrlimit (RLIMIT_DATA, &limit) < 0)
9620     return 77;
9621 #endif
9622   /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
9623 #ifdef RLIMIT_AS
9624   if (getrlimit (RLIMIT_AS, &limit) < 0)
9625     return 77;
9626   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9627     limit.rlim_max = 5000000;
9628   limit.rlim_cur = limit.rlim_max;
9629   if (setrlimit (RLIMIT_AS, &limit) < 0)
9630     return 77;
9631 #endif
9632   /* Some printf implementations allocate temporary space on the stack.  */
9633 #ifdef RLIMIT_STACK
9634   if (getrlimit (RLIMIT_STACK, &limit) < 0)
9635     return 77;
9636   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9637     limit.rlim_max = 5000000;
9638   limit.rlim_cur = limit.rlim_max;
9639   if (setrlimit (RLIMIT_STACK, &limit) < 0)
9640     return 77;
9641 #endif
9642   ret = printf ("%.5000000f", 1.0);
9643   return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
9644 }
9645
9646 _ACEOF
9647           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9648   (eval $ac_link) 2>&5
9649   ac_status=$?
9650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9651   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9652             (./conftest 2>&5
9653              result=$?
9654              $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
9655              if test $result != 0 && test $result != 77; then result=1; fi
9656              exit $result
9657             ) >/dev/null 2>/dev/null
9658             case $? in
9659               0) gl_cv_func_printf_enomem="yes" ;;
9660               77) gl_cv_func_printf_enomem="guessing no" ;;
9661               *) gl_cv_func_printf_enomem="no" ;;
9662             esac
9663           else
9664             gl_cv_func_printf_enomem="guessing no"
9665           fi
9666           rm -fr conftest*
9667         else
9668                                         gl_cv_func_printf_enomem="guessing no"
9669         fi
9670       fi
9671       if test "$gl_cv_func_printf_enomem" = "guessing no"; then
9672         case "$host_os" in
9673                          # Guess yes on glibc systems.
9674           *-gnu* | gnu*) gl_cv_func_printf_enomem="guessing yes";;
9675                          # Guess yes on Solaris.
9676           solaris*)      gl_cv_func_printf_enomem="guessing yes";;
9677                          # Guess yes on AIX.
9678           aix*)          gl_cv_func_printf_enomem="guessing yes";;
9679                          # Guess yes on HP-UX/hppa.
9680           hpux*)         case "$host_cpu" in
9681                            hppa*) gl_cv_func_printf_enomem="guessing yes";;
9682                            *)     gl_cv_func_printf_enomem="guessing no";;
9683                          esac
9684                          ;;
9685                          # Guess yes on IRIX.
9686           irix*)         gl_cv_func_printf_enomem="guessing yes";;
9687                          # Guess yes on OSF/1.
9688           osf*)          gl_cv_func_printf_enomem="guessing yes";;
9689                          # Guess yes on BeOS.
9690           beos*)         gl_cv_func_printf_enomem="guessing yes";;
9691                          # Guess yes on Haiku.
9692           haiku*)        gl_cv_func_printf_enomem="guessing yes";;
9693                          # If we don't know, assume the worst.
9694           *)             gl_cv_func_printf_enomem="guessing no";;
9695         esac
9696       fi
9697
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
9700 $as_echo "$gl_cv_func_printf_enomem" >&6; }
9701
9702
9703
9704   case "$gl_cv_func_printf_long_double" in
9705     *yes)
9706       ;;
9707     *)
9708
9709 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
9710
9711       ;;
9712   esac
9713
9714
9715
9716
9717   for ac_func in $ac_func_list
9718 do :
9719   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9722   cat >>confdefs.h <<_ACEOF
9723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9724 _ACEOF
9725
9726 fi
9727 done
9728
9729
9730
9731
9732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9733 $as_echo_n "checking for unsigned long long int... " >&6; }
9734 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
9735   $as_echo_n "(cached) " >&6
9736 else
9737   ac_cv_type_unsigned_long_long_int=yes
9738      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9739        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h.  */
9741
9742   /* For now, do not test the preprocessor; as of 2007 there are too many
9743          implementations with broken preprocessors.  Perhaps this can
9744          be revisited in 2012.  In the meantime, code should not expect
9745          #if to work with literals wider than 32 bits.  */
9746       /* Test literals.  */
9747       long long int ll = 9223372036854775807ll;
9748       long long int nll = -9223372036854775807LL;
9749       unsigned long long int ull = 18446744073709551615ULL;
9750       /* Test constant expressions.   */
9751       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9752                      ? 1 : -1)];
9753       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9754                      ? 1 : -1)];
9755       int i = 63;
9756 int
9757 main ()
9758 {
9759 /* Test availability of runtime routines for shift and division.  */
9760       long long int llmax = 9223372036854775807ll;
9761       unsigned long long int ullmax = 18446744073709551615ull;
9762       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9763               | (llmax / ll) | (llmax % ll)
9764               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9765               | (ullmax / ull) | (ullmax % ull));
9766   ;
9767   return 0;
9768 }
9769
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772
9773 else
9774   ac_cv_type_unsigned_long_long_int=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext \
9777     conftest$ac_exeext conftest.$ac_ext
9778      fi
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9781 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9782   if test $ac_cv_type_unsigned_long_long_int = yes; then
9783
9784 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9785
9786   fi
9787
9788
9789
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9791 $as_echo_n "checking for long long int... " >&6; }
9792 if ${ac_cv_type_long_long_int+:} false; then :
9793   $as_echo_n "(cached) " >&6
9794 else
9795   ac_cv_type_long_long_int=yes
9796       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9797         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9798         if test $ac_cv_type_long_long_int = yes; then
9799                                         if test "$cross_compiling" = yes; then :
9800   :
9801 else
9802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804 #include <limits.h>
9805                  #ifndef LLONG_MAX
9806                  # define HALF \
9807                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9808                  # define LLONG_MAX (HALF - 1 + HALF)
9809                  #endif
9810 int
9811 main ()
9812 {
9813 long long int n = 1;
9814                  int i;
9815                  for (i = 0; ; i++)
9816                    {
9817                      long long int m = n << i;
9818                      if (m >> i != n)
9819                        return 1;
9820                      if (LLONG_MAX / 2 < m)
9821                        break;
9822                    }
9823                  return 0;
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_run "$LINENO"; then :
9829
9830 else
9831   ac_cv_type_long_long_int=no
9832 fi
9833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9834   conftest.$ac_objext conftest.beam conftest.$ac_ext
9835 fi
9836
9837         fi
9838       fi
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9841 $as_echo "$ac_cv_type_long_long_int" >&6; }
9842   if test $ac_cv_type_long_long_int = yes; then
9843
9844 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9845
9846   fi
9847
9848
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9850 $as_echo_n "checking for wchar_t... " >&6; }
9851 if ${gt_cv_c_wchar_t+:} false; then :
9852   $as_echo_n "(cached) " >&6
9853 else
9854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h.  */
9856 #include <stddef.h>
9857             wchar_t foo = (wchar_t)'\0';
9858 int
9859 main ()
9860 {
9861
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 if ac_fn_c_try_compile "$LINENO"; then :
9867   gt_cv_c_wchar_t=yes
9868 else
9869   gt_cv_c_wchar_t=no
9870 fi
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9874 $as_echo "$gt_cv_c_wchar_t" >&6; }
9875   if test $gt_cv_c_wchar_t = yes; then
9876
9877 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9878
9879   fi
9880
9881
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9883 $as_echo_n "checking for wint_t... " >&6; }
9884 if ${gt_cv_c_wint_t+:} false; then :
9885   $as_echo_n "(cached) " >&6
9886 else
9887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h.  */
9889
9890 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9891    <wchar.h>.
9892    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9893    before <wchar.h>.  */
9894 #include <stddef.h>
9895 #include <stdio.h>
9896 #include <time.h>
9897 #include <wchar.h>
9898             wint_t foo = (wchar_t)'\0';
9899 int
9900 main ()
9901 {
9902
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 if ac_fn_c_try_compile "$LINENO"; then :
9908   gt_cv_c_wint_t=yes
9909 else
9910   gt_cv_c_wint_t=no
9911 fi
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9915 $as_echo "$gt_cv_c_wint_t" >&6; }
9916   if test $gt_cv_c_wint_t = yes; then
9917
9918 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9919
9920
9921             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
9922 $as_echo_n "checking whether wint_t is too small... " >&6; }
9923 if ${gl_cv_type_wint_t_too_small+:} false; then :
9924   $as_echo_n "(cached) " >&6
9925 else
9926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h.  */
9928
9929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9930    <wchar.h>.
9931    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9932    included before <wchar.h>.  */
9933 #if !(defined __GLIBC__ && !defined __UCLIBC__)
9934 # include <stddef.h>
9935 # include <stdio.h>
9936 # include <time.h>
9937 #endif
9938 #include <wchar.h>
9939               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
9940
9941 int
9942 main ()
9943 {
9944
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_compile "$LINENO"; then :
9950   gl_cv_type_wint_t_too_small=no
9951 else
9952   gl_cv_type_wint_t_too_small=yes
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 fi
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
9957 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
9958     if test $gl_cv_type_wint_t_too_small = yes; then
9959       GNULIB_OVERRIDES_WINT_T=1
9960     else
9961       GNULIB_OVERRIDES_WINT_T=0
9962     fi
9963   else
9964     GNULIB_OVERRIDES_WINT_T=0
9965   fi
9966
9967
9968
9969
9970
9971   for ac_header in $ac_header_list
9972 do :
9973   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9975 "
9976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9977   cat >>confdefs.h <<_ACEOF
9978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 _ACEOF
9980
9981 fi
9982
9983 done
9984
9985
9986
9987
9988
9989   if test $ac_cv_header_features_h = yes; then
9990     HAVE_FEATURES_H=1
9991   else
9992     HAVE_FEATURES_H=0
9993   fi
9994
9995
9996
9997
9998
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10000 $as_echo_n "checking for intmax_t... " >&6; }
10001 if ${gt_cv_c_intmax_t+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h.  */
10006
10007 #include <stddef.h>
10008 #include <stdlib.h>
10009 #if HAVE_STDINT_H_WITH_UINTMAX
10010 #include <stdint.h>
10011 #endif
10012 #if HAVE_INTTYPES_H_WITH_UINTMAX
10013 #include <inttypes.h>
10014 #endif
10015
10016 int
10017 main ()
10018 {
10019 intmax_t x = -1; return !x;
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025   gt_cv_c_intmax_t=yes
10026 else
10027   gt_cv_c_intmax_t=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
10032 $as_echo "$gt_cv_c_intmax_t" >&6; }
10033   if test $gt_cv_c_intmax_t = yes; then
10034
10035 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
10036
10037   else
10038
10039     test $ac_cv_type_long_long_int = yes \
10040       && ac_type='long long' \
10041       || ac_type='long'
10042
10043 cat >>confdefs.h <<_ACEOF
10044 #define intmax_t $ac_type
10045 _ACEOF
10046
10047   fi
10048
10049
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10051 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10052 if ${gl_cv_cc_double_expbit0+:} false; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055
10056       if test "$cross_compiling" = yes; then :
10057
10058                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h.  */
10060
10061 #if defined arm || defined __arm || defined __arm__
10062   mixed_endianness
10063 #endif
10064
10065 _ACEOF
10066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10067   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
10068   gl_cv_cc_double_expbit0="unknown"
10069 else
10070
10071                                                          :
10072 if ${ac_cv_c_bigendian+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   ac_cv_c_bigendian=unknown
10076     # See if we're dealing with a universal compiler.
10077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h.  */
10079 #ifndef __APPLE_CC__
10080                not a universal capable compiler
10081              #endif
10082              typedef int dummy;
10083
10084 _ACEOF
10085 if ac_fn_c_try_compile "$LINENO"; then :
10086
10087         # Check for potential -arch flags.  It is not universal unless
10088         # there are at least two -arch flags with different values.
10089         ac_arch=
10090         ac_prev=
10091         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10092          if test -n "$ac_prev"; then
10093            case $ac_word in
10094              i?86 | x86_64 | ppc | ppc64)
10095                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10096                  ac_arch=$ac_word
10097                else
10098                  ac_cv_c_bigendian=universal
10099                  break
10100                fi
10101                ;;
10102            esac
10103            ac_prev=
10104          elif test "x$ac_word" = "x-arch"; then
10105            ac_prev=arch
10106          fi
10107        done
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110     if test $ac_cv_c_bigendian = unknown; then
10111       # See if sys/param.h defines the BYTE_ORDER macro.
10112       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h.  */
10114 #include <sys/types.h>
10115              #include <sys/param.h>
10116
10117 int
10118 main ()
10119 {
10120 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10121                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10122                      && LITTLE_ENDIAN)
10123               bogus endian macros
10124              #endif
10125
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"; then :
10131   # It does; now see whether it defined to BIG_ENDIAN or not.
10132          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h.  */
10134 #include <sys/types.h>
10135                 #include <sys/param.h>
10136
10137 int
10138 main ()
10139 {
10140 #if BYTE_ORDER != BIG_ENDIAN
10141                  not big endian
10142                 #endif
10143
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149   ac_cv_c_bigendian=yes
10150 else
10151   ac_cv_c_bigendian=no
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156     fi
10157     if test $ac_cv_c_bigendian = unknown; then
10158       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h.  */
10161 #include <limits.h>
10162
10163 int
10164 main ()
10165 {
10166 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10167               bogus endian macros
10168              #endif
10169
10170   ;
10171   return 0;
10172 }
10173 _ACEOF
10174 if ac_fn_c_try_compile "$LINENO"; then :
10175   # It does; now see whether it defined to _BIG_ENDIAN or not.
10176          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h.  */
10178 #include <limits.h>
10179
10180 int
10181 main ()
10182 {
10183 #ifndef _BIG_ENDIAN
10184                  not big endian
10185                 #endif
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_compile "$LINENO"; then :
10192   ac_cv_c_bigendian=yes
10193 else
10194   ac_cv_c_bigendian=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199     fi
10200     if test $ac_cv_c_bigendian = unknown; then
10201       # Compile a test program.
10202       if test "$cross_compiling" = yes; then :
10203   # Try to guess by grepping values from an object file.
10204          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h.  */
10206 short int ascii_mm[] =
10207                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10208                 short int ascii_ii[] =
10209                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10210                 int use_ascii (int i) {
10211                   return ascii_mm[i] + ascii_ii[i];
10212                 }
10213                 short int ebcdic_ii[] =
10214                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10215                 short int ebcdic_mm[] =
10216                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10217                 int use_ebcdic (int i) {
10218                   return ebcdic_mm[i] + ebcdic_ii[i];
10219                 }
10220                 extern int foo;
10221
10222 int
10223 main ()
10224 {
10225 return use_ascii (foo) == use_ebcdic (foo);
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_compile "$LINENO"; then :
10231   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10232               ac_cv_c_bigendian=yes
10233             fi
10234             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10235               if test "$ac_cv_c_bigendian" = unknown; then
10236                 ac_cv_c_bigendian=no
10237               else
10238                 # finding both strings is unlikely to happen, but who knows?
10239                 ac_cv_c_bigendian=unknown
10240               fi
10241             fi
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 else
10245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h.  */
10247 $ac_includes_default
10248 int
10249 main ()
10250 {
10251
10252              /* Are we little or big endian?  From Harbison&Steele.  */
10253              union
10254              {
10255                long int l;
10256                char c[sizeof (long int)];
10257              } u;
10258              u.l = 1;
10259              return u.c[sizeof (long int) - 1] == 1;
10260
10261   ;
10262   return 0;
10263 }
10264 _ACEOF
10265 if ac_fn_c_try_run "$LINENO"; then :
10266   ac_cv_c_bigendian=no
10267 else
10268   ac_cv_c_bigendian=yes
10269 fi
10270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10271   conftest.$ac_objext conftest.beam conftest.$ac_ext
10272 fi
10273
10274     fi
10275 fi
10276 :
10277  case $ac_cv_c_bigendian in #(
10278    yes)
10279      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
10280    no)
10281      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
10282    universal)
10283
10284 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10285
10286      ;; #(
10287    *)
10288      gl_cv_cc_double_expbit0="unknown" ;;
10289  esac
10290
10291
10292 fi
10293 rm -f conftest*
10294
10295
10296 else
10297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h.  */
10299
10300 #include <float.h>
10301 #include <stddef.h>
10302 #include <stdio.h>
10303 #include <string.h>
10304 #define NWORDS \
10305   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10306 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
10307 static unsigned int ored_words[NWORDS];
10308 static unsigned int anded_words[NWORDS];
10309 static void add_to_ored_words (double x)
10310 {
10311   memory_double m;
10312   size_t i;
10313   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
10314   memset (&m, 0, sizeof (memory_double));
10315   m.value = x;
10316   for (i = 0; i < NWORDS; i++)
10317     {
10318       ored_words[i] |= m.word[i];
10319       anded_words[i] &= m.word[i];
10320     }
10321 }
10322 int main ()
10323 {
10324   size_t j;
10325   FILE *fp = fopen ("conftest.out", "w");
10326   if (fp == NULL)
10327     return 1;
10328   for (j = 0; j < NWORDS; j++)
10329     anded_words[j] = ~ (unsigned int) 0;
10330   add_to_ored_words (0.25);
10331   add_to_ored_words (0.5);
10332   add_to_ored_words (1.0);
10333   add_to_ored_words (2.0);
10334   add_to_ored_words (4.0);
10335   /* Remove bits that are common (e.g. if representation of the first mantissa
10336      bit is explicit).  */
10337   for (j = 0; j < NWORDS; j++)
10338     ored_words[j] &= ~anded_words[j];
10339   /* Now find the nonzero word.  */
10340   for (j = 0; j < NWORDS; j++)
10341     if (ored_words[j] != 0)
10342       break;
10343   if (j < NWORDS)
10344     {
10345       size_t i;
10346       for (i = j + 1; i < NWORDS; i++)
10347         if (ored_words[i] != 0)
10348           {
10349             fprintf (fp, "unknown");
10350             return (fclose (fp) != 0);
10351           }
10352       for (i = 0; ; i++)
10353         if ((ored_words[j] >> i) & 1)
10354           {
10355             fprintf (fp, "word %d bit %d", (int) j, (int) i);
10356             return (fclose (fp) != 0);
10357           }
10358     }
10359   fprintf (fp, "unknown");
10360   return (fclose (fp) != 0);
10361 }
10362
10363 _ACEOF
10364 if ac_fn_c_try_run "$LINENO"; then :
10365   gl_cv_cc_double_expbit0=`cat conftest.out`
10366 else
10367   gl_cv_cc_double_expbit0="unknown"
10368 fi
10369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10370   conftest.$ac_objext conftest.beam conftest.$ac_ext
10371 fi
10372
10373       rm -f conftest.out
10374
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
10377 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
10378   case "$gl_cv_cc_double_expbit0" in
10379     word*bit*)
10380       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
10381       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
10382
10383 cat >>confdefs.h <<_ACEOF
10384 #define DBL_EXPBIT0_WORD $word
10385 _ACEOF
10386
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define DBL_EXPBIT0_BIT $bit
10390 _ACEOF
10391
10392       ;;
10393   esac
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
10404 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
10405 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408
10409       if test "$cross_compiling" = yes; then :
10410   case "$host_os" in
10411                                  # Guess yes on glibc systems.
10412            *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
10413                                  # Guess yes on FreeBSD >= 5.
10414            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
10415            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10416                                  # Guess yes on Mac OS X >= 10.3.
10417            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
10418            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
10419                                  # Guess yes on OpenBSD >= 3.9.
10420            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
10421                                  gl_cv_func_snprintf_retval_c99="guessing no";;
10422            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
10423                                  # Guess yes on Solaris >= 2.10.
10424            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
10425            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
10426                                  # Guess yes on AIX >= 4.
10427            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
10428            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
10429                                  # Guess yes on NetBSD >= 3.
10430            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
10431                                  gl_cv_func_snprintf_retval_c99="guessing no";;
10432            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
10433                                  # Guess yes on BeOS.
10434            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
10435                                  # Guess yes on MSVC, no on mingw.
10436            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h.  */
10438
10439 #ifdef _MSC_VER
10440  Known
10441 #endif
10442
10443 _ACEOF
10444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10445   $EGREP "Known" >/dev/null 2>&1; then :
10446   gl_cv_func_snprintf_retval_c99="guessing yes"
10447 else
10448   gl_cv_func_snprintf_retval_c99="guessing no"
10449 fi
10450 rm -f conftest*
10451
10452                                  ;;
10453                                  # If we don't know, assume the worst.
10454            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
10455          esac
10456
10457 else
10458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h.  */
10460
10461 #include <stdio.h>
10462 #include <string.h>
10463 #if HAVE_SNPRINTF
10464 # define my_snprintf snprintf
10465 #else
10466 # include <stdarg.h>
10467 static int my_snprintf (char *buf, int size, const char *format, ...)
10468 {
10469   va_list args;
10470   int ret;
10471   va_start (args, format);
10472   ret = vsnprintf (buf, size, format, args);
10473   va_end (args);
10474   return ret;
10475 }
10476 #endif
10477 static char buf[100];
10478 int main ()
10479 {
10480   strcpy (buf, "ABCDEF");
10481   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
10482     return 1;
10483   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
10484     return 2;
10485   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
10486     return 3;
10487   return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_run "$LINENO"; then :
10491   gl_cv_func_snprintf_retval_c99=yes
10492 else
10493   gl_cv_func_snprintf_retval_c99=no
10494 fi
10495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10496   conftest.$ac_objext conftest.beam conftest.$ac_ext
10497 fi
10498
10499
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
10502 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
10503
10504
10505
10506
10507
10508
10509   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10510 do :
10511   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10514   cat >>confdefs.h <<_ACEOF
10515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10516 _ACEOF
10517
10518 fi
10519 done
10520
10521       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10522 "
10523 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10524   ac_have_decl=1
10525 else
10526   ac_have_decl=0
10527 fi
10528
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_DECL__SNPRINTF $ac_have_decl
10531 _ACEOF
10532
10533
10534
10535   case "$gl_cv_func_snprintf_retval_c99" in
10536     *yes)
10537
10538 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
10539
10540       ;;
10541   esac
10542
10543
10544   GNULIB_DPRINTF=0;
10545   GNULIB_FCLOSE=0;
10546   GNULIB_FDOPEN=0;
10547   GNULIB_FFLUSH=0;
10548   GNULIB_FGETC=0;
10549   GNULIB_FGETS=0;
10550   GNULIB_FOPEN=0;
10551   GNULIB_FPRINTF=0;
10552   GNULIB_FPRINTF_POSIX=0;
10553   GNULIB_FPURGE=0;
10554   GNULIB_FPUTC=0;
10555   GNULIB_FPUTS=0;
10556   GNULIB_FREAD=0;
10557   GNULIB_FREOPEN=0;
10558   GNULIB_FSCANF=0;
10559   GNULIB_FSEEK=0;
10560   GNULIB_FSEEKO=0;
10561   GNULIB_FTELL=0;
10562   GNULIB_FTELLO=0;
10563   GNULIB_FWRITE=0;
10564   GNULIB_GETC=0;
10565   GNULIB_GETCHAR=0;
10566   GNULIB_GETDELIM=0;
10567   GNULIB_GETLINE=0;
10568   GNULIB_OBSTACK_PRINTF=0;
10569   GNULIB_OBSTACK_PRINTF_POSIX=0;
10570   GNULIB_PCLOSE=0;
10571   GNULIB_PERROR=0;
10572   GNULIB_POPEN=0;
10573   GNULIB_PRINTF=0;
10574   GNULIB_PRINTF_POSIX=0;
10575   GNULIB_PUTC=0;
10576   GNULIB_PUTCHAR=0;
10577   GNULIB_PUTS=0;
10578   GNULIB_REMOVE=0;
10579   GNULIB_RENAME=0;
10580   GNULIB_RENAMEAT=0;
10581   GNULIB_SCANF=0;
10582   GNULIB_SNPRINTF=0;
10583   GNULIB_SPRINTF_POSIX=0;
10584   GNULIB_STDIO_H_NONBLOCKING=0;
10585   GNULIB_STDIO_H_SIGPIPE=0;
10586   GNULIB_TMPFILE=0;
10587   GNULIB_VASPRINTF=0;
10588   GNULIB_VFSCANF=0;
10589   GNULIB_VSCANF=0;
10590   GNULIB_VDPRINTF=0;
10591   GNULIB_VFPRINTF=0;
10592   GNULIB_VFPRINTF_POSIX=0;
10593   GNULIB_VPRINTF=0;
10594   GNULIB_VPRINTF_POSIX=0;
10595   GNULIB_VSNPRINTF=0;
10596   GNULIB_VSPRINTF_POSIX=0;
10597     HAVE_DECL_FPURGE=1;
10598   HAVE_DECL_FSEEKO=1;
10599   HAVE_DECL_FTELLO=1;
10600   HAVE_DECL_GETDELIM=1;
10601   HAVE_DECL_GETLINE=1;
10602   HAVE_DECL_OBSTACK_PRINTF=1;
10603   HAVE_DECL_SNPRINTF=1;
10604   HAVE_DECL_VSNPRINTF=1;
10605   HAVE_DPRINTF=1;
10606   HAVE_FSEEKO=1;
10607   HAVE_FTELLO=1;
10608   HAVE_PCLOSE=1;
10609   HAVE_POPEN=1;
10610   HAVE_RENAMEAT=1;
10611   HAVE_VASPRINTF=1;
10612   HAVE_VDPRINTF=1;
10613   REPLACE_DPRINTF=0;
10614   REPLACE_FCLOSE=0;
10615   REPLACE_FDOPEN=0;
10616   REPLACE_FFLUSH=0;
10617   REPLACE_FOPEN=0;
10618   REPLACE_FPRINTF=0;
10619   REPLACE_FPURGE=0;
10620   REPLACE_FREOPEN=0;
10621   REPLACE_FSEEK=0;
10622   REPLACE_FSEEKO=0;
10623   REPLACE_FTELL=0;
10624   REPLACE_FTELLO=0;
10625   REPLACE_GETDELIM=0;
10626   REPLACE_GETLINE=0;
10627   REPLACE_OBSTACK_PRINTF=0;
10628   REPLACE_PERROR=0;
10629   REPLACE_POPEN=0;
10630   REPLACE_PRINTF=0;
10631   REPLACE_REMOVE=0;
10632   REPLACE_RENAME=0;
10633   REPLACE_RENAMEAT=0;
10634   REPLACE_SNPRINTF=0;
10635   REPLACE_SPRINTF=0;
10636   REPLACE_STDIO_READ_FUNCS=0;
10637   REPLACE_STDIO_WRITE_FUNCS=0;
10638   REPLACE_TMPFILE=0;
10639   REPLACE_VASPRINTF=0;
10640   REPLACE_VDPRINTF=0;
10641   REPLACE_VFPRINTF=0;
10642   REPLACE_VPRINTF=0;
10643   REPLACE_VSNPRINTF=0;
10644   REPLACE_VSPRINTF=0;
10645
10646
10647   GNULIB_ACOSF=0;
10648   GNULIB_ACOSL=0;
10649   GNULIB_ASINF=0;
10650   GNULIB_ASINL=0;
10651   GNULIB_ATANF=0;
10652   GNULIB_ATANL=0;
10653   GNULIB_ATAN2F=0;
10654   GNULIB_CBRT=0;
10655   GNULIB_CBRTF=0;
10656   GNULIB_CBRTL=0;
10657   GNULIB_CEIL=0;
10658   GNULIB_CEILF=0;
10659   GNULIB_CEILL=0;
10660   GNULIB_COPYSIGN=0;
10661   GNULIB_COPYSIGNF=0;
10662   GNULIB_COPYSIGNL=0;
10663   GNULIB_COSF=0;
10664   GNULIB_COSL=0;
10665   GNULIB_COSHF=0;
10666   GNULIB_EXPF=0;
10667   GNULIB_EXPL=0;
10668   GNULIB_EXP2=0;
10669   GNULIB_EXP2F=0;
10670   GNULIB_EXP2L=0;
10671   GNULIB_EXPM1=0;
10672   GNULIB_EXPM1F=0;
10673   GNULIB_EXPM1L=0;
10674   GNULIB_FABSF=0;
10675   GNULIB_FABSL=0;
10676   GNULIB_FLOOR=0;
10677   GNULIB_FLOORF=0;
10678   GNULIB_FLOORL=0;
10679   GNULIB_FMA=0;
10680   GNULIB_FMAF=0;
10681   GNULIB_FMAL=0;
10682   GNULIB_FMOD=0;
10683   GNULIB_FMODF=0;
10684   GNULIB_FMODL=0;
10685   GNULIB_FREXPF=0;
10686   GNULIB_FREXP=0;
10687   GNULIB_FREXPL=0;
10688   GNULIB_HYPOT=0;
10689   GNULIB_HYPOTF=0;
10690   GNULIB_HYPOTL=0;
10691   GNULIB_ILOGB=0;
10692   GNULIB_ILOGBF=0;
10693   GNULIB_ILOGBL=0;
10694   GNULIB_ISFINITE=0;
10695   GNULIB_ISINF=0;
10696   GNULIB_ISNAN=0;
10697   GNULIB_ISNANF=0;
10698   GNULIB_ISNAND=0;
10699   GNULIB_ISNANL=0;
10700   GNULIB_LDEXPF=0;
10701   GNULIB_LDEXPL=0;
10702   GNULIB_LOG=0;
10703   GNULIB_LOGF=0;
10704   GNULIB_LOGL=0;
10705   GNULIB_LOG10=0;
10706   GNULIB_LOG10F=0;
10707   GNULIB_LOG10L=0;
10708   GNULIB_LOG1P=0;
10709   GNULIB_LOG1PF=0;
10710   GNULIB_LOG1PL=0;
10711   GNULIB_LOG2=0;
10712   GNULIB_LOG2F=0;
10713   GNULIB_LOG2L=0;
10714   GNULIB_LOGB=0;
10715   GNULIB_LOGBF=0;
10716   GNULIB_LOGBL=0;
10717   GNULIB_MODF=0;
10718   GNULIB_MODFF=0;
10719   GNULIB_MODFL=0;
10720   GNULIB_POWF=0;
10721   GNULIB_REMAINDER=0;
10722   GNULIB_REMAINDERF=0;
10723   GNULIB_REMAINDERL=0;
10724   GNULIB_RINT=0;
10725   GNULIB_RINTF=0;
10726   GNULIB_RINTL=0;
10727   GNULIB_ROUND=0;
10728   GNULIB_ROUNDF=0;
10729   GNULIB_ROUNDL=0;
10730   GNULIB_SIGNBIT=0;
10731   GNULIB_SINF=0;
10732   GNULIB_SINL=0;
10733   GNULIB_SINHF=0;
10734   GNULIB_SQRTF=0;
10735   GNULIB_SQRTL=0;
10736   GNULIB_TANF=0;
10737   GNULIB_TANL=0;
10738   GNULIB_TANHF=0;
10739   GNULIB_TRUNC=0;
10740   GNULIB_TRUNCF=0;
10741   GNULIB_TRUNCL=0;
10742     HAVE_ACOSF=1;
10743   HAVE_ACOSL=1;
10744   HAVE_ASINF=1;
10745   HAVE_ASINL=1;
10746   HAVE_ATANF=1;
10747   HAVE_ATANL=1;
10748   HAVE_ATAN2F=1;
10749   HAVE_CBRT=1;
10750   HAVE_CBRTF=1;
10751   HAVE_CBRTL=1;
10752   HAVE_COPYSIGN=1;
10753   HAVE_COPYSIGNL=1;
10754   HAVE_COSF=1;
10755   HAVE_COSL=1;
10756   HAVE_COSHF=1;
10757   HAVE_EXPF=1;
10758   HAVE_EXPL=1;
10759   HAVE_EXPM1=1;
10760   HAVE_EXPM1F=1;
10761   HAVE_FABSF=1;
10762   HAVE_FABSL=1;
10763   HAVE_FMA=1;
10764   HAVE_FMAF=1;
10765   HAVE_FMAL=1;
10766   HAVE_FMODF=1;
10767   HAVE_FMODL=1;
10768   HAVE_FREXPF=1;
10769   HAVE_HYPOTF=1;
10770   HAVE_HYPOTL=1;
10771   HAVE_ILOGB=1;
10772   HAVE_ILOGBF=1;
10773   HAVE_ILOGBL=1;
10774   HAVE_ISNANF=1;
10775   HAVE_ISNAND=1;
10776   HAVE_ISNANL=1;
10777   HAVE_LDEXPF=1;
10778   HAVE_LOGF=1;
10779   HAVE_LOGL=1;
10780   HAVE_LOG10F=1;
10781   HAVE_LOG10L=1;
10782   HAVE_LOG1P=1;
10783   HAVE_LOG1PF=1;
10784   HAVE_LOG1PL=1;
10785   HAVE_LOGBF=1;
10786   HAVE_LOGBL=1;
10787   HAVE_MODFF=1;
10788   HAVE_MODFL=1;
10789   HAVE_POWF=1;
10790   HAVE_REMAINDER=1;
10791   HAVE_REMAINDERF=1;
10792   HAVE_RINT=1;
10793   HAVE_RINTL=1;
10794   HAVE_SINF=1;
10795   HAVE_SINL=1;
10796   HAVE_SINHF=1;
10797   HAVE_SQRTF=1;
10798   HAVE_SQRTL=1;
10799   HAVE_TANF=1;
10800   HAVE_TANL=1;
10801   HAVE_TANHF=1;
10802   HAVE_DECL_ACOSL=1;
10803   HAVE_DECL_ASINL=1;
10804   HAVE_DECL_ATANL=1;
10805   HAVE_DECL_CBRTF=1;
10806   HAVE_DECL_CBRTL=1;
10807   HAVE_DECL_CEILF=1;
10808   HAVE_DECL_CEILL=1;
10809   HAVE_DECL_COPYSIGNF=1;
10810   HAVE_DECL_COSL=1;
10811   HAVE_DECL_EXPL=1;
10812   HAVE_DECL_EXP2=1;
10813   HAVE_DECL_EXP2F=1;
10814   HAVE_DECL_EXP2L=1;
10815   HAVE_DECL_EXPM1L=1;
10816   HAVE_DECL_FLOORF=1;
10817   HAVE_DECL_FLOORL=1;
10818   HAVE_DECL_FREXPL=1;
10819   HAVE_DECL_LDEXPL=1;
10820   HAVE_DECL_LOGL=1;
10821   HAVE_DECL_LOG10L=1;
10822   HAVE_DECL_LOG2=1;
10823   HAVE_DECL_LOG2F=1;
10824   HAVE_DECL_LOG2L=1;
10825   HAVE_DECL_LOGB=1;
10826   HAVE_DECL_REMAINDER=1;
10827   HAVE_DECL_REMAINDERL=1;
10828   HAVE_DECL_RINTF=1;
10829   HAVE_DECL_ROUND=1;
10830   HAVE_DECL_ROUNDF=1;
10831   HAVE_DECL_ROUNDL=1;
10832   HAVE_DECL_SINL=1;
10833   HAVE_DECL_SQRTL=1;
10834   HAVE_DECL_TANL=1;
10835   HAVE_DECL_TRUNC=1;
10836   HAVE_DECL_TRUNCF=1;
10837   HAVE_DECL_TRUNCL=1;
10838   REPLACE_ACOSF=0;
10839   REPLACE_ASINF=0;
10840   REPLACE_ATANF=0;
10841   REPLACE_ATAN2F=0;
10842   REPLACE_CBRTF=0;
10843   REPLACE_CBRTL=0;
10844   REPLACE_CEIL=0;
10845   REPLACE_CEILF=0;
10846   REPLACE_CEILL=0;
10847   REPLACE_COSF=0;
10848   REPLACE_COSHF=0;
10849   REPLACE_EXPF=0;
10850   REPLACE_EXPM1=0;
10851   REPLACE_EXPM1F=0;
10852   REPLACE_EXP2=0;
10853   REPLACE_EXP2L=0;
10854   REPLACE_FABSL=0;
10855   REPLACE_FLOOR=0;
10856   REPLACE_FLOORF=0;
10857   REPLACE_FLOORL=0;
10858   REPLACE_FMA=0;
10859   REPLACE_FMAF=0;
10860   REPLACE_FMAL=0;
10861   REPLACE_FMOD=0;
10862   REPLACE_FMODF=0;
10863   REPLACE_FMODL=0;
10864   REPLACE_FREXPF=0;
10865   REPLACE_FREXP=0;
10866   REPLACE_FREXPL=0;
10867   REPLACE_HUGE_VAL=0;
10868   REPLACE_HYPOT=0;
10869   REPLACE_HYPOTF=0;
10870   REPLACE_HYPOTL=0;
10871   REPLACE_ILOGB=0;
10872   REPLACE_ILOGBF=0;
10873   REPLACE_ILOGBL=0;
10874   REPLACE_ISFINITE=0;
10875   REPLACE_ISINF=0;
10876   REPLACE_ISNAN=0;
10877   REPLACE_LDEXPL=0;
10878   REPLACE_LOG=0;
10879   REPLACE_LOGF=0;
10880   REPLACE_LOGL=0;
10881   REPLACE_LOG10=0;
10882   REPLACE_LOG10F=0;
10883   REPLACE_LOG10L=0;
10884   REPLACE_LOG1P=0;
10885   REPLACE_LOG1PF=0;
10886   REPLACE_LOG1PL=0;
10887   REPLACE_LOG2=0;
10888   REPLACE_LOG2F=0;
10889   REPLACE_LOG2L=0;
10890   REPLACE_LOGB=0;
10891   REPLACE_LOGBF=0;
10892   REPLACE_LOGBL=0;
10893   REPLACE_MODF=0;
10894   REPLACE_MODFF=0;
10895   REPLACE_MODFL=0;
10896   REPLACE_NAN=0;
10897   REPLACE_REMAINDER=0;
10898   REPLACE_REMAINDERF=0;
10899   REPLACE_REMAINDERL=0;
10900   REPLACE_ROUND=0;
10901   REPLACE_ROUNDF=0;
10902   REPLACE_ROUNDL=0;
10903   REPLACE_SIGNBIT=0;
10904   REPLACE_SIGNBIT_USING_GCC=0;
10905   REPLACE_SINF=0;
10906   REPLACE_SINHF=0;
10907   REPLACE_SQRTF=0;
10908   REPLACE_SQRTL=0;
10909   REPLACE_TANF=0;
10910   REPLACE_TANHF=0;
10911   REPLACE_TRUNC=0;
10912   REPLACE_TRUNCF=0;
10913   REPLACE_TRUNCL=0;
10914
10915
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
10917 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
10918 if ${gl_cv_func_frexp_no_libm+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921
10922       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h.  */
10924 #include <math.h>
10925              double x;
10926 int
10927 main ()
10928 {
10929 int e; return frexp (x, &e) > 0;
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 if ac_fn_c_try_link "$LINENO"; then :
10935   gl_cv_func_frexp_no_libm=yes
10936 else
10937   gl_cv_func_frexp_no_libm=no
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext \
10940     conftest$ac_exeext conftest.$ac_ext
10941
10942 fi
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
10944 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
10945
10946 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
10947 if test "x$ac_cv_have_decl_alarm" = xyes; then :
10948   ac_have_decl=1
10949 else
10950   ac_have_decl=0
10951 fi
10952
10953 cat >>confdefs.h <<_ACEOF
10954 #define HAVE_DECL_ALARM $ac_have_decl
10955 _ACEOF
10956
10957
10958
10959
10960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h.  */
10962
10963 #ifdef _MSC_VER
10964 MicrosoftCompiler
10965 #endif
10966
10967 _ACEOF
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
10970   gl_asmext='asm'
10971      gl_c_asm_opt='-c -Fa'
10972
10973 else
10974   gl_asmext='s'
10975      gl_c_asm_opt='-S'
10976
10977 fi
10978 rm -f conftest*
10979
10980
10981
10982
10983
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
10985 $as_echo_n "checking host CPU and C ABI... " >&6; }
10986 if ${gl_cv_host_cpu_c_abi+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   case "$host_cpu" in
10990
10991        i[4567]86 )
10992          gl_cv_host_cpu_c_abi=i386
10993          ;;
10994
10995        x86_64 )
10996          # On x86_64 systems, the C compiler may be generating code in one of
10997          # these ABIs:
10998          # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
10999          # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
11000          #   with native Windows (mingw, MSVC).
11001          # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
11002          # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
11003          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h.  */
11005 #if (defined __x86_64__ || defined __amd64__ \
11006                      || defined _M_X64 || defined _M_AMD64)
11007                  int ok;
11008                 #else
11009                  error fail
11010                 #endif
11011
11012 _ACEOF
11013 if ac_fn_c_try_compile "$LINENO"; then :
11014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h.  */
11016 #if defined __ILP32__ || defined _ILP32
11017                     int ok;
11018                    #else
11019                     error fail
11020                    #endif
11021
11022 _ACEOF
11023 if ac_fn_c_try_compile "$LINENO"; then :
11024   gl_cv_host_cpu_c_abi=x86_64-x32
11025 else
11026   gl_cv_host_cpu_c_abi=x86_64
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 else
11030   gl_cv_host_cpu_c_abi=i386
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033          ;;
11034
11035        alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
11036          gl_cv_host_cpu_c_abi=alpha
11037          ;;
11038
11039        arm* | aarch64 )
11040          # Assume arm with EABI.
11041          # On arm64 systems, the C compiler may be generating code in one of
11042          # these ABIs:
11043          # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
11044          # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
11045          # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
11046          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h.  */
11048 #ifdef __aarch64__
11049                  int ok;
11050                 #else
11051                  error fail
11052                 #endif
11053
11054 _ACEOF
11055 if ac_fn_c_try_compile "$LINENO"; then :
11056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h.  */
11058 #if defined __ILP32__ || defined _ILP32
11059                    int ok;
11060                   #else
11061                    error fail
11062                   #endif
11063
11064 _ACEOF
11065 if ac_fn_c_try_compile "$LINENO"; then :
11066   gl_cv_host_cpu_c_abi=arm64-ilp32
11067 else
11068   gl_cv_host_cpu_c_abi=arm64
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 else
11072   # Don't distinguish little-endian and big-endian arm, since they
11073             # don't require different machine code for simple operations and
11074             # since the user can distinguish them through the preprocessor
11075             # defines __ARMEL__ vs. __ARMEB__.
11076             # But distinguish arm which passes floating-point arguments and
11077             # return values in integer registers (r0, r1, ...) - this is
11078             # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
11079             # passes them in float registers (s0, s1, ...) and double registers
11080             # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
11081             # sets the preprocessor defines __ARM_PCS (for the first case) and
11082             # __ARM_PCS_VFP (for the second case), but older GCC does not.
11083             echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
11084             # Look for a reference to the register d0 in the .s file.
11085             { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
11086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11090   test $ac_status = 0; }; } >/dev/null 2>&1
11091             if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
11092               gl_cv_host_cpu_c_abi=armhf
11093             else
11094               gl_cv_host_cpu_c_abi=arm
11095             fi
11096             rm -f conftest*
11097
11098 fi
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100          ;;
11101
11102        hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
11103          # On hppa, the C compiler may be generating 32-bit code or 64-bit
11104          # code. In the latter case, it defines _LP64 and __LP64__.
11105          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h.  */
11107 #ifdef __LP64__
11108                  int ok;
11109                 #else
11110                  error fail
11111                 #endif
11112
11113 _ACEOF
11114 if ac_fn_c_try_compile "$LINENO"; then :
11115   gl_cv_host_cpu_c_abi=hppa64
11116 else
11117   gl_cv_host_cpu_c_abi=hppa
11118 fi
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120          ;;
11121
11122        ia64* )
11123          # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
11124          # 32-bit code. In the latter case, it defines _ILP32.
11125          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h.  */
11127 #ifdef _ILP32
11128                  int ok;
11129                 #else
11130                  error fail
11131                 #endif
11132
11133 _ACEOF
11134 if ac_fn_c_try_compile "$LINENO"; then :
11135   gl_cv_host_cpu_c_abi=ia64-ilp32
11136 else
11137   gl_cv_host_cpu_c_abi=ia64
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140          ;;
11141
11142        mips* )
11143          # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
11144          # at 32.
11145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h.  */
11147 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
11148                  int ok;
11149                 #else
11150                  error fail
11151                 #endif
11152
11153 _ACEOF
11154 if ac_fn_c_try_compile "$LINENO"; then :
11155   gl_cv_host_cpu_c_abi=mips64
11156 else
11157   # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
11158             # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
11159             # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
11160             # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
11161             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h.  */
11163 #if (_MIPS_SIM == _ABIN32)
11164                     int ok;
11165                    #else
11166                     error fail
11167                    #endif
11168
11169 _ACEOF
11170 if ac_fn_c_try_compile "$LINENO"; then :
11171   gl_cv_host_cpu_c_abi=mipsn32
11172 else
11173   gl_cv_host_cpu_c_abi=mips
11174 fi
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178          ;;
11179
11180        powerpc* )
11181          # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
11182          # No need to distinguish them here; the caller may distinguish
11183          # them based on the OS.
11184          # On powerpc64 systems, the C compiler may still be generating
11185          # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
11186          # be generating 64-bit code.
11187          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h.  */
11189 #if defined __powerpc64__ || defined _ARCH_PPC64
11190                  int ok;
11191                 #else
11192                  error fail
11193                 #endif
11194
11195 _ACEOF
11196 if ac_fn_c_try_compile "$LINENO"; then :
11197   # On powerpc64, there are two ABIs on Linux: The AIX compatible
11198             # one and the ELFv2 one. The latter defines _CALL_ELF=2.
11199             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h.  */
11201 #if defined _CALL_ELF && _CALL_ELF == 2
11202                     int ok;
11203                    #else
11204                     error fail
11205                    #endif
11206
11207 _ACEOF
11208 if ac_fn_c_try_compile "$LINENO"; then :
11209   gl_cv_host_cpu_c_abi=powerpc64-elfv2
11210 else
11211   gl_cv_host_cpu_c_abi=powerpc64
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214
11215 else
11216   gl_cv_host_cpu_c_abi=powerpc
11217 fi
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219          ;;
11220
11221        rs6000 )
11222          gl_cv_host_cpu_c_abi=powerpc
11223          ;;
11224
11225        riscv32 | riscv64 )
11226          # There are 2 architectures (with variants): rv32* and rv64*.
11227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h.  */
11229 #if __riscv_xlen == 64
11230                   int ok;
11231                 #else
11232                   error fail
11233                 #endif
11234
11235 _ACEOF
11236 if ac_fn_c_try_compile "$LINENO"; then :
11237   cpu=riscv64
11238 else
11239   cpu=riscv32
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242          # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
11243          # Size of 'long' and 'void *':
11244          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h.  */
11246 #if defined __LP64__
11247                   int ok;
11248                 #else
11249                   error fail
11250                 #endif
11251
11252 _ACEOF
11253 if ac_fn_c_try_compile "$LINENO"; then :
11254   main_abi=lp64
11255 else
11256   main_abi=ilp32
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259          # Float ABIs:
11260          # __riscv_float_abi_double:
11261          #   'float' and 'double' are passed in floating-point registers.
11262          # __riscv_float_abi_single:
11263          #   'float' are passed in floating-point registers.
11264          # __riscv_float_abi_soft:
11265          #   No values are passed in floating-point registers.
11266          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h.  */
11268 #if defined __riscv_float_abi_double
11269                   int ok;
11270                 #else
11271                   error fail
11272                 #endif
11273
11274 _ACEOF
11275 if ac_fn_c_try_compile "$LINENO"; then :
11276   float_abi=d
11277 else
11278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280 #if defined __riscv_float_abi_single
11281                      int ok;
11282                    #else
11283                      error fail
11284                    #endif
11285
11286 _ACEOF
11287 if ac_fn_c_try_compile "$LINENO"; then :
11288   float_abi=f
11289 else
11290   float_abi=''
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293
11294 fi
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296          gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
11297          ;;
11298
11299        s390* )
11300          # On s390x, the C compiler may be generating 64-bit (= s390x) code
11301          # or 31-bit (= s390) code.
11302          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h.  */
11304 #if defined __LP64__ || defined __s390x__
11305                   int ok;
11306                 #else
11307                   error fail
11308                 #endif
11309
11310 _ACEOF
11311 if ac_fn_c_try_compile "$LINENO"; then :
11312   gl_cv_host_cpu_c_abi=s390x
11313 else
11314   gl_cv_host_cpu_c_abi=s390
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317          ;;
11318
11319        sparc | sparc64 )
11320          # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
11321          # C compiler still generates 32-bit code.
11322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h.  */
11324 #if defined __sparcv9 || defined __arch64__
11325                  int ok;
11326                 #else
11327                  error fail
11328                 #endif
11329
11330 _ACEOF
11331 if ac_fn_c_try_compile "$LINENO"; then :
11332   gl_cv_host_cpu_c_abi=sparc64
11333 else
11334   gl_cv_host_cpu_c_abi=sparc
11335 fi
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337          ;;
11338
11339        *)
11340          gl_cv_host_cpu_c_abi="$host_cpu"
11341          ;;
11342      esac
11343
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
11346 $as_echo "$gl_cv_host_cpu_c_abi" >&6; }
11347
11348     HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
11349   HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
11350
11351
11352
11353   # This was
11354   #   AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
11355   #   AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
11356   # earlier, but KAI C++ 3.2d doesn't like this.
11357   sed -e 's/-/_/g' >> confdefs.h <<EOF
11358 #ifndef __${HOST_CPU}__
11359 #define __${HOST_CPU}__ 1
11360 #endif
11361 #ifndef __${HOST_CPU_C_ABI}__
11362 #define __${HOST_CPU_C_ABI}__ 1
11363 #endif
11364 EOF
11365
11366
11367
11368
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
11370 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
11371 if ${gl_cv_cc_float_expbit0+:} false; then :
11372   $as_echo_n "(cached) " >&6
11373 else
11374
11375       if test "$cross_compiling" = yes; then :
11376   gl_cv_cc_float_expbit0="word 0 bit 23"
11377 else
11378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h.  */
11380
11381 #include <float.h>
11382 #include <stddef.h>
11383 #include <stdio.h>
11384 #include <string.h>
11385 #define NWORDS \
11386   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11387 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
11388 static unsigned int ored_words[NWORDS];
11389 static unsigned int anded_words[NWORDS];
11390 static void add_to_ored_words (float x)
11391 {
11392   memory_float m;
11393   size_t i;
11394   /* Clear it first, in case
11395      sizeof (float) < sizeof (memory_float).  */
11396   memset (&m, 0, sizeof (memory_float));
11397   m.value = x;
11398   for (i = 0; i < NWORDS; i++)
11399     {
11400       ored_words[i] |= m.word[i];
11401       anded_words[i] &= m.word[i];
11402     }
11403 }
11404 int main ()
11405 {
11406   size_t j;
11407   FILE *fp = fopen ("conftest.out", "w");
11408   if (fp == NULL)
11409     return 1;
11410   for (j = 0; j < NWORDS; j++)
11411     anded_words[j] = ~ (unsigned int) 0;
11412   add_to_ored_words (0.25f);
11413   add_to_ored_words (0.5f);
11414   add_to_ored_words (1.0f);
11415   add_to_ored_words (2.0f);
11416   add_to_ored_words (4.0f);
11417   /* Remove bits that are common (e.g. if representation of the first mantissa
11418      bit is explicit).  */
11419   for (j = 0; j < NWORDS; j++)
11420     ored_words[j] &= ~anded_words[j];
11421   /* Now find the nonzero word.  */
11422   for (j = 0; j < NWORDS; j++)
11423     if (ored_words[j] != 0)
11424       break;
11425   if (j < NWORDS)
11426     {
11427       size_t i;
11428       for (i = j + 1; i < NWORDS; i++)
11429         if (ored_words[i] != 0)
11430           {
11431             fprintf (fp, "unknown");
11432             return (fclose (fp) != 0);
11433           }
11434       for (i = 0; ; i++)
11435         if ((ored_words[j] >> i) & 1)
11436           {
11437             fprintf (fp, "word %d bit %d", (int) j, (int) i);
11438             return (fclose (fp) != 0);
11439           }
11440     }
11441   fprintf (fp, "unknown");
11442   return (fclose (fp) != 0);
11443 }
11444
11445 _ACEOF
11446 if ac_fn_c_try_run "$LINENO"; then :
11447   gl_cv_cc_float_expbit0=`cat conftest.out`
11448 else
11449   gl_cv_cc_float_expbit0="unknown"
11450 fi
11451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11452   conftest.$ac_objext conftest.beam conftest.$ac_ext
11453 fi
11454
11455       rm -f conftest.out
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
11459 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
11460   case "$gl_cv_cc_float_expbit0" in
11461     word*bit*)
11462       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11463       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
11464
11465 cat >>confdefs.h <<_ACEOF
11466 #define FLT_EXPBIT0_WORD $word
11467 _ACEOF
11468
11469
11470 cat >>confdefs.h <<_ACEOF
11471 #define FLT_EXPBIT0_BIT $bit
11472 _ACEOF
11473
11474       ;;
11475   esac
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489      if test $gl_cv_have_include_next = yes; then
11490        gl_cv_next_limits_h='<'limits.h'>'
11491      else
11492        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11493 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11494 if ${gl_cv_next_limits_h+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497
11498              if test $ac_cv_header_limits_h = yes; then
11499
11500
11501
11502
11503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h.  */
11505 #include <limits.h>
11506 _ACEOF
11507                 case "$host_os" in
11508     aix*) gl_absname_cpp="$ac_cpp -C" ;;
11509     *)    gl_absname_cpp="$ac_cpp" ;;
11510   esac
11511
11512   case "$host_os" in
11513     mingw*)
11514                                           gl_dirsep_regex='[/\\]'
11515       ;;
11516     *)
11517       gl_dirsep_regex='\/'
11518       ;;
11519   esac
11520       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11521   gl_header_literal_regex=`echo 'limits.h' \
11522                            | sed -e "$gl_make_literal_regex_sed"`
11523   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11524       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11525       s|^/[^/]|//&|
11526       p
11527       q
11528     }'
11529
11530         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11531   sed -n "$gl_absolute_header_sed"`
11532
11533            gl_header=$gl_cv_absolute_limits_h
11534            gl_cv_next_limits_h='"'$gl_header'"'
11535           else
11536                gl_cv_next_limits_h='<'limits.h'>'
11537              fi
11538
11539
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11542 $as_echo "$gl_cv_next_limits_h" >&6; }
11543      fi
11544      NEXT_LIMITS_H=$gl_cv_next_limits_h
11545
11546      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11547        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11548        gl_next_as_first_directive='<'limits.h'>'
11549      else
11550        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11551        gl_next_as_first_directive=$gl_cv_next_limits_h
11552      fi
11553      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
11554
11555
11556
11557
11558
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11560 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11561 if ${gl_cv_header_limits_width+:} false; then :
11562   $as_echo_n "(cached) " >&6
11563 else
11564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h.  */
11566 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11567              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11568             #endif
11569             #include <limits.h>
11570             long long llm = LLONG_MAX;
11571             int wb = WORD_BIT;
11572             int ullw = ULLONG_WIDTH;
11573
11574 int
11575 main ()
11576 {
11577
11578   ;
11579   return 0;
11580 }
11581 _ACEOF
11582 if ac_fn_c_try_compile "$LINENO"; then :
11583   gl_cv_header_limits_width=yes
11584 else
11585   gl_cv_header_limits_width=no
11586 fi
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11590 $as_echo "$gl_cv_header_limits_width" >&6; }
11591   if test "$gl_cv_header_limits_width" = yes; then
11592     LIMITS_H=
11593   else
11594     LIMITS_H=limits.h
11595   fi
11596
11597    if test -n "$LIMITS_H"; then
11598   GL_GENERATE_LIMITS_H_TRUE=
11599   GL_GENERATE_LIMITS_H_FALSE='#'
11600 else
11601   GL_GENERATE_LIMITS_H_TRUE='#'
11602   GL_GENERATE_LIMITS_H_FALSE=
11603 fi
11604
11605
11606
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11608 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11609 if ${am_cv_langinfo_codeset+:} false; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h.  */
11614 #include <langinfo.h>
11615 int
11616 main ()
11617 {
11618 char* cs = nl_langinfo(CODESET); return !cs;
11619   ;
11620   return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624   am_cv_langinfo_codeset=yes
11625 else
11626   am_cv_langinfo_codeset=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629     conftest$ac_exeext conftest.$ac_ext
11630
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11633 $as_echo "$am_cv_langinfo_codeset" >&6; }
11634   if test $am_cv_langinfo_codeset = yes; then
11635
11636 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11637
11638   fi
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11650 $as_echo_n "checking for working fcntl.h... " >&6; }
11651 if ${gl_cv_header_working_fcntl_h+:} false; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   if test "$cross_compiling" = yes; then :
11655   gl_cv_header_working_fcntl_h=cross-compiling
11656 else
11657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h.  */
11659 #include <sys/types.h>
11660            #include <sys/stat.h>
11661            #if HAVE_UNISTD_H
11662            # include <unistd.h>
11663            #else /* on Windows with MSVC */
11664            # include <io.h>
11665            # include <stdlib.h>
11666            # defined sleep(n) _sleep ((n) * 1000)
11667            #endif
11668            #include <fcntl.h>
11669            #ifndef O_NOATIME
11670             #define O_NOATIME 0
11671            #endif
11672            #ifndef O_NOFOLLOW
11673             #define O_NOFOLLOW 0
11674            #endif
11675            static int const constants[] =
11676             {
11677               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11678               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11679             };
11680
11681 int
11682 main ()
11683 {
11684
11685             int result = !constants;
11686             #if HAVE_SYMLINK
11687             {
11688               static char const sym[] = "conftest.sym";
11689               if (symlink ("/dev/null", sym) != 0)
11690                 result |= 2;
11691               else
11692                 {
11693                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
11694                   if (fd >= 0)
11695                     {
11696                       close (fd);
11697                       result |= 4;
11698                     }
11699                 }
11700               if (unlink (sym) != 0 || symlink (".", sym) != 0)
11701                 result |= 2;
11702               else
11703                 {
11704                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
11705                   if (fd >= 0)
11706                     {
11707                       close (fd);
11708                       result |= 4;
11709                     }
11710                 }
11711               unlink (sym);
11712             }
11713             #endif
11714             {
11715               static char const file[] = "confdefs.h";
11716               int fd = open (file, O_RDONLY | O_NOATIME);
11717               if (fd < 0)
11718                 result |= 8;
11719               else
11720                 {
11721                   struct stat st0;
11722                   if (fstat (fd, &st0) != 0)
11723                     result |= 16;
11724                   else
11725                     {
11726                       char c;
11727                       sleep (1);
11728                       if (read (fd, &c, 1) != 1)
11729                         result |= 24;
11730                       else
11731                         {
11732                           if (close (fd) != 0)
11733                             result |= 32;
11734                           else
11735                             {
11736                               struct stat st1;
11737                               if (stat (file, &st1) != 0)
11738                                 result |= 40;
11739                               else
11740                                 if (st0.st_atime != st1.st_atime)
11741                                   result |= 64;
11742                             }
11743                         }
11744                     }
11745                 }
11746             }
11747             return result;
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 if ac_fn_c_try_run "$LINENO"; then :
11753   gl_cv_header_working_fcntl_h=yes
11754 else
11755   case $? in #(
11756         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11757         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11758         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11759          *) gl_cv_header_working_fcntl_h='no';;
11760         esac
11761 fi
11762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11763   conftest.$ac_objext conftest.beam conftest.$ac_ext
11764 fi
11765
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11768 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11769
11770   case $gl_cv_header_working_fcntl_h in #(
11771   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11772   *) ac_val=1;;
11773   esac
11774
11775 cat >>confdefs.h <<_ACEOF
11776 #define HAVE_WORKING_O_NOATIME $ac_val
11777 _ACEOF
11778
11779
11780   case $gl_cv_header_working_fcntl_h in #(
11781   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11782   *) ac_val=1;;
11783   esac
11784
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_WORKING_O_NOFOLLOW $ac_val
11787 _ACEOF
11788
11789
11790 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11791 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11792   ac_have_decl=1
11793 else
11794   ac_have_decl=0
11795 fi
11796
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11799 _ACEOF
11800
11801
11802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11803 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11804 if ${ac_cv_gnu_library_2_1+:} false; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809
11810 #include <features.h>
11811 #ifdef __GNU_LIBRARY__
11812  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11813   Lucky GNU user
11814  #endif
11815 #endif
11816 #ifdef __UCLIBC__
11817  Lucky user
11818 #endif
11819
11820 _ACEOF
11821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11822   $EGREP "Lucky" >/dev/null 2>&1; then :
11823   ac_cv_gnu_library_2_1=yes
11824 else
11825   ac_cv_gnu_library_2_1=no
11826 fi
11827 rm -f conftest*
11828
11829
11830
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11833 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11834
11835     GLIBC21="$ac_cv_gnu_library_2_1"
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845   GNULIB_EXPLICIT_BZERO=0;
11846   GNULIB_FFSL=0;
11847   GNULIB_FFSLL=0;
11848   GNULIB_MEMCHR=0;
11849   GNULIB_MEMMEM=0;
11850   GNULIB_MEMPCPY=0;
11851   GNULIB_MEMRCHR=0;
11852   GNULIB_RAWMEMCHR=0;
11853   GNULIB_STPCPY=0;
11854   GNULIB_STPNCPY=0;
11855   GNULIB_STRCHRNUL=0;
11856   GNULIB_STRDUP=0;
11857   GNULIB_STRNCAT=0;
11858   GNULIB_STRNDUP=0;
11859   GNULIB_STRNLEN=0;
11860   GNULIB_STRPBRK=0;
11861   GNULIB_STRSEP=0;
11862   GNULIB_STRSTR=0;
11863   GNULIB_STRCASESTR=0;
11864   GNULIB_STRTOK_R=0;
11865   GNULIB_MBSLEN=0;
11866   GNULIB_MBSNLEN=0;
11867   GNULIB_MBSCHR=0;
11868   GNULIB_MBSRCHR=0;
11869   GNULIB_MBSSTR=0;
11870   GNULIB_MBSCASECMP=0;
11871   GNULIB_MBSNCASECMP=0;
11872   GNULIB_MBSPCASECMP=0;
11873   GNULIB_MBSCASESTR=0;
11874   GNULIB_MBSCSPN=0;
11875   GNULIB_MBSPBRK=0;
11876   GNULIB_MBSSPN=0;
11877   GNULIB_MBSSEP=0;
11878   GNULIB_MBSTOK_R=0;
11879   GNULIB_STRERROR=0;
11880   GNULIB_STRERROR_R=0;
11881   GNULIB_STRSIGNAL=0;
11882   GNULIB_STRVERSCMP=0;
11883   HAVE_MBSLEN=0;
11884     HAVE_EXPLICIT_BZERO=1;
11885   HAVE_FFSL=1;
11886   HAVE_FFSLL=1;
11887   HAVE_MEMCHR=1;
11888   HAVE_DECL_MEMMEM=1;
11889   HAVE_MEMPCPY=1;
11890   HAVE_DECL_MEMRCHR=1;
11891   HAVE_RAWMEMCHR=1;
11892   HAVE_STPCPY=1;
11893   HAVE_STPNCPY=1;
11894   HAVE_STRCHRNUL=1;
11895   HAVE_DECL_STRDUP=1;
11896   HAVE_DECL_STRNDUP=1;
11897   HAVE_DECL_STRNLEN=1;
11898   HAVE_STRPBRK=1;
11899   HAVE_STRSEP=1;
11900   HAVE_STRCASESTR=1;
11901   HAVE_DECL_STRTOK_R=1;
11902   HAVE_DECL_STRERROR_R=1;
11903   HAVE_DECL_STRSIGNAL=1;
11904   HAVE_STRVERSCMP=1;
11905   REPLACE_MEMCHR=0;
11906   REPLACE_MEMMEM=0;
11907   REPLACE_STPNCPY=0;
11908   REPLACE_STRCHRNUL=0;
11909   REPLACE_STRDUP=0;
11910   REPLACE_STRNCAT=0;
11911   REPLACE_STRNDUP=0;
11912   REPLACE_STRNLEN=0;
11913   REPLACE_STRSTR=0;
11914   REPLACE_STRCASESTR=0;
11915   REPLACE_STRTOK_R=0;
11916   REPLACE_STRERROR=0;
11917   REPLACE_STRERROR_R=0;
11918   REPLACE_STRSIGNAL=0;
11919   UNDEFINE_STRTOK_R=0;
11920
11921
11922
11923
11924
11925
11926   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11927   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11928   # irrelevant for anonymous mappings.
11929   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11930 if test "x$ac_cv_func_mmap" = xyes; then :
11931   gl_have_mmap=yes
11932 else
11933   gl_have_mmap=no
11934 fi
11935
11936
11937   # Try to allow MAP_ANONYMOUS.
11938   gl_have_mmap_anonymous=no
11939   if test $gl_have_mmap = yes; then
11940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11941 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h.  */
11944
11945 #include <sys/mman.h>
11946 #ifdef MAP_ANONYMOUS
11947     I cannot identify this map
11948 #endif
11949
11950 _ACEOF
11951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11952   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11953   gl_have_mmap_anonymous=yes
11954 fi
11955 rm -f conftest*
11956
11957     if test $gl_have_mmap_anonymous != yes; then
11958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h.  */
11960
11961 #include <sys/mman.h>
11962 #ifdef MAP_ANON
11963     I cannot identify this map
11964 #endif
11965
11966 _ACEOF
11967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11968   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11969
11970 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11971
11972          gl_have_mmap_anonymous=yes
11973 fi
11974 rm -f conftest*
11975
11976     fi
11977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11978 $as_echo "$gl_have_mmap_anonymous" >&6; }
11979     if test $gl_have_mmap_anonymous = yes; then
11980
11981 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11982
11983     fi
11984   fi
11985
11986
11987
11988
11989
11990
11991   if test $HAVE_MEMCHR = 1; then
11992     # Detect platform-specific bugs in some versions of glibc:
11993     # memchr should not dereference anything with length 0
11994     #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
11995     # memchr should not dereference overestimated length after a match
11996     #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11997     #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
11998     # Assume that memchr works on platforms that lack mprotect.
11999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12000 $as_echo_n "checking whether memchr works... " >&6; }
12001 if ${gl_cv_func_memchr_works+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   if test "$cross_compiling" = yes; then :
12005   case "$host_os" in
12006                     # Guess yes on native Windows.
12007             mingw*) gl_cv_func_memchr_works="guessing yes" ;;
12008                     # Be pessimistic for now.
12009             *)      gl_cv_func_memchr_works="guessing no" ;;
12010           esac
12011
12012 else
12013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h.  */
12015
12016 #include <string.h>
12017 #if HAVE_SYS_MMAN_H
12018 # include <fcntl.h>
12019 # include <unistd.h>
12020 # include <sys/types.h>
12021 # include <sys/mman.h>
12022 # ifndef MAP_FILE
12023 #  define MAP_FILE 0
12024 # endif
12025 #endif
12026
12027 int
12028 main ()
12029 {
12030
12031   int result = 0;
12032   char *fence = NULL;
12033 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12034 # if HAVE_MAP_ANONYMOUS
12035   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12036   const int fd = -1;
12037 # else /* !HAVE_MAP_ANONYMOUS */
12038   const int flags = MAP_FILE | MAP_PRIVATE;
12039   int fd = open ("/dev/zero", O_RDONLY, 0666);
12040   if (fd >= 0)
12041 # endif
12042     {
12043       int pagesize = getpagesize ();
12044       char *two_pages =
12045         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12046                        flags, fd, 0);
12047       if (two_pages != (char *)(-1)
12048           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12049         fence = two_pages + pagesize;
12050     }
12051 #endif
12052   if (fence)
12053     {
12054       if (memchr (fence, 0, 0))
12055         result |= 1;
12056       strcpy (fence - 9, "12345678");
12057       if (memchr (fence - 9, 0, 79) != fence - 1)
12058         result |= 2;
12059       if (memchr (fence - 1, 0, 3) != fence - 1)
12060         result |= 4;
12061     }
12062   return result;
12063
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_run "$LINENO"; then :
12069   gl_cv_func_memchr_works=yes
12070 else
12071   gl_cv_func_memchr_works=no
12072 fi
12073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12074   conftest.$ac_objext conftest.beam conftest.$ac_ext
12075 fi
12076
12077
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12080 $as_echo "$gl_cv_func_memchr_works" >&6; }
12081     case "$gl_cv_func_memchr_works" in
12082       *yes) ;;
12083       *) REPLACE_MEMCHR=1 ;;
12084     esac
12085   fi
12086
12087 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12088 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12089   ac_have_decl=1
12090 else
12091   ac_have_decl=0
12092 fi
12093
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_DECL_SNPRINTF $ac_have_decl
12096 _ACEOF
12097
12098
12099     REPLACE_NULL=0;
12100   HAVE_MAX_ALIGN_T=1;
12101   HAVE_WCHAR_T=1;
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113   if test $ac_cv_type_long_long_int = yes; then
12114     HAVE_LONG_LONG_INT=1
12115   else
12116     HAVE_LONG_LONG_INT=0
12117   fi
12118
12119
12120   if test $ac_cv_type_unsigned_long_long_int = yes; then
12121     HAVE_UNSIGNED_LONG_LONG_INT=1
12122   else
12123     HAVE_UNSIGNED_LONG_LONG_INT=0
12124   fi
12125
12126
12127
12128   if test $ac_cv_header_wchar_h = yes; then
12129     HAVE_WCHAR_H=1
12130   else
12131     HAVE_WCHAR_H=0
12132   fi
12133
12134
12135       if test $ac_cv_header_inttypes_h = yes; then
12136     HAVE_INTTYPES_H=1
12137   else
12138     HAVE_INTTYPES_H=0
12139   fi
12140
12141
12142       if test $ac_cv_header_sys_types_h = yes; then
12143     HAVE_SYS_TYPES_H=1
12144   else
12145     HAVE_SYS_TYPES_H=0
12146   fi
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158      if test $gl_cv_have_include_next = yes; then
12159        gl_cv_next_stdint_h='<'stdint.h'>'
12160      else
12161        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12162 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12163 if ${gl_cv_next_stdint_h+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166
12167              if test $ac_cv_header_stdint_h = yes; then
12168
12169
12170
12171
12172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h.  */
12174 #include <stdint.h>
12175 _ACEOF
12176                 case "$host_os" in
12177     aix*) gl_absname_cpp="$ac_cpp -C" ;;
12178     *)    gl_absname_cpp="$ac_cpp" ;;
12179   esac
12180
12181   case "$host_os" in
12182     mingw*)
12183                                           gl_dirsep_regex='[/\\]'
12184       ;;
12185     *)
12186       gl_dirsep_regex='\/'
12187       ;;
12188   esac
12189       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12190   gl_header_literal_regex=`echo 'stdint.h' \
12191                            | sed -e "$gl_make_literal_regex_sed"`
12192   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12193       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12194       s|^/[^/]|//&|
12195       p
12196       q
12197     }'
12198
12199         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12200   sed -n "$gl_absolute_header_sed"`
12201
12202            gl_header=$gl_cv_absolute_stdint_h
12203            gl_cv_next_stdint_h='"'$gl_header'"'
12204           else
12205                gl_cv_next_stdint_h='<'stdint.h'>'
12206              fi
12207
12208
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12211 $as_echo "$gl_cv_next_stdint_h" >&6; }
12212      fi
12213      NEXT_STDINT_H=$gl_cv_next_stdint_h
12214
12215      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12216        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12217        gl_next_as_first_directive='<'stdint.h'>'
12218      else
12219        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12220        gl_next_as_first_directive=$gl_cv_next_stdint_h
12221      fi
12222      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
12223
12224
12225
12226
12227   if test $ac_cv_header_stdint_h = yes; then
12228     HAVE_STDINT_H=1
12229   else
12230     HAVE_STDINT_H=0
12231   fi
12232
12233
12234     if test $ac_cv_header_stdint_h = yes; then
12235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12236 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12237 if ${gl_cv_header_working_stdint_h+:} false; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   gl_cv_header_working_stdint_h=no
12241        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h.  */
12243
12244
12245 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12246 #define __STDC_CONSTANT_MACROS 1
12247 #define __STDC_LIMIT_MACROS 1
12248 #include <stdint.h>
12249 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
12250 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12251 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12252 #endif
12253
12254
12255   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12256      included before <wchar.h>.  */
12257   #include <stddef.h>
12258   #include <signal.h>
12259   #if HAVE_WCHAR_H
12260   # include <stdio.h>
12261   # include <time.h>
12262   # include <wchar.h>
12263   #endif
12264
12265
12266 #ifdef INT8_MAX
12267 int8_t a1 = INT8_MAX;
12268 int8_t a1min = INT8_MIN;
12269 #endif
12270 #ifdef INT16_MAX
12271 int16_t a2 = INT16_MAX;
12272 int16_t a2min = INT16_MIN;
12273 #endif
12274 #ifdef INT32_MAX
12275 int32_t a3 = INT32_MAX;
12276 int32_t a3min = INT32_MIN;
12277 #endif
12278 #ifdef INT64_MAX
12279 int64_t a4 = INT64_MAX;
12280 int64_t a4min = INT64_MIN;
12281 #endif
12282 #ifdef UINT8_MAX
12283 uint8_t b1 = UINT8_MAX;
12284 #else
12285 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12286 #endif
12287 #ifdef UINT16_MAX
12288 uint16_t b2 = UINT16_MAX;
12289 #endif
12290 #ifdef UINT32_MAX
12291 uint32_t b3 = UINT32_MAX;
12292 #endif
12293 #ifdef UINT64_MAX
12294 uint64_t b4 = UINT64_MAX;
12295 #endif
12296 int_least8_t c1 = INT8_C (0x7f);
12297 int_least8_t c1max = INT_LEAST8_MAX;
12298 int_least8_t c1min = INT_LEAST8_MIN;
12299 int_least16_t c2 = INT16_C (0x7fff);
12300 int_least16_t c2max = INT_LEAST16_MAX;
12301 int_least16_t c2min = INT_LEAST16_MIN;
12302 int_least32_t c3 = INT32_C (0x7fffffff);
12303 int_least32_t c3max = INT_LEAST32_MAX;
12304 int_least32_t c3min = INT_LEAST32_MIN;
12305 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12306 int_least64_t c4max = INT_LEAST64_MAX;
12307 int_least64_t c4min = INT_LEAST64_MIN;
12308 uint_least8_t d1 = UINT8_C (0xff);
12309 uint_least8_t d1max = UINT_LEAST8_MAX;
12310 uint_least16_t d2 = UINT16_C (0xffff);
12311 uint_least16_t d2max = UINT_LEAST16_MAX;
12312 uint_least32_t d3 = UINT32_C (0xffffffff);
12313 uint_least32_t d3max = UINT_LEAST32_MAX;
12314 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12315 uint_least64_t d4max = UINT_LEAST64_MAX;
12316 int_fast8_t e1 = INT_FAST8_MAX;
12317 int_fast8_t e1min = INT_FAST8_MIN;
12318 int_fast16_t e2 = INT_FAST16_MAX;
12319 int_fast16_t e2min = INT_FAST16_MIN;
12320 int_fast32_t e3 = INT_FAST32_MAX;
12321 int_fast32_t e3min = INT_FAST32_MIN;
12322 int_fast64_t e4 = INT_FAST64_MAX;
12323 int_fast64_t e4min = INT_FAST64_MIN;
12324 uint_fast8_t f1 = UINT_FAST8_MAX;
12325 uint_fast16_t f2 = UINT_FAST16_MAX;
12326 uint_fast32_t f3 = UINT_FAST32_MAX;
12327 uint_fast64_t f4 = UINT_FAST64_MAX;
12328 #ifdef INTPTR_MAX
12329 intptr_t g = INTPTR_MAX;
12330 intptr_t gmin = INTPTR_MIN;
12331 #endif
12332 #ifdef UINTPTR_MAX
12333 uintptr_t h = UINTPTR_MAX;
12334 #endif
12335 intmax_t i = INTMAX_MAX;
12336 uintmax_t j = UINTMAX_MAX;
12337
12338 /* Check that SIZE_MAX has the correct type, if possible.  */
12339 #if 201112 <= __STDC_VERSION__
12340 int k = _Generic (SIZE_MAX, size_t: 0);
12341 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
12342        || (0x5110 <= __SUNPRO_C && !__STDC__))
12343 extern size_t k;
12344 extern __typeof__ (SIZE_MAX) k;
12345 #endif
12346
12347 #include <limits.h> /* for CHAR_BIT */
12348 #define TYPE_MINIMUM(t) \
12349   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12350 #define TYPE_MAXIMUM(t) \
12351   ((t) ((t) 0 < (t) -1 \
12352         ? (t) -1 \
12353         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12354 struct s {
12355   int check_PTRDIFF:
12356       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12357       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12358       ? 1 : -1;
12359   /* Detect bug in FreeBSD 6.0 / ia64.  */
12360   int check_SIG_ATOMIC:
12361       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12362       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12363       ? 1 : -1;
12364   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12365   int check_WCHAR:
12366       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12367       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12368       ? 1 : -1;
12369   /* Detect bug in mingw.  */
12370   int check_WINT:
12371       WINT_MIN == TYPE_MINIMUM (wint_t)
12372       && WINT_MAX == TYPE_MAXIMUM (wint_t)
12373       ? 1 : -1;
12374
12375   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
12376   int check_UINT8_C:
12377         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12378   int check_UINT16_C:
12379         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12380
12381   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
12382 #ifdef UINT8_MAX
12383   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12384 #endif
12385 #ifdef UINT16_MAX
12386   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12387 #endif
12388 #ifdef UINT32_MAX
12389   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12390 #endif
12391 #ifdef UINT64_MAX
12392   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12393 #endif
12394   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12395   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12396   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12397   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12398   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12399   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12400   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12401   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12402   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12403   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12404   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12405 };
12406
12407 int
12408 main ()
12409 {
12410
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_compile "$LINENO"; then :
12416                                                     if test "$cross_compiling" = yes; then :
12417   case "$host_os" in
12418                          # Guess yes on native Windows.
12419                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
12420                          # In general, assume it works.
12421                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
12422                esac
12423
12424 else
12425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h.  */
12427
12428
12429 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12430 #define __STDC_CONSTANT_MACROS 1
12431 #define __STDC_LIMIT_MACROS 1
12432 #include <stdint.h>
12433
12434
12435   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12436      included before <wchar.h>.  */
12437   #include <stddef.h>
12438   #include <signal.h>
12439   #if HAVE_WCHAR_H
12440   # include <stdio.h>
12441   # include <time.h>
12442   # include <wchar.h>
12443   #endif
12444
12445
12446 #include <stdio.h>
12447 #include <string.h>
12448 #define MVAL(macro) MVAL1(macro)
12449 #define MVAL1(expression) #expression
12450 static const char *macro_values[] =
12451   {
12452 #ifdef INT8_MAX
12453     MVAL (INT8_MAX),
12454 #endif
12455 #ifdef INT16_MAX
12456     MVAL (INT16_MAX),
12457 #endif
12458 #ifdef INT32_MAX
12459     MVAL (INT32_MAX),
12460 #endif
12461 #ifdef INT64_MAX
12462     MVAL (INT64_MAX),
12463 #endif
12464 #ifdef UINT8_MAX
12465     MVAL (UINT8_MAX),
12466 #endif
12467 #ifdef UINT16_MAX
12468     MVAL (UINT16_MAX),
12469 #endif
12470 #ifdef UINT32_MAX
12471     MVAL (UINT32_MAX),
12472 #endif
12473 #ifdef UINT64_MAX
12474     MVAL (UINT64_MAX),
12475 #endif
12476     NULL
12477   };
12478
12479 int
12480 main ()
12481 {
12482
12483   const char **mv;
12484   for (mv = macro_values; *mv != NULL; mv++)
12485     {
12486       const char *value = *mv;
12487       /* Test whether it looks like a cast expression.  */
12488       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12489           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12490           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12491           || strncmp (value, "((int)"/*)*/, 6) == 0
12492           || strncmp (value, "((signed short)"/*)*/, 15) == 0
12493           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12494         return mv - macro_values + 1;
12495     }
12496   return 0;
12497
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_c_try_run "$LINENO"; then :
12503   gl_cv_header_working_stdint_h=yes
12504 fi
12505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12506   conftest.$ac_objext conftest.beam conftest.$ac_ext
12507 fi
12508
12509
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12515 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12516   fi
12517
12518   HAVE_C99_STDINT_H=0
12519   HAVE_SYS_BITYPES_H=0
12520   HAVE_SYS_INTTYPES_H=0
12521   STDINT_H=stdint.h
12522   case "$gl_cv_header_working_stdint_h" in
12523     *yes)
12524       HAVE_C99_STDINT_H=1
12525                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
12526 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
12527 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530   gl_cv_header_stdint_predates_cxx11_h=yes
12531          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h.  */
12533
12534
12535 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12536 #include <stdint.h>
12537
12538
12539   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12540      included before <wchar.h>.  */
12541   #include <stddef.h>
12542   #include <signal.h>
12543   #if HAVE_WCHAR_H
12544   # include <stdio.h>
12545   # include <time.h>
12546   # include <wchar.h>
12547   #endif
12548
12549
12550 intmax_t im = INTMAX_MAX;
12551 int32_t i32 = INT32_C (0x7fffffff);
12552
12553 int
12554 main ()
12555 {
12556
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_compile "$LINENO"; then :
12562   gl_cv_header_stdint_predates_cxx11_h=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
12567 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
12568
12569       if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
12570
12571 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12572
12573
12574 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12575
12576       fi
12577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12578 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12579 if ${gl_cv_header_stdint_width+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   gl_cv_header_stdint_width=no
12583          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h.  */
12585
12586               /* Work if build is not clean.  */
12587               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12588               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12589                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12590               #endif
12591               #include <stdint.h>
12592
12593   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12594      included before <wchar.h>.  */
12595   #include <stddef.h>
12596   #include <signal.h>
12597   #if HAVE_WCHAR_H
12598   # include <stdio.h>
12599   # include <time.h>
12600   # include <wchar.h>
12601   #endif
12602
12603               int iw = UINTMAX_WIDTH;
12604
12605 int
12606 main ()
12607 {
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_compile "$LINENO"; then :
12614   gl_cv_header_stdint_width=yes
12615 fi
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 fi
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12619 $as_echo "$gl_cv_header_stdint_width" >&6; }
12620       if test "$gl_cv_header_stdint_width" = yes; then
12621         STDINT_H=
12622       fi
12623       ;;
12624     *)
12625                   for ac_header in sys/inttypes.h sys/bitypes.h
12626 do :
12627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12630   cat >>confdefs.h <<_ACEOF
12631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12632 _ACEOF
12633
12634 fi
12635
12636 done
12637
12638       if test $ac_cv_header_sys_inttypes_h = yes; then
12639         HAVE_SYS_INTTYPES_H=1
12640       fi
12641       if test $ac_cv_header_sys_bitypes_h = yes; then
12642         HAVE_SYS_BITYPES_H=1
12643       fi
12644
12645
12646   if test $APPLE_UNIVERSAL_BUILD = 0; then
12647
12648
12649   for gltype in ptrdiff_t size_t ; do
12650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12651 $as_echo_n "checking for bit size of $gltype... " >&6; }
12652 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12653   $as_echo_n "(cached) " >&6
12654 else
12655   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
12656   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12657      included before <wchar.h>.  */
12658   #include <stddef.h>
12659   #include <signal.h>
12660   #if HAVE_WCHAR_H
12661   # include <stdio.h>
12662   # include <time.h>
12663   # include <wchar.h>
12664   #endif
12665
12666 #include <limits.h>"; then :
12667
12668 else
12669   result=unknown
12670 fi
12671
12672        eval gl_cv_bitsizeof_${gltype}=\$result
12673
12674 fi
12675 eval ac_res=\$gl_cv_bitsizeof_${gltype}
12676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12677 $as_echo "$ac_res" >&6; }
12678     eval result=\$gl_cv_bitsizeof_${gltype}
12679     if test $result = unknown; then
12680                                                 result=0
12681     fi
12682     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12683     cat >>confdefs.h <<_ACEOF
12684 #define BITSIZEOF_${GLTYPE} $result
12685 _ACEOF
12686
12687     eval BITSIZEOF_${GLTYPE}=\$result
12688   done
12689
12690
12691   fi
12692
12693
12694   for gltype in sig_atomic_t wchar_t wint_t ; do
12695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12696 $as_echo_n "checking for bit size of $gltype... " >&6; }
12697 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
12701   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12702      included before <wchar.h>.  */
12703   #include <stddef.h>
12704   #include <signal.h>
12705   #if HAVE_WCHAR_H
12706   # include <stdio.h>
12707   # include <time.h>
12708   # include <wchar.h>
12709   #endif
12710
12711 #include <limits.h>"; then :
12712
12713 else
12714   result=unknown
12715 fi
12716
12717        eval gl_cv_bitsizeof_${gltype}=\$result
12718
12719 fi
12720 eval ac_res=\$gl_cv_bitsizeof_${gltype}
12721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12722 $as_echo "$ac_res" >&6; }
12723     eval result=\$gl_cv_bitsizeof_${gltype}
12724     if test $result = unknown; then
12725                                                 result=0
12726     fi
12727     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12728     cat >>confdefs.h <<_ACEOF
12729 #define BITSIZEOF_${GLTYPE} $result
12730 _ACEOF
12731
12732     eval BITSIZEOF_${GLTYPE}=\$result
12733   done
12734
12735
12736
12737
12738   for gltype in sig_atomic_t wchar_t wint_t ; do
12739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12740 $as_echo_n "checking whether $gltype is signed... " >&6; }
12741 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h.  */
12746
12747   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12748      included before <wchar.h>.  */
12749   #include <stddef.h>
12750   #include <signal.h>
12751   #if HAVE_WCHAR_H
12752   # include <stdio.h>
12753   # include <time.h>
12754   # include <wchar.h>
12755   #endif
12756
12757             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12758 int
12759 main ()
12760 {
12761
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 if ac_fn_c_try_compile "$LINENO"; then :
12767   result=yes
12768 else
12769   result=no
12770 fi
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772        eval gl_cv_type_${gltype}_signed=\$result
12773
12774 fi
12775 eval ac_res=\$gl_cv_type_${gltype}_signed
12776                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12777 $as_echo "$ac_res" >&6; }
12778     eval result=\$gl_cv_type_${gltype}_signed
12779     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12780     if test "$result" = yes; then
12781       cat >>confdefs.h <<_ACEOF
12782 #define HAVE_SIGNED_${GLTYPE} 1
12783 _ACEOF
12784
12785       eval HAVE_SIGNED_${GLTYPE}=1
12786     else
12787       eval HAVE_SIGNED_${GLTYPE}=0
12788     fi
12789   done
12790
12791
12792   gl_cv_type_ptrdiff_t_signed=yes
12793   gl_cv_type_size_t_signed=no
12794   if test $APPLE_UNIVERSAL_BUILD = 0; then
12795
12796
12797   for gltype in ptrdiff_t size_t ; do
12798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12799 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12800 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12801   $as_echo_n "(cached) " >&6
12802 else
12803   eval gl_cv_type_${gltype}_suffix=no
12804        eval result=\$gl_cv_type_${gltype}_signed
12805        if test "$result" = yes; then
12806          glsufu=
12807        else
12808          glsufu=u
12809        fi
12810        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12811          case $glsuf in
12812            '')  gltype1='int';;
12813            l)   gltype1='long int';;
12814            ll)  gltype1='long long int';;
12815            i64) gltype1='__int64';;
12816            u)   gltype1='unsigned int';;
12817            ul)  gltype1='unsigned long int';;
12818            ull) gltype1='unsigned long long int';;
12819            ui64)gltype1='unsigned __int64';;
12820          esac
12821          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12823
12824   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12825      included before <wchar.h>.  */
12826   #include <stddef.h>
12827   #include <signal.h>
12828   #if HAVE_WCHAR_H
12829   # include <stdio.h>
12830   # include <time.h>
12831   # include <wchar.h>
12832   #endif
12833
12834               extern $gltype foo;
12835               extern $gltype1 foo;
12836 int
12837 main ()
12838 {
12839
12840   ;
12841   return 0;
12842 }
12843 _ACEOF
12844 if ac_fn_c_try_compile "$LINENO"; then :
12845   eval gl_cv_type_${gltype}_suffix=\$glsuf
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848          eval result=\$gl_cv_type_${gltype}_suffix
12849          test "$result" != no && break
12850        done
12851 fi
12852 eval ac_res=\$gl_cv_type_${gltype}_suffix
12853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12854 $as_echo "$ac_res" >&6; }
12855     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12856     eval result=\$gl_cv_type_${gltype}_suffix
12857     test "$result" = no && result=
12858     eval ${GLTYPE}_SUFFIX=\$result
12859     cat >>confdefs.h <<_ACEOF
12860 #define ${GLTYPE}_SUFFIX $result
12861 _ACEOF
12862
12863   done
12864
12865
12866   fi
12867
12868
12869   for gltype in sig_atomic_t wchar_t wint_t ; do
12870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12871 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12872 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875   eval gl_cv_type_${gltype}_suffix=no
12876        eval result=\$gl_cv_type_${gltype}_signed
12877        if test "$result" = yes; then
12878          glsufu=
12879        else
12880          glsufu=u
12881        fi
12882        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12883          case $glsuf in
12884            '')  gltype1='int';;
12885            l)   gltype1='long int';;
12886            ll)  gltype1='long long int';;
12887            i64) gltype1='__int64';;
12888            u)   gltype1='unsigned int';;
12889            ul)  gltype1='unsigned long int';;
12890            ull) gltype1='unsigned long long int';;
12891            ui64)gltype1='unsigned __int64';;
12892          esac
12893          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h.  */
12895
12896   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12897      included before <wchar.h>.  */
12898   #include <stddef.h>
12899   #include <signal.h>
12900   #if HAVE_WCHAR_H
12901   # include <stdio.h>
12902   # include <time.h>
12903   # include <wchar.h>
12904   #endif
12905
12906               extern $gltype foo;
12907               extern $gltype1 foo;
12908 int
12909 main ()
12910 {
12911
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917   eval gl_cv_type_${gltype}_suffix=\$glsuf
12918 fi
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920          eval result=\$gl_cv_type_${gltype}_suffix
12921          test "$result" != no && break
12922        done
12923 fi
12924 eval ac_res=\$gl_cv_type_${gltype}_suffix
12925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12928     eval result=\$gl_cv_type_${gltype}_suffix
12929     test "$result" = no && result=
12930     eval ${GLTYPE}_SUFFIX=\$result
12931     cat >>confdefs.h <<_ACEOF
12932 #define ${GLTYPE}_SUFFIX $result
12933 _ACEOF
12934
12935   done
12936
12937
12938
12939           if test $GNULIB_OVERRIDES_WINT_T = 1; then
12940     BITSIZEOF_WINT_T=32
12941   fi
12942
12943       ;;
12944   esac
12945
12946
12947
12948   LIMITS_H='limits.h'
12949    if test -n "$LIMITS_H"; then
12950   GL_GENERATE_LIMITS_H_TRUE=
12951   GL_GENERATE_LIMITS_H_FALSE='#'
12952 else
12953   GL_GENERATE_LIMITS_H_TRUE='#'
12954   GL_GENERATE_LIMITS_H_FALSE=
12955 fi
12956
12957
12958
12959
12960
12961
12962
12963    if test -n "$STDINT_H"; then
12964   GL_GENERATE_STDINT_H_TRUE=
12965   GL_GENERATE_STDINT_H_FALSE='#'
12966 else
12967   GL_GENERATE_STDINT_H_TRUE='#'
12968   GL_GENERATE_STDINT_H_FALSE=
12969 fi
12970
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12973 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12974 if ${ac_cv_c_restrict+:} false; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977   ac_cv_c_restrict=no
12978    # The order here caters to the fact that C++ does not require restrict.
12979    for ac_kw in __restrict __restrict__ _Restrict restrict; do
12980      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982 typedef int *int_ptr;
12983            int foo (int_ptr $ac_kw ip) { return ip[0]; }
12984            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
12985            int bar (int ip[$ac_kw]) { return ip[0]; }
12986
12987 int
12988 main ()
12989 {
12990 int s[1];
12991            int *$ac_kw t = s;
12992            t[0] = 0;
12993            return foo (t) + bar (t);
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000   ac_cv_c_restrict=$ac_kw
13001 fi
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003      test "$ac_cv_c_restrict" != no && break
13004    done
13005
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13008 $as_echo "$ac_cv_c_restrict" >&6; }
13009
13010  case $ac_cv_c_restrict in
13011    restrict) ;;
13012    no) $as_echo "#define restrict /**/" >>confdefs.h
13013  ;;
13014    *)  cat >>confdefs.h <<_ACEOF
13015 #define restrict $ac_cv_c_restrict
13016 _ACEOF
13017  ;;
13018  esac
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031      if test $gl_cv_have_include_next = yes; then
13032        gl_cv_next_string_h='<'string.h'>'
13033      else
13034        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13035 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13036 if ${gl_cv_next_string_h+:} false; then :
13037   $as_echo_n "(cached) " >&6
13038 else
13039
13040
13041
13042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h.  */
13044 #include <string.h>
13045 _ACEOF
13046                 case "$host_os" in
13047     aix*) gl_absname_cpp="$ac_cpp -C" ;;
13048     *)    gl_absname_cpp="$ac_cpp" ;;
13049   esac
13050
13051   case "$host_os" in
13052     mingw*)
13053                                           gl_dirsep_regex='[/\\]'
13054       ;;
13055     *)
13056       gl_dirsep_regex='\/'
13057       ;;
13058   esac
13059       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13060   gl_header_literal_regex=`echo 'string.h' \
13061                            | sed -e "$gl_make_literal_regex_sed"`
13062   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13063       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13064       s|^/[^/]|//&|
13065       p
13066       q
13067     }'
13068
13069         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13070   sed -n "$gl_absolute_header_sed"`
13071
13072            gl_header=$gl_cv_absolute_string_h
13073            gl_cv_next_string_h='"'$gl_header'"'
13074
13075
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13078 $as_echo "$gl_cv_next_string_h" >&6; }
13079      fi
13080      NEXT_STRING_H=$gl_cv_next_string_h
13081
13082      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13083        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13084        gl_next_as_first_directive='<'string.h'>'
13085      else
13086        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13087        gl_next_as_first_directive=$gl_cv_next_string_h
13088      fi
13089      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13102 if test "x$ac_cv_type_pid_t" = xyes; then :
13103
13104 else
13105
13106 cat >>confdefs.h <<_ACEOF
13107 #define pid_t int
13108 _ACEOF
13109
13110 fi
13111
13112 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13113 if test "x$ac_cv_type_mode_t" = xyes; then :
13114
13115 else
13116
13117 cat >>confdefs.h <<_ACEOF
13118 #define mode_t int
13119 _ACEOF
13120
13121 fi
13122
13123
13124
13125     WINDOWS_64_BIT_OFF_T=0
13126
13127
13128
13129
13130
13131 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143      if test $gl_cv_have_include_next = yes; then
13144        gl_cv_next_sys_types_h='<'sys/types.h'>'
13145      else
13146        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13147 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13148 if ${gl_cv_next_sys_types_h+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151
13152
13153
13154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h.  */
13156 #include <sys/types.h>
13157 _ACEOF
13158                 case "$host_os" in
13159     aix*) gl_absname_cpp="$ac_cpp -C" ;;
13160     *)    gl_absname_cpp="$ac_cpp" ;;
13161   esac
13162
13163   case "$host_os" in
13164     mingw*)
13165                                           gl_dirsep_regex='[/\\]'
13166       ;;
13167     *)
13168       gl_dirsep_regex='\/'
13169       ;;
13170   esac
13171       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13172   gl_header_literal_regex=`echo 'sys/types.h' \
13173                            | sed -e "$gl_make_literal_regex_sed"`
13174   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13175       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13176       s|^/[^/]|//&|
13177       p
13178       q
13179     }'
13180
13181         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13182   sed -n "$gl_absolute_header_sed"`
13183
13184            gl_header=$gl_cv_absolute_sys_types_h
13185            gl_cv_next_sys_types_h='"'$gl_header'"'
13186
13187
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13190 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13191      fi
13192      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13193
13194      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13195        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13196        gl_next_as_first_directive='<'sys/types.h'>'
13197      else
13198        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13199        gl_next_as_first_directive=$gl_cv_next_sys_types_h
13200      fi
13201      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214     WINDOWS_STAT_INODES=0
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
13225 i\
13226 0
13227 q
13228 '
13229 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
13230 i\
13231 0
13232 q
13233 '
13234 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
13235 i\
13236 0
13237 q
13238 '
13239
13240
13241   if test "$HAVE_LIBUNISTRING" = yes; then
13242     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
13243     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
13244     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
13245   fi
13246
13247 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13248 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13249   ac_have_decl=1
13250 else
13251   ac_have_decl=0
13252 fi
13253
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13256 _ACEOF
13257
13258
13259   GNULIB_BTOWC=0;
13260   GNULIB_WCTOB=0;
13261   GNULIB_MBSINIT=0;
13262   GNULIB_MBRTOWC=0;
13263   GNULIB_MBRLEN=0;
13264   GNULIB_MBSRTOWCS=0;
13265   GNULIB_MBSNRTOWCS=0;
13266   GNULIB_WCRTOMB=0;
13267   GNULIB_WCSRTOMBS=0;
13268   GNULIB_WCSNRTOMBS=0;
13269   GNULIB_WCWIDTH=0;
13270   GNULIB_WMEMCHR=0;
13271   GNULIB_WMEMCMP=0;
13272   GNULIB_WMEMCPY=0;
13273   GNULIB_WMEMMOVE=0;
13274   GNULIB_WMEMSET=0;
13275   GNULIB_WCSLEN=0;
13276   GNULIB_WCSNLEN=0;
13277   GNULIB_WCSCPY=0;
13278   GNULIB_WCPCPY=0;
13279   GNULIB_WCSNCPY=0;
13280   GNULIB_WCPNCPY=0;
13281   GNULIB_WCSCAT=0;
13282   GNULIB_WCSNCAT=0;
13283   GNULIB_WCSCMP=0;
13284   GNULIB_WCSNCMP=0;
13285   GNULIB_WCSCASECMP=0;
13286   GNULIB_WCSNCASECMP=0;
13287   GNULIB_WCSCOLL=0;
13288   GNULIB_WCSXFRM=0;
13289   GNULIB_WCSDUP=0;
13290   GNULIB_WCSCHR=0;
13291   GNULIB_WCSRCHR=0;
13292   GNULIB_WCSCSPN=0;
13293   GNULIB_WCSSPN=0;
13294   GNULIB_WCSPBRK=0;
13295   GNULIB_WCSSTR=0;
13296   GNULIB_WCSTOK=0;
13297   GNULIB_WCSWIDTH=0;
13298   GNULIB_WCSFTIME=0;
13299     HAVE_BTOWC=1;
13300   HAVE_MBSINIT=1;
13301   HAVE_MBRTOWC=1;
13302   HAVE_MBRLEN=1;
13303   HAVE_MBSRTOWCS=1;
13304   HAVE_MBSNRTOWCS=1;
13305   HAVE_WCRTOMB=1;
13306   HAVE_WCSRTOMBS=1;
13307   HAVE_WCSNRTOMBS=1;
13308   HAVE_WMEMCHR=1;
13309   HAVE_WMEMCMP=1;
13310   HAVE_WMEMCPY=1;
13311   HAVE_WMEMMOVE=1;
13312   HAVE_WMEMSET=1;
13313   HAVE_WCSLEN=1;
13314   HAVE_WCSNLEN=1;
13315   HAVE_WCSCPY=1;
13316   HAVE_WCPCPY=1;
13317   HAVE_WCSNCPY=1;
13318   HAVE_WCPNCPY=1;
13319   HAVE_WCSCAT=1;
13320   HAVE_WCSNCAT=1;
13321   HAVE_WCSCMP=1;
13322   HAVE_WCSNCMP=1;
13323   HAVE_WCSCASECMP=1;
13324   HAVE_WCSNCASECMP=1;
13325   HAVE_WCSCOLL=1;
13326   HAVE_WCSXFRM=1;
13327   HAVE_WCSDUP=1;
13328   HAVE_WCSCHR=1;
13329   HAVE_WCSRCHR=1;
13330   HAVE_WCSCSPN=1;
13331   HAVE_WCSSPN=1;
13332   HAVE_WCSPBRK=1;
13333   HAVE_WCSSTR=1;
13334   HAVE_WCSTOK=1;
13335   HAVE_WCSWIDTH=1;
13336   HAVE_WCSFTIME=1;
13337   HAVE_DECL_WCTOB=1;
13338   HAVE_DECL_WCWIDTH=1;
13339   REPLACE_MBSTATE_T=0;
13340   REPLACE_BTOWC=0;
13341   REPLACE_WCTOB=0;
13342   REPLACE_MBSINIT=0;
13343   REPLACE_MBRTOWC=0;
13344   REPLACE_MBRLEN=0;
13345   REPLACE_MBSRTOWCS=0;
13346   REPLACE_MBSNRTOWCS=0;
13347   REPLACE_WCRTOMB=0;
13348   REPLACE_WCSRTOMBS=0;
13349   REPLACE_WCSNRTOMBS=0;
13350   REPLACE_WCWIDTH=0;
13351   REPLACE_WCSWIDTH=0;
13352   REPLACE_WCSFTIME=0;
13353
13354
13355             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13356 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13357 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
13358   $as_echo_n "(cached) " >&6
13359 else
13360   gl_cv_header_wchar_h_correct_inline=yes
13361      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h.  */
13363
13364        #define wcstod renamed_wcstod
13365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13366    <wchar.h>.
13367    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13368    included before <wchar.h>.  */
13369 #include <stddef.h>
13370 #include <stdio.h>
13371 #include <time.h>
13372 #include <wchar.h>
13373 extern int zero (void);
13374 int main () { return zero(); }
13375
13376 _ACEOF
13377                               save_ac_compile="$ac_compile"
13378      ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13379      if echo '#include "conftest.c"' >conftest1.c &&
13380         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13381   (eval $ac_compile) 2>&5
13382   ac_status=$?
13383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384   test $ac_status = 0; }; then
13385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h.  */
13387
13388          #define wcstod renamed_wcstod
13389 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13390    <wchar.h>.
13391    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13392    included before <wchar.h>.  */
13393 #include <stddef.h>
13394 #include <stdio.h>
13395 #include <time.h>
13396 #include <wchar.h>
13397 int zero (void) { return 0; }
13398
13399 _ACEOF
13400               ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13401        if echo '#include "conftest.c"' >conftest2.c &&
13402           { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13403   (eval $ac_compile) 2>&5
13404   ac_status=$?
13405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13406   test $ac_status = 0; }; then
13407          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
13408            :
13409          else
13410            gl_cv_header_wchar_h_correct_inline=no
13411          fi
13412        fi
13413      fi
13414      ac_compile="$save_ac_compile"
13415      rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
13416
13417 fi
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13419 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13420   if test $gl_cv_header_wchar_h_correct_inline = no; then
13421     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13422 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13423 C99 mode. You have four options:
13424   - Add the flag -fgnu89-inline to CC and reconfigure, or
13425   - Fix your include files, using parts of
13426     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13427   - Use a gcc version older than 4.3, or
13428   - Don't use the flags -std=c99 or -std=gnu99.
13429 Configuration aborted." "$LINENO" 5
13430   fi
13431
13432
13433
13434
13435
13436   if test $ac_cv_header_crtdefs_h = yes; then
13437     HAVE_CRTDEFS_H=1
13438   else
13439     HAVE_CRTDEFS_H=0
13440   fi
13441
13442
13443
13444   GNULIB_ISWBLANK=0;
13445   GNULIB_WCTYPE=0;
13446   GNULIB_ISWCTYPE=0;
13447   GNULIB_WCTRANS=0;
13448   GNULIB_TOWCTRANS=0;
13449     HAVE_ISWBLANK=1;
13450   HAVE_WCTYPE_T=1;
13451   HAVE_WCTRANS_T=1;
13452   REPLACE_ISWBLANK=0;
13453
13454
13455
13456
13457
13458
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13461 $as_echo_n "checking for inline... " >&6; }
13462 if ${ac_cv_c_inline+:} false; then :
13463   $as_echo_n "(cached) " >&6
13464 else
13465   ac_cv_c_inline=no
13466 for ac_kw in inline __inline__ __inline; do
13467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469 #ifndef __cplusplus
13470 typedef int foo_t;
13471 static $ac_kw foo_t static_foo () {return 0; }
13472 $ac_kw foo_t foo () {return 0; }
13473 #endif
13474
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477   ac_cv_c_inline=$ac_kw
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480   test "$ac_cv_c_inline" != no && break
13481 done
13482
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13485 $as_echo "$ac_cv_c_inline" >&6; }
13486
13487 case $ac_cv_c_inline in
13488   inline | yes) ;;
13489   *)
13490     case $ac_cv_c_inline in
13491       no) ac_val=;;
13492       *) ac_val=$ac_cv_c_inline;;
13493     esac
13494     cat >>confdefs.h <<_ACEOF
13495 #ifndef __cplusplus
13496 #define inline $ac_val
13497 #endif
13498 _ACEOF
13499     ;;
13500 esac
13501
13502
13503    if false; then
13504   GL_COND_LIBTOOL_TRUE=
13505   GL_COND_LIBTOOL_FALSE='#'
13506 else
13507   GL_COND_LIBTOOL_TRUE='#'
13508   GL_COND_LIBTOOL_FALSE=
13509 fi
13510
13511   gl_cond_libtool=false
13512   gl_libdeps=
13513   gl_ltlibdeps=
13514   gl_m4_base='gnulib_m4'
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524   gl_source_base='lib'
13525
13526
13527   if test $ac_cv_func_alloca_works = no; then
13528     :
13529   fi
13530
13531   # Define an additional variable used in the Makefile substitution.
13532   if test $ac_cv_working_alloca_h = yes; then
13533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13534 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13535 if ${gl_cv_rpl_alloca+:} false; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538
13539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h.  */
13541
13542 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13543         Need own alloca
13544 #endif
13545
13546 _ACEOF
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548   $EGREP "Need own alloca" >/dev/null 2>&1; then :
13549   gl_cv_rpl_alloca=yes
13550 else
13551   gl_cv_rpl_alloca=no
13552 fi
13553 rm -f conftest*
13554
13555
13556 fi
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13558 $as_echo "$gl_cv_rpl_alloca" >&6; }
13559     if test $gl_cv_rpl_alloca = yes; then
13560
13561 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13562
13563       ALLOCA_H=alloca.h
13564     else
13565                   ALLOCA_H=
13566     fi
13567   else
13568     ALLOCA_H=alloca.h
13569   fi
13570
13571    if test -n "$ALLOCA_H"; then
13572   GL_GENERATE_ALLOCA_H_TRUE=
13573   GL_GENERATE_ALLOCA_H_FALSE='#'
13574 else
13575   GL_GENERATE_ALLOCA_H_TRUE='#'
13576   GL_GENERATE_ALLOCA_H_FALSE=
13577 fi
13578
13579
13580
13581
13582
13583
13584
13585   FLOAT_H=
13586   REPLACE_FLOAT_LDBL=0
13587   case "$host_os" in
13588     aix* | beos* | openbsd* | mirbsd* | irix*)
13589       FLOAT_H=float.h
13590       ;;
13591     freebsd* | dragonfly*)
13592       case "$host_cpu" in
13593         i[34567]86 )
13594           FLOAT_H=float.h
13595           ;;
13596         x86_64 )
13597           # On x86_64 systems, the C compiler may still be generating
13598           # 32-bit code.
13599           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h.  */
13601 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
13602                   int ok;
13603                  #else
13604                   error fail
13605                  #endif
13606
13607 _ACEOF
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609
13610 else
13611   FLOAT_H=float.h
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614           ;;
13615       esac
13616       ;;
13617     linux*)
13618       case "$host_cpu" in
13619         powerpc*)
13620           FLOAT_H=float.h
13621           ;;
13622       esac
13623       ;;
13624   esac
13625   case "$host_os" in
13626     aix* | freebsd* | dragonfly* | linux*)
13627       if test -n "$FLOAT_H"; then
13628         REPLACE_FLOAT_LDBL=1
13629       fi
13630       ;;
13631   esac
13632
13633     REPLACE_ITOLD=0
13634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13635 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13636 if ${gl_cv_func_itold_works+:} false; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639
13640       if test "$cross_compiling" = yes; then :
13641   case "$host" in
13642            sparc*-*-linux*)
13643              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645 #if defined __LP64__ || defined __arch64__
13646                     int ok;
13647                    #else
13648                     error fail
13649                    #endif
13650
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653   gl_cv_func_itold_works="guessing no"
13654 else
13655   gl_cv_func_itold_works="guessing yes"
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658              ;;
13659                    # Guess yes on native Windows.
13660            mingw*) gl_cv_func_itold_works="guessing yes" ;;
13661            *)      gl_cv_func_itold_works="guessing yes" ;;
13662          esac
13663
13664 else
13665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h.  */
13667
13668 int i = -1;
13669 volatile long double ld;
13670 int main ()
13671 {
13672   ld += i * 1.0L;
13673   if (ld > 0)
13674     return 1;
13675   return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_run "$LINENO"; then :
13679   gl_cv_func_itold_works=yes
13680 else
13681   gl_cv_func_itold_works=no
13682 fi
13683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13684   conftest.$ac_objext conftest.beam conftest.$ac_ext
13685 fi
13686
13687
13688 fi
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13690 $as_echo "$gl_cv_func_itold_works" >&6; }
13691   case "$gl_cv_func_itold_works" in
13692     *no)
13693       REPLACE_ITOLD=1
13694                   FLOAT_H=float.h
13695       ;;
13696   esac
13697
13698   if test -n "$FLOAT_H"; then
13699
13700
13701
13702
13703
13704
13705
13706
13707      if test $gl_cv_have_include_next = yes; then
13708        gl_cv_next_float_h='<'float.h'>'
13709      else
13710        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13711 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13712 if ${gl_cv_next_float_h+:} false; then :
13713   $as_echo_n "(cached) " >&6
13714 else
13715
13716
13717
13718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h.  */
13720 #include <float.h>
13721 _ACEOF
13722                 case "$host_os" in
13723     aix*) gl_absname_cpp="$ac_cpp -C" ;;
13724     *)    gl_absname_cpp="$ac_cpp" ;;
13725   esac
13726
13727   case "$host_os" in
13728     mingw*)
13729                                           gl_dirsep_regex='[/\\]'
13730       ;;
13731     *)
13732       gl_dirsep_regex='\/'
13733       ;;
13734   esac
13735       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13736   gl_header_literal_regex=`echo 'float.h' \
13737                            | sed -e "$gl_make_literal_regex_sed"`
13738   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13739       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13740       s|^/[^/]|//&|
13741       p
13742       q
13743     }'
13744
13745         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13746   sed -n "$gl_absolute_header_sed"`
13747
13748            gl_header=$gl_cv_absolute_float_h
13749            gl_cv_next_float_h='"'$gl_header'"'
13750
13751
13752 fi
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13754 $as_echo "$gl_cv_next_float_h" >&6; }
13755      fi
13756      NEXT_FLOAT_H=$gl_cv_next_float_h
13757
13758      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13759        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13760        gl_next_as_first_directive='<'float.h'>'
13761      else
13762        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13763        gl_next_as_first_directive=$gl_cv_next_float_h
13764      fi
13765      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13766
13767
13768
13769
13770   fi
13771
13772    if test -n "$FLOAT_H"; then
13773   GL_GENERATE_FLOAT_H_TRUE=
13774   GL_GENERATE_FLOAT_H_FALSE='#'
13775 else
13776   GL_GENERATE_FLOAT_H_TRUE='#'
13777   GL_GENERATE_FLOAT_H_FALSE=
13778 fi
13779
13780
13781
13782   if test $REPLACE_FLOAT_LDBL = 1; then
13783
13784
13785
13786
13787
13788
13789
13790
13791   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13792
13793   fi
13794   if test $REPLACE_ITOLD = 1; then
13795
13796
13797
13798
13799
13800
13801
13802
13803   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13804
13805   fi
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821   gl_cv_func_fprintf_posix=no
13822   case "$gl_cv_func_printf_sizes_c99" in
13823     *yes)
13824       case "$gl_cv_func_printf_long_double" in
13825         *yes)
13826           case "$gl_cv_func_printf_infinite" in
13827             *yes)
13828               case "$gl_cv_func_printf_infinite_long_double" in
13829                 *yes)
13830                   case "$gl_cv_func_printf_directive_a" in
13831                     *yes)
13832                       case "$gl_cv_func_printf_directive_f" in
13833                         *yes)
13834                           case "$gl_cv_func_printf_directive_n" in
13835                             *yes)
13836                               case "$gl_cv_func_printf_directive_ls" in
13837                                 *yes)
13838                                   case "$gl_cv_func_printf_positions" in
13839                                     *yes)
13840                                       case "$gl_cv_func_printf_flag_grouping" in
13841                                         *yes)
13842                                           case "$gl_cv_func_printf_flag_leftadjust" in
13843                                             *yes)
13844                                               case "$gl_cv_func_printf_flag_zero" in
13845                                                 *yes)
13846                                                   case "$gl_cv_func_printf_precision" in
13847                                                     *yes)
13848                                                       case "$gl_cv_func_printf_enomem" in
13849                                                         *yes)
13850                                                           # fprintf exists and is
13851                                                           # already POSIX compliant.
13852                                                           gl_cv_func_fprintf_posix=yes
13853                                                           ;;
13854                                                       esac
13855                                                       ;;
13856                                                   esac
13857                                                   ;;
13858                                               esac
13859                                               ;;
13860                                           esac
13861                                           ;;
13862                                       esac
13863                                       ;;
13864                                   esac
13865                                   ;;
13866                               esac
13867                               ;;
13868                           esac
13869                           ;;
13870                       esac
13871                       ;;
13872                   esac
13873                   ;;
13874               esac
13875               ;;
13876           esac
13877           ;;
13878       esac
13879       ;;
13880   esac
13881   if test $gl_cv_func_fprintf_posix = no; then
13882
13883
13884
13885   case "$gl_cv_func_printf_infinite" in
13886     *yes)
13887       ;;
13888     *)
13889
13890 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
13891
13892       ;;
13893   esac
13894
13895
13896
13897
13898   case "$gl_cv_func_printf_long_double" in
13899     *yes)
13900       case "$gl_cv_func_printf_infinite_long_double" in
13901         *yes)
13902           ;;
13903         *)
13904
13905 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
13906
13907           ;;
13908       esac
13909       ;;
13910   esac
13911
13912
13913
13914   case "$gl_cv_func_printf_directive_a" in
13915     *yes)
13916       ;;
13917     *)
13918
13919 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
13920
13921       for ac_func in nl_langinfo
13922 do :
13923   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
13924 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
13925   cat >>confdefs.h <<_ACEOF
13926 #define HAVE_NL_LANGINFO 1
13927 _ACEOF
13928
13929 fi
13930 done
13931
13932       ;;
13933   esac
13934
13935
13936
13937   case "$gl_cv_func_printf_directive_f" in
13938     *yes)
13939       ;;
13940     *)
13941
13942 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
13943
13944       ;;
13945   esac
13946
13947
13948
13949   case "$gl_cv_func_printf_directive_ls" in
13950     *yes)
13951       ;;
13952     *)
13953
13954 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
13955
13956       ;;
13957   esac
13958
13959
13960
13961   case "$gl_cv_func_printf_flag_grouping" in
13962     *yes)
13963       ;;
13964     *)
13965
13966 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
13967
13968       ;;
13969   esac
13970
13971
13972
13973   case "$gl_cv_func_printf_flag_leftadjust" in
13974     *yes)
13975       ;;
13976     *)
13977
13978 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
13979
13980       ;;
13981   esac
13982
13983
13984
13985   case "$gl_cv_func_printf_flag_zero" in
13986     *yes)
13987       ;;
13988     *)
13989
13990 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
13991
13992       ;;
13993   esac
13994
13995
13996
13997   case "$gl_cv_func_printf_precision" in
13998     *yes)
13999       ;;
14000     *)
14001
14002 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
14003
14004
14005 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
14006
14007
14008 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
14009
14010       ;;
14011   esac
14012
14013
14014
14015   case "$gl_cv_func_printf_enomem" in
14016     *yes)
14017       ;;
14018     *)
14019
14020 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
14021
14022
14023 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
14024
14025
14026 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
14027
14028       ;;
14029   esac
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
14072
14073   if test $ac_cv_func_vasnprintf = yes; then
14074
14075 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
14076
14077   fi
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14090 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
14091
14092 else
14093
14094 $as_echo "#define ptrdiff_t long" >>confdefs.h
14095
14096
14097 fi
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115   gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
14116
14117   REPLACE_FPRINTF=1
14118
14119 $as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
14120
14121   :
14122
14123   fi
14124
14125
14126
14127
14128
14129
14130           GNULIB_FPRINTF_POSIX=1
14131
14132
14133
14134
14135
14136 $as_echo "#define GNULIB_TEST_FPRINTF_POSIX 1" >>confdefs.h
14137
14138
14139
14140
14141
14142
14143   if test $gl_cv_func_frexp_no_libm = yes; then
14144
14145
14146
14147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
14148 $as_echo_n "checking whether frexp works... " >&6; }
14149 if ${gl_cv_func_frexp_works+:} false; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152
14153       if test "$cross_compiling" = yes; then :
14154   case "$host_os" in
14155            netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
14156            mingw*) # Guess yes with MSVC, no with mingw.
14157              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h.  */
14159
14160 #ifdef _MSC_VER
14161  Good
14162 #endif
14163
14164 _ACEOF
14165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14166   $EGREP "Good" >/dev/null 2>&1; then :
14167   gl_cv_func_frexp_works="guessing yes"
14168 else
14169   gl_cv_func_frexp_works="guessing no"
14170 fi
14171 rm -f conftest*
14172
14173              ;;
14174            *) gl_cv_func_frexp_works="guessing yes" ;;
14175          esac
14176
14177 else
14178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h.  */
14180
14181 #include <float.h>
14182 #include <math.h>
14183 #include <string.h>
14184 #if HAVE_DECL_ALARM
14185 # include <signal.h>
14186 # include <unistd.h>
14187 #endif
14188 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
14189    ICC 10.0 has a bug when optimizing the expression -zero.
14190    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
14191    to PowerPC on Mac OS X 10.5.  */
14192 #if defined __hpux || defined __sgi || defined __ICC
14193 static double
14194 compute_minus_zero (void)
14195 {
14196   return -DBL_MIN * DBL_MIN;
14197 }
14198 # define minus_zero compute_minus_zero ()
14199 #else
14200 double minus_zero = -0.0;
14201 #endif
14202 int main()
14203 {
14204   int result = 0;
14205   int i;
14206   volatile double x;
14207   double zero = 0.0;
14208 #if HAVE_DECL_ALARM
14209   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
14210      number.  Let the test fail in this case.  */
14211   signal (SIGALRM, SIG_DFL);
14212   alarm (5);
14213 #endif
14214   /* Test on denormalized numbers.  */
14215   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
14216     ;
14217   if (x > 0.0)
14218     {
14219       int exp;
14220       double y = frexp (x, &exp);
14221       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
14222          On NetBSD: y = 0.75. Correct: y = 0.5.  */
14223       if (y != 0.5)
14224         result |= 1;
14225     }
14226   /* Test on infinite numbers.  */
14227   x = 1.0 / zero;
14228   {
14229     int exp;
14230     double y = frexp (x, &exp);
14231     if (y != x)
14232       result |= 2;
14233   }
14234   /* Test on negative zero.  */
14235   x = minus_zero;
14236   {
14237     int exp;
14238     double y = frexp (x, &exp);
14239     if (memcmp (&y, &x, sizeof x))
14240       result |= 4;
14241   }
14242   return result;
14243 }
14244 _ACEOF
14245 if ac_fn_c_try_run "$LINENO"; then :
14246   gl_cv_func_frexp_works=yes
14247 else
14248   gl_cv_func_frexp_works=no
14249 fi
14250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14251   conftest.$ac_objext conftest.beam conftest.$ac_ext
14252 fi
14253
14254
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
14257 $as_echo "$gl_cv_func_frexp_works" >&6; }
14258
14259     case "$gl_cv_func_frexp_works" in
14260       *yes) gl_func_frexp_no_libm=yes ;;
14261       *)    gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
14262     esac
14263   else
14264     gl_func_frexp_no_libm=no
14265         REPLACE_FREXP=1
14266   fi
14267   if test $gl_func_frexp_no_libm = yes; then
14268
14269 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
14270
14271   fi
14272
14273   if test $gl_func_frexp_no_libm != yes; then
14274
14275
14276
14277
14278
14279
14280
14281
14282   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
14283
14284   fi
14285
14286
14287
14288
14289
14290           GNULIB_FREXP=1
14291
14292
14293
14294
14295
14296 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
14297
14298
14299
14300
14301
14302
14303       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
14304 "
14305 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
14306
14307 else
14308   HAVE_DECL_FREXPL=0
14309 fi
14310
14311   if test $HAVE_DECL_FREXPL = 1; then
14312
14313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
14314 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
14315 if ${gl_cv_func_frexpl_no_libm+:} false; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318
14319       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h.  */
14321 #include <math.h>
14322              long double x;
14323 int
14324 main ()
14325 {
14326 int e; return frexpl (x, &e) > 0;
14327   ;
14328   return 0;
14329 }
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"; then :
14332   gl_cv_func_frexpl_no_libm=yes
14333 else
14334   gl_cv_func_frexpl_no_libm=no
14335 fi
14336 rm -f core conftest.err conftest.$ac_objext \
14337     conftest$ac_exeext conftest.$ac_ext
14338
14339 fi
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
14341 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
14342
14343     if test $gl_cv_func_frexpl_no_libm = yes; then
14344
14345
14346      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
14347 $as_echo_n "checking whether frexpl works... " >&6; }
14348 if ${gl_cv_func_frexpl_works+:} false; then :
14349   $as_echo_n "(cached) " >&6
14350 else
14351
14352       if test "$cross_compiling" = yes; then :
14353
14354          case "$host_os" in
14355            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
14356               gl_cv_func_frexpl_works="guessing no";;
14357            *) gl_cv_func_frexpl_works="guessing yes";;
14358          esac
14359
14360 else
14361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363
14364 #include <float.h>
14365 #include <math.h>
14366 /* Override the values of <float.h>, like done in float.in.h.  */
14367 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
14368 # undef LDBL_MIN_EXP
14369 # define LDBL_MIN_EXP    (-16381)
14370 #endif
14371 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
14372 # undef LDBL_MIN_EXP
14373 # define LDBL_MIN_EXP    (-16381)
14374 #endif
14375 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
14376 # undef LDBL_MIN_EXP
14377 # define LDBL_MIN_EXP DBL_MIN_EXP
14378 #endif
14379 #if defined __sgi && (LDBL_MANT_DIG >= 106)
14380 # if defined __GNUC__
14381 #  undef LDBL_MIN_EXP
14382 #  define LDBL_MIN_EXP DBL_MIN_EXP
14383 # endif
14384 #endif
14385 extern
14386 #ifdef __cplusplus
14387 "C"
14388 #endif
14389 long double frexpl (long double, int *);
14390 int main()
14391 {
14392   int result = 0;
14393   volatile long double x;
14394   /* Test on finite numbers that fails on AIX 5.1.  */
14395   x = 16.0L;
14396   {
14397     int exp = -9999;
14398     frexpl (x, &exp);
14399     if (exp != 5)
14400       result |= 1;
14401   }
14402   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
14403      function returns an invalid (incorrectly normalized) value: it returns
14404                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
14405      but the correct result is
14406           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
14407   x = 1.01L;
14408   {
14409     int exp = -9999;
14410     long double y = frexpl (x, &exp);
14411     if (!(exp == 1 && y == 0.505L))
14412       result |= 2;
14413   }
14414   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
14415      LDBL_MAX_EXP = 16384.
14416      In the loop end test, we test x against Infinity, rather than comparing
14417      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
14418   {
14419     int i;
14420     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
14421       {
14422         int exp = -9999;
14423         frexpl (x, &exp);
14424         if (exp != i)
14425           {
14426             result |= 4;
14427             break;
14428           }
14429       }
14430   }
14431   /* Test on denormalized numbers.  */
14432   {
14433     int i;
14434     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
14435       ;
14436     if (x > 0.0L)
14437       {
14438         int exp;
14439         long double y = frexpl (x, &exp);
14440         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
14441            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
14442         if (exp != LDBL_MIN_EXP - 1)
14443           result |= 8;
14444       }
14445   }
14446   /* Test on infinite numbers.  */
14447   x = 1.0L / 0.0L;
14448   {
14449     int exp;
14450     long double y = frexpl (x, &exp);
14451     if (y != x)
14452       result |= 16;
14453   }
14454   return result;
14455 }
14456 _ACEOF
14457 if ac_fn_c_try_run "$LINENO"; then :
14458   gl_cv_func_frexpl_works=yes
14459 else
14460   gl_cv_func_frexpl_works=no
14461 fi
14462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14463   conftest.$ac_objext conftest.beam conftest.$ac_ext
14464 fi
14465
14466
14467 fi
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
14469 $as_echo "$gl_cv_func_frexpl_works" >&6; }
14470
14471       case "$gl_cv_func_frexpl_works" in
14472         *yes) gl_func_frexpl_no_libm=yes ;;
14473         *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
14474       esac
14475     else
14476       gl_func_frexpl_no_libm=no
14477             REPLACE_FREXPL=1
14478     fi
14479     if test $gl_func_frexpl_no_libm = yes; then
14480
14481 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
14482
14483     fi
14484   fi
14485
14486   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
14487
14488
14489
14490
14491
14492
14493
14494
14495   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
14496
14497   fi
14498
14499
14500
14501
14502
14503           GNULIB_FREXPL=1
14504
14505
14506
14507
14508
14509 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
14510
14511
14512
14513
14514
14515
14516   if test $ac_cv_func___fseterr = no; then
14517
14518
14519
14520
14521
14522
14523
14524
14525   gl_LIBOBJS="$gl_LIBOBJS fseterr.$ac_objext"
14526
14527   fi
14528
14529
14530
14531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14532 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14533 if ${gl_cv_func_isnand_no_libm+:} false; then :
14534   $as_echo_n "(cached) " >&6
14535 else
14536
14537       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h.  */
14539 #include <math.h>
14540              #if __GNUC__ >= 4
14541              # undef isnand
14542              # define isnand(x) __builtin_isnan ((double)(x))
14543              #else
14544              # undef isnand
14545              # define isnand(x) isnan ((double)(x))
14546              #endif
14547              double x;
14548 int
14549 main ()
14550 {
14551 return isnand (x);
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 if ac_fn_c_try_link "$LINENO"; then :
14557   gl_cv_func_isnand_no_libm=yes
14558 else
14559   gl_cv_func_isnand_no_libm=no
14560 fi
14561 rm -f core conftest.err conftest.$ac_objext \
14562     conftest$ac_exeext conftest.$ac_ext
14563
14564 fi
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14566 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14567
14568   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14569   if test $gl_cv_func_isnand_no_libm = yes; then
14570
14571 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14572
14573   fi
14574
14575   if test $gl_func_isnand_no_libm != yes; then
14576
14577
14578
14579
14580
14581
14582
14583
14584   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14585
14586
14587
14588
14589   fi
14590
14591
14592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
14593 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
14594 if ${gl_cv_func_isnanf_no_libm+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597
14598       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h.  */
14600 #include <math.h>
14601              #if __GNUC__ >= 4
14602              # undef isnanf
14603              # define isnanf(x) __builtin_isnanf ((float)(x))
14604              #elif defined isnan
14605              # undef isnanf
14606              # define isnanf(x) isnan ((float)(x))
14607              #endif
14608              float x;
14609 int
14610 main ()
14611 {
14612 return isnanf (x);
14613   ;
14614   return 0;
14615 }
14616 _ACEOF
14617 if ac_fn_c_try_link "$LINENO"; then :
14618   gl_cv_func_isnanf_no_libm=yes
14619 else
14620   gl_cv_func_isnanf_no_libm=no
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext \
14623     conftest$ac_exeext conftest.$ac_ext
14624
14625 fi
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
14627 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
14628
14629   if test $gl_cv_func_isnanf_no_libm = yes; then
14630
14631
14632
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
14634 $as_echo_n "checking whether isnan(float) works... " >&6; }
14635 if ${gl_cv_func_isnanf_works+:} false; then :
14636   $as_echo_n "(cached) " >&6
14637 else
14638
14639       if test "$cross_compiling" = yes; then :
14640   case "$host_os" in
14641            irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
14642            mingw*) # Guess yes on mingw, no on MSVC.
14643              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h.  */
14645
14646 #ifdef __MINGW32__
14647  Known
14648 #endif
14649
14650 _ACEOF
14651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14652   $EGREP "Known" >/dev/null 2>&1; then :
14653   gl_cv_func_isnanf_works="guessing yes"
14654 else
14655   gl_cv_func_isnanf_works="guessing no"
14656 fi
14657 rm -f conftest*
14658
14659              ;;
14660            *) gl_cv_func_isnanf_works="guessing yes" ;;
14661          esac
14662
14663 else
14664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h.  */
14666
14667 #include <math.h>
14668 #if __GNUC__ >= 4
14669 # undef isnanf
14670 # define isnanf(x) __builtin_isnanf ((float)(x))
14671 #elif defined isnan
14672 # undef isnanf
14673 # define isnanf(x) isnan ((float)(x))
14674 #endif
14675 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
14676 #ifdef __DECC
14677 static float
14678 NaN ()
14679 {
14680   static float zero = 0.0f;
14681   return zero / zero;
14682 }
14683 #else
14684 # define NaN() (0.0f / 0.0f)
14685 #endif
14686 #define NWORDS \
14687   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14688 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
14689 int main()
14690 {
14691   int result = 0;
14692
14693   if (isnanf (1.0f / 0.0f))
14694     result |= 1;
14695
14696   if (!isnanf (NaN ()))
14697     result |= 2;
14698
14699 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
14700   /* The isnanf function should be immune against changes in the sign bit and
14701      in the mantissa bits.  The xor operation twiddles a bit that can only be
14702      a sign bit or a mantissa bit.  */
14703   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
14704     {
14705       memory_float m;
14706
14707       m.value = NaN ();
14708       /* Set the bits below the exponent to 01111...111.  */
14709       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
14710       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
14711       if (!isnanf (m.value))
14712         result |= 4;
14713     }
14714 #endif
14715
14716   return result;
14717 }
14718 _ACEOF
14719 if ac_fn_c_try_run "$LINENO"; then :
14720   gl_cv_func_isnanf_works=yes
14721 else
14722   gl_cv_func_isnanf_works=no
14723 fi
14724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14725   conftest.$ac_objext conftest.beam conftest.$ac_ext
14726 fi
14727
14728
14729 fi
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
14731 $as_echo "$gl_cv_func_isnanf_works" >&6; }
14732
14733   fi
14734   if test $gl_cv_func_isnanf_no_libm = yes \
14735      && { case "$gl_cv_func_isnanf_works" in
14736             *yes) true;;
14737             *) false;;
14738           esac
14739         }; then
14740     gl_func_isnanf_no_libm=yes
14741
14742 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
14743
14744   else
14745     gl_func_isnanf_no_libm=no
14746   fi
14747
14748   if test $gl_func_isnanf_no_libm != yes; then
14749
14750
14751
14752
14753
14754
14755
14756
14757   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
14758
14759
14760
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14762 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
14763 if ${gl_cv_cc_float_expbit0+:} false; then :
14764   $as_echo_n "(cached) " >&6
14765 else
14766
14767       if test "$cross_compiling" = yes; then :
14768   gl_cv_cc_float_expbit0="word 0 bit 23"
14769 else
14770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h.  */
14772
14773 #include <float.h>
14774 #include <stddef.h>
14775 #include <stdio.h>
14776 #include <string.h>
14777 #define NWORDS \
14778   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14779 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14780 static unsigned int ored_words[NWORDS];
14781 static unsigned int anded_words[NWORDS];
14782 static void add_to_ored_words (float x)
14783 {
14784   memory_float m;
14785   size_t i;
14786   /* Clear it first, in case
14787      sizeof (float) < sizeof (memory_float).  */
14788   memset (&m, 0, sizeof (memory_float));
14789   m.value = x;
14790   for (i = 0; i < NWORDS; i++)
14791     {
14792       ored_words[i] |= m.word[i];
14793       anded_words[i] &= m.word[i];
14794     }
14795 }
14796 int main ()
14797 {
14798   size_t j;
14799   FILE *fp = fopen ("conftest.out", "w");
14800   if (fp == NULL)
14801     return 1;
14802   for (j = 0; j < NWORDS; j++)
14803     anded_words[j] = ~ (unsigned int) 0;
14804   add_to_ored_words (0.25f);
14805   add_to_ored_words (0.5f);
14806   add_to_ored_words (1.0f);
14807   add_to_ored_words (2.0f);
14808   add_to_ored_words (4.0f);
14809   /* Remove bits that are common (e.g. if representation of the first mantissa
14810      bit is explicit).  */
14811   for (j = 0; j < NWORDS; j++)
14812     ored_words[j] &= ~anded_words[j];
14813   /* Now find the nonzero word.  */
14814   for (j = 0; j < NWORDS; j++)
14815     if (ored_words[j] != 0)
14816       break;
14817   if (j < NWORDS)
14818     {
14819       size_t i;
14820       for (i = j + 1; i < NWORDS; i++)
14821         if (ored_words[i] != 0)
14822           {
14823             fprintf (fp, "unknown");
14824             return (fclose (fp) != 0);
14825           }
14826       for (i = 0; ; i++)
14827         if ((ored_words[j] >> i) & 1)
14828           {
14829             fprintf (fp, "word %d bit %d", (int) j, (int) i);
14830             return (fclose (fp) != 0);
14831           }
14832     }
14833   fprintf (fp, "unknown");
14834   return (fclose (fp) != 0);
14835 }
14836
14837 _ACEOF
14838 if ac_fn_c_try_run "$LINENO"; then :
14839   gl_cv_cc_float_expbit0=`cat conftest.out`
14840 else
14841   gl_cv_cc_float_expbit0="unknown"
14842 fi
14843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14844   conftest.$ac_objext conftest.beam conftest.$ac_ext
14845 fi
14846
14847       rm -f conftest.out
14848
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14851 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
14852   case "$gl_cv_cc_float_expbit0" in
14853     word*bit*)
14854       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14855       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14856
14857 cat >>confdefs.h <<_ACEOF
14858 #define FLT_EXPBIT0_WORD $word
14859 _ACEOF
14860
14861
14862 cat >>confdefs.h <<_ACEOF
14863 #define FLT_EXPBIT0_BIT $bit
14864 _ACEOF
14865
14866       ;;
14867   esac
14868
14869
14870   fi
14871
14872
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14874 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14875 if ${gl_cv_func_isnanl_no_libm+:} false; then :
14876   $as_echo_n "(cached) " >&6
14877 else
14878
14879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881 #include <math.h>
14882              #if __GNUC__ >= 4
14883              # undef isnanl
14884              # define isnanl(x) __builtin_isnanl ((long double)(x))
14885              #elif defined isnan
14886              # undef isnanl
14887              # define isnanl(x) isnan ((long double)(x))
14888              #endif
14889              long double x;
14890 int
14891 main ()
14892 {
14893 return isnanl (x);
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899   gl_cv_func_isnanl_no_libm=yes
14900 else
14901   gl_cv_func_isnanl_no_libm=no
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904     conftest$ac_exeext conftest.$ac_ext
14905
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14908 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14909
14910   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14911   if test $gl_func_isnanl_no_libm = yes; then
14912
14913
14914
14915
14916      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14917 $as_echo_n "checking whether isnanl works... " >&6; }
14918 if ${gl_cv_func_isnanl_works+:} false; then :
14919   $as_echo_n "(cached) " >&6
14920 else
14921
14922       if test "$cross_compiling" = yes; then :
14923   case "$host_os" in
14924            mingw*) # Guess yes on mingw, no on MSVC.
14925              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h.  */
14927
14928 #ifdef __MINGW32__
14929  Known
14930 #endif
14931
14932 _ACEOF
14933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14934   $EGREP "Known" >/dev/null 2>&1; then :
14935   gl_cv_func_isnanl_works="guessing yes"
14936 else
14937   gl_cv_func_isnanl_works="guessing no"
14938 fi
14939 rm -f conftest*
14940
14941              ;;
14942            *) gl_cv_func_isnanl_works="guessing yes" ;;
14943          esac
14944
14945 else
14946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h.  */
14948
14949 #include <float.h>
14950 #include <limits.h>
14951 #include <math.h>
14952 #if __GNUC__ >= 4
14953 # undef isnanl
14954 # define isnanl(x) __builtin_isnanl ((long double)(x))
14955 #elif defined isnan
14956 # undef isnanl
14957 # define isnanl(x) isnan ((long double)(x))
14958 #endif
14959 #define NWORDS \
14960   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14961 typedef union { unsigned int word[NWORDS]; long double value; }
14962         memory_long_double;
14963 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14964    runtime type conversion.  */
14965 #ifdef __sgi
14966 static long double NaNl ()
14967 {
14968   double zero = 0.0;
14969   return zero / zero;
14970 }
14971 #else
14972 # define NaNl() (0.0L / 0.0L)
14973 #endif
14974 int main ()
14975 {
14976   int result = 0;
14977
14978   if (!isnanl (NaNl ()))
14979     result |= 1;
14980
14981   {
14982     memory_long_double m;
14983     unsigned int i;
14984
14985     /* The isnanl function should be immune against changes in the sign bit and
14986        in the mantissa bits.  The xor operation twiddles a bit that can only be
14987        a sign bit or a mantissa bit (since the exponent never extends to
14988        bit 31).  */
14989     m.value = NaNl ();
14990     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14991     for (i = 0; i < NWORDS; i++)
14992       m.word[i] |= 1;
14993     if (!isnanl (m.value))
14994       result |= 1;
14995   }
14996
14997 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
14998 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14999    of 'unsigned int' words.  */
15000 # ifdef WORDS_BIGENDIAN
15001 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
15002      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
15003        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
15004        (unsigned int) (mantlo) << 16                                        \
15005      }
15006 # else
15007 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
15008      { mantlo, manthi, exponent }
15009 # endif
15010   { /* Quiet NaN.  */
15011     static memory_long_double x =
15012       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
15013     if (!isnanl (x.value))
15014       result |= 2;
15015   }
15016   {
15017     /* Signalling NaN.  */
15018     static memory_long_double x =
15019       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
15020     if (!isnanl (x.value))
15021       result |= 2;
15022   }
15023   /* isnanl should return something even for noncanonical values.  */
15024   { /* Pseudo-NaN.  */
15025     static memory_long_double x =
15026       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
15027     if (isnanl (x.value) && !isnanl (x.value))
15028       result |= 4;
15029   }
15030   { /* Pseudo-Infinity.  */
15031     static memory_long_double x =
15032       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
15033     if (isnanl (x.value) && !isnanl (x.value))
15034       result |= 8;
15035   }
15036   { /* Pseudo-Zero.  */
15037     static memory_long_double x =
15038       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
15039     if (isnanl (x.value) && !isnanl (x.value))
15040       result |= 16;
15041   }
15042   { /* Unnormalized number.  */
15043     static memory_long_double x =
15044       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
15045     if (isnanl (x.value) && !isnanl (x.value))
15046       result |= 32;
15047   }
15048   { /* Pseudo-Denormal.  */
15049     static memory_long_double x =
15050       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
15051     if (isnanl (x.value) && !isnanl (x.value))
15052       result |= 64;
15053   }
15054 #endif
15055
15056   return result;
15057 }
15058 _ACEOF
15059 if ac_fn_c_try_run "$LINENO"; then :
15060   gl_cv_func_isnanl_works=yes
15061 else
15062   gl_cv_func_isnanl_works=no
15063 fi
15064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15065   conftest.$ac_objext conftest.beam conftest.$ac_ext
15066 fi
15067
15068
15069 fi
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
15071 $as_echo "$gl_cv_func_isnanl_works" >&6; }
15072
15073     case "$gl_cv_func_isnanl_works" in
15074       *yes) ;;
15075       *)    gl_func_isnanl_no_libm=no ;;
15076     esac
15077   fi
15078   if test $gl_func_isnanl_no_libm = yes; then
15079
15080 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
15081
15082   fi
15083
15084   if test $gl_func_isnanl_no_libm != yes; then
15085
15086
15087
15088
15089
15090
15091
15092
15093   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
15094
15095
15096
15097
15098      { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
15099 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
15100 if ${gl_cv_cc_long_double_expbit0+:} false; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103
15104       if test "$cross_compiling" = yes; then :
15105
15106                               gl_cv_cc_long_double_expbit0="unknown"
15107           case "$host_os" in
15108             mingw*) # On native Windows (little-endian), we know the result
15109                     # in two cases: mingw, MSVC.
15110               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h.  */
15112
15113 #ifdef __MINGW32__
15114  Known
15115 #endif
15116
15117 _ACEOF
15118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15119   $EGREP "Known" >/dev/null 2>&1; then :
15120   gl_cv_cc_long_double_expbit0="word 2 bit 0"
15121 fi
15122 rm -f conftest*
15123
15124               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h.  */
15126
15127 #ifdef _MSC_VER
15128  Known
15129 #endif
15130
15131 _ACEOF
15132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15133   $EGREP "Known" >/dev/null 2>&1; then :
15134   gl_cv_cc_long_double_expbit0="word 1 bit 20"
15135 fi
15136 rm -f conftest*
15137
15138               ;;
15139           esac
15140
15141 else
15142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h.  */
15144
15145 #include <float.h>
15146 #include <stddef.h>
15147 #include <stdio.h>
15148 #include <string.h>
15149 #define NWORDS \
15150   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15151 typedef union { long double value; unsigned int word[NWORDS]; }
15152         memory_long_double;
15153 static unsigned int ored_words[NWORDS];
15154 static unsigned int anded_words[NWORDS];
15155 static void add_to_ored_words (long double x)
15156 {
15157   memory_long_double m;
15158   size_t i;
15159   /* Clear it first, in case
15160      sizeof (long double) < sizeof (memory_long_double).  */
15161   memset (&m, 0, sizeof (memory_long_double));
15162   m.value = x;
15163   for (i = 0; i < NWORDS; i++)
15164     {
15165       ored_words[i] |= m.word[i];
15166       anded_words[i] &= m.word[i];
15167     }
15168 }
15169 int main ()
15170 {
15171   size_t j;
15172   FILE *fp = fopen ("conftest.out", "w");
15173   if (fp == NULL)
15174     return 1;
15175   for (j = 0; j < NWORDS; j++)
15176     anded_words[j] = ~ (unsigned int) 0;
15177   add_to_ored_words (0.25L);
15178   add_to_ored_words (0.5L);
15179   add_to_ored_words (1.0L);
15180   add_to_ored_words (2.0L);
15181   add_to_ored_words (4.0L);
15182   /* Remove bits that are common (e.g. if representation of the first mantissa
15183      bit is explicit).  */
15184   for (j = 0; j < NWORDS; j++)
15185     ored_words[j] &= ~anded_words[j];
15186   /* Now find the nonzero word.  */
15187   for (j = 0; j < NWORDS; j++)
15188     if (ored_words[j] != 0)
15189       break;
15190   if (j < NWORDS)
15191     {
15192       size_t i;
15193       for (i = j + 1; i < NWORDS; i++)
15194         if (ored_words[i] != 0)
15195           {
15196             fprintf (fp, "unknown");
15197             return (fclose (fp) != 0);
15198           }
15199       for (i = 0; ; i++)
15200         if ((ored_words[j] >> i) & 1)
15201           {
15202             fprintf (fp, "word %d bit %d", (int) j, (int) i);
15203             return (fclose (fp) != 0);
15204           }
15205     }
15206   fprintf (fp, "unknown");
15207   return (fclose (fp) != 0);
15208 }
15209
15210 _ACEOF
15211 if ac_fn_c_try_run "$LINENO"; then :
15212   gl_cv_cc_long_double_expbit0=`cat conftest.out`
15213 else
15214   gl_cv_cc_long_double_expbit0="unknown"
15215 fi
15216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15217   conftest.$ac_objext conftest.beam conftest.$ac_ext
15218 fi
15219
15220       rm -f conftest.out
15221
15222 fi
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
15224 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
15225   case "$gl_cv_cc_long_double_expbit0" in
15226     word*bit*)
15227       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15228       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
15229
15230 cat >>confdefs.h <<_ACEOF
15231 #define LDBL_EXPBIT0_WORD $word
15232 _ACEOF
15233
15234
15235 cat >>confdefs.h <<_ACEOF
15236 #define LDBL_EXPBIT0_BIT $bit
15237 _ACEOF
15238
15239       ;;
15240   esac
15241
15242
15243
15244   fi
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254     LOCALCHARSET_TESTS_ENVIRONMENT=
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267      if test $gl_cv_have_include_next = yes; then
15268        gl_cv_next_math_h='<'math.h'>'
15269      else
15270        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
15271 $as_echo_n "checking absolute name of <math.h>... " >&6; }
15272 if ${gl_cv_next_math_h+:} false; then :
15273   $as_echo_n "(cached) " >&6
15274 else
15275
15276              if test $ac_cv_header_math_h = yes; then
15277
15278
15279
15280
15281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283 #include <math.h>
15284 _ACEOF
15285                 case "$host_os" in
15286     aix*) gl_absname_cpp="$ac_cpp -C" ;;
15287     *)    gl_absname_cpp="$ac_cpp" ;;
15288   esac
15289
15290   case "$host_os" in
15291     mingw*)
15292                                           gl_dirsep_regex='[/\\]'
15293       ;;
15294     *)
15295       gl_dirsep_regex='\/'
15296       ;;
15297   esac
15298       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15299   gl_header_literal_regex=`echo 'math.h' \
15300                            | sed -e "$gl_make_literal_regex_sed"`
15301   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15302       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15303       s|^/[^/]|//&|
15304       p
15305       q
15306     }'
15307
15308         gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15309   sed -n "$gl_absolute_header_sed"`
15310
15311            gl_header=$gl_cv_absolute_math_h
15312            gl_cv_next_math_h='"'$gl_header'"'
15313           else
15314                gl_cv_next_math_h='<'math.h'>'
15315              fi
15316
15317
15318 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
15320 $as_echo "$gl_cv_next_math_h" >&6; }
15321      fi
15322      NEXT_MATH_H=$gl_cv_next_math_h
15323
15324      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15325        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15326        gl_next_as_first_directive='<'math.h'>'
15327      else
15328        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15329        gl_next_as_first_directive=$gl_cv_next_math_h
15330      fi
15331      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
15332
15333
15334
15335
15336
15337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
15338 $as_echo_n "checking whether NAN macro works... " >&6; }
15339 if ${gl_cv_header_math_nan_works+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h.  */
15344 #include <math.h>
15345 int
15346 main ()
15347 {
15348 /* Solaris 10 has a broken definition of NAN.  Other platforms
15349         fail to provide NAN, or provide it only in C99 mode; this
15350         test only needs to fail when NAN is provided but wrong.  */
15351          float f = 1.0f;
15352 #ifdef NAN
15353          f = NAN;
15354 #endif
15355          return f == 0;
15356   ;
15357   return 0;
15358 }
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361   gl_cv_header_math_nan_works=yes
15362 else
15363   gl_cv_header_math_nan_works=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 fi
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15368 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15369   if test $gl_cv_header_math_nan_works = no; then
15370     REPLACE_NAN=1
15371   fi
15372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15373 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15374 if ${gl_cv_header_math_huge_val_works+:} false; then :
15375   $as_echo_n "(cached) " >&6
15376 else
15377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h.  */
15379 #include <math.h>
15380 int
15381 main ()
15382 {
15383 /* Solaris 10 has a broken definition of HUGE_VAL.  */
15384          double d = HUGE_VAL;
15385          return d == 0;
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 if ac_fn_c_try_compile "$LINENO"; then :
15391   gl_cv_header_math_huge_val_works=yes
15392 else
15393   gl_cv_header_math_huge_val_works=no
15394 fi
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 fi
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
15398 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
15399   if test $gl_cv_header_math_huge_val_works = no; then
15400     REPLACE_HUGE_VAL=1
15401   fi
15402
15403
15404
15405
15406
15407
15408   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15409
15410
15411
15412
15413
15414
15415
15416
15417   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15418
15419
15420   for ac_header in bp-sym.h
15421 do :
15422   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15423 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
15424   cat >>confdefs.h <<_ACEOF
15425 #define HAVE_BP_SYM_H 1
15426 _ACEOF
15427
15428 fi
15429
15430 done
15431
15432
15433   fi
15434
15435
15436
15437
15438
15439           GNULIB_MEMCHR=1
15440
15441
15442
15443
15444
15445 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15446
15447
15448
15449
15450
15451
15452
15453   if test $gl_cv_func_frexp_no_libm = yes; then
15454
15455
15456
15457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
15458 $as_echo_n "checking whether frexp works... " >&6; }
15459 if ${gl_cv_func_frexp_works+:} false; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462
15463       if test "$cross_compiling" = yes; then :
15464   case "$host_os" in
15465            netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
15466            mingw*) # Guess yes with MSVC, no with mingw.
15467              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h.  */
15469
15470 #ifdef _MSC_VER
15471  Good
15472 #endif
15473
15474 _ACEOF
15475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15476   $EGREP "Good" >/dev/null 2>&1; then :
15477   gl_cv_func_frexp_works="guessing yes"
15478 else
15479   gl_cv_func_frexp_works="guessing no"
15480 fi
15481 rm -f conftest*
15482
15483              ;;
15484            *) gl_cv_func_frexp_works="guessing yes" ;;
15485          esac
15486
15487 else
15488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h.  */
15490
15491 #include <float.h>
15492 #include <math.h>
15493 #include <string.h>
15494 #if HAVE_DECL_ALARM
15495 # include <signal.h>
15496 # include <unistd.h>
15497 #endif
15498 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15499    ICC 10.0 has a bug when optimizing the expression -zero.
15500    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
15501    to PowerPC on Mac OS X 10.5.  */
15502 #if defined __hpux || defined __sgi || defined __ICC
15503 static double
15504 compute_minus_zero (void)
15505 {
15506   return -DBL_MIN * DBL_MIN;
15507 }
15508 # define minus_zero compute_minus_zero ()
15509 #else
15510 double minus_zero = -0.0;
15511 #endif
15512 int main()
15513 {
15514   int result = 0;
15515   int i;
15516   volatile double x;
15517   double zero = 0.0;
15518 #if HAVE_DECL_ALARM
15519   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
15520      number.  Let the test fail in this case.  */
15521   signal (SIGALRM, SIG_DFL);
15522   alarm (5);
15523 #endif
15524   /* Test on denormalized numbers.  */
15525   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
15526     ;
15527   if (x > 0.0)
15528     {
15529       int exp;
15530       double y = frexp (x, &exp);
15531       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
15532          On NetBSD: y = 0.75. Correct: y = 0.5.  */
15533       if (y != 0.5)
15534         result |= 1;
15535     }
15536   /* Test on infinite numbers.  */
15537   x = 1.0 / zero;
15538   {
15539     int exp;
15540     double y = frexp (x, &exp);
15541     if (y != x)
15542       result |= 2;
15543   }
15544   /* Test on negative zero.  */
15545   x = minus_zero;
15546   {
15547     int exp;
15548     double y = frexp (x, &exp);
15549     if (memcmp (&y, &x, sizeof x))
15550       result |= 4;
15551   }
15552   return result;
15553 }
15554 _ACEOF
15555 if ac_fn_c_try_run "$LINENO"; then :
15556   gl_cv_func_frexp_works=yes
15557 else
15558   gl_cv_func_frexp_works=no
15559 fi
15560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15561   conftest.$ac_objext conftest.beam conftest.$ac_ext
15562 fi
15563
15564
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
15567 $as_echo "$gl_cv_func_frexp_works" >&6; }
15568
15569     case "$gl_cv_func_frexp_works" in
15570       *yes)
15571
15572 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
15573
15574         ;;
15575     esac
15576   fi
15577
15578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
15579 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
15580 if ${gl_cv_func_ldexp_no_libm+:} false; then :
15581   $as_echo_n "(cached) " >&6
15582 else
15583
15584       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h.  */
15586 #include <math.h>
15587              double x;
15588              int y;
15589 int
15590 main ()
15591 {
15592 return ldexp (x, y) < 1;
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_link "$LINENO"; then :
15598   gl_cv_func_ldexp_no_libm=yes
15599 else
15600   gl_cv_func_ldexp_no_libm=no
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext \
15603     conftest$ac_exeext conftest.$ac_ext
15604
15605 fi
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
15607 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
15608   if test $gl_cv_func_ldexp_no_libm = yes; then
15609
15610 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
15611
15612   fi
15613
15614
15615
15616
15617
15618
15619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
15620 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
15621 if ${gl_cv_func_frexpl_no_libm+:} false; then :
15622   $as_echo_n "(cached) " >&6
15623 else
15624
15625       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627 #include <math.h>
15628              long double x;
15629 int
15630 main ()
15631 {
15632 int e; return frexpl (x, &e) > 0;
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 if ac_fn_c_try_link "$LINENO"; then :
15638   gl_cv_func_frexpl_no_libm=yes
15639 else
15640   gl_cv_func_frexpl_no_libm=no
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext \
15643     conftest$ac_exeext conftest.$ac_ext
15644
15645 fi
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
15647 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
15648
15649   if test $gl_cv_func_frexpl_no_libm = yes; then
15650
15651
15652      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
15653 $as_echo_n "checking whether frexpl works... " >&6; }
15654 if ${gl_cv_func_frexpl_works+:} false; then :
15655   $as_echo_n "(cached) " >&6
15656 else
15657
15658       if test "$cross_compiling" = yes; then :
15659
15660          case "$host_os" in
15661            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
15662               gl_cv_func_frexpl_works="guessing no";;
15663            *) gl_cv_func_frexpl_works="guessing yes";;
15664          esac
15665
15666 else
15667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h.  */
15669
15670 #include <float.h>
15671 #include <math.h>
15672 /* Override the values of <float.h>, like done in float.in.h.  */
15673 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
15674 # undef LDBL_MIN_EXP
15675 # define LDBL_MIN_EXP    (-16381)
15676 #endif
15677 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
15678 # undef LDBL_MIN_EXP
15679 # define LDBL_MIN_EXP    (-16381)
15680 #endif
15681 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
15682 # undef LDBL_MIN_EXP
15683 # define LDBL_MIN_EXP DBL_MIN_EXP
15684 #endif
15685 #if defined __sgi && (LDBL_MANT_DIG >= 106)
15686 # if defined __GNUC__
15687 #  undef LDBL_MIN_EXP
15688 #  define LDBL_MIN_EXP DBL_MIN_EXP
15689 # endif
15690 #endif
15691 extern
15692 #ifdef __cplusplus
15693 "C"
15694 #endif
15695 long double frexpl (long double, int *);
15696 int main()
15697 {
15698   int result = 0;
15699   volatile long double x;
15700   /* Test on finite numbers that fails on AIX 5.1.  */
15701   x = 16.0L;
15702   {
15703     int exp = -9999;
15704     frexpl (x, &exp);
15705     if (exp != 5)
15706       result |= 1;
15707   }
15708   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
15709      function returns an invalid (incorrectly normalized) value: it returns
15710                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
15711      but the correct result is
15712           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
15713   x = 1.01L;
15714   {
15715     int exp = -9999;
15716     long double y = frexpl (x, &exp);
15717     if (!(exp == 1 && y == 0.505L))
15718       result |= 2;
15719   }
15720   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
15721      LDBL_MAX_EXP = 16384.
15722      In the loop end test, we test x against Infinity, rather than comparing
15723      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
15724   {
15725     int i;
15726     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
15727       {
15728         int exp = -9999;
15729         frexpl (x, &exp);
15730         if (exp != i)
15731           {
15732             result |= 4;
15733             break;
15734           }
15735       }
15736   }
15737   /* Test on denormalized numbers.  */
15738   {
15739     int i;
15740     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
15741       ;
15742     if (x > 0.0L)
15743       {
15744         int exp;
15745         long double y = frexpl (x, &exp);
15746         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
15747            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
15748         if (exp != LDBL_MIN_EXP - 1)
15749           result |= 8;
15750       }
15751   }
15752   /* Test on infinite numbers.  */
15753   x = 1.0L / 0.0L;
15754   {
15755     int exp;
15756     long double y = frexpl (x, &exp);
15757     if (y != x)
15758       result |= 16;
15759   }
15760   return result;
15761 }
15762 _ACEOF
15763 if ac_fn_c_try_run "$LINENO"; then :
15764   gl_cv_func_frexpl_works=yes
15765 else
15766   gl_cv_func_frexpl_works=no
15767 fi
15768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15769   conftest.$ac_objext conftest.beam conftest.$ac_ext
15770 fi
15771
15772
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
15775 $as_echo "$gl_cv_func_frexpl_works" >&6; }
15776
15777     case "$gl_cv_func_frexpl_works" in
15778       *yes) gl_func_frexpl_no_libm=yes ;;
15779       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
15780     esac
15781   else
15782     gl_func_frexpl_no_libm=no
15783         REPLACE_FREXPL=1
15784   fi
15785   if test $gl_func_frexpl_no_libm = yes; then
15786
15787 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
15788
15789             ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
15790 "
15791 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
15792
15793 else
15794   HAVE_DECL_FREXPL=0
15795 fi
15796
15797   fi
15798
15799
15800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
15801 $as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
15802 if ${gl_cv_func_ldexpl_no_libm+:} false; then :
15803   $as_echo_n "(cached) " >&6
15804 else
15805
15806       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h.  */
15808 #include <math.h>
15809              long double x;
15810 int
15811 main ()
15812 {
15813 return ldexpl (x, -1) > 0;
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 if ac_fn_c_try_link "$LINENO"; then :
15819   gl_cv_func_ldexpl_no_libm=yes
15820 else
15821   gl_cv_func_ldexpl_no_libm=no
15822 fi
15823 rm -f core conftest.err conftest.$ac_objext \
15824     conftest$ac_exeext conftest.$ac_ext
15825
15826 fi
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
15828 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
15829
15830   if test $gl_cv_func_ldexpl_no_libm = yes; then
15831
15832
15833      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
15834 $as_echo_n "checking whether ldexpl works... " >&6; }
15835 if ${gl_cv_func_ldexpl_works+:} false; then :
15836   $as_echo_n "(cached) " >&6
15837 else
15838
15839       if test "$cross_compiling" = yes; then :
15840
15841          case "$host_os" in
15842            aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;;
15843                             # Guess yes on native Windows.
15844            mingw*)          gl_cv_func_ldexpl_works="guessing yes" ;;
15845            *)               gl_cv_func_ldexpl_works="guessing yes" ;;
15846          esac
15847
15848 else
15849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h.  */
15851
15852 #include <math.h>
15853 extern
15854 #ifdef __cplusplus
15855 "C"
15856 #endif
15857 long double ldexpl (long double, int);
15858 int main()
15859 {
15860   int result = 0;
15861   {
15862     volatile long double x = 1.0;
15863     volatile long double y = ldexpl (x, -1);
15864     if (y != 0.5L)
15865       result |= 1;
15866   }
15867   {
15868     volatile long double x = 1.73205L;
15869     volatile long double y = ldexpl (x, 0);
15870     if (y != x)
15871       result |= 2;
15872   }
15873   return result;
15874 }
15875 _ACEOF
15876 if ac_fn_c_try_run "$LINENO"; then :
15877   gl_cv_func_ldexpl_works=yes
15878 else
15879   gl_cv_func_ldexpl_works=no
15880 fi
15881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15882   conftest.$ac_objext conftest.beam conftest.$ac_ext
15883 fi
15884
15885
15886 fi
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
15888 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
15889
15890     case "$gl_cv_func_ldexpl_works" in
15891       *yes)
15892
15893 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
15894
15895                         ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
15896 "
15897 if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
15898
15899 else
15900   HAVE_DECL_LDEXPL=0
15901 fi
15902
15903         ;;
15904     esac
15905   fi
15906
15907
15908
15909
15910      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
15911 $as_echo_n "checking for signbit macro... " >&6; }
15912 if ${gl_cv_func_signbit+:} false; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915
15916       if test "$cross_compiling" = yes; then :
15917   case "$host_os" in
15918                           # Guess yes on glibc systems.
15919            *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
15920                           # Guess yes on native Windows.
15921            mingw*)        gl_cv_func_signbit="guessing yes" ;;
15922                           # If we don't know, assume the worst.
15923            *)             gl_cv_func_signbit="guessing no" ;;
15924          esac
15925
15926 else
15927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h.  */
15929
15930 #include <math.h>
15931 /* If signbit is defined as a function, don't use it, since calling it for
15932    'float' or 'long double' arguments would involve conversions.
15933    If signbit is not declared at all but exists as a library function, don't
15934    use it, since the prototype may not match.
15935    If signbit is not declared at all but exists as a compiler built-in, don't
15936    use it, since it's preferable to use __builtin_signbit* (no warnings,
15937    no conversions).  */
15938 #ifndef signbit
15939 # error "signbit should be a macro"
15940 #endif
15941 #include <string.h>
15942
15943 /* Global variables.
15944    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
15945    but cannot constant-fold            __builtin_signbitl (variable).  */
15946 float vf;
15947 double vd;
15948 long double vl;
15949 int main ()
15950 {
15951 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15952    So we use -p0f and -p0d instead.  */
15953 float p0f = 0.0f;
15954 float m0f = -p0f;
15955 double p0d = 0.0;
15956 double m0d = -p0d;
15957 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
15958    So we use another constant expression instead.
15959    But that expression does not work on other platforms, such as when
15960    cross-compiling to PowerPC on Mac OS X 10.5.  */
15961 long double p0l = 0.0L;
15962 #if defined __hpux || defined __sgi
15963 long double m0l = -LDBL_MIN * LDBL_MIN;
15964 #else
15965 long double m0l = -p0l;
15966 #endif
15967   int result = 0;
15968   if (signbit (vf)) /* link check */
15969     vf++;
15970   {
15971     float plus_inf = 1.0f / p0f;
15972     float minus_inf = -1.0f / p0f;
15973     if (!(!signbit (255.0f)
15974           && signbit (-255.0f)
15975           && !signbit (p0f)
15976           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
15977           && !signbit (plus_inf)
15978           && signbit (minus_inf)))
15979       result |= 1;
15980   }
15981   if (signbit (vd)) /* link check */
15982     vd++;
15983   {
15984     double plus_inf = 1.0 / p0d;
15985     double minus_inf = -1.0 / p0d;
15986     if (!(!signbit (255.0)
15987           && signbit (-255.0)
15988           && !signbit (p0d)
15989           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
15990           && !signbit (plus_inf)
15991           && signbit (minus_inf)))
15992       result |= 2;
15993   }
15994   if (signbit (vl)) /* link check */
15995     vl++;
15996   {
15997     long double plus_inf = 1.0L / p0l;
15998     long double minus_inf = -1.0L / p0l;
15999     if (signbit (255.0L))
16000       result |= 4;
16001     if (!signbit (-255.0L))
16002       result |= 4;
16003     if (signbit (p0l))
16004       result |= 8;
16005     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
16006       result |= 16;
16007     if (signbit (plus_inf))
16008       result |= 32;
16009     if (!signbit (minus_inf))
16010       result |= 64;
16011   }
16012   return result;
16013 }
16014
16015
16016 _ACEOF
16017 if ac_fn_c_try_run "$LINENO"; then :
16018   gl_cv_func_signbit=yes
16019 else
16020   gl_cv_func_signbit=no
16021 fi
16022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16023   conftest.$ac_objext conftest.beam conftest.$ac_ext
16024 fi
16025
16026
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
16029 $as_echo "$gl_cv_func_signbit" >&6; }
16030           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
16031 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
16032 if ${gl_cv_func_signbit_gcc+:} false; then :
16033   $as_echo_n "(cached) " >&6
16034 else
16035
16036       if test "$cross_compiling" = yes; then :
16037   case "$host_os" in
16038                           # Guess yes on glibc systems.
16039            *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
16040                           # Guess yes on mingw, no on MSVC.
16041            mingw*)        if test -n "$GCC"; then
16042                             gl_cv_func_signbit_gcc="guessing yes"
16043                           else
16044                             gl_cv_func_signbit_gcc="guessing no"
16045                           fi
16046                           ;;
16047                           # If we don't know, assume the worst.
16048            *)             gl_cv_func_signbit_gcc="guessing no" ;;
16049          esac
16050
16051 else
16052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h.  */
16054
16055 #if __GNUC__ >= 4
16056 # define signbit(x) \
16057    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
16058     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
16059     __builtin_signbitf (x))
16060 #else
16061 # error "signbit should be three compiler built-ins"
16062 #endif
16063 #include <string.h>
16064
16065 /* Global variables.
16066    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16067    but cannot constant-fold            __builtin_signbitl (variable).  */
16068 float vf;
16069 double vd;
16070 long double vl;
16071 int main ()
16072 {
16073 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16074    So we use -p0f and -p0d instead.  */
16075 float p0f = 0.0f;
16076 float m0f = -p0f;
16077 double p0d = 0.0;
16078 double m0d = -p0d;
16079 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16080    So we use another constant expression instead.
16081    But that expression does not work on other platforms, such as when
16082    cross-compiling to PowerPC on Mac OS X 10.5.  */
16083 long double p0l = 0.0L;
16084 #if defined __hpux || defined __sgi
16085 long double m0l = -LDBL_MIN * LDBL_MIN;
16086 #else
16087 long double m0l = -p0l;
16088 #endif
16089   int result = 0;
16090   if (signbit (vf)) /* link check */
16091     vf++;
16092   {
16093     float plus_inf = 1.0f / p0f;
16094     float minus_inf = -1.0f / p0f;
16095     if (!(!signbit (255.0f)
16096           && signbit (-255.0f)
16097           && !signbit (p0f)
16098           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16099           && !signbit (plus_inf)
16100           && signbit (minus_inf)))
16101       result |= 1;
16102   }
16103   if (signbit (vd)) /* link check */
16104     vd++;
16105   {
16106     double plus_inf = 1.0 / p0d;
16107     double minus_inf = -1.0 / p0d;
16108     if (!(!signbit (255.0)
16109           && signbit (-255.0)
16110           && !signbit (p0d)
16111           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16112           && !signbit (plus_inf)
16113           && signbit (minus_inf)))
16114       result |= 2;
16115   }
16116   if (signbit (vl)) /* link check */
16117     vl++;
16118   {
16119     long double plus_inf = 1.0L / p0l;
16120     long double minus_inf = -1.0L / p0l;
16121     if (signbit (255.0L))
16122       result |= 4;
16123     if (!signbit (-255.0L))
16124       result |= 4;
16125     if (signbit (p0l))
16126       result |= 8;
16127     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
16128       result |= 16;
16129     if (signbit (plus_inf))
16130       result |= 32;
16131     if (!signbit (minus_inf))
16132       result |= 64;
16133   }
16134   return result;
16135 }
16136
16137
16138 _ACEOF
16139 if ac_fn_c_try_run "$LINENO"; then :
16140   gl_cv_func_signbit_gcc=yes
16141 else
16142   gl_cv_func_signbit_gcc=no
16143 fi
16144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16145   conftest.$ac_objext conftest.beam conftest.$ac_ext
16146 fi
16147
16148
16149 fi
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
16151 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
16152       case "$gl_cv_func_signbit_gcc" in
16153     *yes)
16154       REPLACE_SIGNBIT_USING_GCC=1
16155       ;;
16156     *)
16157       case "$gl_cv_func_signbit" in
16158         *yes) ;;
16159         *)
16160                     REPLACE_SIGNBIT=1
16161
16162
16163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
16164 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
16165 if ${gl_cv_cc_float_signbit+:} false; then :
16166   $as_echo_n "(cached) " >&6
16167 else
16168
16169       if test "$cross_compiling" = yes; then :
16170
16171                               gl_cv_cc_float_signbit="unknown"
16172
16173 else
16174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h.  */
16176
16177 #include <stddef.h>
16178 #include <stdio.h>
16179 #define NWORDS \
16180   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16181 typedef union { float value; unsigned int word[NWORDS]; }
16182         memory_float;
16183 static memory_float plus = { 1.0f };
16184 static memory_float minus = { -1.0f };
16185 int main ()
16186 {
16187   size_t j, k, i;
16188   unsigned int m;
16189   FILE *fp = fopen ("conftest.out", "w");
16190   if (fp == NULL)
16191     return 1;
16192   /* Find the different bit.  */
16193   k = 0; m = 0;
16194   for (j = 0; j < NWORDS; j++)
16195     {
16196       unsigned int x = plus.word[j] ^ minus.word[j];
16197       if ((x & (x - 1)) || (x && m))
16198         {
16199           /* More than one bit difference.  */
16200           fprintf (fp, "unknown");
16201           fclose (fp);
16202           return 2;
16203         }
16204       if (x)
16205         {
16206           k = j;
16207           m = x;
16208         }
16209     }
16210   if (m == 0)
16211     {
16212       /* No difference.  */
16213       fprintf (fp, "unknown");
16214       fclose (fp);
16215       return 3;
16216     }
16217   /* Now m = plus.word[k] ^ ~minus.word[k].  */
16218   if (plus.word[k] & ~minus.word[k])
16219     {
16220       /* Oh? The sign bit is set in the positive and cleared in the negative
16221          numbers?  */
16222       fprintf (fp, "unknown");
16223       fclose (fp);
16224       return 4;
16225     }
16226   for (i = 0; ; i++)
16227     if ((m >> i) & 1)
16228       break;
16229   fprintf (fp, "word %d bit %d", (int) k, (int) i);
16230   if (fclose (fp) != 0)
16231     return 5;
16232   return 0;
16233 }
16234
16235 _ACEOF
16236 if ac_fn_c_try_run "$LINENO"; then :
16237   gl_cv_cc_float_signbit=`cat conftest.out`
16238 else
16239   gl_cv_cc_float_signbit="unknown"
16240 fi
16241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16242   conftest.$ac_objext conftest.beam conftest.$ac_ext
16243 fi
16244
16245       rm -f conftest.out
16246
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
16249 $as_echo "$gl_cv_cc_float_signbit" >&6; }
16250   case "$gl_cv_cc_float_signbit" in
16251     word*bit*)
16252       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16253       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
16254
16255 cat >>confdefs.h <<_ACEOF
16256 #define FLT_SIGNBIT_WORD $word
16257 _ACEOF
16258
16259
16260 cat >>confdefs.h <<_ACEOF
16261 #define FLT_SIGNBIT_BIT $bit
16262 _ACEOF
16263
16264       ;;
16265   esac
16266
16267
16268
16269
16270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
16271 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
16272 if ${gl_cv_cc_double_signbit+:} false; then :
16273   $as_echo_n "(cached) " >&6
16274 else
16275
16276       if test "$cross_compiling" = yes; then :
16277
16278                               gl_cv_cc_double_signbit="unknown"
16279
16280 else
16281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h.  */
16283
16284 #include <stddef.h>
16285 #include <stdio.h>
16286 #define NWORDS \
16287   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16288 typedef union { double value; unsigned int word[NWORDS]; }
16289         memory_float;
16290 static memory_float plus = { 1.0 };
16291 static memory_float minus = { -1.0 };
16292 int main ()
16293 {
16294   size_t j, k, i;
16295   unsigned int m;
16296   FILE *fp = fopen ("conftest.out", "w");
16297   if (fp == NULL)
16298     return 1;
16299   /* Find the different bit.  */
16300   k = 0; m = 0;
16301   for (j = 0; j < NWORDS; j++)
16302     {
16303       unsigned int x = plus.word[j] ^ minus.word[j];
16304       if ((x & (x - 1)) || (x && m))
16305         {
16306           /* More than one bit difference.  */
16307           fprintf (fp, "unknown");
16308           fclose (fp);
16309           return 2;
16310         }
16311       if (x)
16312         {
16313           k = j;
16314           m = x;
16315         }
16316     }
16317   if (m == 0)
16318     {
16319       /* No difference.  */
16320       fprintf (fp, "unknown");
16321       fclose (fp);
16322       return 3;
16323     }
16324   /* Now m = plus.word[k] ^ ~minus.word[k].  */
16325   if (plus.word[k] & ~minus.word[k])
16326     {
16327       /* Oh? The sign bit is set in the positive and cleared in the negative
16328          numbers?  */
16329       fprintf (fp, "unknown");
16330       fclose (fp);
16331       return 4;
16332     }
16333   for (i = 0; ; i++)
16334     if ((m >> i) & 1)
16335       break;
16336   fprintf (fp, "word %d bit %d", (int) k, (int) i);
16337   if (fclose (fp) != 0)
16338     return 5;
16339   return 0;
16340 }
16341
16342 _ACEOF
16343 if ac_fn_c_try_run "$LINENO"; then :
16344   gl_cv_cc_double_signbit=`cat conftest.out`
16345 else
16346   gl_cv_cc_double_signbit="unknown"
16347 fi
16348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16349   conftest.$ac_objext conftest.beam conftest.$ac_ext
16350 fi
16351
16352       rm -f conftest.out
16353
16354 fi
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
16356 $as_echo "$gl_cv_cc_double_signbit" >&6; }
16357   case "$gl_cv_cc_double_signbit" in
16358     word*bit*)
16359       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16360       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
16361
16362 cat >>confdefs.h <<_ACEOF
16363 #define DBL_SIGNBIT_WORD $word
16364 _ACEOF
16365
16366
16367 cat >>confdefs.h <<_ACEOF
16368 #define DBL_SIGNBIT_BIT $bit
16369 _ACEOF
16370
16371       ;;
16372   esac
16373
16374
16375
16376
16377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
16378 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
16379 if ${gl_cv_cc_long_double_signbit+:} false; then :
16380   $as_echo_n "(cached) " >&6
16381 else
16382
16383       if test "$cross_compiling" = yes; then :
16384
16385                               gl_cv_cc_long_double_signbit="unknown"
16386
16387 else
16388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h.  */
16390
16391 #include <stddef.h>
16392 #include <stdio.h>
16393 #define NWORDS \
16394   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16395 typedef union { long double value; unsigned int word[NWORDS]; }
16396         memory_float;
16397 static memory_float plus = { 1.0L };
16398 static memory_float minus = { -1.0L };
16399 int main ()
16400 {
16401   size_t j, k, i;
16402   unsigned int m;
16403   FILE *fp = fopen ("conftest.out", "w");
16404   if (fp == NULL)
16405     return 1;
16406   /* Find the different bit.  */
16407   k = 0; m = 0;
16408   for (j = 0; j < NWORDS; j++)
16409     {
16410       unsigned int x = plus.word[j] ^ minus.word[j];
16411       if ((x & (x - 1)) || (x && m))
16412         {
16413           /* More than one bit difference.  */
16414           fprintf (fp, "unknown");
16415           fclose (fp);
16416           return 2;
16417         }
16418       if (x)
16419         {
16420           k = j;
16421           m = x;
16422         }
16423     }
16424   if (m == 0)
16425     {
16426       /* No difference.  */
16427       fprintf (fp, "unknown");
16428       fclose (fp);
16429       return 3;
16430     }
16431   /* Now m = plus.word[k] ^ ~minus.word[k].  */
16432   if (plus.word[k] & ~minus.word[k])
16433     {
16434       /* Oh? The sign bit is set in the positive and cleared in the negative
16435          numbers?  */
16436       fprintf (fp, "unknown");
16437       fclose (fp);
16438       return 4;
16439     }
16440   for (i = 0; ; i++)
16441     if ((m >> i) & 1)
16442       break;
16443   fprintf (fp, "word %d bit %d", (int) k, (int) i);
16444   if (fclose (fp) != 0)
16445     return 5;
16446   return 0;
16447 }
16448
16449 _ACEOF
16450 if ac_fn_c_try_run "$LINENO"; then :
16451   gl_cv_cc_long_double_signbit=`cat conftest.out`
16452 else
16453   gl_cv_cc_long_double_signbit="unknown"
16454 fi
16455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16456   conftest.$ac_objext conftest.beam conftest.$ac_ext
16457 fi
16458
16459       rm -f conftest.out
16460
16461 fi
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
16463 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
16464   case "$gl_cv_cc_long_double_signbit" in
16465     word*bit*)
16466       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16467       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
16468
16469 cat >>confdefs.h <<_ACEOF
16470 #define LDBL_SIGNBIT_WORD $word
16471 _ACEOF
16472
16473
16474 cat >>confdefs.h <<_ACEOF
16475 #define LDBL_SIGNBIT_BIT $bit
16476 _ACEOF
16477
16478       ;;
16479   esac
16480
16481
16482           if test "$gl_cv_cc_float_signbit" = unknown; then
16483                         ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
16484 "
16485 if test "x$ac_cv_have_decl_copysignf" = xyes; then :
16486   ac_have_decl=1
16487 else
16488   ac_have_decl=0
16489 fi
16490
16491 cat >>confdefs.h <<_ACEOF
16492 #define HAVE_DECL_COPYSIGNF $ac_have_decl
16493 _ACEOF
16494
16495             if test "$ac_cv_have_decl_copysignf" = yes; then
16496                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
16497 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
16498 if ${gl_cv_func_copysignf_no_libm+:} false; then :
16499   $as_echo_n "(cached) " >&6
16500 else
16501
16502                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h.  */
16504 #include <math.h>
16505                          float x, y;
16506 int
16507 main ()
16508 {
16509 return copysignf (x, y) < 0;
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 if ac_fn_c_try_link "$LINENO"; then :
16515   gl_cv_func_copysignf_no_libm=yes
16516 else
16517   gl_cv_func_copysignf_no_libm=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext \
16520     conftest$ac_exeext conftest.$ac_ext
16521
16522 fi
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
16524 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
16525               if test $gl_cv_func_copysignf_no_libm = yes; then
16526
16527 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
16528
16529               fi
16530             fi
16531           fi
16532           if test "$gl_cv_cc_double_signbit" = unknown; then
16533                         ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
16534 "
16535 if test "x$ac_cv_have_decl_copysign" = xyes; then :
16536   ac_have_decl=1
16537 else
16538   ac_have_decl=0
16539 fi
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_DECL_COPYSIGN $ac_have_decl
16543 _ACEOF
16544
16545             if test "$ac_cv_have_decl_copysign" = yes; then
16546                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
16547 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
16548 if ${gl_cv_func_copysign_no_libm+:} false; then :
16549   $as_echo_n "(cached) " >&6
16550 else
16551
16552                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554 #include <math.h>
16555                          double x, y;
16556 int
16557 main ()
16558 {
16559 return copysign (x, y) < 0;
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 if ac_fn_c_try_link "$LINENO"; then :
16565   gl_cv_func_copysign_no_libm=yes
16566 else
16567   gl_cv_func_copysign_no_libm=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext \
16570     conftest$ac_exeext conftest.$ac_ext
16571
16572 fi
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
16574 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
16575               if test $gl_cv_func_copysign_no_libm = yes; then
16576
16577 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
16578
16579               fi
16580             fi
16581           fi
16582           if test "$gl_cv_cc_long_double_signbit" = unknown; then
16583                         ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
16584 "
16585 if test "x$ac_cv_have_decl_copysignl" = xyes; then :
16586   ac_have_decl=1
16587 else
16588   ac_have_decl=0
16589 fi
16590
16591 cat >>confdefs.h <<_ACEOF
16592 #define HAVE_DECL_COPYSIGNL $ac_have_decl
16593 _ACEOF
16594
16595             if test "$ac_cv_have_decl_copysignl" = yes; then
16596                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
16597 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
16598 if ${gl_cv_func_copysignl_no_libm+:} false; then :
16599   $as_echo_n "(cached) " >&6
16600 else
16601
16602                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h.  */
16604 #include <math.h>
16605                          long double x, y;
16606 int
16607 main ()
16608 {
16609 return copysignl (x, y) < 0;
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 if ac_fn_c_try_link "$LINENO"; then :
16615   gl_cv_func_copysignl_no_libm=yes
16616 else
16617   gl_cv_func_copysignl_no_libm=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext \
16620     conftest$ac_exeext conftest.$ac_ext
16621
16622 fi
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
16624 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
16625               if test $gl_cv_func_copysignl_no_libm = yes; then
16626
16627 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
16628
16629               fi
16630             fi
16631           fi
16632           ;;
16633       esac
16634       ;;
16635   esac
16636
16637   if test $REPLACE_SIGNBIT = 1; then
16638
16639
16640
16641
16642
16643
16644
16645
16646   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
16667
16668   fi
16669
16670
16671
16672
16673
16674           GNULIB_SIGNBIT=1
16675
16676
16677
16678
16679
16680 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
16681
16682
16683
16684
16685   for ac_header in stdint.h
16686 do :
16687   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16688 if test "x$ac_cv_header_stdint_h" = xyes; then :
16689   cat >>confdefs.h <<_ACEOF
16690 #define HAVE_STDINT_H 1
16691 _ACEOF
16692
16693 fi
16694
16695 done
16696
16697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16698 $as_echo_n "checking for SIZE_MAX... " >&6; }
16699 if ${gl_cv_size_max+:} false; then :
16700   $as_echo_n "(cached) " >&6
16701 else
16702
16703     gl_cv_size_max=
16704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h.  */
16706
16707 #include <limits.h>
16708 #if HAVE_STDINT_H
16709 #include <stdint.h>
16710 #endif
16711 #ifdef SIZE_MAX
16712 Found it
16713 #endif
16714
16715 _ACEOF
16716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16717   $EGREP "Found it" >/dev/null 2>&1; then :
16718   gl_cv_size_max=yes
16719 fi
16720 rm -f conftest*
16721
16722     if test -z "$gl_cv_size_max"; then
16723                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
16724 #include <limits.h>"; then :
16725
16726 else
16727   size_t_bits_minus_1=
16728 fi
16729
16730       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
16731
16732 else
16733   fits_in_uint=
16734 fi
16735
16736       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16737         if test $fits_in_uint = 1; then
16738                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h.  */
16740 #include <stddef.h>
16741                  extern size_t foo;
16742                  extern unsigned long foo;
16743
16744 int
16745 main ()
16746 {
16747
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 if ac_fn_c_try_compile "$LINENO"; then :
16753   fits_in_uint=0
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756         fi
16757                                 if test $fits_in_uint = 1; then
16758           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16759         else
16760           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16761         fi
16762       else
16763                 gl_cv_size_max='((size_t)~(size_t)0)'
16764       fi
16765     fi
16766
16767 fi
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
16769 $as_echo "$gl_cv_size_max" >&6; }
16770   if test "$gl_cv_size_max" != yes; then
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define SIZE_MAX $gl_cv_size_max
16774 _ACEOF
16775
16776   fi
16777
16778
16779
16780
16781   gl_cv_func_snprintf_usable=no
16782   for ac_func in snprintf
16783 do :
16784   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16785 if test "x$ac_cv_func_snprintf" = xyes; then :
16786   cat >>confdefs.h <<_ACEOF
16787 #define HAVE_SNPRINTF 1
16788 _ACEOF
16789
16790 fi
16791 done
16792
16793   if test $ac_cv_func_snprintf = yes; then
16794
16795
16796
16797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
16798 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
16799 if ${gl_cv_func_snprintf_size1+:} false; then :
16800   $as_echo_n "(cached) " >&6
16801 else
16802
16803       if test "$cross_compiling" = yes; then :
16804   case "$host_os" in
16805                    # Guess yes on native Windows.
16806            mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
16807            *)      gl_cv_func_snprintf_size1="guessing yes" ;;
16808          esac
16809
16810 else
16811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h.  */
16813
16814 #include <stdio.h>
16815 #if HAVE_SNPRINTF
16816 # define my_snprintf snprintf
16817 #else
16818 # include <stdarg.h>
16819 static int my_snprintf (char *buf, int size, const char *format, ...)
16820 {
16821   va_list args;
16822   int ret;
16823   va_start (args, format);
16824   ret = vsnprintf (buf, size, format, args);
16825   va_end (args);
16826   return ret;
16827 }
16828 #endif
16829 int main()
16830 {
16831   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
16832   my_snprintf (buf, 1, "%d", 12345);
16833   return buf[1] != 'E';
16834 }
16835 _ACEOF
16836 if ac_fn_c_try_run "$LINENO"; then :
16837   gl_cv_func_snprintf_size1=yes
16838 else
16839   gl_cv_func_snprintf_size1=no
16840 fi
16841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16842   conftest.$ac_objext conftest.beam conftest.$ac_ext
16843 fi
16844
16845
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
16848 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
16849
16850     case "$gl_cv_func_snprintf_size1" in
16851       *yes)
16852
16853         case "$gl_cv_func_snprintf_retval_c99" in
16854           *yes)
16855
16856
16857      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
16858 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
16859 if ${gl_cv_func_printf_positions+:} false; then :
16860   $as_echo_n "(cached) " >&6
16861 else
16862
16863       if test "$cross_compiling" = yes; then :
16864
16865          case "$host_os" in
16866            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
16867                          gl_cv_func_printf_positions="guessing no";;
16868            beos*)        gl_cv_func_printf_positions="guessing no";;
16869                          # Guess no on native Windows.
16870            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
16871            *)            gl_cv_func_printf_positions="guessing yes";;
16872          esac
16873
16874 else
16875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h.  */
16877
16878 #include <stdio.h>
16879 #include <string.h>
16880 /* The string "%2$d %1$d", with dollar characters protected from the shell's
16881    dollar expansion (possibly an autoconf bug).  */
16882 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
16883 static char buf[100];
16884 int main ()
16885 {
16886   sprintf (buf, format, 33, 55);
16887   return (strcmp (buf, "55 33") != 0);
16888 }
16889 _ACEOF
16890 if ac_fn_c_try_run "$LINENO"; then :
16891   gl_cv_func_printf_positions=yes
16892 else
16893   gl_cv_func_printf_positions=no
16894 fi
16895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16896   conftest.$ac_objext conftest.beam conftest.$ac_ext
16897 fi
16898
16899
16900 fi
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
16902 $as_echo "$gl_cv_func_printf_positions" >&6; }
16903
16904             case "$gl_cv_func_printf_positions" in
16905               *yes)
16906                 gl_cv_func_snprintf_usable=yes
16907                 ;;
16908             esac
16909             ;;
16910         esac
16911         ;;
16912     esac
16913   fi
16914   if test $gl_cv_func_snprintf_usable = no; then
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
16926
16927   if test $ac_cv_func_snprintf = yes; then
16928     REPLACE_SNPRINTF=1
16929   else
16930
16931     if test $ac_cv_have_decl_snprintf = yes; then
16932                         REPLACE_SNPRINTF=1
16933     fi
16934   fi
16935   :
16936
16937   fi
16938
16939   if test $ac_cv_have_decl_snprintf = no; then
16940     HAVE_DECL_SNPRINTF=0
16941   fi
16942
16943
16944
16945
16946
16947
16948           GNULIB_SNPRINTF=1
16949
16950
16951
16952
16953
16954 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
16955
16956
16957
16958
16959
16960 cat >>confdefs.h <<_ACEOF
16961 #define GNULIB_SNPRINTF 1
16962 _ACEOF
16963
16964
16965
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16967 $as_echo_n "checking for ssize_t... " >&6; }
16968 if ${gt_cv_ssize_t+:} false; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h.  */
16973 #include <sys/types.h>
16974 int
16975 main ()
16976 {
16977 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16978             return !x;
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 if ac_fn_c_try_compile "$LINENO"; then :
16984   gt_cv_ssize_t=yes
16985 else
16986   gt_cv_ssize_t=no
16987 fi
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 fi
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16991 $as_echo "$gt_cv_ssize_t" >&6; }
16992   if test $gt_cv_ssize_t = no; then
16993
16994 $as_echo "#define ssize_t int" >>confdefs.h
16995
16996   fi
16997
16998
16999
17000
17001   STDDEF_H=
17002
17003       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
17004 $as_echo_n "checking for good max_align_t... " >&6; }
17005 if ${gl_cv_type_max_align_t+:} false; then :
17006   $as_echo_n "(cached) " >&6
17007 else
17008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h.  */
17010 #include <stddef.h>
17011             unsigned int s = sizeof (max_align_t);
17012             #if defined __GNUC__ || defined __IBM__ALIGNOF__
17013             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
17014             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
17015             #endif
17016
17017 int
17018 main ()
17019 {
17020
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026   gl_cv_type_max_align_t=yes
17027 else
17028   gl_cv_type_max_align_t=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
17034 $as_echo "$gl_cv_type_max_align_t" >&6; }
17035   if test $gl_cv_type_max_align_t = no; then
17036     HAVE_MAX_ALIGN_T=0
17037     STDDEF_H=stddef.h
17038   fi
17039
17040   if test $gt_cv_c_wchar_t = no; then
17041     HAVE_WCHAR_T=0
17042     STDDEF_H=stddef.h
17043   fi
17044
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17046 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17047 if ${gl_cv_decl_null_works+:} false; then :
17048   $as_echo_n "(cached) " >&6
17049 else
17050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h.  */
17052 #include <stddef.h>
17053       int test[2 * (sizeof NULL == sizeof (void *)) -1];
17054
17055 int
17056 main ()
17057 {
17058
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064   gl_cv_decl_null_works=yes
17065 else
17066   gl_cv_decl_null_works=no
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17071 $as_echo "$gl_cv_decl_null_works" >&6; }
17072   if test $gl_cv_decl_null_works = no; then
17073     REPLACE_NULL=1
17074     STDDEF_H=stddef.h
17075   fi
17076
17077
17078    if test -n "$STDDEF_H"; then
17079   GL_GENERATE_STDDEF_H_TRUE=
17080   GL_GENERATE_STDDEF_H_FALSE='#'
17081 else
17082   GL_GENERATE_STDDEF_H_TRUE='#'
17083   GL_GENERATE_STDDEF_H_FALSE=
17084 fi
17085
17086   if test -n "$STDDEF_H"; then
17087
17088
17089
17090
17091
17092
17093
17094
17095      if test $gl_cv_have_include_next = yes; then
17096        gl_cv_next_stddef_h='<'stddef.h'>'
17097      else
17098        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17099 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17100 if ${gl_cv_next_stddef_h+:} false; then :
17101   $as_echo_n "(cached) " >&6
17102 else
17103
17104
17105
17106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h.  */
17108 #include <stddef.h>
17109 _ACEOF
17110                 case "$host_os" in
17111     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17112     *)    gl_absname_cpp="$ac_cpp" ;;
17113   esac
17114
17115   case "$host_os" in
17116     mingw*)
17117                                           gl_dirsep_regex='[/\\]'
17118       ;;
17119     *)
17120       gl_dirsep_regex='\/'
17121       ;;
17122   esac
17123       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17124   gl_header_literal_regex=`echo 'stddef.h' \
17125                            | sed -e "$gl_make_literal_regex_sed"`
17126   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17127       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17128       s|^/[^/]|//&|
17129       p
17130       q
17131     }'
17132
17133         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17134   sed -n "$gl_absolute_header_sed"`
17135
17136            gl_header=$gl_cv_absolute_stddef_h
17137            gl_cv_next_stddef_h='"'$gl_header'"'
17138
17139
17140 fi
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17142 $as_echo "$gl_cv_next_stddef_h" >&6; }
17143      fi
17144      NEXT_STDDEF_H=$gl_cv_next_stddef_h
17145
17146      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17147        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17148        gl_next_as_first_directive='<'stddef.h'>'
17149      else
17150        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17151        gl_next_as_first_directive=$gl_cv_next_stddef_h
17152      fi
17153      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17154
17155
17156
17157
17158   fi
17159
17160
17161
17162
17163   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174      if test $gl_cv_have_include_next = yes; then
17175        gl_cv_next_stdio_h='<'stdio.h'>'
17176      else
17177        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17178 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17179 if ${gl_cv_next_stdio_h+:} false; then :
17180   $as_echo_n "(cached) " >&6
17181 else
17182
17183
17184
17185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h.  */
17187 #include <stdio.h>
17188 _ACEOF
17189                 case "$host_os" in
17190     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17191     *)    gl_absname_cpp="$ac_cpp" ;;
17192   esac
17193
17194   case "$host_os" in
17195     mingw*)
17196                                           gl_dirsep_regex='[/\\]'
17197       ;;
17198     *)
17199       gl_dirsep_regex='\/'
17200       ;;
17201   esac
17202       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17203   gl_header_literal_regex=`echo 'stdio.h' \
17204                            | sed -e "$gl_make_literal_regex_sed"`
17205   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17206       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17207       s|^/[^/]|//&|
17208       p
17209       q
17210     }'
17211
17212         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17213   sed -n "$gl_absolute_header_sed"`
17214
17215            gl_header=$gl_cv_absolute_stdio_h
17216            gl_cv_next_stdio_h='"'$gl_header'"'
17217
17218
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17221 $as_echo "$gl_cv_next_stdio_h" >&6; }
17222      fi
17223      NEXT_STDIO_H=$gl_cv_next_stdio_h
17224
17225      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17226        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17227        gl_next_as_first_directive='<'stdio.h'>'
17228      else
17229        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17230        gl_next_as_first_directive=$gl_cv_next_stdio_h
17231      fi
17232      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17233
17234
17235
17236
17237
17238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17239 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17240 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
17241   $as_echo_n "(cached) " >&6
17242 else
17243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h.  */
17245
17246        #define __STDC_FORMAT_MACROS 1
17247        #include <stdio.h>
17248        #include <inttypes.h>
17249        /* For non-mingw systems, compilation will trivially succeed.
17250           For mingw, compilation will succeed for older mingw (system
17251           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17252        #if (defined _WIN32 && ! defined __CYGWIN__) && \
17253          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17254        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17255        #endif
17256
17257 int
17258 main ()
17259 {
17260
17261   ;
17262   return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_compile "$LINENO"; then :
17266   gl_cv_func_printf_attribute_flavor=system
17267 else
17268   gl_cv_func_printf_attribute_flavor=gnu
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 fi
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17273 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17274   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17275
17276 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17277
17278   fi
17279
17280       GNULIB_FSCANF=1
17281
17282
17283 cat >>confdefs.h <<_ACEOF
17284 #define GNULIB_FSCANF 1
17285 _ACEOF
17286
17287
17288   GNULIB_SCANF=1
17289
17290
17291 cat >>confdefs.h <<_ACEOF
17292 #define GNULIB_SCANF 1
17293 _ACEOF
17294
17295
17296   GNULIB_FGETC=1
17297   GNULIB_GETC=1
17298   GNULIB_GETCHAR=1
17299   GNULIB_FGETS=1
17300   GNULIB_FREAD=1
17301
17302
17303       GNULIB_FPRINTF=1
17304   GNULIB_PRINTF=1
17305   GNULIB_VFPRINTF=1
17306   GNULIB_VPRINTF=1
17307   GNULIB_FPUTC=1
17308   GNULIB_PUTC=1
17309   GNULIB_PUTCHAR=1
17310   GNULIB_FPUTS=1
17311   GNULIB_PUTS=1
17312   GNULIB_FWRITE=1
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327       if  { test "$HAVE_LIBUNISTRING" != yes \
17328     || {
17329
17330
17331
17332             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
17333             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
17334                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
17335                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
17336                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
17337                          }
17338                     }
17339                }
17340
17341
17342
17343
17344        }
17345   }; then
17346     LIBUNISTRING_UNITYPES_H='unitypes.h'
17347   else
17348     LIBUNISTRING_UNITYPES_H=
17349   fi
17350
17351
17352
17353
17354       if  { test "$HAVE_LIBUNISTRING" != yes \
17355     || {
17356
17357
17358
17359             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
17360             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
17361                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
17362                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
17363                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
17364                          }
17365                     }
17366                }
17367
17368
17369
17370
17371        }
17372   }; then
17373     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
17374   else
17375     LIBUNISTRING_UNIWIDTH_H=
17376   fi
17377
17378
17379
17380
17381        if  { test "$HAVE_LIBUNISTRING" != yes \
17382     || {
17383
17384
17385
17386             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
17387             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
17388                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
17389                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
17390                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
17391                          }
17392                     }
17393                }
17394
17395
17396
17397
17398        }
17399   }; then
17400   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
17401   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
17402 else
17403   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
17404   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
17405 fi
17406
17407
17408
17409
17410   if test $ac_cv_func_vasnprintf = no; then
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
17452
17453   if test $ac_cv_func_vasnprintf = yes; then
17454
17455 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
17456
17457   fi
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17470 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17471
17472 else
17473
17474 $as_echo "#define ptrdiff_t long" >>confdefs.h
17475
17476
17477 fi
17478
17479
17480
17481
17482
17483
17484
17485   fi
17486
17487
17488
17489   gl_cv_func_vsnprintf_usable=no
17490   for ac_func in vsnprintf
17491 do :
17492   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17493 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17494   cat >>confdefs.h <<_ACEOF
17495 #define HAVE_VSNPRINTF 1
17496 _ACEOF
17497
17498 fi
17499 done
17500
17501   if test $ac_cv_func_vsnprintf = yes; then
17502
17503
17504
17505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
17506 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
17507 if ${gl_cv_func_snprintf_size1+:} false; then :
17508   $as_echo_n "(cached) " >&6
17509 else
17510
17511       if test "$cross_compiling" = yes; then :
17512   case "$host_os" in
17513                    # Guess yes on native Windows.
17514            mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
17515            *)      gl_cv_func_snprintf_size1="guessing yes" ;;
17516          esac
17517
17518 else
17519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h.  */
17521
17522 #include <stdio.h>
17523 #if HAVE_SNPRINTF
17524 # define my_snprintf snprintf
17525 #else
17526 # include <stdarg.h>
17527 static int my_snprintf (char *buf, int size, const char *format, ...)
17528 {
17529   va_list args;
17530   int ret;
17531   va_start (args, format);
17532   ret = vsnprintf (buf, size, format, args);
17533   va_end (args);
17534   return ret;
17535 }
17536 #endif
17537 int main()
17538 {
17539   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
17540   my_snprintf (buf, 1, "%d", 12345);
17541   return buf[1] != 'E';
17542 }
17543 _ACEOF
17544 if ac_fn_c_try_run "$LINENO"; then :
17545   gl_cv_func_snprintf_size1=yes
17546 else
17547   gl_cv_func_snprintf_size1=no
17548 fi
17549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17550   conftest.$ac_objext conftest.beam conftest.$ac_ext
17551 fi
17552
17553
17554 fi
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
17556 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
17557
17558     case "$gl_cv_func_snprintf_size1" in
17559       *yes)
17560
17561         case "$gl_cv_func_snprintf_retval_c99" in
17562           *yes)
17563
17564
17565      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
17566 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
17567 if ${gl_cv_func_printf_positions+:} false; then :
17568   $as_echo_n "(cached) " >&6
17569 else
17570
17571       if test "$cross_compiling" = yes; then :
17572
17573          case "$host_os" in
17574            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
17575                          gl_cv_func_printf_positions="guessing no";;
17576            beos*)        gl_cv_func_printf_positions="guessing no";;
17577                          # Guess no on native Windows.
17578            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
17579            *)            gl_cv_func_printf_positions="guessing yes";;
17580          esac
17581
17582 else
17583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h.  */
17585
17586 #include <stdio.h>
17587 #include <string.h>
17588 /* The string "%2$d %1$d", with dollar characters protected from the shell's
17589    dollar expansion (possibly an autoconf bug).  */
17590 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
17591 static char buf[100];
17592 int main ()
17593 {
17594   sprintf (buf, format, 33, 55);
17595   return (strcmp (buf, "55 33") != 0);
17596 }
17597 _ACEOF
17598 if ac_fn_c_try_run "$LINENO"; then :
17599   gl_cv_func_printf_positions=yes
17600 else
17601   gl_cv_func_printf_positions=no
17602 fi
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604   conftest.$ac_objext conftest.beam conftest.$ac_ext
17605 fi
17606
17607
17608 fi
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
17610 $as_echo "$gl_cv_func_printf_positions" >&6; }
17611
17612             case "$gl_cv_func_printf_positions" in
17613               *yes)
17614                 gl_cv_func_vsnprintf_usable=yes
17615                 ;;
17616             esac
17617             ;;
17618         esac
17619         ;;
17620     esac
17621   fi
17622   if test $gl_cv_func_vsnprintf_usable = no; then
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
17634
17635   if test $ac_cv_func_vsnprintf = yes; then
17636     REPLACE_VSNPRINTF=1
17637   else
17638
17639     if test $ac_cv_have_decl_vsnprintf = yes; then
17640                         REPLACE_VSNPRINTF=1
17641     fi
17642   fi
17643   :
17644
17645   fi
17646
17647   if test $ac_cv_have_decl_vsnprintf = no; then
17648     HAVE_DECL_VSNPRINTF=0
17649   fi
17650
17651
17652
17653
17654
17655
17656           GNULIB_VSNPRINTF=1
17657
17658
17659
17660
17661
17662 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678      if test $gl_cv_have_include_next = yes; then
17679        gl_cv_next_wchar_h='<'wchar.h'>'
17680      else
17681        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17682 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17683 if ${gl_cv_next_wchar_h+:} false; then :
17684   $as_echo_n "(cached) " >&6
17685 else
17686
17687              if test $ac_cv_header_wchar_h = yes; then
17688
17689
17690
17691
17692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h.  */
17694 #include <wchar.h>
17695 _ACEOF
17696                 case "$host_os" in
17697     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17698     *)    gl_absname_cpp="$ac_cpp" ;;
17699   esac
17700
17701   case "$host_os" in
17702     mingw*)
17703                                           gl_dirsep_regex='[/\\]'
17704       ;;
17705     *)
17706       gl_dirsep_regex='\/'
17707       ;;
17708   esac
17709       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17710   gl_header_literal_regex=`echo 'wchar.h' \
17711                            | sed -e "$gl_make_literal_regex_sed"`
17712   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17713       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17714       s|^/[^/]|//&|
17715       p
17716       q
17717     }'
17718
17719         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17720   sed -n "$gl_absolute_header_sed"`
17721
17722            gl_header=$gl_cv_absolute_wchar_h
17723            gl_cv_next_wchar_h='"'$gl_header'"'
17724           else
17725                gl_cv_next_wchar_h='<'wchar.h'>'
17726              fi
17727
17728
17729 fi
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17731 $as_echo "$gl_cv_next_wchar_h" >&6; }
17732      fi
17733      NEXT_WCHAR_H=$gl_cv_next_wchar_h
17734
17735      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17736        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17737        gl_next_as_first_directive='<'wchar.h'>'
17738      else
17739        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17740        gl_next_as_first_directive=$gl_cv_next_wchar_h
17741      fi
17742      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17743
17744
17745
17746
17747   if test $ac_cv_header_wchar_h = yes; then
17748     HAVE_WCHAR_H=1
17749   else
17750     HAVE_WCHAR_H=0
17751   fi
17752
17753
17754
17755
17756
17757   if test $gt_cv_c_wint_t = yes; then
17758     HAVE_WINT_T=1
17759   else
17760     HAVE_WINT_T=0
17761   fi
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775   if test $ac_cv_func_iswcntrl = yes; then
17776     HAVE_ISWCNTRL=1
17777   else
17778     HAVE_ISWCNTRL=0
17779   fi
17780
17781
17782
17783   if test $gt_cv_c_wint_t = yes; then
17784     HAVE_WINT_T=1
17785   else
17786     HAVE_WINT_T=0
17787   fi
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801      if test $gl_cv_have_include_next = yes; then
17802        gl_cv_next_wctype_h='<'wctype.h'>'
17803      else
17804        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
17805 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
17806 if ${gl_cv_next_wctype_h+:} false; then :
17807   $as_echo_n "(cached) " >&6
17808 else
17809
17810              if test $ac_cv_header_wctype_h = yes; then
17811
17812
17813
17814
17815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h.  */
17817 #include <wctype.h>
17818 _ACEOF
17819                 case "$host_os" in
17820     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17821     *)    gl_absname_cpp="$ac_cpp" ;;
17822   esac
17823
17824   case "$host_os" in
17825     mingw*)
17826                                           gl_dirsep_regex='[/\\]'
17827       ;;
17828     *)
17829       gl_dirsep_regex='\/'
17830       ;;
17831   esac
17832       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17833   gl_header_literal_regex=`echo 'wctype.h' \
17834                            | sed -e "$gl_make_literal_regex_sed"`
17835   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17836       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17837       s|^/[^/]|//&|
17838       p
17839       q
17840     }'
17841
17842         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17843   sed -n "$gl_absolute_header_sed"`
17844
17845            gl_header=$gl_cv_absolute_wctype_h
17846            gl_cv_next_wctype_h='"'$gl_header'"'
17847           else
17848                gl_cv_next_wctype_h='<'wctype.h'>'
17849              fi
17850
17851
17852 fi
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
17854 $as_echo "$gl_cv_next_wctype_h" >&6; }
17855      fi
17856      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
17857
17858      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17859        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17860        gl_next_as_first_directive='<'wctype.h'>'
17861      else
17862        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17863        gl_next_as_first_directive=$gl_cv_next_wctype_h
17864      fi
17865      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
17866
17867
17868
17869
17870   if test $ac_cv_header_wctype_h = yes; then
17871     if test $ac_cv_func_iswcntrl = yes; then
17872                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
17873 $as_echo_n "checking whether iswcntrl works... " >&6; }
17874 if ${gl_cv_func_iswcntrl_works+:} false; then :
17875   $as_echo_n "(cached) " >&6
17876 else
17877
17878           if test "$cross_compiling" = yes; then :
17879                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h.  */
17881 #include <stdlib.h>
17882                           #if __GNU_LIBRARY__ == 1
17883                           Linux libc5 i18n is broken.
17884                           #endif
17885 int
17886 main ()
17887 {
17888
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_c_try_compile "$LINENO"; then :
17894   gl_cv_func_iswcntrl_works="guessing yes"
17895 else
17896   gl_cv_func_iswcntrl_works="guessing no"
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899
17900 else
17901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h.  */
17903
17904                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17905                   included before <wchar.h>.
17906                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17907                   must be included before <wchar.h>.  */
17908                #include <stddef.h>
17909                #include <stdio.h>
17910                #include <time.h>
17911                #include <wchar.h>
17912                #include <wctype.h>
17913                int main () { return iswprint ('x') == 0; }
17914
17915 _ACEOF
17916 if ac_fn_c_try_run "$LINENO"; then :
17917   gl_cv_func_iswcntrl_works=yes
17918 else
17919   gl_cv_func_iswcntrl_works=no
17920 fi
17921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17922   conftest.$ac_objext conftest.beam conftest.$ac_ext
17923 fi
17924
17925
17926 fi
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
17928 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
17929     fi
17930     HAVE_WCTYPE_H=1
17931   else
17932     HAVE_WCTYPE_H=0
17933   fi
17934
17935
17936   case "$gl_cv_func_iswcntrl_works" in
17937     *yes) REPLACE_ISWCNTRL=0 ;;
17938     *)    REPLACE_ISWCNTRL=1 ;;
17939   esac
17940
17941
17942   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
17943         :
17944   fi
17945
17946   if test $REPLACE_ISWCNTRL = 1; then
17947     REPLACE_TOWLOWER=1
17948   else
17949     for ac_func in towlower
17950 do :
17951   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
17952 if test "x$ac_cv_func_towlower" = xyes; then :
17953   cat >>confdefs.h <<_ACEOF
17954 #define HAVE_TOWLOWER 1
17955 _ACEOF
17956
17957 fi
17958 done
17959
17960     if test $ac_cv_func_towlower = yes; then
17961       REPLACE_TOWLOWER=0
17962     else
17963       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17964              included before <wchar.h>.
17965              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17966              must be included before <wchar.h>.  */
17967           #include <stddef.h>
17968           #include <stdio.h>
17969           #include <time.h>
17970           #include <wchar.h>
17971           #if HAVE_WCTYPE_H
17972           # include <wctype.h>
17973           #endif
17974
17975 "
17976 if test "x$ac_cv_have_decl_towlower" = xyes; then :
17977   ac_have_decl=1
17978 else
17979   ac_have_decl=0
17980 fi
17981
17982 cat >>confdefs.h <<_ACEOF
17983 #define HAVE_DECL_TOWLOWER $ac_have_decl
17984 _ACEOF
17985
17986       if test $ac_cv_have_decl_towlower = yes; then
17987                                 REPLACE_TOWLOWER=1
17988       else
17989         REPLACE_TOWLOWER=0
17990       fi
17991     fi
17992   fi
17993
17994
17995   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
17996         :
17997   fi
17998
17999           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18000 $as_echo_n "checking for wctype_t... " >&6; }
18001 if ${gl_cv_type_wctype_t+:} false; then :
18002   $as_echo_n "(cached) " >&6
18003 else
18004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h.  */
18006 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18007                included before <wchar.h>.
18008                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18009                must be included before <wchar.h>.  */
18010             #include <stddef.h>
18011             #include <stdio.h>
18012             #include <time.h>
18013             #include <wchar.h>
18014             #if HAVE_WCTYPE_H
18015             # include <wctype.h>
18016             #endif
18017             wctype_t a;
18018
18019 int
18020 main ()
18021 {
18022
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 if ac_fn_c_try_compile "$LINENO"; then :
18028   gl_cv_type_wctype_t=yes
18029 else
18030   gl_cv_type_wctype_t=no
18031 fi
18032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18033
18034 fi
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18036 $as_echo "$gl_cv_type_wctype_t" >&6; }
18037   if test $gl_cv_type_wctype_t = no; then
18038     HAVE_WCTYPE_T=0
18039   fi
18040
18041       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18042 $as_echo_n "checking for wctrans_t... " >&6; }
18043 if ${gl_cv_type_wctrans_t+:} false; then :
18044   $as_echo_n "(cached) " >&6
18045 else
18046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h.  */
18048 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18049                included before <wchar.h>.
18050                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18051                must be included before <wchar.h>.  */
18052             #include <stddef.h>
18053             #include <stdio.h>
18054             #include <time.h>
18055             #include <wchar.h>
18056             #include <wctype.h>
18057             wctrans_t a;
18058
18059 int
18060 main ()
18061 {
18062
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_compile "$LINENO"; then :
18068   gl_cv_type_wctrans_t=yes
18069 else
18070   gl_cv_type_wctrans_t=no
18071 fi
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073
18074 fi
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18076 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18077   if test $gl_cv_type_wctrans_t = no; then
18078     HAVE_WCTRANS_T=0
18079   fi
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
18097 /* AIX 3.2.5 declares wcwidth in <string.h>. */
18098 #include <string.h>
18099 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18100    <wchar.h>.
18101    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18102    before <wchar.h>.  */
18103 #include <stddef.h>
18104 #include <stdio.h>
18105 #include <time.h>
18106 #include <wchar.h>
18107
18108 "
18109 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
18110   ac_have_decl=1
18111 else
18112   ac_have_decl=0
18113 fi
18114
18115 cat >>confdefs.h <<_ACEOF
18116 #define HAVE_DECL_WCWIDTH $ac_have_decl
18117 _ACEOF
18118
18119   if test $ac_cv_have_decl_wcwidth != yes; then
18120     HAVE_DECL_WCWIDTH=0
18121   fi
18122
18123   if test $ac_cv_func_wcwidth != yes; then
18124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro" >&5
18125 $as_echo_n "checking whether wcwidth is a macro... " >&6; }
18126 if ${gl_cv_func_wcwidth_macro+:} false; then :
18127   $as_echo_n "(cached) " >&6
18128 else
18129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h.  */
18131
18132 #include <wchar.h>
18133 #ifdef wcwidth
18134  wchar_header_defines_wcwidth
18135 #endif
18136 _ACEOF
18137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18138   $EGREP "wchar_header_defines_wcwidth" >/dev/null 2>&1; then :
18139   gl_cv_func_wcwidth_macro=yes
18140 else
18141   gl_cv_func_wcwidth_macro=no
18142 fi
18143 rm -f conftest*
18144
18145
18146 fi
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5
18148 $as_echo "$gl_cv_func_wcwidth_macro" >&6; }
18149   fi
18150
18151   if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; then
18152     HAVE_WCWIDTH=1
18153                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
18154 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
18155 if ${gl_cv_func_wcwidth_works+:} false; then :
18156   $as_echo_n "(cached) " >&6
18157 else
18158
18159         if test "$cross_compiling" = yes; then :
18160
18161            case "$host_os" in
18162                                         # Guess yes on glibc and AIX 7 systems.
18163              *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
18164              *)                         gl_cv_func_wcwidth_works="guessing no";;
18165            esac
18166
18167 else
18168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h.  */
18170
18171 #include <locale.h>
18172 /* AIX 3.2.5 declares wcwidth in <string.h>. */
18173 #include <string.h>
18174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18175    <wchar.h>.
18176    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18177    before <wchar.h>.  */
18178 #include <stddef.h>
18179 #include <stdio.h>
18180 #include <time.h>
18181 #include <wchar.h>
18182 #if !HAVE_DECL_WCWIDTH
18183 extern
18184 # ifdef __cplusplus
18185 "C"
18186 # endif
18187 int wcwidth (int);
18188 #endif
18189 int main ()
18190 {
18191   int result = 0;
18192   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
18193     {
18194       if (wcwidth (0x0301) > 0)
18195         result |= 1;
18196       if (wcwidth (0x05B0) > 0)
18197         result |= 2;
18198       if (wcwidth (0x200B) > 0)
18199         result |= 4;
18200       if (wcwidth (0xFF1A) == 0)
18201         result |= 8;
18202     }
18203   return result;
18204 }
18205 _ACEOF
18206 if ac_fn_c_try_run "$LINENO"; then :
18207   gl_cv_func_wcwidth_works=yes
18208 else
18209   gl_cv_func_wcwidth_works=no
18210 fi
18211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18212   conftest.$ac_objext conftest.beam conftest.$ac_ext
18213 fi
18214
18215
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
18218 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
18219     case "$gl_cv_func_wcwidth_works" in
18220       *yes) ;;
18221       *no) REPLACE_WCWIDTH=1 ;;
18222     esac
18223   else
18224     HAVE_WCWIDTH=0
18225   fi
18226
18227   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
18228
18229
18230
18231
18232
18233
18234
18235
18236   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
18237
18238
18239
18240   :
18241
18242   fi
18243
18244
18245
18246
18247
18248           GNULIB_WCWIDTH=1
18249
18250
18251
18252
18253
18254 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
18255
18256
18257
18258
18259
18260   for ac_header in stdint.h
18261 do :
18262   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18263 if test "x$ac_cv_header_stdint_h" = xyes; then :
18264   cat >>confdefs.h <<_ACEOF
18265 #define HAVE_STDINT_H 1
18266 _ACEOF
18267
18268 fi
18269
18270 done
18271
18272
18273   # End of code from modules
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283   gltests_libdeps=
18284   gltests_ltlibdeps=
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294   gl_source_base='tests'
18295   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
18296
18297   gl_module_indicator_condition=$gltests_WITNESS
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307   LIBGNU_LIBDEPS="$gl_libdeps"
18308
18309   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18310
18311
18312
18313
18314    ac_ext=cpp
18315 ac_cpp='$CXXCPP $CPPFLAGS'
18316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18319
18320    if test "$cross_compiling" = no; then
18321      { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can compile simple program" >&5
18322 $as_echo_n "checking that C++ compiler can compile simple program... " >&6; }
18323    fi
18324    if test "$cross_compiling" = yes; then :
18325   :
18326 else
18327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h.  */
18329
18330
18331
18332 int main() {
18333   return 0;
18334 }
18335
18336
18337
18338 _ACEOF
18339 if ac_fn_cxx_try_run "$LINENO"; then :
18340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341 $as_echo "yes" >&6; }
18342 else
18343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18345       as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
18346 fi
18347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18348   conftest.$ac_objext conftest.beam conftest.$ac_ext
18349 fi
18350
18351
18352    if test "$cross_compiling" = no; then
18353      { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ static constructors and destructors are called" >&5
18354 $as_echo_n "checking that C++ static constructors and destructors are called... " >&6; }
18355    fi
18356    if test "$cross_compiling" = yes; then :
18357   :
18358 else
18359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h.  */
18361
18362
18363
18364 extern "C" {
18365   void _exit(int);
18366 }
18367
18368 int i;
18369 struct A {
18370   char dummy;
18371   A() { i = 1; }
18372   ~A() { if (i == 1) _exit(0); }
18373 };
18374
18375 A a;
18376
18377 int main()
18378 {
18379   return 1;
18380 }
18381
18382
18383
18384 _ACEOF
18385 if ac_fn_cxx_try_run "$LINENO"; then :
18386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18387 $as_echo "yes" >&6; }
18388 else
18389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391       as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
18392 fi
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18394   conftest.$ac_objext conftest.beam conftest.$ac_ext
18395 fi
18396
18397
18398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that header files support C++" >&5
18399 $as_echo_n "checking that header files support C++... " >&6; }
18400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h.  */
18402
18403
18404
18405 #include <stdio.h>
18406
18407
18408 int
18409 main ()
18410 {
18411
18412
18413 fopen(0, 0);
18414
18415
18416   ;
18417   return 0;
18418 }
18419
18420 _ACEOF
18421 if ac_fn_cxx_try_link "$LINENO"; then :
18422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18423 $as_echo "yes" >&6; }
18424 else
18425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426 $as_echo "no" >&6; }
18427       as_fn_error $? "header files do not support C++
18428                    (if you are using a version of gcc/g++ earlier than 2.5,
18429                    you should install libg++)" "$LINENO" 5
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext \
18432     conftest$ac_exeext conftest.$ac_ext
18433    ac_ext=c
18434 ac_cpp='$CPP $CPPFLAGS'
18435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18438
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether character set is EBCDIC" >&5
18440 $as_echo_n "checking whether character set is EBCDIC... " >&6; }
18441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h.  */
18443
18444
18445
18446 /* Treat any failure as ASCII for compatibility with existing art.
18447    Use compile-time rather than run-time tests for cross-compiler
18448    tolerance. */
18449 #if '0' != 240
18450 make an error "Character set is not EBCDIC"
18451 #endif
18452
18453
18454 int
18455 main ()
18456 {
18457
18458   ;
18459   return 0;
18460 }
18461
18462 _ACEOF
18463 if ac_fn_c_try_compile "$LINENO"; then :
18464   groff_cv_ebcdic="yes"
18465       TTYDEVDIRS="font/devcp1047"
18466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18468
18469 $as_echo "#define IS_EBCDIC_HOST 1" >>confdefs.h
18470
18471 else
18472   groff_cv_ebcdic="no"
18473      TTYDEVDIRS="font/devascii font/devlatin1"
18474      OTHERDEVDIRS="font/devlj4 font/devlbp"
18475      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 $as_echo "no" >&6; }
18477 fi
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479
18480
18481 if test "$groff_cv_ebcdic" = "yes"; then
18482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/390 Unix" >&5
18483 $as_echo_n "checking for OS/390 Unix... " >&6; }
18484      case `uname` in
18485      OS/390)
18486        CFLAGS="$CFLAGS -D_ALL_SOURCE"
18487        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18488 $as_echo "yes" >&6; } ;;
18489      *)
18490        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491 $as_echo "no" >&6; } ;;
18492      esac
18493    fi
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install .cmd wrapper scripts for Windows" >&5
18495 $as_echo_n "checking whether to install .cmd wrapper scripts for Windows... " >&6; }
18496    case "$host_os" in
18497    *mingw*)
18498      make_winscripts=winscripts
18499      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18500 $as_echo "yes" >&6; } ;;
18501    *)
18502      make_winscripts=
18503      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18504 $as_echo "no" >&6; } ;;
18505    esac
18506
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18508 $as_echo_n "checking for X... " >&6; }
18509
18510
18511 # Check whether --with-x was given.
18512 if test "${with_x+set}" = set; then :
18513   withval=$with_x;
18514 fi
18515
18516 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18517 if test "x$with_x" = xno; then
18518   # The user explicitly disabled X.
18519   have_x=disabled
18520 else
18521   case $x_includes,$x_libraries in #(
18522     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18523     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18524   $as_echo_n "(cached) " >&6
18525 else
18526   # One or both of the vars are not set, and there is no cached value.
18527 ac_x_includes=no ac_x_libraries=no
18528 rm -f -r conftest.dir
18529 if mkdir conftest.dir; then
18530   cd conftest.dir
18531   cat >Imakefile <<'_ACEOF'
18532 incroot:
18533         @echo incroot='${INCROOT}'
18534 usrlibdir:
18535         @echo usrlibdir='${USRLIBDIR}'
18536 libdir:
18537         @echo libdir='${LIBDIR}'
18538 _ACEOF
18539   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18540     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18541     for ac_var in incroot usrlibdir libdir; do
18542       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18543     done
18544     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18545     for ac_extension in a so sl dylib la dll; do
18546       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18547          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18548         ac_im_usrlibdir=$ac_im_libdir; break
18549       fi
18550     done
18551     # Screen out bogus values from the imake configuration.  They are
18552     # bogus both because they are the default anyway, and because
18553     # using them would break gcc on systems where it needs fixed includes.
18554     case $ac_im_incroot in
18555         /usr/include) ac_x_includes= ;;
18556         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18557     esac
18558     case $ac_im_usrlibdir in
18559         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18560         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18561     esac
18562   fi
18563   cd ..
18564   rm -f -r conftest.dir
18565 fi
18566
18567 # Standard set of common directories for X headers.
18568 # Check X11 before X11Rn because it is often a symlink to the current release.
18569 ac_x_header_dirs='
18570 /usr/X11/include
18571 /usr/X11R7/include
18572 /usr/X11R6/include
18573 /usr/X11R5/include
18574 /usr/X11R4/include
18575
18576 /usr/include/X11
18577 /usr/include/X11R7
18578 /usr/include/X11R6
18579 /usr/include/X11R5
18580 /usr/include/X11R4
18581
18582 /usr/local/X11/include
18583 /usr/local/X11R7/include
18584 /usr/local/X11R6/include
18585 /usr/local/X11R5/include
18586 /usr/local/X11R4/include
18587
18588 /usr/local/include/X11
18589 /usr/local/include/X11R7
18590 /usr/local/include/X11R6
18591 /usr/local/include/X11R5
18592 /usr/local/include/X11R4
18593
18594 /usr/X386/include
18595 /usr/x386/include
18596 /usr/XFree86/include/X11
18597
18598 /usr/include
18599 /usr/local/include
18600 /usr/unsupported/include
18601 /usr/athena/include
18602 /usr/local/x11r5/include
18603 /usr/lpp/Xamples/include
18604
18605 /usr/openwin/include
18606 /usr/openwin/share/include'
18607
18608 if test "$ac_x_includes" = no; then
18609   # Guess where to find include files, by looking for Xlib.h.
18610   # First, try using that file with no special directory specified.
18611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h.  */
18613 #include <X11/Xlib.h>
18614 _ACEOF
18615 if ac_fn_c_try_cpp "$LINENO"; then :
18616   # We can compile using X headers with no special include directory.
18617 ac_x_includes=
18618 else
18619   for ac_dir in $ac_x_header_dirs; do
18620   if test -r "$ac_dir/X11/Xlib.h"; then
18621     ac_x_includes=$ac_dir
18622     break
18623   fi
18624 done
18625 fi
18626 rm -f conftest.err conftest.i conftest.$ac_ext
18627 fi # $ac_x_includes = no
18628
18629 if test "$ac_x_libraries" = no; then
18630   # Check for the libraries.
18631   # See if we find them without any special options.
18632   # Don't add to $LIBS permanently.
18633   ac_save_LIBS=$LIBS
18634   LIBS="-lX11 $LIBS"
18635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h.  */
18637 #include <X11/Xlib.h>
18638 int
18639 main ()
18640 {
18641 XrmInitialize ()
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 if ac_fn_c_try_link "$LINENO"; then :
18647   LIBS=$ac_save_LIBS
18648 # We can link X programs with no special library path.
18649 ac_x_libraries=
18650 else
18651   LIBS=$ac_save_LIBS
18652 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18653 do
18654   # Don't even attempt the hair of trying to link an X program!
18655   for ac_extension in a so sl dylib la dll; do
18656     if test -r "$ac_dir/libX11.$ac_extension"; then
18657       ac_x_libraries=$ac_dir
18658       break 2
18659     fi
18660   done
18661 done
18662 fi
18663 rm -f core conftest.err conftest.$ac_objext \
18664     conftest$ac_exeext conftest.$ac_ext
18665 fi # $ac_x_libraries = no
18666
18667 case $ac_x_includes,$ac_x_libraries in #(
18668   no,* | *,no | *\'*)
18669     # Didn't find X, or a directory has "'" in its name.
18670     ac_cv_have_x="have_x=no";; #(
18671   *)
18672     # Record where we found X for the cache.
18673     ac_cv_have_x="have_x=yes\
18674         ac_x_includes='$ac_x_includes'\
18675         ac_x_libraries='$ac_x_libraries'"
18676 esac
18677 fi
18678 ;; #(
18679     *) have_x=yes;;
18680   esac
18681   eval "$ac_cv_have_x"
18682 fi # $with_x != no
18683
18684 if test "$have_x" != yes; then
18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18686 $as_echo "$have_x" >&6; }
18687   no_x=yes
18688 else
18689   # If each of the values was on the command line, it overrides each guess.
18690   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18691   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18692   # Update the cache value to reflect the command line values.
18693   ac_cv_have_x="have_x=yes\
18694         ac_x_includes='$x_includes'\
18695         ac_x_libraries='$x_libraries'"
18696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18697 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18698 fi
18699
18700 if test "$no_x" = yes; then
18701   # Not all programs may use this symbol, but it does not hurt to define it.
18702
18703 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18704
18705   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18706 else
18707   if test -n "$x_includes"; then
18708     X_CFLAGS="$X_CFLAGS -I$x_includes"
18709   fi
18710
18711   # It would also be nice to do this for all -L options, not just this one.
18712   if test -n "$x_libraries"; then
18713     X_LIBS="$X_LIBS -L$x_libraries"
18714     # For Solaris; some versions of Sun CC require a space after -R and
18715     # others require no space.  Words are not sufficient . . . .
18716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18717 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
18718     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18719     ac_xsave_c_werror_flag=$ac_c_werror_flag
18720     ac_c_werror_flag=yes
18721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722 /* end confdefs.h.  */
18723
18724 int
18725 main ()
18726 {
18727
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 if ac_fn_c_try_link "$LINENO"; then :
18733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734 $as_echo "no" >&6; }
18735        X_LIBS="$X_LIBS -R$x_libraries"
18736 else
18737   LIBS="$ac_xsave_LIBS -R $x_libraries"
18738        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h.  */
18740
18741 int
18742 main ()
18743 {
18744
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 if ac_fn_c_try_link "$LINENO"; then :
18750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751 $as_echo "yes" >&6; }
18752           X_LIBS="$X_LIBS -R $x_libraries"
18753 else
18754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18755 $as_echo "neither works" >&6; }
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext \
18758     conftest$ac_exeext conftest.$ac_ext
18759 fi
18760 rm -f core conftest.err conftest.$ac_objext \
18761     conftest$ac_exeext conftest.$ac_ext
18762     ac_c_werror_flag=$ac_xsave_c_werror_flag
18763     LIBS=$ac_xsave_LIBS
18764   fi
18765
18766   # Check for system-dependent libraries X programs must link with.
18767   # Do this before checking for the system-independent R6 libraries
18768   # (-lICE), since we may need -lsocket or whatever for X linking.
18769
18770   if test "$ISC" = yes; then
18771     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18772   else
18773     # Martyn Johnson says this is needed for Ultrix, if the X
18774     # libraries were built with DECnet support.  And Karl Berry says
18775     # the Alpha needs dnet_stub (dnet does not exist).
18776     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h.  */
18779
18780 /* Override any GCC internal prototype to avoid an error.
18781    Use char because int might match the return type of a GCC
18782    builtin and then its argument prototype would still apply.  */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char XOpenDisplay ();
18787 int
18788 main ()
18789 {
18790 return XOpenDisplay ();
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796
18797 else
18798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18799 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18800 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18801   $as_echo_n "(cached) " >&6
18802 else
18803   ac_check_lib_save_LIBS=$LIBS
18804 LIBS="-ldnet  $LIBS"
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h.  */
18807
18808 /* Override any GCC internal prototype to avoid an error.
18809    Use char because int might match the return type of a GCC
18810    builtin and then its argument prototype would still apply.  */
18811 #ifdef __cplusplus
18812 extern "C"
18813 #endif
18814 char dnet_ntoa ();
18815 int
18816 main ()
18817 {
18818 return dnet_ntoa ();
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 if ac_fn_c_try_link "$LINENO"; then :
18824   ac_cv_lib_dnet_dnet_ntoa=yes
18825 else
18826   ac_cv_lib_dnet_dnet_ntoa=no
18827 fi
18828 rm -f core conftest.err conftest.$ac_objext \
18829     conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18831 fi
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18833 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18834 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18835   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18836 fi
18837
18838     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18840 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18841 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18842   $as_echo_n "(cached) " >&6
18843 else
18844   ac_check_lib_save_LIBS=$LIBS
18845 LIBS="-ldnet_stub  $LIBS"
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h.  */
18848
18849 /* Override any GCC internal prototype to avoid an error.
18850    Use char because int might match the return type of a GCC
18851    builtin and then its argument prototype would still apply.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char dnet_ntoa ();
18856 int
18857 main ()
18858 {
18859 return dnet_ntoa ();
18860   ;
18861   return 0;
18862 }
18863 _ACEOF
18864 if ac_fn_c_try_link "$LINENO"; then :
18865   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18866 else
18867   ac_cv_lib_dnet_stub_dnet_ntoa=no
18868 fi
18869 rm -f core conftest.err conftest.$ac_objext \
18870     conftest$ac_exeext conftest.$ac_ext
18871 LIBS=$ac_check_lib_save_LIBS
18872 fi
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18874 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18875 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18876   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18877 fi
18878
18879     fi
18880 fi
18881 rm -f core conftest.err conftest.$ac_objext \
18882     conftest$ac_exeext conftest.$ac_ext
18883     LIBS="$ac_xsave_LIBS"
18884
18885     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18886     # to get the SysV transport functions.
18887     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18888     # needs -lnsl.
18889     # The nsl library prevents programs from opening the X display
18890     # on Irix 5.2, according to T.E. Dickey.
18891     # The functions gethostbyname, getservbyname, and inet_addr are
18892     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18893     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18894 if test "x$ac_cv_func_gethostbyname" = xyes; then :
18895
18896 fi
18897
18898     if test $ac_cv_func_gethostbyname = no; then
18899       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18900 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18901 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18902   $as_echo_n "(cached) " >&6
18903 else
18904   ac_check_lib_save_LIBS=$LIBS
18905 LIBS="-lnsl  $LIBS"
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h.  */
18908
18909 /* Override any GCC internal prototype to avoid an error.
18910    Use char because int might match the return type of a GCC
18911    builtin and then its argument prototype would still apply.  */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 char gethostbyname ();
18916 int
18917 main ()
18918 {
18919 return gethostbyname ();
18920   ;
18921   return 0;
18922 }
18923 _ACEOF
18924 if ac_fn_c_try_link "$LINENO"; then :
18925   ac_cv_lib_nsl_gethostbyname=yes
18926 else
18927   ac_cv_lib_nsl_gethostbyname=no
18928 fi
18929 rm -f core conftest.err conftest.$ac_objext \
18930     conftest$ac_exeext conftest.$ac_ext
18931 LIBS=$ac_check_lib_save_LIBS
18932 fi
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18934 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18935 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18936   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18937 fi
18938
18939       if test $ac_cv_lib_nsl_gethostbyname = no; then
18940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18941 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18942 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18943   $as_echo_n "(cached) " >&6
18944 else
18945   ac_check_lib_save_LIBS=$LIBS
18946 LIBS="-lbsd  $LIBS"
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h.  */
18949
18950 /* Override any GCC internal prototype to avoid an error.
18951    Use char because int might match the return type of a GCC
18952    builtin and then its argument prototype would still apply.  */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 char gethostbyname ();
18957 int
18958 main ()
18959 {
18960 return gethostbyname ();
18961   ;
18962   return 0;
18963 }
18964 _ACEOF
18965 if ac_fn_c_try_link "$LINENO"; then :
18966   ac_cv_lib_bsd_gethostbyname=yes
18967 else
18968   ac_cv_lib_bsd_gethostbyname=no
18969 fi
18970 rm -f core conftest.err conftest.$ac_objext \
18971     conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18973 fi
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18975 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18976 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18977   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18978 fi
18979
18980       fi
18981     fi
18982
18983     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18984     # socket/setsockopt and other routines are undefined under SCO ODT
18985     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18986     # on later versions), says Simon Leinen: it contains gethostby*
18987     # variants that don't use the name server (or something).  -lsocket
18988     # must be given before -lnsl if both are needed.  We assume that
18989     # if connect needs -lnsl, so does gethostbyname.
18990     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18991 if test "x$ac_cv_func_connect" = xyes; then :
18992
18993 fi
18994
18995     if test $ac_cv_func_connect = no; then
18996       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18997 $as_echo_n "checking for connect in -lsocket... " >&6; }
18998 if ${ac_cv_lib_socket_connect+:} false; then :
18999   $as_echo_n "(cached) " >&6
19000 else
19001   ac_check_lib_save_LIBS=$LIBS
19002 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h.  */
19005
19006 /* Override any GCC internal prototype to avoid an error.
19007    Use char because int might match the return type of a GCC
19008    builtin and then its argument prototype would still apply.  */
19009 #ifdef __cplusplus
19010 extern "C"
19011 #endif
19012 char connect ();
19013 int
19014 main ()
19015 {
19016 return connect ();
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 if ac_fn_c_try_link "$LINENO"; then :
19022   ac_cv_lib_socket_connect=yes
19023 else
19024   ac_cv_lib_socket_connect=no
19025 fi
19026 rm -f core conftest.err conftest.$ac_objext \
19027     conftest$ac_exeext conftest.$ac_ext
19028 LIBS=$ac_check_lib_save_LIBS
19029 fi
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19031 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19032 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19033   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19034 fi
19035
19036     fi
19037
19038     # Guillermo Gomez says -lposix is necessary on A/UX.
19039     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19040 if test "x$ac_cv_func_remove" = xyes; then :
19041
19042 fi
19043
19044     if test $ac_cv_func_remove = no; then
19045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19046 $as_echo_n "checking for remove in -lposix... " >&6; }
19047 if ${ac_cv_lib_posix_remove+:} false; then :
19048   $as_echo_n "(cached) " >&6
19049 else
19050   ac_check_lib_save_LIBS=$LIBS
19051 LIBS="-lposix  $LIBS"
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h.  */
19054
19055 /* Override any GCC internal prototype to avoid an error.
19056    Use char because int might match the return type of a GCC
19057    builtin and then its argument prototype would still apply.  */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char remove ();
19062 int
19063 main ()
19064 {
19065 return remove ();
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 if ac_fn_c_try_link "$LINENO"; then :
19071   ac_cv_lib_posix_remove=yes
19072 else
19073   ac_cv_lib_posix_remove=no
19074 fi
19075 rm -f core conftest.err conftest.$ac_objext \
19076     conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19078 fi
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19080 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19081 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19082   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19083 fi
19084
19085     fi
19086
19087     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19088     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19089 if test "x$ac_cv_func_shmat" = xyes; then :
19090
19091 fi
19092
19093     if test $ac_cv_func_shmat = no; then
19094       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19095 $as_echo_n "checking for shmat in -lipc... " >&6; }
19096 if ${ac_cv_lib_ipc_shmat+:} false; then :
19097   $as_echo_n "(cached) " >&6
19098 else
19099   ac_check_lib_save_LIBS=$LIBS
19100 LIBS="-lipc  $LIBS"
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h.  */
19103
19104 /* Override any GCC internal prototype to avoid an error.
19105    Use char because int might match the return type of a GCC
19106    builtin and then its argument prototype would still apply.  */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char shmat ();
19111 int
19112 main ()
19113 {
19114 return shmat ();
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_link "$LINENO"; then :
19120   ac_cv_lib_ipc_shmat=yes
19121 else
19122   ac_cv_lib_ipc_shmat=no
19123 fi
19124 rm -f core conftest.err conftest.$ac_objext \
19125     conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19127 fi
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19129 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19130 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19131   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19132 fi
19133
19134     fi
19135   fi
19136
19137   # Check for libraries that X11R6 Xt/Xaw programs need.
19138   ac_save_LDFLAGS=$LDFLAGS
19139   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19140   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19141   # check for ICE first), but we must link in the order -lSM -lICE or
19142   # we get undefined symbols.  So assume we have SM if we have ICE.
19143   # These have to be linked with before -lX11, unlike the other
19144   # libraries we check for below, so use a different variable.
19145   # John Interrante, Karl Berry
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19147 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19148 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19149   $as_echo_n "(cached) " >&6
19150 else
19151   ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h.  */
19155
19156 /* Override any GCC internal prototype to avoid an error.
19157    Use char because int might match the return type of a GCC
19158    builtin and then its argument prototype would still apply.  */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char IceConnectionNumber ();
19163 int
19164 main ()
19165 {
19166 return IceConnectionNumber ();
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_link "$LINENO"; then :
19172   ac_cv_lib_ICE_IceConnectionNumber=yes
19173 else
19174   ac_cv_lib_ICE_IceConnectionNumber=no
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext \
19177     conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19179 fi
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19181 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19182 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19183   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19184 fi
19185
19186   LDFLAGS=$ac_save_LDFLAGS
19187
19188 fi
19189
19190
19191    groff_no_x=$no_x
19192    if test -z "$groff_no_x"; then
19193      OLDCFLAGS=$CFLAGS
19194      OLDLDFLAGS=$LDFLAGS
19195      OLDLIBS=$LIBS
19196      CFLAGS="$CFLAGS $X_CFLAGS"
19197      LDFLAGS="$LDFLAGS $X_LIBS"
19198      LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
19199
19200      LIBS="$LIBS -lXaw"
19201      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xaw library and header files" >&5
19202 $as_echo_n "checking for Xaw library and header files... " >&6; }
19203      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h.  */
19205
19206
19207
19208 #include <X11/Intrinsic.h>
19209 #include <X11/Xaw/Simple.h>
19210
19211
19212 int
19213 main ()
19214 {
19215
19216   ;
19217   return 0;
19218 }
19219
19220 _ACEOF
19221 if ac_fn_c_try_link "$LINENO"; then :
19222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223 $as_echo "yes" >&6; }
19224 else
19225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19226 $as_echo "no" >&6; }
19227         groff_no_x="yes"
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext \
19230     conftest$ac_exeext conftest.$ac_ext
19231
19232      LIBS="$LIBS -lXmu"
19233      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xmu library and header files" >&5
19234 $as_echo_n "checking for Xmu library and header files... " >&6; }
19235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h.  */
19237
19238
19239
19240 #include <X11/Intrinsic.h>
19241 #include <X11/Xmu/Converters.h>
19242
19243
19244 int
19245 main ()
19246 {
19247
19248   ;
19249   return 0;
19250 }
19251
19252 _ACEOF
19253 if ac_fn_c_try_link "$LINENO"; then :
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19256 else
19257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19259         groff_no_x="yes"
19260 fi
19261 rm -f core conftest.err conftest.$ac_objext \
19262     conftest$ac_exeext conftest.$ac_ext
19263
19264      CFLAGS=$OLDCFLAGS
19265      LDFLAGS=$OLDLDFLAGS
19266      LIBS=$OLDLIBS
19267    fi
19268
19269    if test "x$groff_no_x" = "xyes"; then
19270      { $as_echo "$as_me:${as_lineno-$LINENO}: gxditview and xtotroff won't be built" >&5
19271 $as_echo "$as_me: gxditview and xtotroff won't be built" >&6;}
19272    else
19273      XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
19274      XPROGDIRS="src/devices/xditview src/utils/xtotroff"
19275      XLIBDIRS="src/libs/libxutil"
19276    fi
19277
19278
19279
19280
19281
19282 # Check whether --with-appresdir was given.
19283 if test "${with_appresdir+set}" = set; then :
19284   withval=$with_appresdir;
19285 fi
19286
19287 if test -z "$groff_no_x"; then
19288      if test "x$with_appresdir" = "x"; then
19289        if test "x$prefix" = "xNONE"; then
19290          appresdir=$ac_default_prefix/lib/X11/app-defaults
19291        else
19292          appresdir=$prefix/lib/X11/app-defaults
19293        fi
19294      else
19295        appresdir=$with_appresdir
19296      fi
19297    fi
19298
19299 libprogramdir=$libdir/groff
19300
19301
19302 # Check whether --with-grofferdir was given.
19303 if test "${with_grofferdir+set}" = set; then :
19304   withval=$with_grofferdir;
19305 fi
19306
19307 if test "x$with_grofferdir" = "x"; then
19308     groffer_dir=$libprogramdir/groffer
19309   else
19310     groffer_dir=$with_grofferdir
19311   fi
19312
19313 glilypond_dir=$libprogramdir/glilypond
19314
19315 gpinyin_dir=$libprogramdir/gpinyin
19316
19317 grog_dir=$libprogramdir/grog
19318
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19320 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19321 if ${ac_cv_path_SED+:} false; then :
19322   $as_echo_n "(cached) " >&6
19323 else
19324             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19325      for ac_i in 1 2 3 4 5 6 7; do
19326        ac_script="$ac_script$as_nl$ac_script"
19327      done
19328      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19329      { ac_script=; unset ac_script;}
19330      if test -z "$SED"; then
19331   ac_path_SED_found=false
19332   # Loop through the user's path and test for each of PROGNAME-LIST
19333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19334 for as_dir in $PATH
19335 do
19336   IFS=$as_save_IFS
19337   test -z "$as_dir" && as_dir=.
19338     for ac_prog in sed gsed; do
19339     for ac_exec_ext in '' $ac_executable_extensions; do
19340       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19341       as_fn_executable_p "$ac_path_SED" || continue
19342 # Check for GNU ac_path_SED and select it if it is found.
19343   # Check for GNU $ac_path_SED
19344 case `"$ac_path_SED" --version 2>&1` in
19345 *GNU*)
19346   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19347 *)
19348   ac_count=0
19349   $as_echo_n 0123456789 >"conftest.in"
19350   while :
19351   do
19352     cat "conftest.in" "conftest.in" >"conftest.tmp"
19353     mv "conftest.tmp" "conftest.in"
19354     cp "conftest.in" "conftest.nl"
19355     $as_echo '' >> "conftest.nl"
19356     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19357     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19358     as_fn_arith $ac_count + 1 && ac_count=$as_val
19359     if test $ac_count -gt ${ac_path_SED_max-0}; then
19360       # Best one so far, save it but keep looking for a better one
19361       ac_cv_path_SED="$ac_path_SED"
19362       ac_path_SED_max=$ac_count
19363     fi
19364     # 10*(2^10) chars as input seems more than enough
19365     test $ac_count -gt 10 && break
19366   done
19367   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19368 esac
19369
19370       $ac_path_SED_found && break 3
19371     done
19372   done
19373   done
19374 IFS=$as_save_IFS
19375   if test -z "$ac_cv_path_SED"; then
19376     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19377   fi
19378 else
19379   ac_cv_path_SED=$SED
19380 fi
19381
19382 fi
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19384 $as_echo "$ac_cv_path_SED" >&6; }
19385  SED="$ac_cv_path_SED"
19386   rm -f conftest.sed
19387
19388 PERLVERSION=v5.6.1
19389    # Extract the first word of "perl", so it can be a program name with args.
19390 set dummy perl; ac_word=$2
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19392 $as_echo_n "checking for $ac_word... " >&6; }
19393 if ${ac_cv_path_PERL+:} false; then :
19394   $as_echo_n "(cached) " >&6
19395 else
19396   case $PERL in
19397   [\\/]* | ?:[\\/]*)
19398   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19399   ;;
19400   *)
19401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19402 for as_dir in $PATH
19403 do
19404   IFS=$as_save_IFS
19405   test -z "$as_dir" && as_dir=.
19406     for ac_exec_ext in '' $ac_executable_extensions; do
19407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19408     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19410     break 2
19411   fi
19412 done
19413   done
19414 IFS=$as_save_IFS
19415
19416   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
19417   ;;
19418 esac
19419 fi
19420 PERL=$ac_cv_path_PERL
19421 if test -n "$PERL"; then
19422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19423 $as_echo "$PERL" >&6; }
19424 else
19425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19426 $as_echo "no" >&6; }
19427 fi
19428
19429
19430    if test "x$PERL" = "xno"; then
19431      as_fn_error 1 "perl binary not found" "$LINENO" 5
19432    fi
19433
19434
19435
19436
19437     if test -n "$PERL"; then :
19438
19439         ax_perl_version="$PERLVERSION"
19440
19441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
19442 $as_echo_n "checking for perl version... " >&6; }
19443
19444         perl_version=`$PERL --version 2>&1 \
19445           | $SED -n -e '/This is perl/b inspect
19446 b
19447 : inspect
19448 s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
19449
19450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
19451 $as_echo "$perl_version" >&6; }
19452
19453         PERL_VERSION=$perl_version
19454
19455
19456
19457
19458
19459   # Used to indicate true or false condition
19460   ax_compare_version=false
19461
19462   # Convert the two version strings to be compared into a format that
19463   # allows a simple string comparison.  The end result is that a version
19464   # string of the form 1.12.5-r617 will be converted to the form
19465   # 0001001200050617.  In other words, each number is zero padded to four
19466   # digits, and non digits are removed.
19467
19468   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19469                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19470                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19471                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19472                      -e 's/[^0-9]//g'`
19473
19474
19475   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19476                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19477                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19478                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19479                      -e 's/[^0-9]//g'`
19480
19481
19482     ax_compare_version=`echo "x$ax_compare_version_A
19483 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
19484
19485
19486
19487     if test "$ax_compare_version" = "true" ; then
19488
19489             :
19490             true
19491
19492     else
19493             :
19494             \
19495      as_fn_error 1 "perl version is too old" "$LINENO" 5
19496
19497   fi
19498
19499
19500 else
19501
19502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
19503 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
19504         \
19505      as_fn_error 1 "perl version is too old" "$LINENO" 5
19506
19507 fi
19508
19509 if test -z "$PSPRINT"; then
19510      for ac_prog in lpr
19511 do
19512   # Extract the first word of "$ac_prog", so it can be a program name with args.
19513 set dummy $ac_prog; ac_word=$2
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19515 $as_echo_n "checking for $ac_word... " >&6; }
19516 if ${ac_cv_prog_LPR+:} false; then :
19517   $as_echo_n "(cached) " >&6
19518 else
19519   if test -n "$LPR"; then
19520   ac_cv_prog_LPR="$LPR" # Let the user override the test.
19521 else
19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523 for as_dir in $PATH
19524 do
19525   IFS=$as_save_IFS
19526   test -z "$as_dir" && as_dir=.
19527     for ac_exec_ext in '' $ac_executable_extensions; do
19528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19529     ac_cv_prog_LPR="$ac_prog"
19530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19531     break 2
19532   fi
19533 done
19534   done
19535 IFS=$as_save_IFS
19536
19537 fi
19538 fi
19539 LPR=$ac_cv_prog_LPR
19540 if test -n "$LPR"; then
19541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
19542 $as_echo "$LPR" >&6; }
19543 else
19544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19545 $as_echo "no" >&6; }
19546 fi
19547
19548
19549   test -n "$LPR" && break
19550 done
19551
19552      for ac_prog in lp
19553 do
19554   # Extract the first word of "$ac_prog", so it can be a program name with args.
19555 set dummy $ac_prog; ac_word=$2
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19557 $as_echo_n "checking for $ac_word... " >&6; }
19558 if ${ac_cv_prog_LP+:} false; then :
19559   $as_echo_n "(cached) " >&6
19560 else
19561   if test -n "$LP"; then
19562   ac_cv_prog_LP="$LP" # Let the user override the test.
19563 else
19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19566 do
19567   IFS=$as_save_IFS
19568   test -z "$as_dir" && as_dir=.
19569     for ac_exec_ext in '' $ac_executable_extensions; do
19570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19571     ac_cv_prog_LP="$ac_prog"
19572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19573     break 2
19574   fi
19575 done
19576   done
19577 IFS=$as_save_IFS
19578
19579 fi
19580 fi
19581 LP=$ac_cv_prog_LP
19582 if test -n "$LP"; then
19583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LP" >&5
19584 $as_echo "$LP" >&6; }
19585 else
19586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 $as_echo "no" >&6; }
19588 fi
19589
19590
19591   test -n "$LP" && break
19592 done
19593
19594      if test -n "$LPR" && test -n "$LP"; then
19595        # HP-UX provides an lpr command that emulates lpr using lp,
19596        # but it doesn't have lpq; in this case we want to use lp
19597        # rather than lpr.
19598        for ac_prog in lpq
19599 do
19600   # Extract the first word of "$ac_prog", so it can be a program name with args.
19601 set dummy $ac_prog; ac_word=$2
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19603 $as_echo_n "checking for $ac_word... " >&6; }
19604 if ${ac_cv_prog_LPQ+:} false; then :
19605   $as_echo_n "(cached) " >&6
19606 else
19607   if test -n "$LPQ"; then
19608   ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
19609 else
19610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19611 for as_dir in $PATH
19612 do
19613   IFS=$as_save_IFS
19614   test -z "$as_dir" && as_dir=.
19615     for ac_exec_ext in '' $ac_executable_extensions; do
19616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19617     ac_cv_prog_LPQ="$ac_prog"
19618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19619     break 2
19620   fi
19621 done
19622   done
19623 IFS=$as_save_IFS
19624
19625 fi
19626 fi
19627 LPQ=$ac_cv_prog_LPQ
19628 if test -n "$LPQ"; then
19629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPQ" >&5
19630 $as_echo "$LPQ" >&6; }
19631 else
19632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19633 $as_echo "no" >&6; }
19634 fi
19635
19636
19637   test -n "$LPQ" && break
19638 done
19639
19640        test -n "$LPQ" || LPR=
19641      fi
19642      if test -n "$LPR"; then
19643        PSPRINT="$LPR"
19644      elif test -n "$LP"; then
19645        PSPRINT="$LP"
19646      fi
19647    fi
19648
19649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing PostScript files" >&5
19650 $as_echo_n "checking for command to use for printing PostScript files... " >&6; }
19651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSPRINT" >&5
19652 $as_echo "$PSPRINT" >&6; }
19653
19654    # Figure out DVIPRINT from PSPRINT.
19655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing dvi files" >&5
19656 $as_echo_n "checking for command to use for printing dvi files... " >&6; }
19657    if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
19658      if test "x$PSPRINT" = "xlpr"; then
19659        DVIPRINT="lpr -d"
19660      else
19661        DVIPRINT="$PSPRINT"
19662      fi
19663    fi
19664
19665    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPRINT" >&5
19666 $as_echo "$DVIPRINT" >&6; }
19667 # GROFF_REFER
19668 referdir=$libprogramdir/refer
19669
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19671 $as_echo_n "checking for egrep... " >&6; }
19672 if ${ac_cv_path_EGREP+:} false; then :
19673   $as_echo_n "(cached) " >&6
19674 else
19675   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
19676    then ac_cv_path_EGREP="$GREP -E"
19677    else
19678      if test -z "$EGREP"; then
19679   ac_path_EGREP_found=false
19680   # Loop through the user's path and test for each of PROGNAME-LIST
19681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19683 do
19684   IFS=$as_save_IFS
19685   test -z "$as_dir" && as_dir=.
19686     for ac_prog in egrep; do
19687     for ac_exec_ext in '' $ac_executable_extensions; do
19688       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
19689       as_fn_executable_p "$ac_path_EGREP" || continue
19690 # Check for GNU ac_path_EGREP and select it if it is found.
19691   # Check for GNU $ac_path_EGREP
19692 case `"$ac_path_EGREP" --version 2>&1` in
19693 *GNU*)
19694   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19695 *)
19696   ac_count=0
19697   $as_echo_n 0123456789 >"conftest.in"
19698   while :
19699   do
19700     cat "conftest.in" "conftest.in" >"conftest.tmp"
19701     mv "conftest.tmp" "conftest.in"
19702     cp "conftest.in" "conftest.nl"
19703     $as_echo 'EGREP' >> "conftest.nl"
19704     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19705     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19706     as_fn_arith $ac_count + 1 && ac_count=$as_val
19707     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19708       # Best one so far, save it but keep looking for a better one
19709       ac_cv_path_EGREP="$ac_path_EGREP"
19710       ac_path_EGREP_max=$ac_count
19711     fi
19712     # 10*(2^10) chars as input seems more than enough
19713     test $ac_count -gt 10 && break
19714   done
19715   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19716 esac
19717
19718       $ac_path_EGREP_found && break 3
19719     done
19720   done
19721   done
19722 IFS=$as_save_IFS
19723   if test -z "$ac_cv_path_EGREP"; then
19724     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19725   fi
19726 else
19727   ac_cv_path_EGREP=$EGREP
19728 fi
19729
19730    fi
19731 fi
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19733 $as_echo "$ac_cv_path_EGREP" >&6; }
19734  EGREP="$ac_cv_path_EGREP"
19735
19736
19737 for ac_prog in byacc 'bison -y' yacc
19738 do
19739   # Extract the first word of "$ac_prog", so it can be a program name with args.
19740 set dummy $ac_prog; ac_word=$2
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19742 $as_echo_n "checking for $ac_word... " >&6; }
19743 if ${ac_cv_prog_YACC+:} false; then :
19744   $as_echo_n "(cached) " >&6
19745 else
19746   if test -n "$YACC"; then
19747   ac_cv_prog_YACC="$YACC" # Let the user override the test.
19748 else
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19751 do
19752   IFS=$as_save_IFS
19753   test -z "$as_dir" && as_dir=.
19754     for ac_exec_ext in '' $ac_executable_extensions; do
19755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756     ac_cv_prog_YACC="$ac_prog"
19757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19758     break 2
19759   fi
19760 done
19761   done
19762 IFS=$as_save_IFS
19763
19764 fi
19765 fi
19766 YACC=$ac_cv_prog_YACC
19767 if test -n "$YACC"; then
19768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19769 $as_echo "$YACC" >&6; }
19770 else
19771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19772 $as_echo "no" >&6; }
19773 fi
19774
19775
19776   test -n "$YACC" && break
19777 done
19778 test -n "$YACC" || YACC="missing"
19779
19780   if test "x$YACC" = "xmissing" -a -d ${srcdir}/.git; then
19781     as_fn_error 1 "Could not find 'yacc' or 'bison'" "$LINENO" 5
19782   fi
19783
19784
19785 # Check whether --with-doc was given.
19786 if test "${with_doc+set}" = set; then :
19787   withval=$with_doc; doc="$withval"
19788 else
19789   doc=yes
19790 fi
19791
19792   test "x$doc" = xno && doc=''
19793   if test "x$doc" = xyes; then
19794     doc_dist_target_ok=yes
19795     docadd_html=yes
19796     docadd_info=yes
19797     docadd_other=yes
19798     docadd_pdf=yes
19799     docadd_examples=yes
19800   else
19801     # Don't use case/esac, verify input.
19802     doc_dist_target_ok=no
19803     docadd_html=no
19804     docadd_info=no
19805     docadd_other=no
19806     docadd_pdf=no
19807     docadd_examples=no
19808     OFS=$IFS
19809     IFS=','
19810     set -- $doc
19811     IFS=$OFS
19812     for i
19813     do
19814       test "x$i" = xhtml     && { docadd_html=yes; continue; }
19815       test "x$i" = xinfo     && { docadd_info=yes; continue; }
19816       test "x$i" = xother    && { docadd_other=yes; continue; }
19817       test "x$i" = xpdf      && { docadd_pdf=yes; continue; }
19818       test "x$i" = xexamples && { docadd_examples=yes; continue; }
19819       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid '--with-doc' argument: $i" >&5
19820 $as_echo "$as_me: WARNING: Invalid '--with-doc' argument: $i" >&2;}
19821     done
19822   fi
19823   if test $docadd_html = yes; then
19824     make_install_shipped_htmldoc=install_shipped_htmldoc
19825     make_uninstall_shipped_htmldoc=uninstall_shipped_htmldoc
19826   else
19827     make_install_shipped_htmldoc=
19828     make_uninstall_shipped_htmldoc=
19829   fi
19830   if test $docadd_other = yes; then
19831     make_otherdoc=otherdoc
19832     make_install_otherdoc=install_otherdoc
19833     make_uninstall_otherdoc=uninstall_otherdoc
19834   else
19835     make_otherdoc=
19836     make_install_otherdoc=
19837     make_uninstall_otherdoc=
19838   fi
19839   if test $docadd_examples = yes; then
19840     make_examples=examples
19841     make_install_examples=install_examples
19842     make_uninstall_examples=uninstall_examples
19843   else
19844     make_examples=
19845     make_install_examples=
19846     make_uninstall_examples=
19847   fi
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857 # By default automake will set MAKEINFO to MAKEINFO = ${SHELL} <top
19858   # src dir>/build-aux/missing makeinfo.As we need a more precise
19859   # check of makeinfo version, we don't use it.
19860   MAKEINFO=
19861    if test $docadd_info = yes; then
19862      missing=
19863      # Extract the first word of "makeinfo", so it can be a program name with args.
19864 set dummy makeinfo; ac_word=$2
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19866 $as_echo_n "checking for $ac_word... " >&6; }
19867 if ${ac_cv_prog_MAKEINFO+:} false; then :
19868   $as_echo_n "(cached) " >&6
19869 else
19870   if test -n "$MAKEINFO"; then
19871   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
19872 else
19873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874 for as_dir in $PATH
19875 do
19876   IFS=$as_save_IFS
19877   test -z "$as_dir" && as_dir=.
19878     for ac_exec_ext in '' $ac_executable_extensions; do
19879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880     ac_cv_prog_MAKEINFO="makeinfo"
19881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19882     break 2
19883   fi
19884 done
19885   done
19886 IFS=$as_save_IFS
19887
19888 fi
19889 fi
19890 MAKEINFO=$ac_cv_prog_MAKEINFO
19891 if test -n "$MAKEINFO"; then
19892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
19893 $as_echo "$MAKEINFO" >&6; }
19894 else
19895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896 $as_echo "no" >&6; }
19897 fi
19898
19899
19900      if test -z "$MAKEINFO"; then
19901        missing="'makeinfo' is missing."
19902      else
19903        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makeinfo version" >&5
19904 $as_echo_n "checking for makeinfo version... " >&6; }
19905        # We need an additional level of quoting to make sed's regexps work.
19906        makeinfo_version=`$MAKEINFO --version 2>&1 \
19907         | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
19908        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $makeinfo_version" >&5
19909 $as_echo "$makeinfo_version" >&6; }
19910        # Consider only the first two numbers in version number string.
19911        makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
19912        makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
19913        makeinfo_version_numeric=`
19914          expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
19915        if test $makeinfo_version_numeric -lt 4008; then
19916          missing="'makeinfo' is too old."
19917        fi
19918      fi
19919
19920      if test -n "$missing"; then
19921        infofile=doc/groff.info
19922        test -f ${infofile} || infofile=${srcdir}/${infofile}
19923        if test ! -f ${infofile} \
19924         || test ${srcdir}/doc/groff.texi -nt ${infofile}; then
19925          as_fn_error $? "$missing
19926 Get the 'texinfo' package version 4.8 or newer." "$LINENO" 5
19927        else
19928          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $missing
19929 Get the 'texinfo' package version 4.8 or newer if you want to convert
19930 'groff.texi' into a PDF or HTML document." >&5
19931 $as_echo "$as_me: WARNING: $missing
19932 Get the 'texinfo' package version 4.8 or newer if you want to convert
19933 'groff.texi' into a PDF or HTML document." >&2;}
19934        fi
19935      fi
19936
19937      make_infodoc=infodoc
19938      make_install_infodoc=install_infodoc
19939      make_uninstall_infodoc=uninstall_infodoc
19940    else
19941      make_infodoc=
19942      make_install_infodoc=
19943      make_uninstall_infodoc=
19944      MAKEINFO=
19945    fi
19946
19947
19948
19949
19950
19951 # Extract the first word of "texi2dvi", so it can be a program name with args.
19952 set dummy texi2dvi; ac_word=$2
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19954 $as_echo_n "checking for $ac_word... " >&6; }
19955 if ${ac_cv_prog_PROG_TEXI2DVI+:} false; then :
19956   $as_echo_n "(cached) " >&6
19957 else
19958   if test -n "$PROG_TEXI2DVI"; then
19959   ac_cv_prog_PROG_TEXI2DVI="$PROG_TEXI2DVI" # Let the user override the test.
19960 else
19961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19963 do
19964   IFS=$as_save_IFS
19965   test -z "$as_dir" && as_dir=.
19966     for ac_exec_ext in '' $ac_executable_extensions; do
19967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19968     ac_cv_prog_PROG_TEXI2DVI="found"
19969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19970     break 2
19971   fi
19972 done
19973   done
19974 IFS=$as_save_IFS
19975
19976   test -z "$ac_cv_prog_PROG_TEXI2DVI" && ac_cv_prog_PROG_TEXI2DVI="missing"
19977 fi
19978 fi
19979 PROG_TEXI2DVI=$ac_cv_prog_PROG_TEXI2DVI
19980 if test -n "$PROG_TEXI2DVI"; then
19981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TEXI2DVI" >&5
19982 $as_echo "$PROG_TEXI2DVI" >&6; }
19983 else
19984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985 $as_echo "no" >&6; }
19986 fi
19987
19988
19989    if test "x$PROG_TEXI2DVI" = "xfound"; then
19990       groff_have_texi2dvi=yes;
19991    else
19992       groff_have_texi2dvi=no;
19993    fi
19994
19995 if test -n "$ac_tool_prefix"; then
19996   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19999 $as_echo_n "checking for $ac_word... " >&6; }
20000 if ${ac_cv_prog_RANLIB+:} false; then :
20001   $as_echo_n "(cached) " >&6
20002 else
20003   if test -n "$RANLIB"; then
20004   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20005 else
20006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20008 do
20009   IFS=$as_save_IFS
20010   test -z "$as_dir" && as_dir=.
20011     for ac_exec_ext in '' $ac_executable_extensions; do
20012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20013     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20015     break 2
20016   fi
20017 done
20018   done
20019 IFS=$as_save_IFS
20020
20021 fi
20022 fi
20023 RANLIB=$ac_cv_prog_RANLIB
20024 if test -n "$RANLIB"; then
20025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20026 $as_echo "$RANLIB" >&6; }
20027 else
20028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20030 fi
20031
20032
20033 fi
20034 if test -z "$ac_cv_prog_RANLIB"; then
20035   ac_ct_RANLIB=$RANLIB
20036   # Extract the first word of "ranlib", so it can be a program name with args.
20037 set dummy ranlib; ac_word=$2
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20039 $as_echo_n "checking for $ac_word... " >&6; }
20040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
20041   $as_echo_n "(cached) " >&6
20042 else
20043   if test -n "$ac_ct_RANLIB"; then
20044   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20045 else
20046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20047 for as_dir in $PATH
20048 do
20049   IFS=$as_save_IFS
20050   test -z "$as_dir" && as_dir=.
20051     for ac_exec_ext in '' $ac_executable_extensions; do
20052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20053     ac_cv_prog_ac_ct_RANLIB="ranlib"
20054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20055     break 2
20056   fi
20057 done
20058   done
20059 IFS=$as_save_IFS
20060
20061 fi
20062 fi
20063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20064 if test -n "$ac_ct_RANLIB"; then
20065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20066 $as_echo "$ac_ct_RANLIB" >&6; }
20067 else
20068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20069 $as_echo "no" >&6; }
20070 fi
20071
20072   if test "x$ac_ct_RANLIB" = x; then
20073     RANLIB=":"
20074   else
20075     case $cross_compiling:$ac_tool_warned in
20076 yes:)
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20079 ac_tool_warned=yes ;;
20080 esac
20081     RANLIB=$ac_ct_RANLIB
20082   fi
20083 else
20084   RANLIB="$ac_cv_prog_RANLIB"
20085 fi
20086
20087
20088    ac_dir=`cd $ac_aux_dir; pwd`
20089    ac_install_sh="$ac_dir/install-sh -c"
20090 if test $docadd_info = yes; then
20091      for ac_prog in install-info
20092 do
20093   # Extract the first word of "$ac_prog", so it can be a program name with args.
20094 set dummy $ac_prog; ac_word=$2
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20096 $as_echo_n "checking for $ac_word... " >&6; }
20097 if ${ac_cv_prog_INSTALL_INFO+:} false; then :
20098   $as_echo_n "(cached) " >&6
20099 else
20100   if test -n "$INSTALL_INFO"; then
20101   ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
20102 else
20103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104 for as_dir in $PATH
20105 do
20106   IFS=$as_save_IFS
20107   test -z "$as_dir" && as_dir=.
20108     for ac_exec_ext in '' $ac_executable_extensions; do
20109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20110     ac_cv_prog_INSTALL_INFO="$ac_prog"
20111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20112     break 2
20113   fi
20114 done
20115   done
20116 IFS=$as_save_IFS
20117
20118 fi
20119 fi
20120 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
20121 if test -n "$INSTALL_INFO"; then
20122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
20123 $as_echo "$INSTALL_INFO" >&6; }
20124 else
20125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20126 $as_echo "no" >&6; }
20127 fi
20128
20129
20130   test -n "$INSTALL_INFO" && break
20131 done
20132 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
20133
20134    fi
20135
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20137 $as_echo_n "checking whether ln -s works... " >&6; }
20138 LN_S=$as_ln_s
20139 if test "$LN_S" = "ln -s"; then
20140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20141 $as_echo "yes" >&6; }
20142 else
20143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20144 $as_echo "no, using $LN_S" >&6; }
20145 fi
20146
20147
20148 # Extract the first word of "xpmtoppm", so it can be a program name with args.
20149 set dummy xpmtoppm; ac_word=$2
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20151 $as_echo_n "checking for $ac_word... " >&6; }
20152 if ${ac_cv_prog_XPMTOPPM+:} false; then :
20153   $as_echo_n "(cached) " >&6
20154 else
20155   if test -n "$XPMTOPPM"; then
20156   ac_cv_prog_XPMTOPPM="$XPMTOPPM" # Let the user override the test.
20157 else
20158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20159 for as_dir in $PATH
20160 do
20161   IFS=$as_save_IFS
20162   test -z "$as_dir" && as_dir=.
20163     for ac_exec_ext in '' $ac_executable_extensions; do
20164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20165     ac_cv_prog_XPMTOPPM="found"
20166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20167     break 2
20168   fi
20169 done
20170   done
20171 IFS=$as_save_IFS
20172
20173   test -z "$ac_cv_prog_XPMTOPPM" && ac_cv_prog_XPMTOPPM="missing"
20174 fi
20175 fi
20176 XPMTOPPM=$ac_cv_prog_XPMTOPPM
20177 if test -n "$XPMTOPPM"; then
20178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPMTOPPM" >&5
20179 $as_echo "$XPMTOPPM" >&6; }
20180 else
20181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182 $as_echo "no" >&6; }
20183 fi
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20194         if test -n "$ac_tool_prefix"; then
20195   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20198 $as_echo_n "checking for $ac_word... " >&6; }
20199 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20200   $as_echo_n "(cached) " >&6
20201 else
20202   case $PKG_CONFIG in
20203   [\\/]* | ?:[\\/]*)
20204   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20205   ;;
20206   *)
20207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20208 for as_dir in $PATH
20209 do
20210   IFS=$as_save_IFS
20211   test -z "$as_dir" && as_dir=.
20212     for ac_exec_ext in '' $ac_executable_extensions; do
20213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20214     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20216     break 2
20217   fi
20218 done
20219   done
20220 IFS=$as_save_IFS
20221
20222   ;;
20223 esac
20224 fi
20225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20226 if test -n "$PKG_CONFIG"; then
20227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20228 $as_echo "$PKG_CONFIG" >&6; }
20229 else
20230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20231 $as_echo "no" >&6; }
20232 fi
20233
20234
20235 fi
20236 if test -z "$ac_cv_path_PKG_CONFIG"; then
20237   ac_pt_PKG_CONFIG=$PKG_CONFIG
20238   # Extract the first word of "pkg-config", so it can be a program name with args.
20239 set dummy pkg-config; ac_word=$2
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20241 $as_echo_n "checking for $ac_word... " >&6; }
20242 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20243   $as_echo_n "(cached) " >&6
20244 else
20245   case $ac_pt_PKG_CONFIG in
20246   [\\/]* | ?:[\\/]*)
20247   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20248   ;;
20249   *)
20250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20251 for as_dir in $PATH
20252 do
20253   IFS=$as_save_IFS
20254   test -z "$as_dir" && as_dir=.
20255     for ac_exec_ext in '' $ac_executable_extensions; do
20256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20257     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20259     break 2
20260   fi
20261 done
20262   done
20263 IFS=$as_save_IFS
20264
20265   ;;
20266 esac
20267 fi
20268 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20269 if test -n "$ac_pt_PKG_CONFIG"; then
20270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20271 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20272 else
20273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20274 $as_echo "no" >&6; }
20275 fi
20276
20277   if test "x$ac_pt_PKG_CONFIG" = x; then
20278     PKG_CONFIG=""
20279   else
20280     case $cross_compiling:$ac_tool_warned in
20281 yes:)
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20284 ac_tool_warned=yes ;;
20285 esac
20286     PKG_CONFIG=$ac_pt_PKG_CONFIG
20287   fi
20288 else
20289   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20290 fi
20291
20292 fi
20293 if test -n "$PKG_CONFIG"; then
20294         _pkg_min_version=0.9.0
20295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20296 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20297         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20298                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20299 $as_echo "yes" >&6; }
20300         else
20301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302 $as_echo "no" >&6; }
20303                 PKG_CONFIG=""
20304         fi
20305 fi
20306
20307 # Check whether --with-uchardet was given.
20308 if test "${with_uchardet+set}" = set; then :
20309   withval=$with_uchardet;
20310 fi
20311
20312    if test "x$with_uchardet" != "xno"; then :
20313
20314 pkg_failed=no
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCHARDET" >&5
20316 $as_echo_n "checking for UCHARDET... " >&6; }
20317
20318 if test -n "$UCHARDET_CFLAGS"; then
20319     pkg_cv_UCHARDET_CFLAGS="$UCHARDET_CFLAGS"
20320  elif test -n "$PKG_CONFIG"; then
20321     if test -n "$PKG_CONFIG" && \
20322     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uchardet >= 0.0.1\""; } >&5
20323   ($PKG_CONFIG --exists --print-errors "uchardet >= 0.0.1") 2>&5
20324   ac_status=$?
20325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326   test $ac_status = 0; }; then
20327   pkg_cv_UCHARDET_CFLAGS=`$PKG_CONFIG --cflags "uchardet >= 0.0.1" 2>/dev/null`
20328                       test "x$?" != "x0" && pkg_failed=yes
20329 else
20330   pkg_failed=yes
20331 fi
20332  else
20333     pkg_failed=untried
20334 fi
20335 if test -n "$UCHARDET_LIBS"; then
20336     pkg_cv_UCHARDET_LIBS="$UCHARDET_LIBS"
20337  elif test -n "$PKG_CONFIG"; then
20338     if test -n "$PKG_CONFIG" && \
20339     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uchardet >= 0.0.1\""; } >&5
20340   ($PKG_CONFIG --exists --print-errors "uchardet >= 0.0.1") 2>&5
20341   ac_status=$?
20342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20343   test $ac_status = 0; }; then
20344   pkg_cv_UCHARDET_LIBS=`$PKG_CONFIG --libs "uchardet >= 0.0.1" 2>/dev/null`
20345                       test "x$?" != "x0" && pkg_failed=yes
20346 else
20347   pkg_failed=yes
20348 fi
20349  else
20350     pkg_failed=untried
20351 fi
20352
20353
20354
20355 if test $pkg_failed = yes; then
20356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20357 $as_echo "no" >&6; }
20358
20359 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20360         _pkg_short_errors_supported=yes
20361 else
20362         _pkg_short_errors_supported=no
20363 fi
20364         if test $_pkg_short_errors_supported = yes; then
20365                 UCHARDET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uchardet >= 0.0.1" 2>&1`
20366         else
20367                 UCHARDET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uchardet >= 0.0.1" 2>&1`
20368         fi
20369         # Put the nasty error message in config.log where it belongs
20370         echo "$UCHARDET_PKG_ERRORS" >&5
20371
20372         if test "x$with_uchardet" = "xyes"; then
20373                                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20375 as_fn_error $? "Could not found uchardet library
20376 See \`config.log' for more details" "$LINENO" 5; }
20377                              else
20378                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uchardet library not found, preconv \
20379 might not work properly" >&5
20380 $as_echo "$as_me: WARNING: uchardet library not found, preconv \
20381 might not work properly" >&2;}
20382                              fi
20383                              groff_have_uchardet=no
20384 elif test $pkg_failed = untried; then
20385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386 $as_echo "no" >&6; }
20387         if test "x$with_uchardet" = "xyes"; then
20388                                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20390 as_fn_error $? "Could not found uchardet library
20391 See \`config.log' for more details" "$LINENO" 5; }
20392                              else
20393                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uchardet library not found, preconv \
20394 might not work properly" >&5
20395 $as_echo "$as_me: WARNING: uchardet library not found, preconv \
20396 might not work properly" >&2;}
20397                              fi
20398                              groff_have_uchardet=no
20399 else
20400         UCHARDET_CFLAGS=$pkg_cv_UCHARDET_CFLAGS
20401         UCHARDET_LIBS=$pkg_cv_UCHARDET_LIBS
20402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20403 $as_echo "yes" >&6; }
20404
20405 $as_echo "#define HAVE_UCHARDET 1" >>confdefs.h
20406
20407                              groff_have_uchardet=yes
20408 fi
20409 else
20410   groff_have_uchardet=no
20411
20412 fi
20413 # Extract the first word of "pdfinfo", so it can be a program name with args.
20414 set dummy pdfinfo; ac_word=$2
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20416 $as_echo_n "checking for $ac_word... " >&6; }
20417 if ${ac_cv_prog_PDFINFO+:} false; then :
20418   $as_echo_n "(cached) " >&6
20419 else
20420   if test -n "$PDFINFO"; then
20421   ac_cv_prog_PDFINFO="$PDFINFO" # Let the user override the test.
20422 else
20423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20424 for as_dir in $PATH
20425 do
20426   IFS=$as_save_IFS
20427   test -z "$as_dir" && as_dir=.
20428     for ac_exec_ext in '' $ac_executable_extensions; do
20429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20430     ac_cv_prog_PDFINFO="found"
20431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20432     break 2
20433   fi
20434 done
20435   done
20436 IFS=$as_save_IFS
20437
20438   test -z "$ac_cv_prog_PDFINFO" && ac_cv_prog_PDFINFO="missing"
20439 fi
20440 fi
20441 PDFINFO=$ac_cv_prog_PDFINFO
20442 if test -n "$PDFINFO"; then
20443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFINFO" >&5
20444 $as_echo "$PDFINFO" >&6; }
20445 else
20446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20447 $as_echo "no" >&6; }
20448 fi
20449
20450
20451    # Extract the first word of "pdffonts", so it can be a program name with args.
20452 set dummy pdffonts; ac_word=$2
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20454 $as_echo_n "checking for $ac_word... " >&6; }
20455 if ${ac_cv_prog_PDFFONTS+:} false; then :
20456   $as_echo_n "(cached) " >&6
20457 else
20458   if test -n "$PDFFONTS"; then
20459   ac_cv_prog_PDFFONTS="$PDFFONTS" # Let the user override the test.
20460 else
20461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20462 for as_dir in $PATH
20463 do
20464   IFS=$as_save_IFS
20465   test -z "$as_dir" && as_dir=.
20466     for ac_exec_ext in '' $ac_executable_extensions; do
20467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20468     ac_cv_prog_PDFFONTS="found"
20469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20470     break 2
20471   fi
20472 done
20473   done
20474 IFS=$as_save_IFS
20475
20476   test -z "$ac_cv_prog_PDFFONTS" && ac_cv_prog_PDFFONTS="missing"
20477 fi
20478 fi
20479 PDFFONTS=$ac_cv_prog_PDFFONTS
20480 if test -n "$PDFFONTS"; then
20481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFFONTS" >&5
20482 $as_echo "$PDFFONTS" >&6; }
20483 else
20484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20485 $as_echo "no" >&6; }
20486 fi
20487
20488
20489    # Extract the first word of "pdfimages", so it can be a program name with args.
20490 set dummy pdfimages; ac_word=$2
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20492 $as_echo_n "checking for $ac_word... " >&6; }
20493 if ${ac_cv_prog_PDFIMAGES+:} false; then :
20494   $as_echo_n "(cached) " >&6
20495 else
20496   if test -n "$PDFIMAGES"; then
20497   ac_cv_prog_PDFIMAGES="$PDFIMAGES" # Let the user override the test.
20498 else
20499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20500 for as_dir in $PATH
20501 do
20502   IFS=$as_save_IFS
20503   test -z "$as_dir" && as_dir=.
20504     for ac_exec_ext in '' $ac_executable_extensions; do
20505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20506     ac_cv_prog_PDFIMAGES="found"
20507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20508     break 2
20509   fi
20510 done
20511   done
20512 IFS=$as_save_IFS
20513
20514   test -z "$ac_cv_prog_PDFIMAGES" && ac_cv_prog_PDFIMAGES="missing"
20515 fi
20516 fi
20517 PDFIMAGES=$ac_cv_prog_PDFIMAGES
20518 if test -n "$PDFIMAGES"; then
20519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFIMAGES" >&5
20520 $as_echo "$PDFIMAGES" >&6; }
20521 else
20522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20524 fi
20525
20526
20527    if test "x$PDFINFO" = "xfound" -a "x$PDFFONTS" = "xfound" -a "x$PDFIMAGES" = "xfound"; then
20528       groff_have_pdftools=yes;
20529    else
20530       groff_have_pdftools=no;
20531    fi
20532
20533
20534 # use a dummy substitution if no csh hack is necessary to avoid errors
20535 # with non-GNU sed programs
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csh hash hack" >&5
20537 $as_echo_n "checking for csh hash hack... " >&6; }
20538
20539 cat <<EOF >conftest.sh
20540 #! /bin/sh
20541 true || exit 0
20542 export PATH || exit 0
20543 exit 1
20544 EOF
20545
20546    chmod +x conftest.sh
20547    if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
20548      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20549 $as_echo "yes" >&6; }
20550      SH_SCRIPT_SED_CMD='1s/.*/:/'
20551    else
20552      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20553 $as_echo "no" >&6; }
20554      SH_SCRIPT_SED_CMD='1s/a/a/'
20555    fi
20556    rm -f conftest.sh
20557
20558
20559 # checks for headers
20560 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
20561                   string.h strings.h math.h sys/time.h direct.h process.h
20562 do :
20563   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20566   cat >>confdefs.h <<_ACEOF
20567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20568 _ACEOF
20569
20570 fi
20571
20572 done
20573
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISC 3.x or 4.x" >&5
20575 $as_echo_n "checking for ISC 3.x or 4.x... " >&6; }
20576    if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
20577    then
20578      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20579 $as_echo "yes" >&6; }
20580
20581 $as_echo "#define _SYSV3 1" >>confdefs.h
20582
20583    else
20584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20585 $as_echo "no" >&6; }
20586    fi
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -D_POSIX_SOURCE is necessary" >&5
20588 $as_echo_n "checking whether -D_POSIX_SOURCE is necessary... " >&6; }
20589    ac_ext=cpp
20590 ac_cpp='$CXXCPP $CPPFLAGS'
20591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20594
20595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h.  */
20597
20598
20599
20600 #include <stdio.h>
20601 extern "C" { void fileno(int); }
20602
20603
20604 int
20605 main ()
20606 {
20607
20608   ;
20609   return 0;
20610 }
20611
20612 _ACEOF
20613 if ac_fn_cxx_try_compile "$LINENO"; then :
20614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615 $as_echo "yes" >&6; }
20616
20617 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
20618
20619 else
20620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20621 $as_echo "no" >&6; }
20622 fi
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624    ac_ext=c
20625 ac_cpp='$CPP $CPPFLAGS'
20626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20629
20630
20631 # checks for header stuff
20632 ac_ext=cpp
20633 ac_cpp='$CXXCPP $CPPFLAGS'
20634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20637
20638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of srand" >&5
20639 $as_echo_n "checking for return type of srand... " >&6; }
20640    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h.  */
20642
20643
20644
20645 #include <stdlib.h>
20646 extern "C" { void srand(unsigned int); }
20647
20648
20649 int
20650 main ()
20651 {
20652
20653   ;
20654   return 0;
20655 }
20656
20657 _ACEOF
20658 if ac_fn_cxx_try_compile "$LINENO"; then :
20659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
20660 $as_echo "void" >&6; }
20661
20662 $as_echo "#define RET_TYPE_SRAND_IS_VOID 1" >>confdefs.h
20663
20664 else
20665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
20666 $as_echo "int" >&6; }
20667 fi
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669    ac_ext=c
20670 ac_cpp='$CPP $CPPFLAGS'
20671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday must be declared" >&5
20676 $as_echo_n "checking whether gettimeofday must be declared... " >&6; }
20677    ac_ext=cpp
20678 ac_cpp='$CXXCPP $CPPFLAGS'
20679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20682
20683    if ${groff_cv_decl_needed_gettimeofday+:} false; then :
20684   $as_echo_n "(cached) " >&6
20685 else
20686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20687 /* end confdefs.h.  */
20688
20689
20690
20691 #include <stdio.h>
20692 #ifdef HAVE_STRING_H
20693 #include <string.h>
20694 #endif
20695 #ifdef HAVE_STRINGS_H
20696 #include <strings.h>
20697 #endif
20698 #ifdef HAVE_STDLIB_H
20699 #include <stdlib.h>
20700 #endif
20701 #ifdef HAVE_SYS_TIME_H
20702 #include <sys/time.h>
20703 #endif
20704 #ifdef HAVE_UNISTD_H
20705 #include <unistd.h>
20706 #endif
20707 #ifdef HAVE_MATH_H
20708 #include <math.h>
20709 #endif
20710
20711
20712 int
20713 main ()
20714 {
20715
20716
20717 #ifndef gettimeofday
20718   char *p = (char *) gettimeofday;
20719 #endif
20720
20721
20722   ;
20723   return 0;
20724 }
20725
20726 _ACEOF
20727 if ac_fn_cxx_try_compile "$LINENO"; then :
20728   groff_cv_decl_needed_gettimeofday=no
20729 else
20730   groff_cv_decl_needed_gettimeofday=yes
20731 fi
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 fi
20734
20735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_gettimeofday" >&5
20736 $as_echo "$groff_cv_decl_needed_gettimeofday" >&6; }
20737    if test $groff_cv_decl_needed_gettimeofday = yes; then
20738
20739 $as_echo "#define NEED_DECLARATION_GETTIMEOFDAY 1" >>confdefs.h
20740
20741    fi
20742    ac_ext=c
20743 ac_cpp='$CPP $CPPFLAGS'
20744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether popen must be declared" >&5
20749 $as_echo_n "checking whether popen must be declared... " >&6; }
20750    ac_ext=cpp
20751 ac_cpp='$CXXCPP $CPPFLAGS'
20752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20755
20756    if ${groff_cv_decl_needed_popen+:} false; then :
20757   $as_echo_n "(cached) " >&6
20758 else
20759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h.  */
20761
20762
20763
20764 #include <stdio.h>
20765 #ifdef HAVE_STRING_H
20766 #include <string.h>
20767 #endif
20768 #ifdef HAVE_STRINGS_H
20769 #include <strings.h>
20770 #endif
20771 #ifdef HAVE_STDLIB_H
20772 #include <stdlib.h>
20773 #endif
20774 #ifdef HAVE_SYS_TIME_H
20775 #include <sys/time.h>
20776 #endif
20777 #ifdef HAVE_UNISTD_H
20778 #include <unistd.h>
20779 #endif
20780 #ifdef HAVE_MATH_H
20781 #include <math.h>
20782 #endif
20783
20784
20785 int
20786 main ()
20787 {
20788
20789
20790 #ifndef popen
20791   char *p = (char *) popen;
20792 #endif
20793
20794
20795   ;
20796   return 0;
20797 }
20798
20799 _ACEOF
20800 if ac_fn_cxx_try_compile "$LINENO"; then :
20801   groff_cv_decl_needed_popen=no
20802 else
20803   groff_cv_decl_needed_popen=yes
20804 fi
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 fi
20807
20808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_popen" >&5
20809 $as_echo "$groff_cv_decl_needed_popen" >&6; }
20810    if test $groff_cv_decl_needed_popen = yes; then
20811
20812 $as_echo "#define NEED_DECLARATION_POPEN 1" >>confdefs.h
20813
20814    fi
20815    ac_ext=c
20816 ac_cpp='$CPP $CPPFLAGS'
20817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20820
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pclose must be declared" >&5
20822 $as_echo_n "checking whether pclose must be declared... " >&6; }
20823    ac_ext=cpp
20824 ac_cpp='$CXXCPP $CPPFLAGS'
20825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20828
20829    if ${groff_cv_decl_needed_pclose+:} false; then :
20830   $as_echo_n "(cached) " >&6
20831 else
20832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h.  */
20834
20835
20836
20837 #include <stdio.h>
20838 #ifdef HAVE_STRING_H
20839 #include <string.h>
20840 #endif
20841 #ifdef HAVE_STRINGS_H
20842 #include <strings.h>
20843 #endif
20844 #ifdef HAVE_STDLIB_H
20845 #include <stdlib.h>
20846 #endif
20847 #ifdef HAVE_SYS_TIME_H
20848 #include <sys/time.h>
20849 #endif
20850 #ifdef HAVE_UNISTD_H
20851 #include <unistd.h>
20852 #endif
20853 #ifdef HAVE_MATH_H
20854 #include <math.h>
20855 #endif
20856
20857
20858 int
20859 main ()
20860 {
20861
20862
20863 #ifndef pclose
20864   char *p = (char *) pclose;
20865 #endif
20866
20867
20868   ;
20869   return 0;
20870 }
20871
20872 _ACEOF
20873 if ac_fn_cxx_try_compile "$LINENO"; then :
20874   groff_cv_decl_needed_pclose=no
20875 else
20876   groff_cv_decl_needed_pclose=yes
20877 fi
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 fi
20880
20881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_pclose" >&5
20882 $as_echo "$groff_cv_decl_needed_pclose" >&6; }
20883    if test $groff_cv_decl_needed_pclose = yes; then
20884
20885 $as_echo "#define NEED_DECLARATION_PCLOSE 1" >>confdefs.h
20886
20887    fi
20888    ac_ext=c
20889 ac_cpp='$CPP $CPPFLAGS'
20890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20893
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv must be declared" >&5
20895 $as_echo_n "checking whether putenv must be declared... " >&6; }
20896    ac_ext=cpp
20897 ac_cpp='$CXXCPP $CPPFLAGS'
20898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20901
20902    if ${groff_cv_decl_needed_putenv+:} false; then :
20903   $as_echo_n "(cached) " >&6
20904 else
20905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h.  */
20907
20908
20909
20910 #include <stdio.h>
20911 #ifdef HAVE_STRING_H
20912 #include <string.h>
20913 #endif
20914 #ifdef HAVE_STRINGS_H
20915 #include <strings.h>
20916 #endif
20917 #ifdef HAVE_STDLIB_H
20918 #include <stdlib.h>
20919 #endif
20920 #ifdef HAVE_SYS_TIME_H
20921 #include <sys/time.h>
20922 #endif
20923 #ifdef HAVE_UNISTD_H
20924 #include <unistd.h>
20925 #endif
20926 #ifdef HAVE_MATH_H
20927 #include <math.h>
20928 #endif
20929
20930
20931 int
20932 main ()
20933 {
20934
20935
20936 #ifndef putenv
20937   char *p = (char *) putenv;
20938 #endif
20939
20940
20941   ;
20942   return 0;
20943 }
20944
20945 _ACEOF
20946 if ac_fn_cxx_try_compile "$LINENO"; then :
20947   groff_cv_decl_needed_putenv=no
20948 else
20949   groff_cv_decl_needed_putenv=yes
20950 fi
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 fi
20953
20954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_putenv" >&5
20955 $as_echo "$groff_cv_decl_needed_putenv" >&6; }
20956    if test $groff_cv_decl_needed_putenv = yes; then
20957
20958 $as_echo "#define NEED_DECLARATION_PUTENV 1" >>confdefs.h
20959
20960    fi
20961    ac_ext=c
20962 ac_cpp='$CPP $CPPFLAGS'
20963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20966
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rand must be declared" >&5
20968 $as_echo_n "checking whether rand must be declared... " >&6; }
20969    ac_ext=cpp
20970 ac_cpp='$CXXCPP $CPPFLAGS'
20971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20974
20975    if ${groff_cv_decl_needed_rand+:} false; then :
20976   $as_echo_n "(cached) " >&6
20977 else
20978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h.  */
20980
20981
20982
20983 #include <stdio.h>
20984 #ifdef HAVE_STRING_H
20985 #include <string.h>
20986 #endif
20987 #ifdef HAVE_STRINGS_H
20988 #include <strings.h>
20989 #endif
20990 #ifdef HAVE_STDLIB_H
20991 #include <stdlib.h>
20992 #endif
20993 #ifdef HAVE_SYS_TIME_H
20994 #include <sys/time.h>
20995 #endif
20996 #ifdef HAVE_UNISTD_H
20997 #include <unistd.h>
20998 #endif
20999 #ifdef HAVE_MATH_H
21000 #include <math.h>
21001 #endif
21002
21003
21004 int
21005 main ()
21006 {
21007
21008
21009 #ifndef rand
21010   char *p = (char *) rand;
21011 #endif
21012
21013
21014   ;
21015   return 0;
21016 }
21017
21018 _ACEOF
21019 if ac_fn_cxx_try_compile "$LINENO"; then :
21020   groff_cv_decl_needed_rand=no
21021 else
21022   groff_cv_decl_needed_rand=yes
21023 fi
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 fi
21026
21027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_rand" >&5
21028 $as_echo "$groff_cv_decl_needed_rand" >&6; }
21029    if test $groff_cv_decl_needed_rand = yes; then
21030
21031 $as_echo "#define NEED_DECLARATION_RAND 1" >>confdefs.h
21032
21033    fi
21034    ac_ext=c
21035 ac_cpp='$CPP $CPPFLAGS'
21036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether srand must be declared" >&5
21041 $as_echo_n "checking whether srand must be declared... " >&6; }
21042    ac_ext=cpp
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21047
21048    if ${groff_cv_decl_needed_srand+:} false; then :
21049   $as_echo_n "(cached) " >&6
21050 else
21051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h.  */
21053
21054
21055
21056 #include <stdio.h>
21057 #ifdef HAVE_STRING_H
21058 #include <string.h>
21059 #endif
21060 #ifdef HAVE_STRINGS_H
21061 #include <strings.h>
21062 #endif
21063 #ifdef HAVE_STDLIB_H
21064 #include <stdlib.h>
21065 #endif
21066 #ifdef HAVE_SYS_TIME_H
21067 #include <sys/time.h>
21068 #endif
21069 #ifdef HAVE_UNISTD_H
21070 #include <unistd.h>
21071 #endif
21072 #ifdef HAVE_MATH_H
21073 #include <math.h>
21074 #endif
21075
21076
21077 int
21078 main ()
21079 {
21080
21081
21082 #ifndef srand
21083   char *p = (char *) srand;
21084 #endif
21085
21086
21087   ;
21088   return 0;
21089 }
21090
21091 _ACEOF
21092 if ac_fn_cxx_try_compile "$LINENO"; then :
21093   groff_cv_decl_needed_srand=no
21094 else
21095   groff_cv_decl_needed_srand=yes
21096 fi
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 fi
21099
21100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_srand" >&5
21101 $as_echo "$groff_cv_decl_needed_srand" >&6; }
21102    if test $groff_cv_decl_needed_srand = yes; then
21103
21104 $as_echo "#define NEED_DECLARATION_SRAND 1" >>confdefs.h
21105
21106    fi
21107    ac_ext=c
21108 ac_cpp='$CPP $CPPFLAGS'
21109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasecmp must be declared" >&5
21114 $as_echo_n "checking whether strcasecmp must be declared... " >&6; }
21115    ac_ext=cpp
21116 ac_cpp='$CXXCPP $CPPFLAGS'
21117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21120
21121    if ${groff_cv_decl_needed_strcasecmp+:} false; then :
21122   $as_echo_n "(cached) " >&6
21123 else
21124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h.  */
21126
21127
21128
21129 #include <stdio.h>
21130 #ifdef HAVE_STRING_H
21131 #include <string.h>
21132 #endif
21133 #ifdef HAVE_STRINGS_H
21134 #include <strings.h>
21135 #endif
21136 #ifdef HAVE_STDLIB_H
21137 #include <stdlib.h>
21138 #endif
21139 #ifdef HAVE_SYS_TIME_H
21140 #include <sys/time.h>
21141 #endif
21142 #ifdef HAVE_UNISTD_H
21143 #include <unistd.h>
21144 #endif
21145 #ifdef HAVE_MATH_H
21146 #include <math.h>
21147 #endif
21148
21149
21150 int
21151 main ()
21152 {
21153
21154
21155 #ifndef strcasecmp
21156   char *p = (char *) strcasecmp;
21157 #endif
21158
21159
21160   ;
21161   return 0;
21162 }
21163
21164 _ACEOF
21165 if ac_fn_cxx_try_compile "$LINENO"; then :
21166   groff_cv_decl_needed_strcasecmp=no
21167 else
21168   groff_cv_decl_needed_strcasecmp=yes
21169 fi
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 fi
21172
21173    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strcasecmp" >&5
21174 $as_echo "$groff_cv_decl_needed_strcasecmp" >&6; }
21175    if test $groff_cv_decl_needed_strcasecmp = yes; then
21176
21177 $as_echo "#define NEED_DECLARATION_STRCASECMP 1" >>confdefs.h
21178
21179    fi
21180    ac_ext=c
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncasecmp must be declared" >&5
21187 $as_echo_n "checking whether strncasecmp must be declared... " >&6; }
21188    ac_ext=cpp
21189 ac_cpp='$CXXCPP $CPPFLAGS'
21190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21193
21194    if ${groff_cv_decl_needed_strncasecmp+:} false; then :
21195   $as_echo_n "(cached) " >&6
21196 else
21197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h.  */
21199
21200
21201
21202 #include <stdio.h>
21203 #ifdef HAVE_STRING_H
21204 #include <string.h>
21205 #endif
21206 #ifdef HAVE_STRINGS_H
21207 #include <strings.h>
21208 #endif
21209 #ifdef HAVE_STDLIB_H
21210 #include <stdlib.h>
21211 #endif
21212 #ifdef HAVE_SYS_TIME_H
21213 #include <sys/time.h>
21214 #endif
21215 #ifdef HAVE_UNISTD_H
21216 #include <unistd.h>
21217 #endif
21218 #ifdef HAVE_MATH_H
21219 #include <math.h>
21220 #endif
21221
21222
21223 int
21224 main ()
21225 {
21226
21227
21228 #ifndef strncasecmp
21229   char *p = (char *) strncasecmp;
21230 #endif
21231
21232
21233   ;
21234   return 0;
21235 }
21236
21237 _ACEOF
21238 if ac_fn_cxx_try_compile "$LINENO"; then :
21239   groff_cv_decl_needed_strncasecmp=no
21240 else
21241   groff_cv_decl_needed_strncasecmp=yes
21242 fi
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 fi
21245
21246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strncasecmp" >&5
21247 $as_echo "$groff_cv_decl_needed_strncasecmp" >&6; }
21248    if test $groff_cv_decl_needed_strncasecmp = yes; then
21249
21250 $as_echo "#define NEED_DECLARATION_STRNCASECMP 1" >>confdefs.h
21251
21252    fi
21253    ac_ext=c
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21258
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfprintf must be declared" >&5
21260 $as_echo_n "checking whether vfprintf must be declared... " >&6; }
21261    ac_ext=cpp
21262 ac_cpp='$CXXCPP $CPPFLAGS'
21263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266
21267    if ${groff_cv_decl_needed_vfprintf+:} false; then :
21268   $as_echo_n "(cached) " >&6
21269 else
21270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h.  */
21272
21273
21274
21275 #include <stdio.h>
21276 #ifdef HAVE_STRING_H
21277 #include <string.h>
21278 #endif
21279 #ifdef HAVE_STRINGS_H
21280 #include <strings.h>
21281 #endif
21282 #ifdef HAVE_STDLIB_H
21283 #include <stdlib.h>
21284 #endif
21285 #ifdef HAVE_SYS_TIME_H
21286 #include <sys/time.h>
21287 #endif
21288 #ifdef HAVE_UNISTD_H
21289 #include <unistd.h>
21290 #endif
21291 #ifdef HAVE_MATH_H
21292 #include <math.h>
21293 #endif
21294
21295
21296 int
21297 main ()
21298 {
21299
21300
21301 #ifndef vfprintf
21302   char *p = (char *) vfprintf;
21303 #endif
21304
21305
21306   ;
21307   return 0;
21308 }
21309
21310 _ACEOF
21311 if ac_fn_cxx_try_compile "$LINENO"; then :
21312   groff_cv_decl_needed_vfprintf=no
21313 else
21314   groff_cv_decl_needed_vfprintf=yes
21315 fi
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318
21319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_vfprintf" >&5
21320 $as_echo "$groff_cv_decl_needed_vfprintf" >&6; }
21321    if test $groff_cv_decl_needed_vfprintf = yes; then
21322
21323 $as_echo "#define NEED_DECLARATION_VFPRINTF 1" >>confdefs.h
21324
21325    fi
21326    ac_ext=c
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21331
21332 ac_ext=cpp
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21337
21338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
21339 $as_echo_n "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
21340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21341 /* end confdefs.h.  */
21342
21343
21344
21345 #include <errno.h>
21346 #include <stdio.h>
21347 #include <stdlib.h>
21348
21349
21350 int
21351 main ()
21352 {
21353
21354
21355 int k;
21356 k = sys_nerr;
21357
21358
21359   ;
21360   return 0;
21361 }
21362
21363 _ACEOF
21364 if ac_fn_cxx_try_compile "$LINENO"; then :
21365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21366 $as_echo "yes" >&6; }
21367
21368 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
21369
21370 else
21371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21372 $as_echo "no" >&6; }
21373 fi
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375    ac_ext=c
21376 ac_cpp='$CPP $CPPFLAGS'
21377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
21382 $as_echo_n "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
21383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384 /* end confdefs.h.  */
21385
21386
21387
21388 #include <errno.h>
21389 #include <stdio.h>
21390 #include <stdlib.h>
21391
21392
21393 int
21394 main ()
21395 {
21396
21397
21398 int k;
21399 k = (int)sys_errlist[0];
21400
21401
21402   ;
21403   return 0;
21404 }
21405
21406 _ACEOF
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21409 $as_echo "yes" >&6; }
21410
21411 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
21412
21413 else
21414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415 $as_echo "no" >&6; }
21416 fi
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 ac_ext=cpp
21419 ac_cpp='$CXXCPP $CPPFLAGS'
21420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21423
21424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <osfcn.h>" >&5
21425 $as_echo_n "checking C++ <osfcn.h>... " >&6; }
21426    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h.  */
21428
21429
21430
21431 #include <osfcn.h>
21432
21433
21434 int
21435 main ()
21436 {
21437
21438
21439 read(0, 0, 0);
21440 open(0, 0);
21441
21442
21443   ;
21444   return 0;
21445 }
21446
21447 _ACEOF
21448 if ac_fn_cxx_try_compile "$LINENO"; then :
21449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21450 $as_echo "yes" >&6; }
21451
21452 $as_echo "#define HAVE_CC_OSFCN_H 1" >>confdefs.h
21453
21454 else
21455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456 $as_echo "no" >&6; }
21457 fi
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459    ac_ext=c
21460 ac_cpp='$CPP $CPPFLAGS'
21461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21464
21465 ac_ext=cpp
21466 ac_cpp='$CXXCPP $CPPFLAGS'
21467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21470
21471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <limits.h>" >&5
21472 $as_echo_n "checking C++ <limits.h>... " >&6; }
21473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h.  */
21475
21476
21477
21478 #include <limits.h>
21479
21480
21481 int
21482 main ()
21483 {
21484
21485
21486 int x = INT_MIN;
21487 int y = INT_MAX;
21488 int z = UCHAR_MAX;
21489
21490
21491   ;
21492   return 0;
21493 }
21494
21495 _ACEOF
21496 if ac_fn_cxx_try_compile "$LINENO"; then :
21497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21498 $as_echo "yes" >&6; }
21499
21500 $as_echo "#define HAVE_CC_LIMITS_H 1" >>confdefs.h
21501
21502 else
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21504 $as_echo "no" >&6; }
21505 fi
21506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507    ac_ext=c
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21512
21513 ac_ext=cpp
21514 ac_cpp='$CXXCPP $CPPFLAGS'
21515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21518
21519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <inttypes.h>" >&5
21520 $as_echo_n "checking C++ <inttypes.h>... " >&6; }
21521    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21522 /* end confdefs.h.  */
21523
21524
21525
21526 #include <sys/types.h>
21527 #include <inttypes.h>
21528
21529
21530 int
21531 main ()
21532 {
21533
21534
21535 uintmax_t i = (uintmax_t)-1;
21536
21537
21538   ;
21539   return 0;
21540 }
21541
21542 _ACEOF
21543 if ac_fn_cxx_try_compile "$LINENO"; then :
21544   groff_cv_header_inttypes_h=yes
21545
21546 $as_echo "#define HAVE_CC_INTTYPES_H 1" >>confdefs.h
21547
21548 else
21549   groff_cv_header_inttypes_h=no
21550 fi
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_header_inttypes_h" >&5
21553 $as_echo "$groff_cv_header_inttypes_h" >&6; }
21554    ac_ext=c
21555 ac_cpp='$CPP $CPPFLAGS'
21556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21559
21560
21561 # checks for typedefs
21562 ac_ext=cpp
21563 ac_cpp='$CXXCPP $CPPFLAGS'
21564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21567
21568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
21569 $as_echo_n "checking for unsigned long long... " >&6; }
21570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h.  */
21572
21573
21574
21575 unsigned long long ull = 1;
21576 int i = 63;
21577 unsigned long long ullmax = (unsigned long long)-1;
21578
21579
21580 int
21581 main ()
21582 {
21583
21584
21585 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
21586
21587
21588   ;
21589   return 0;
21590 }
21591
21592 _ACEOF
21593 if ac_fn_cxx_try_link "$LINENO"; then :
21594   groff_cv_type_unsigned_long_long=yes
21595 else
21596   groff_cv_type_unsigned_long_long=no
21597 fi
21598 rm -f core conftest.err conftest.$ac_objext \
21599     conftest$ac_exeext conftest.$ac_ext
21600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_type_unsigned_long_long" >&5
21601 $as_echo "$groff_cv_type_unsigned_long_long" >&6; }
21602    ac_ext=c
21603 ac_cpp='$CPP $CPPFLAGS'
21604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21607
21608
21609    if test $groff_cv_header_inttypes_h = no; then
21610
21611      test $groff_cv_type_unsigned_long_long = yes \
21612           && ac_type='unsigned long long' \
21613           || ac_type='unsigned long'
21614
21615 cat >>confdefs.h <<_ACEOF
21616 #define uintmax_t $ac_type
21617 _ACEOF
21618
21619    fi
21620 ac_ext=cpp
21621 ac_cpp='$CXXCPP $CPPFLAGS'
21622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21625
21626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of time_t" >&5
21627 $as_echo_n "checking for declaration of time_t... " >&6; }
21628    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21629 /* end confdefs.h.  */
21630
21631
21632
21633 #include <time.h>
21634
21635
21636 int
21637 main ()
21638 {
21639
21640
21641 time_t t = time(0);
21642 struct tm *p = localtime(&t);
21643
21644
21645   ;
21646   return 0;
21647 }
21648
21649 _ACEOF
21650 if ac_fn_cxx_try_compile "$LINENO"; then :
21651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21652 $as_echo "yes" >&6; }
21653 else
21654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21656
21657 $as_echo "#define LONG_FOR_TIME_T 1" >>confdefs.h
21658
21659 fi
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661    ac_ext=c
21662 ac_cpp='$CPP $CPPFLAGS'
21663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21666
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of signal handlers" >&5
21668 $as_echo_n "checking for return type of signal handlers... " >&6; }
21669    for groff_declaration in \
21670      'extern "C" void (*signal (int, void (*)(int)))(int);' \
21671      'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
21672      'void (*signal ()) ();'
21673    do
21674      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21675 /* end confdefs.h.  */
21676
21677
21678
21679 #include <sys/types.h>
21680 #include <signal.h>
21681 #ifdef signal
21682 # undef signal
21683 #endif
21684 $groff_declaration
21685
21686
21687 int
21688 main ()
21689 {
21690
21691
21692 int i;
21693
21694
21695   ;
21696   return 0;
21697 }
21698
21699 _ACEOF
21700 if ac_fn_c_try_compile "$LINENO"; then :
21701   break
21702 else
21703   continue
21704 fi
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706    done
21707
21708    if test -n "$groff_declaration"; then
21709      { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
21710 $as_echo "void" >&6; }
21711
21712 $as_echo "#define RETSIGTYPE void" >>confdefs.h
21713
21714    else
21715      { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
21716 $as_echo "int" >&6; }
21717
21718 $as_echo "#define RETSIGTYPE int" >>confdefs.h
21719
21720    fi
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct exception" >&5
21722 $as_echo_n "checking struct exception... " >&6; }
21723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h.  */
21725
21726
21727
21728 #include <math.h>
21729
21730
21731 int
21732 main ()
21733 {
21734
21735
21736 struct exception e;
21737
21738
21739   ;
21740   return 0;
21741 }
21742
21743 _ACEOF
21744 if ac_fn_c_try_compile "$LINENO"; then :
21745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21746 $as_echo "yes" >&6; }
21747
21748 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
21749
21750 else
21751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752 $as_echo "no" >&6; }
21753 fi
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755
21756 # check endianness
21757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21758 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21759 if ${ac_cv_c_bigendian+:} false; then :
21760   $as_echo_n "(cached) " >&6
21761 else
21762   ac_cv_c_bigendian=unknown
21763     # See if we're dealing with a universal compiler.
21764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h.  */
21766 #ifndef __APPLE_CC__
21767                not a universal capable compiler
21768              #endif
21769              typedef int dummy;
21770
21771 _ACEOF
21772 if ac_fn_c_try_compile "$LINENO"; then :
21773
21774         # Check for potential -arch flags.  It is not universal unless
21775         # there are at least two -arch flags with different values.
21776         ac_arch=
21777         ac_prev=
21778         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21779          if test -n "$ac_prev"; then
21780            case $ac_word in
21781              i?86 | x86_64 | ppc | ppc64)
21782                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21783                  ac_arch=$ac_word
21784                else
21785                  ac_cv_c_bigendian=universal
21786                  break
21787                fi
21788                ;;
21789            esac
21790            ac_prev=
21791          elif test "x$ac_word" = "x-arch"; then
21792            ac_prev=arch
21793          fi
21794        done
21795 fi
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797     if test $ac_cv_c_bigendian = unknown; then
21798       # See if sys/param.h defines the BYTE_ORDER macro.
21799       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h.  */
21801 #include <sys/types.h>
21802              #include <sys/param.h>
21803
21804 int
21805 main ()
21806 {
21807 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21808                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21809                      && LITTLE_ENDIAN)
21810               bogus endian macros
21811              #endif
21812
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 if ac_fn_c_try_compile "$LINENO"; then :
21818   # It does; now see whether it defined to BIG_ENDIAN or not.
21819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h.  */
21821 #include <sys/types.h>
21822                 #include <sys/param.h>
21823
21824 int
21825 main ()
21826 {
21827 #if BYTE_ORDER != BIG_ENDIAN
21828                  not big endian
21829                 #endif
21830
21831   ;
21832   return 0;
21833 }
21834 _ACEOF
21835 if ac_fn_c_try_compile "$LINENO"; then :
21836   ac_cv_c_bigendian=yes
21837 else
21838   ac_cv_c_bigendian=no
21839 fi
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841 fi
21842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21843     fi
21844     if test $ac_cv_c_bigendian = unknown; then
21845       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21846       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h.  */
21848 #include <limits.h>
21849
21850 int
21851 main ()
21852 {
21853 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21854               bogus endian macros
21855              #endif
21856
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 if ac_fn_c_try_compile "$LINENO"; then :
21862   # It does; now see whether it defined to _BIG_ENDIAN or not.
21863          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864 /* end confdefs.h.  */
21865 #include <limits.h>
21866
21867 int
21868 main ()
21869 {
21870 #ifndef _BIG_ENDIAN
21871                  not big endian
21872                 #endif
21873
21874   ;
21875   return 0;
21876 }
21877 _ACEOF
21878 if ac_fn_c_try_compile "$LINENO"; then :
21879   ac_cv_c_bigendian=yes
21880 else
21881   ac_cv_c_bigendian=no
21882 fi
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884 fi
21885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886     fi
21887     if test $ac_cv_c_bigendian = unknown; then
21888       # Compile a test program.
21889       if test "$cross_compiling" = yes; then :
21890   # Try to guess by grepping values from an object file.
21891          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892 /* end confdefs.h.  */
21893 short int ascii_mm[] =
21894                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21895                 short int ascii_ii[] =
21896                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21897                 int use_ascii (int i) {
21898                   return ascii_mm[i] + ascii_ii[i];
21899                 }
21900                 short int ebcdic_ii[] =
21901                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21902                 short int ebcdic_mm[] =
21903                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21904                 int use_ebcdic (int i) {
21905                   return ebcdic_mm[i] + ebcdic_ii[i];
21906                 }
21907                 extern int foo;
21908
21909 int
21910 main ()
21911 {
21912 return use_ascii (foo) == use_ebcdic (foo);
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 if ac_fn_c_try_compile "$LINENO"; then :
21918   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21919               ac_cv_c_bigendian=yes
21920             fi
21921             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21922               if test "$ac_cv_c_bigendian" = unknown; then
21923                 ac_cv_c_bigendian=no
21924               else
21925                 # finding both strings is unlikely to happen, but who knows?
21926                 ac_cv_c_bigendian=unknown
21927               fi
21928             fi
21929 fi
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 else
21932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h.  */
21934 $ac_includes_default
21935 int
21936 main ()
21937 {
21938
21939              /* Are we little or big endian?  From Harbison&Steele.  */
21940              union
21941              {
21942                long int l;
21943                char c[sizeof (long int)];
21944              } u;
21945              u.l = 1;
21946              return u.c[sizeof (long int) - 1] == 1;
21947
21948   ;
21949   return 0;
21950 }
21951 _ACEOF
21952 if ac_fn_c_try_run "$LINENO"; then :
21953   ac_cv_c_bigendian=no
21954 else
21955   ac_cv_c_bigendian=yes
21956 fi
21957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21958   conftest.$ac_objext conftest.beam conftest.$ac_ext
21959 fi
21960
21961     fi
21962 fi
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21964 $as_echo "$ac_cv_c_bigendian" >&6; }
21965  case $ac_cv_c_bigendian in #(
21966    yes)
21967      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21968 ;; #(
21969    no)
21970       ;; #(
21971    universal)
21972
21973 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21974
21975      ;; #(
21976    *)
21977      as_fn_error $? "unknown endianness
21978  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21979  esac
21980
21981
21982 # checks for libraries
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
21984 $as_echo_n "checking for main in -lc... " >&6; }
21985 if ${ac_cv_lib_c_main+:} false; then :
21986   $as_echo_n "(cached) " >&6
21987 else
21988   ac_check_lib_save_LIBS=$LIBS
21989 LIBS="-lc  $LIBS"
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h.  */
21992
21993
21994 int
21995 main ()
21996 {
21997 return main ();
21998   ;
21999   return 0;
22000 }
22001 _ACEOF
22002 if ac_fn_c_try_link "$LINENO"; then :
22003   ac_cv_lib_c_main=yes
22004 else
22005   ac_cv_lib_c_main=no
22006 fi
22007 rm -f core conftest.err conftest.$ac_objext \
22008     conftest$ac_exeext conftest.$ac_ext
22009 LIBS=$ac_check_lib_save_LIBS
22010 fi
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
22012 $as_echo "$ac_cv_lib_c_main" >&6; }
22013 if test "x$ac_cv_lib_c_main" = xyes; then :
22014   LIBC=-lc
22015 fi
22016
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
22019 $as_echo_n "checking for sin in -lm... " >&6; }
22020 if ${ac_cv_lib_m_sin+:} false; then :
22021   $as_echo_n "(cached) " >&6
22022 else
22023   ac_check_lib_save_LIBS=$LIBS
22024 LIBS="-lm  $LIBS"
22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h.  */
22027
22028 /* Override any GCC internal prototype to avoid an error.
22029    Use char because int might match the return type of a GCC
22030    builtin and then its argument prototype would still apply.  */
22031 #ifdef __cplusplus
22032 extern "C"
22033 #endif
22034 char sin ();
22035 int
22036 main ()
22037 {
22038 return sin ();
22039   ;
22040   return 0;
22041 }
22042 _ACEOF
22043 if ac_fn_c_try_link "$LINENO"; then :
22044   ac_cv_lib_m_sin=yes
22045 else
22046   ac_cv_lib_m_sin=no
22047 fi
22048 rm -f core conftest.err conftest.$ac_objext \
22049     conftest$ac_exeext conftest.$ac_ext
22050 LIBS=$ac_check_lib_save_LIBS
22051 fi
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
22053 $as_echo "$ac_cv_lib_m_sin" >&6; }
22054 if test "x$ac_cv_lib_m_sin" = xyes; then :
22055   LIBM=-lm
22056 fi
22057
22058
22059
22060 ac_ext=cpp
22061 ac_cpp='$CXXCPP $CPPFLAGS'
22062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22065
22066
22067       if test "X$prefix" = "XNONE"; then
22068     acl_final_prefix="$ac_default_prefix"
22069   else
22070     acl_final_prefix="$prefix"
22071   fi
22072   if test "X$exec_prefix" = "XNONE"; then
22073     acl_final_exec_prefix='${prefix}'
22074   else
22075     acl_final_exec_prefix="$exec_prefix"
22076   fi
22077   acl_save_prefix="$prefix"
22078   prefix="$acl_final_prefix"
22079   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22080   prefix="$acl_save_prefix"
22081
22082
22083
22084 # Check whether --with-gnu-ld was given.
22085 if test "${with_gnu_ld+set}" = set; then :
22086   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22087 else
22088   with_gnu_ld=no
22089 fi
22090
22091 # Prepare PATH_SEPARATOR.
22092 # The user is always right.
22093 if test "${PATH_SEPARATOR+set}" != set; then
22094   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
22095   # contains only /bin. Note that ksh looks also at the FPATH variable,
22096   # so we have to set that as well for the test.
22097   PATH_SEPARATOR=:
22098   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
22099     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
22100            || PATH_SEPARATOR=';'
22101        }
22102 fi
22103
22104 ac_prog=ld
22105 if test "$GCC" = yes; then
22106   # Check if gcc -print-prog-name=ld gives a path.
22107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22108 $as_echo_n "checking for ld used by $CC... " >&6; }
22109   case $host in
22110   *-*-mingw*)
22111     # gcc leaves a trailing carriage return which upsets mingw
22112     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22113   *)
22114     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22115   esac
22116   case $ac_prog in
22117     # Accept absolute paths.
22118     [\\/]* | ?:[\\/]*)
22119       re_direlt='/[^/][^/]*/\.\./'
22120       # Canonicalize the pathname of ld
22121       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
22122       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
22123         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22124       done
22125       test -z "$LD" && LD="$ac_prog"
22126       ;;
22127   "")
22128     # If it fails, then pretend we aren't using GCC.
22129     ac_prog=ld
22130     ;;
22131   *)
22132     # If it is relative, then search for the first ld in PATH.
22133     with_gnu_ld=unknown
22134     ;;
22135   esac
22136 elif test "$with_gnu_ld" = yes; then
22137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22138 $as_echo_n "checking for GNU ld... " >&6; }
22139 else
22140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22141 $as_echo_n "checking for non-GNU ld... " >&6; }
22142 fi
22143 if ${acl_cv_path_LD+:} false; then :
22144   $as_echo_n "(cached) " >&6
22145 else
22146   if test -z "$LD"; then
22147   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22148   for ac_dir in $PATH; do
22149     IFS="$acl_save_ifs"
22150     test -z "$ac_dir" && ac_dir=.
22151     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22152       acl_cv_path_LD="$ac_dir/$ac_prog"
22153       # Check to see if the program is GNU ld.  I'd rather use --version,
22154       # but apparently some variants of GNU ld only accept -v.
22155       # Break only if it was the GNU/non-GNU ld that we prefer.
22156       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
22157       *GNU* | *'with BFD'*)
22158         test "$with_gnu_ld" != no && break
22159         ;;
22160       *)
22161         test "$with_gnu_ld" != yes && break
22162         ;;
22163       esac
22164     fi
22165   done
22166   IFS="$acl_save_ifs"
22167 else
22168   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22169 fi
22170 fi
22171
22172 LD="$acl_cv_path_LD"
22173 if test -n "$LD"; then
22174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22175 $as_echo "$LD" >&6; }
22176 else
22177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178 $as_echo "no" >&6; }
22179 fi
22180 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22183 if ${acl_cv_prog_gnu_ld+:} false; then :
22184   $as_echo_n "(cached) " >&6
22185 else
22186   # I'd rather use --version here, but apparently some GNU lds only accept -v.
22187 case `$LD -v 2>&1 </dev/null` in
22188 *GNU* | *'with BFD'*)
22189   acl_cv_prog_gnu_ld=yes
22190   ;;
22191 *)
22192   acl_cv_prog_gnu_ld=no
22193   ;;
22194 esac
22195 fi
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
22197 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
22198 with_gnu_ld=$acl_cv_prog_gnu_ld
22199
22200
22201
22202
22203                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
22204 $as_echo_n "checking for shared library run path origin... " >&6; }
22205 if ${acl_cv_rpath+:} false; then :
22206   $as_echo_n "(cached) " >&6
22207 else
22208
22209     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22210     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22211     . ./conftest.sh
22212     rm -f ./conftest.sh
22213     acl_cv_rpath=done
22214
22215 fi
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
22217 $as_echo "$acl_cv_rpath" >&6; }
22218   wl="$acl_cv_wl"
22219   acl_libext="$acl_cv_libext"
22220   acl_shlibext="$acl_cv_shlibext"
22221   acl_libname_spec="$acl_cv_libname_spec"
22222   acl_library_names_spec="$acl_cv_library_names_spec"
22223   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22224   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22225   acl_hardcode_direct="$acl_cv_hardcode_direct"
22226   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
22227     # Check whether --enable-rpath was given.
22228 if test "${enable_rpath+set}" = set; then :
22229   enableval=$enable_rpath; :
22230 else
22231   enable_rpath=yes
22232 fi
22233
22234
22235 ac_ext=cpp
22236 ac_cpp='$CXXCPP $CPPFLAGS'
22237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
22241 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
22242 if test -z "$CXXCPP"; then
22243   if ${ac_cv_prog_CXXCPP+:} false; then :
22244   $as_echo_n "(cached) " >&6
22245 else
22246       # Double quotes because CXXCPP needs to be expanded
22247     for CXXCPP in "$CXX -E" "/lib/cpp"
22248     do
22249       ac_preproc_ok=false
22250 for ac_cxx_preproc_warn_flag in '' yes
22251 do
22252   # Use a header file that comes with gcc, so configuring glibc
22253   # with a fresh cross-compiler works.
22254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255   # <limits.h> exists even on freestanding compilers.
22256   # On the NeXT, cc -E runs the code through the compiler's parser,
22257   # not just through cpp. "Syntax error" is here to catch this case.
22258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h.  */
22260 #ifdef __STDC__
22261 # include <limits.h>
22262 #else
22263 # include <assert.h>
22264 #endif
22265                      Syntax error
22266 _ACEOF
22267 if ac_fn_cxx_try_cpp "$LINENO"; then :
22268
22269 else
22270   # Broken: fails on valid input.
22271 continue
22272 fi
22273 rm -f conftest.err conftest.i conftest.$ac_ext
22274
22275   # OK, works on sane cases.  Now check whether nonexistent headers
22276   # can be detected and how.
22277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h.  */
22279 #include <ac_nonexistent.h>
22280 _ACEOF
22281 if ac_fn_cxx_try_cpp "$LINENO"; then :
22282   # Broken: success on invalid input.
22283 continue
22284 else
22285   # Passes both tests.
22286 ac_preproc_ok=:
22287 break
22288 fi
22289 rm -f conftest.err conftest.i conftest.$ac_ext
22290
22291 done
22292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22293 rm -f conftest.i conftest.err conftest.$ac_ext
22294 if $ac_preproc_ok; then :
22295   break
22296 fi
22297
22298     done
22299     ac_cv_prog_CXXCPP=$CXXCPP
22300
22301 fi
22302   CXXCPP=$ac_cv_prog_CXXCPP
22303 else
22304   ac_cv_prog_CXXCPP=$CXXCPP
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22307 $as_echo "$CXXCPP" >&6; }
22308 ac_preproc_ok=false
22309 for ac_cxx_preproc_warn_flag in '' yes
22310 do
22311   # Use a header file that comes with gcc, so configuring glibc
22312   # with a fresh cross-compiler works.
22313   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22314   # <limits.h> exists even on freestanding compilers.
22315   # On the NeXT, cc -E runs the code through the compiler's parser,
22316   # not just through cpp. "Syntax error" is here to catch this case.
22317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h.  */
22319 #ifdef __STDC__
22320 # include <limits.h>
22321 #else
22322 # include <assert.h>
22323 #endif
22324                      Syntax error
22325 _ACEOF
22326 if ac_fn_cxx_try_cpp "$LINENO"; then :
22327
22328 else
22329   # Broken: fails on valid input.
22330 continue
22331 fi
22332 rm -f conftest.err conftest.i conftest.$ac_ext
22333
22334   # OK, works on sane cases.  Now check whether nonexistent headers
22335   # can be detected and how.
22336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h.  */
22338 #include <ac_nonexistent.h>
22339 _ACEOF
22340 if ac_fn_cxx_try_cpp "$LINENO"; then :
22341   # Broken: success on invalid input.
22342 continue
22343 else
22344   # Passes both tests.
22345 ac_preproc_ok=:
22346 break
22347 fi
22348 rm -f conftest.err conftest.i conftest.$ac_ext
22349
22350 done
22351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22352 rm -f conftest.i conftest.err conftest.$ac_ext
22353 if $ac_preproc_ok; then :
22354
22355 else
22356   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22358 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22359 See \`config.log' for more details" "$LINENO" 5; }
22360 fi
22361
22362 ac_ext=cpp
22363 ac_cpp='$CXXCPP $CPPFLAGS'
22364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22367
22368
22369
22370
22371   acl_libdirstem=lib
22372   acl_libdirstem2=
22373   case "$host_os" in
22374     solaris*)
22375                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
22376 $as_echo_n "checking for 64-bit host... " >&6; }
22377 if ${gl_cv_solaris_64bit+:} false; then :
22378   $as_echo_n "(cached) " >&6
22379 else
22380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h.  */
22382
22383 #ifdef _LP64
22384 sixtyfour bits
22385 #endif
22386
22387 _ACEOF
22388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22389   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
22390   gl_cv_solaris_64bit=yes
22391 else
22392   gl_cv_solaris_64bit=no
22393 fi
22394 rm -f conftest*
22395
22396
22397 fi
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
22399 $as_echo "$gl_cv_solaris_64bit" >&6; }
22400       if test $gl_cv_solaris_64bit = yes; then
22401         acl_libdirstem=lib/64
22402         case "$host_cpu" in
22403           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
22404           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
22405         esac
22406       fi
22407       ;;
22408     *)
22409       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22410       if test -n "$searchpath"; then
22411         acl_save_IFS="${IFS=    }"; IFS=":"
22412         for searchdir in $searchpath; do
22413           if test -d "$searchdir"; then
22414             case "$searchdir" in
22415               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22416               */../ | */.. )
22417                 # Better ignore directories of this form. They are misleading.
22418                 ;;
22419               *) searchdir=`cd "$searchdir" && pwd`
22420                  case "$searchdir" in
22421                    */lib64 ) acl_libdirstem=lib64 ;;
22422                  esac ;;
22423             esac
22424           fi
22425         done
22426         IFS="$acl_save_IFS"
22427       fi
22428       ;;
22429   esac
22430   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443     use_additional=yes
22444
22445   acl_save_prefix="$prefix"
22446   prefix="$acl_final_prefix"
22447   acl_save_exec_prefix="$exec_prefix"
22448   exec_prefix="$acl_final_exec_prefix"
22449
22450     eval additional_includedir=\"$includedir\"
22451     eval additional_libdir=\"$libdir\"
22452
22453   exec_prefix="$acl_save_exec_prefix"
22454   prefix="$acl_save_prefix"
22455
22456
22457 # Check whether --with-libiconv-prefix was given.
22458 if test "${with_libiconv_prefix+set}" = set; then :
22459   withval=$with_libiconv_prefix;
22460     if test "X$withval" = "Xno"; then
22461       use_additional=no
22462     else
22463       if test "X$withval" = "X"; then
22464
22465   acl_save_prefix="$prefix"
22466   prefix="$acl_final_prefix"
22467   acl_save_exec_prefix="$exec_prefix"
22468   exec_prefix="$acl_final_exec_prefix"
22469
22470           eval additional_includedir=\"$includedir\"
22471           eval additional_libdir=\"$libdir\"
22472
22473   exec_prefix="$acl_save_exec_prefix"
22474   prefix="$acl_save_prefix"
22475
22476       else
22477         additional_includedir="$withval/include"
22478         additional_libdir="$withval/$acl_libdirstem"
22479         if test "$acl_libdirstem2" != "$acl_libdirstem" \
22480            && ! test -d "$withval/$acl_libdirstem"; then
22481           additional_libdir="$withval/$acl_libdirstem2"
22482         fi
22483       fi
22484     fi
22485
22486 fi
22487
22488       LIBICONV=
22489   LTLIBICONV=
22490   INCICONV=
22491   LIBICONV_PREFIX=
22492       HAVE_LIBICONV=
22493   rpathdirs=
22494   ltrpathdirs=
22495   names_already_handled=
22496   names_next_round='iconv '
22497   while test -n "$names_next_round"; do
22498     names_this_round="$names_next_round"
22499     names_next_round=
22500     for name in $names_this_round; do
22501       already_handled=
22502       for n in $names_already_handled; do
22503         if test "$n" = "$name"; then
22504           already_handled=yes
22505           break
22506         fi
22507       done
22508       if test -z "$already_handled"; then
22509         names_already_handled="$names_already_handled $name"
22510                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
22511         eval value=\"\$HAVE_LIB$uppername\"
22512         if test -n "$value"; then
22513           if test "$value" = yes; then
22514             eval value=\"\$LIB$uppername\"
22515             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22516             eval value=\"\$LTLIB$uppername\"
22517             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22518           else
22519                                     :
22520           fi
22521         else
22522                               found_dir=
22523           found_la=
22524           found_so=
22525           found_a=
22526           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
22527           if test -n "$acl_shlibext"; then
22528             shrext=".$acl_shlibext"             # typically: shrext=.so
22529           else
22530             shrext=
22531           fi
22532           if test $use_additional = yes; then
22533             dir="$additional_libdir"
22534                                     if test -n "$acl_shlibext"; then
22535               if test -f "$dir/$libname$shrext"; then
22536                 found_dir="$dir"
22537                 found_so="$dir/$libname$shrext"
22538               else
22539                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22540                   ver=`(cd "$dir" && \
22541                         for f in "$libname$shrext".*; do echo "$f"; done \
22542                         | sed -e "s,^$libname$shrext\\\\.,," \
22543                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22544                         | sed 1q ) 2>/dev/null`
22545                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22546                     found_dir="$dir"
22547                     found_so="$dir/$libname$shrext.$ver"
22548                   fi
22549                 else
22550                   eval library_names=\"$acl_library_names_spec\"
22551                   for f in $library_names; do
22552                     if test -f "$dir/$f"; then
22553                       found_dir="$dir"
22554                       found_so="$dir/$f"
22555                       break
22556                     fi
22557                   done
22558                 fi
22559               fi
22560             fi
22561                         if test "X$found_dir" = "X"; then
22562               if test -f "$dir/$libname.$acl_libext"; then
22563                 found_dir="$dir"
22564                 found_a="$dir/$libname.$acl_libext"
22565               fi
22566             fi
22567             if test "X$found_dir" != "X"; then
22568               if test -f "$dir/$libname.la"; then
22569                 found_la="$dir/$libname.la"
22570               fi
22571             fi
22572           fi
22573           if test "X$found_dir" = "X"; then
22574             for x in $LDFLAGS $LTLIBICONV; do
22575
22576   acl_save_prefix="$prefix"
22577   prefix="$acl_final_prefix"
22578   acl_save_exec_prefix="$exec_prefix"
22579   exec_prefix="$acl_final_exec_prefix"
22580   eval x=\"$x\"
22581   exec_prefix="$acl_save_exec_prefix"
22582   prefix="$acl_save_prefix"
22583
22584               case "$x" in
22585                 -L*)
22586                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22587                                     if test -n "$acl_shlibext"; then
22588                     if test -f "$dir/$libname$shrext"; then
22589                       found_dir="$dir"
22590                       found_so="$dir/$libname$shrext"
22591                     else
22592                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22593                         ver=`(cd "$dir" && \
22594                               for f in "$libname$shrext".*; do echo "$f"; done \
22595                               | sed -e "s,^$libname$shrext\\\\.,," \
22596                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22597                               | sed 1q ) 2>/dev/null`
22598                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22599                           found_dir="$dir"
22600                           found_so="$dir/$libname$shrext.$ver"
22601                         fi
22602                       else
22603                         eval library_names=\"$acl_library_names_spec\"
22604                         for f in $library_names; do
22605                           if test -f "$dir/$f"; then
22606                             found_dir="$dir"
22607                             found_so="$dir/$f"
22608                             break
22609                           fi
22610                         done
22611                       fi
22612                     fi
22613                   fi
22614                                     if test "X$found_dir" = "X"; then
22615                     if test -f "$dir/$libname.$acl_libext"; then
22616                       found_dir="$dir"
22617                       found_a="$dir/$libname.$acl_libext"
22618                     fi
22619                   fi
22620                   if test "X$found_dir" != "X"; then
22621                     if test -f "$dir/$libname.la"; then
22622                       found_la="$dir/$libname.la"
22623                     fi
22624                   fi
22625                   ;;
22626               esac
22627               if test "X$found_dir" != "X"; then
22628                 break
22629               fi
22630             done
22631           fi
22632           if test "X$found_dir" != "X"; then
22633                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22634             if test "X$found_so" != "X"; then
22635                                                         if test "$enable_rpath" = no \
22636                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22637                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22638                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22639               else
22640                                                                                 haveit=
22641                 for x in $ltrpathdirs; do
22642                   if test "X$x" = "X$found_dir"; then
22643                     haveit=yes
22644                     break
22645                   fi
22646                 done
22647                 if test -z "$haveit"; then
22648                   ltrpathdirs="$ltrpathdirs $found_dir"
22649                 fi
22650                                 if test "$acl_hardcode_direct" = yes; then
22651                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22652                 else
22653                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22654                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22655                                                             haveit=
22656                     for x in $rpathdirs; do
22657                       if test "X$x" = "X$found_dir"; then
22658                         haveit=yes
22659                         break
22660                       fi
22661                     done
22662                     if test -z "$haveit"; then
22663                       rpathdirs="$rpathdirs $found_dir"
22664                     fi
22665                   else
22666                                                                                 haveit=
22667                     for x in $LDFLAGS $LIBICONV; do
22668
22669   acl_save_prefix="$prefix"
22670   prefix="$acl_final_prefix"
22671   acl_save_exec_prefix="$exec_prefix"
22672   exec_prefix="$acl_final_exec_prefix"
22673   eval x=\"$x\"
22674   exec_prefix="$acl_save_exec_prefix"
22675   prefix="$acl_save_prefix"
22676
22677                       if test "X$x" = "X-L$found_dir"; then
22678                         haveit=yes
22679                         break
22680                       fi
22681                     done
22682                     if test -z "$haveit"; then
22683                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22684                     fi
22685                     if test "$acl_hardcode_minus_L" != no; then
22686                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22687                     else
22688                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22689                     fi
22690                   fi
22691                 fi
22692               fi
22693             else
22694               if test "X$found_a" != "X"; then
22695                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22696               else
22697                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22698               fi
22699             fi
22700                         additional_includedir=
22701             case "$found_dir" in
22702               */$acl_libdirstem | */$acl_libdirstem/)
22703                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22704                 if test "$name" = 'iconv'; then
22705                   LIBICONV_PREFIX="$basedir"
22706                 fi
22707                 additional_includedir="$basedir/include"
22708                 ;;
22709               */$acl_libdirstem2 | */$acl_libdirstem2/)
22710                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22711                 if test "$name" = 'iconv'; then
22712                   LIBICONV_PREFIX="$basedir"
22713                 fi
22714                 additional_includedir="$basedir/include"
22715                 ;;
22716             esac
22717             if test "X$additional_includedir" != "X"; then
22718                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22719                 haveit=
22720                 if test "X$additional_includedir" = "X/usr/local/include"; then
22721                   if test -n "$GCC"; then
22722                     case $host_os in
22723                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22724                     esac
22725                   fi
22726                 fi
22727                 if test -z "$haveit"; then
22728                   for x in $CPPFLAGS $INCICONV; do
22729
22730   acl_save_prefix="$prefix"
22731   prefix="$acl_final_prefix"
22732   acl_save_exec_prefix="$exec_prefix"
22733   exec_prefix="$acl_final_exec_prefix"
22734   eval x=\"$x\"
22735   exec_prefix="$acl_save_exec_prefix"
22736   prefix="$acl_save_prefix"
22737
22738                     if test "X$x" = "X-I$additional_includedir"; then
22739                       haveit=yes
22740                       break
22741                     fi
22742                   done
22743                   if test -z "$haveit"; then
22744                     if test -d "$additional_includedir"; then
22745                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22746                     fi
22747                   fi
22748                 fi
22749               fi
22750             fi
22751                         if test -n "$found_la"; then
22752                                                         save_libdir="$libdir"
22753               case "$found_la" in
22754                 */* | *\\*) . "$found_la" ;;
22755                 *) . "./$found_la" ;;
22756               esac
22757               libdir="$save_libdir"
22758                             for dep in $dependency_libs; do
22759                 case "$dep" in
22760                   -L*)
22761                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22762                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22763                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22764                       haveit=
22765                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22766                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22767                         if test -n "$GCC"; then
22768                           case $host_os in
22769                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22770                           esac
22771                         fi
22772                       fi
22773                       if test -z "$haveit"; then
22774                         haveit=
22775                         for x in $LDFLAGS $LIBICONV; do
22776
22777   acl_save_prefix="$prefix"
22778   prefix="$acl_final_prefix"
22779   acl_save_exec_prefix="$exec_prefix"
22780   exec_prefix="$acl_final_exec_prefix"
22781   eval x=\"$x\"
22782   exec_prefix="$acl_save_exec_prefix"
22783   prefix="$acl_save_prefix"
22784
22785                           if test "X$x" = "X-L$additional_libdir"; then
22786                             haveit=yes
22787                             break
22788                           fi
22789                         done
22790                         if test -z "$haveit"; then
22791                           if test -d "$additional_libdir"; then
22792                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22793                           fi
22794                         fi
22795                         haveit=
22796                         for x in $LDFLAGS $LTLIBICONV; do
22797
22798   acl_save_prefix="$prefix"
22799   prefix="$acl_final_prefix"
22800   acl_save_exec_prefix="$exec_prefix"
22801   exec_prefix="$acl_final_exec_prefix"
22802   eval x=\"$x\"
22803   exec_prefix="$acl_save_exec_prefix"
22804   prefix="$acl_save_prefix"
22805
22806                           if test "X$x" = "X-L$additional_libdir"; then
22807                             haveit=yes
22808                             break
22809                           fi
22810                         done
22811                         if test -z "$haveit"; then
22812                           if test -d "$additional_libdir"; then
22813                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22814                           fi
22815                         fi
22816                       fi
22817                     fi
22818                     ;;
22819                   -R*)
22820                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22821                     if test "$enable_rpath" != no; then
22822                                                                   haveit=
22823                       for x in $rpathdirs; do
22824                         if test "X$x" = "X$dir"; then
22825                           haveit=yes
22826                           break
22827                         fi
22828                       done
22829                       if test -z "$haveit"; then
22830                         rpathdirs="$rpathdirs $dir"
22831                       fi
22832                                                                   haveit=
22833                       for x in $ltrpathdirs; do
22834                         if test "X$x" = "X$dir"; then
22835                           haveit=yes
22836                           break
22837                         fi
22838                       done
22839                       if test -z "$haveit"; then
22840                         ltrpathdirs="$ltrpathdirs $dir"
22841                       fi
22842                     fi
22843                     ;;
22844                   -l*)
22845                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22846                     ;;
22847                   *.la)
22848                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22849                     ;;
22850                   *)
22851                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22852                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22853                     ;;
22854                 esac
22855               done
22856             fi
22857           else
22858                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22859             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22860           fi
22861         fi
22862       fi
22863     done
22864   done
22865   if test "X$rpathdirs" != "X"; then
22866     if test -n "$acl_hardcode_libdir_separator"; then
22867                         alldirs=
22868       for found_dir in $rpathdirs; do
22869         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22870       done
22871             acl_save_libdir="$libdir"
22872       libdir="$alldirs"
22873       eval flag=\"$acl_hardcode_libdir_flag_spec\"
22874       libdir="$acl_save_libdir"
22875       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22876     else
22877             for found_dir in $rpathdirs; do
22878         acl_save_libdir="$libdir"
22879         libdir="$found_dir"
22880         eval flag=\"$acl_hardcode_libdir_flag_spec\"
22881         libdir="$acl_save_libdir"
22882         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22883       done
22884     fi
22885   fi
22886   if test "X$ltrpathdirs" != "X"; then
22887             for found_dir in $ltrpathdirs; do
22888       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22889     done
22890   fi
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903           am_save_CPPFLAGS="$CPPFLAGS"
22904
22905   for element in $INCICONV; do
22906     haveit=
22907     for x in $CPPFLAGS; do
22908
22909   acl_save_prefix="$prefix"
22910   prefix="$acl_final_prefix"
22911   acl_save_exec_prefix="$exec_prefix"
22912   exec_prefix="$acl_final_exec_prefix"
22913   eval x=\"$x\"
22914   exec_prefix="$acl_save_exec_prefix"
22915   prefix="$acl_save_prefix"
22916
22917       if test "X$x" = "X$element"; then
22918         haveit=yes
22919         break
22920       fi
22921     done
22922     if test -z "$haveit"; then
22923       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22924     fi
22925   done
22926
22927
22928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22929 $as_echo_n "checking for iconv... " >&6; }
22930 if ${am_cv_func_iconv+:} false; then :
22931   $as_echo_n "(cached) " >&6
22932 else
22933
22934     am_cv_func_iconv="no, consider installing GNU libiconv"
22935     am_cv_lib_iconv=no
22936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h.  */
22938
22939 #include <stdlib.h>
22940 #include <iconv.h>
22941
22942 int
22943 main ()
22944 {
22945 iconv_t cd = iconv_open("","");
22946            iconv(cd,NULL,NULL,NULL,NULL);
22947            iconv_close(cd);
22948   ;
22949   return 0;
22950 }
22951 _ACEOF
22952 if ac_fn_cxx_try_link "$LINENO"; then :
22953   am_cv_func_iconv=yes
22954 fi
22955 rm -f core conftest.err conftest.$ac_objext \
22956     conftest$ac_exeext conftest.$ac_ext
22957     if test "$am_cv_func_iconv" != yes; then
22958       am_save_LIBS="$LIBS"
22959       LIBS="$LIBS $LIBICONV"
22960       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h.  */
22962
22963 #include <stdlib.h>
22964 #include <iconv.h>
22965
22966 int
22967 main ()
22968 {
22969 iconv_t cd = iconv_open("","");
22970              iconv(cd,NULL,NULL,NULL,NULL);
22971              iconv_close(cd);
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 if ac_fn_cxx_try_link "$LINENO"; then :
22977   am_cv_lib_iconv=yes
22978         am_cv_func_iconv=yes
22979 fi
22980 rm -f core conftest.err conftest.$ac_objext \
22981     conftest$ac_exeext conftest.$ac_ext
22982       LIBS="$am_save_LIBS"
22983     fi
22984
22985 fi
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22987 $as_echo "$am_cv_func_iconv" >&6; }
22988   if test "$am_cv_func_iconv" = yes; then
22989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
22990 $as_echo_n "checking for working iconv... " >&6; }
22991 if ${am_cv_func_iconv_works+:} false; then :
22992   $as_echo_n "(cached) " >&6
22993 else
22994
22995                   am_save_LIBS="$LIBS"
22996       if test $am_cv_lib_iconv = yes; then
22997         LIBS="$LIBS $LIBICONV"
22998       fi
22999       am_cv_func_iconv_works=no
23000       for ac_iconv_const in '' 'const'; do
23001         if test "$cross_compiling" = yes; then :
23002   case "$host_os" in
23003              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
23004              *)            am_cv_func_iconv_works="guessing yes" ;;
23005            esac
23006 else
23007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h.  */
23009
23010 #include <iconv.h>
23011 #include <string.h>
23012
23013 #ifndef ICONV_CONST
23014 # define ICONV_CONST $ac_iconv_const
23015 #endif
23016
23017 int
23018 main ()
23019 {
23020 int result = 0;
23021   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
23022      returns.  */
23023   {
23024     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23025     if (cd_utf8_to_88591 != (iconv_t)(-1))
23026       {
23027         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23028         char buf[10];
23029         ICONV_CONST char *inptr = input;
23030         size_t inbytesleft = strlen (input);
23031         char *outptr = buf;
23032         size_t outbytesleft = sizeof (buf);
23033         size_t res = iconv (cd_utf8_to_88591,
23034                             &inptr, &inbytesleft,
23035                             &outptr, &outbytesleft);
23036         if (res == 0)
23037           result |= 1;
23038         iconv_close (cd_utf8_to_88591);
23039       }
23040   }
23041   /* Test against Solaris 10 bug: Failures are not distinguishable from
23042      successful returns.  */
23043   {
23044     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23045     if (cd_ascii_to_88591 != (iconv_t)(-1))
23046       {
23047         static ICONV_CONST char input[] = "\263";
23048         char buf[10];
23049         ICONV_CONST char *inptr = input;
23050         size_t inbytesleft = strlen (input);
23051         char *outptr = buf;
23052         size_t outbytesleft = sizeof (buf);
23053         size_t res = iconv (cd_ascii_to_88591,
23054                             &inptr, &inbytesleft,
23055                             &outptr, &outbytesleft);
23056         if (res == 0)
23057           result |= 2;
23058         iconv_close (cd_ascii_to_88591);
23059       }
23060   }
23061   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
23062   {
23063     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23064     if (cd_88591_to_utf8 != (iconv_t)(-1))
23065       {
23066         static ICONV_CONST char input[] = "\304";
23067         static char buf[2] = { (char)0xDE, (char)0xAD };
23068         ICONV_CONST char *inptr = input;
23069         size_t inbytesleft = 1;
23070         char *outptr = buf;
23071         size_t outbytesleft = 1;
23072         size_t res = iconv (cd_88591_to_utf8,
23073                             &inptr, &inbytesleft,
23074                             &outptr, &outbytesleft);
23075         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23076           result |= 4;
23077         iconv_close (cd_88591_to_utf8);
23078       }
23079   }
23080 #if 0 /* This bug could be worked around by the caller.  */
23081   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
23082   {
23083     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23084     if (cd_88591_to_utf8 != (iconv_t)(-1))
23085       {
23086         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23087         char buf[50];
23088         ICONV_CONST char *inptr = input;
23089         size_t inbytesleft = strlen (input);
23090         char *outptr = buf;
23091         size_t outbytesleft = sizeof (buf);
23092         size_t res = iconv (cd_88591_to_utf8,
23093                             &inptr, &inbytesleft,
23094                             &outptr, &outbytesleft);
23095         if ((int)res > 0)
23096           result |= 8;
23097         iconv_close (cd_88591_to_utf8);
23098       }
23099   }
23100 #endif
23101   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23102      provided.  */
23103   if (/* Try standardized names.  */
23104       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
23105       /* Try IRIX, OSF/1 names.  */
23106       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
23107       /* Try AIX names.  */
23108       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
23109       /* Try HP-UX names.  */
23110       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
23111     result |= 16;
23112   return result;
23113
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 if ac_fn_cxx_try_run "$LINENO"; then :
23119   am_cv_func_iconv_works=yes
23120 fi
23121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23122   conftest.$ac_objext conftest.beam conftest.$ac_ext
23123 fi
23124
23125         test "$am_cv_func_iconv_works" = no || break
23126       done
23127       LIBS="$am_save_LIBS"
23128
23129 fi
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23131 $as_echo "$am_cv_func_iconv_works" >&6; }
23132     case "$am_cv_func_iconv_works" in
23133       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
23134       *)   am_func_iconv=yes ;;
23135     esac
23136   else
23137     am_func_iconv=no am_cv_lib_iconv=no
23138   fi
23139   if test "$am_func_iconv" = yes; then
23140
23141 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
23142
23143   fi
23144   if test "$am_cv_lib_iconv" = yes; then
23145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23146 $as_echo_n "checking how to link with libiconv... " >&6; }
23147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23148 $as_echo "$LIBICONV" >&6; }
23149   else
23150             CPPFLAGS="$am_save_CPPFLAGS"
23151     LIBICONV=
23152     LTLIBICONV=
23153   fi
23154
23155
23156
23157   if test "$am_cv_func_iconv" = yes; then
23158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
23159 $as_echo_n "checking for iconv declaration... " >&6; }
23160     if ${am_cv_proto_iconv+:} false; then :
23161   $as_echo_n "(cached) " >&6
23162 else
23163
23164       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h.  */
23166
23167 #include <stdlib.h>
23168 #include <iconv.h>
23169 extern
23170 #ifdef __cplusplus
23171 "C"
23172 #endif
23173 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
23174 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23175 #else
23176 size_t iconv();
23177 #endif
23178
23179 int
23180 main ()
23181 {
23182
23183   ;
23184   return 0;
23185 }
23186 _ACEOF
23187 if ac_fn_cxx_try_compile "$LINENO"; then :
23188   am_cv_proto_iconv_arg1=""
23189 else
23190   am_cv_proto_iconv_arg1="const"
23191 fi
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23193       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
23194 fi
23195
23196     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23197     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
23198          $am_cv_proto_iconv" >&5
23199 $as_echo "
23200          $am_cv_proto_iconv" >&6; }
23201
23202 cat >>confdefs.h <<_ACEOF
23203 #define ICONV_CONST $am_cv_proto_iconv_arg1
23204 _ACEOF
23205
23206
23207   fi
23208
23209 ac_ext=c
23210 ac_cpp='$CPP $CPPFLAGS'
23211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23214
23215
23216 # we need LIBEXT
23217 LIBEXT=$acl_libext
23218
23219
23220 # checks for functions
23221
23222
23223
23224
23225
23226 for ac_func in getpagesize
23227 do :
23228   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23229 if test "x$ac_cv_func_getpagesize" = xyes; then :
23230   cat >>confdefs.h <<_ACEOF
23231 #define HAVE_GETPAGESIZE 1
23232 _ACEOF
23233
23234 fi
23235 done
23236
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23238 $as_echo_n "checking for working mmap... " >&6; }
23239 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23240   $as_echo_n "(cached) " >&6
23241 else
23242   if test "$cross_compiling" = yes; then :
23243   ac_cv_func_mmap_fixed_mapped=no
23244 else
23245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246 /* end confdefs.h.  */
23247 $ac_includes_default
23248 /* malloc might have been renamed as rpl_malloc. */
23249 #undef malloc
23250
23251 /* Thanks to Mike Haertel and Jim Avera for this test.
23252    Here is a matrix of mmap possibilities:
23253         mmap private not fixed
23254         mmap private fixed at somewhere currently unmapped
23255         mmap private fixed at somewhere already mapped
23256         mmap shared not fixed
23257         mmap shared fixed at somewhere currently unmapped
23258         mmap shared fixed at somewhere already mapped
23259    For private mappings, we should verify that changes cannot be read()
23260    back from the file, nor mmap's back from the file at a different
23261    address.  (There have been systems where private was not correctly
23262    implemented like the infamous i386 svr4.0, and systems where the
23263    VM page cache was not coherent with the file system buffer cache
23264    like early versions of FreeBSD and possibly contemporary NetBSD.)
23265    For shared mappings, we should conversely verify that changes get
23266    propagated back to all the places they're supposed to be.
23267
23268    Grep wants private fixed already mapped.
23269    The main things grep needs to know about mmap are:
23270    * does it exist and is it safe to write into the mmap'd area
23271    * how to use it (BSD variants)  */
23272
23273 #include <fcntl.h>
23274 #include <sys/mman.h>
23275
23276 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23277 char *malloc ();
23278 #endif
23279
23280 /* This mess was copied from the GNU getpagesize.h.  */
23281 #ifndef HAVE_GETPAGESIZE
23282 # ifdef _SC_PAGESIZE
23283 #  define getpagesize() sysconf(_SC_PAGESIZE)
23284 # else /* no _SC_PAGESIZE */
23285 #  ifdef HAVE_SYS_PARAM_H
23286 #   include <sys/param.h>
23287 #   ifdef EXEC_PAGESIZE
23288 #    define getpagesize() EXEC_PAGESIZE
23289 #   else /* no EXEC_PAGESIZE */
23290 #    ifdef NBPG
23291 #     define getpagesize() NBPG * CLSIZE
23292 #     ifndef CLSIZE
23293 #      define CLSIZE 1
23294 #     endif /* no CLSIZE */
23295 #    else /* no NBPG */
23296 #     ifdef NBPC
23297 #      define getpagesize() NBPC
23298 #     else /* no NBPC */
23299 #      ifdef PAGESIZE
23300 #       define getpagesize() PAGESIZE
23301 #      endif /* PAGESIZE */
23302 #     endif /* no NBPC */
23303 #    endif /* no NBPG */
23304 #   endif /* no EXEC_PAGESIZE */
23305 #  else /* no HAVE_SYS_PARAM_H */
23306 #   define getpagesize() 8192   /* punt totally */
23307 #  endif /* no HAVE_SYS_PARAM_H */
23308 # endif /* no _SC_PAGESIZE */
23309
23310 #endif /* no HAVE_GETPAGESIZE */
23311
23312 int
23313 main ()
23314 {
23315   char *data, *data2, *data3;
23316   const char *cdata2;
23317   int i, pagesize;
23318   int fd, fd2;
23319
23320   pagesize = getpagesize ();
23321
23322   /* First, make a file with some known garbage in it. */
23323   data = (char *) malloc (pagesize);
23324   if (!data)
23325     return 1;
23326   for (i = 0; i < pagesize; ++i)
23327     *(data + i) = rand ();
23328   umask (0);
23329   fd = creat ("conftest.mmap", 0600);
23330   if (fd < 0)
23331     return 2;
23332   if (write (fd, data, pagesize) != pagesize)
23333     return 3;
23334   close (fd);
23335
23336   /* Next, check that the tail of a page is zero-filled.  File must have
23337      non-zero length, otherwise we risk SIGBUS for entire page.  */
23338   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23339   if (fd2 < 0)
23340     return 4;
23341   cdata2 = "";
23342   if (write (fd2, cdata2, 1) != 1)
23343     return 5;
23344   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
23345   if (data2 == MAP_FAILED)
23346     return 6;
23347   for (i = 0; i < pagesize; ++i)
23348     if (*(data2 + i))
23349       return 7;
23350   close (fd2);
23351   if (munmap (data2, pagesize))
23352     return 8;
23353
23354   /* Next, try to mmap the file at a fixed address which already has
23355      something else allocated at it.  If we can, also make sure that
23356      we see the same garbage.  */
23357   fd = open ("conftest.mmap", O_RDWR);
23358   if (fd < 0)
23359     return 9;
23360   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23361                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23362     return 10;
23363   for (i = 0; i < pagesize; ++i)
23364     if (*(data + i) != *(data2 + i))
23365       return 11;
23366
23367   /* Finally, make sure that changes to the mapped area do not
23368      percolate back to the file as seen by read().  (This is a bug on
23369      some variants of i386 svr4.0.)  */
23370   for (i = 0; i < pagesize; ++i)
23371     *(data2 + i) = *(data2 + i) + 1;
23372   data3 = (char *) malloc (pagesize);
23373   if (!data3)
23374     return 12;
23375   if (read (fd, data3, pagesize) != pagesize)
23376     return 13;
23377   for (i = 0; i < pagesize; ++i)
23378     if (*(data + i) != *(data3 + i))
23379       return 14;
23380   close (fd);
23381   return 0;
23382 }
23383 _ACEOF
23384 if ac_fn_c_try_run "$LINENO"; then :
23385   ac_cv_func_mmap_fixed_mapped=yes
23386 else
23387   ac_cv_func_mmap_fixed_mapped=no
23388 fi
23389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23390   conftest.$ac_objext conftest.beam conftest.$ac_ext
23391 fi
23392
23393 fi
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
23395 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23396 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23397
23398 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
23399
23400 fi
23401 rm -f conftest.mmap conftest.txt
23402
23403 saved_libs="$LIBS"
23404 LIBS="$LIBS $LIBC $LIBM"
23405 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
23406 if test "x$ac_cv_func_fmod" = xyes; then :
23407   $as_echo "#define HAVE_FMOD 1" >>confdefs.h
23408
23409 else
23410   case " $LIBOBJS " in
23411   *" fmod.$ac_objext "* ) ;;
23412   *) LIBOBJS="$LIBOBJS fmod.$ac_objext"
23413  ;;
23414 esac
23415
23416 fi
23417
23418 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
23419 if test "x$ac_cv_func_getcwd" = xyes; then :
23420   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
23421
23422 else
23423   case " $LIBOBJS " in
23424   *" getcwd.$ac_objext "* ) ;;
23425   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
23426  ;;
23427 esac
23428
23429 fi
23430
23431 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
23432 if test "x$ac_cv_func_putenv" = xyes; then :
23433   $as_echo "#define HAVE_PUTENV 1" >>confdefs.h
23434
23435 else
23436   case " $LIBOBJS " in
23437   *" putenv.$ac_objext "* ) ;;
23438   *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
23439  ;;
23440 esac
23441
23442 fi
23443
23444 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23445 if test "x$ac_cv_func_strcasecmp" = xyes; then :
23446   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
23447
23448 else
23449   case " $LIBOBJS " in
23450   *" strcasecmp.$ac_objext "* ) ;;
23451   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
23452  ;;
23453 esac
23454
23455 fi
23456
23457 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
23458 if test "x$ac_cv_func_strerror" = xyes; then :
23459   $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
23460
23461 else
23462   case " $LIBOBJS " in
23463   *" strerror.$ac_objext "* ) ;;
23464   *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
23465  ;;
23466 esac
23467
23468 fi
23469
23470 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
23471 if test "x$ac_cv_func_strncasecmp" = xyes; then :
23472   $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
23473
23474 else
23475   case " $LIBOBJS " in
23476   *" strncasecmp.$ac_objext "* ) ;;
23477   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
23478  ;;
23479 esac
23480
23481 fi
23482
23483 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
23484 if test "x$ac_cv_func_strtol" = xyes; then :
23485   $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
23486
23487 else
23488   case " $LIBOBJS " in
23489   *" strtol.$ac_objext "* ) ;;
23490   *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
23491  ;;
23492 esac
23493
23494 fi
23495
23496
23497 LIBS="$saved_libs"
23498 for ac_func in gettimeofday isatty kill rename setlocale strsep
23499 do :
23500   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23502 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23503   cat >>confdefs.h <<_ACEOF
23504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23505 _ACEOF
23506
23507 fi
23508 done
23509
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
23511 $as_echo_n "checking for mkstemp... " >&6; }
23512    ac_ext=cpp
23513 ac_cpp='$CXXCPP $CPPFLAGS'
23514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23517
23518
23519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23520 /* end confdefs.h.  */
23521
23522
23523
23524 #include <stdlib.h>
23525 #include <unistd.h>
23526 int (*f) (char *);
23527
23528
23529 int
23530 main ()
23531 {
23532
23533
23534 f = mkstemp;
23535
23536
23537   ;
23538   return 0;
23539 }
23540
23541 _ACEOF
23542 if ac_fn_cxx_try_link "$LINENO"; then :
23543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23544 $as_echo "yes" >&6; }
23545
23546 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
23547
23548 else
23549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23550 $as_echo "no" >&6; }
23551       case " $LIBOBJS " in
23552   *" mkstemp.$ac_objext "* ) ;;
23553   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
23554  ;;
23555 esac
23556
23557 fi
23558 rm -f core conftest.err conftest.$ac_objext \
23559     conftest$ac_exeext conftest.$ac_ext
23560    ac_ext=c
23561 ac_cpp='$CPP $CPPFLAGS'
23562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23565
23566 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
23567 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
23568   ac_have_decl=1
23569 else
23570   ac_have_decl=0
23571 fi
23572
23573 cat >>confdefs.h <<_ACEOF
23574 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
23575 _ACEOF
23576 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
23577 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
23578   ac_have_decl=1
23579 else
23580   ac_have_decl=0
23581 fi
23582
23583 cat >>confdefs.h <<_ACEOF
23584 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
23585 _ACEOF
23586
23587
23588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23589 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23590 if ${am_cv_langinfo_codeset+:} false; then :
23591   $as_echo_n "(cached) " >&6
23592 else
23593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h.  */
23595 #include <langinfo.h>
23596 int
23597 main ()
23598 {
23599 char* cs = nl_langinfo(CODESET); return !cs;
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 if ac_fn_c_try_link "$LINENO"; then :
23605   am_cv_langinfo_codeset=yes
23606 else
23607   am_cv_langinfo_codeset=no
23608 fi
23609 rm -f core conftest.err conftest.$ac_objext \
23610     conftest$ac_exeext conftest.$ac_ext
23611
23612 fi
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23614 $as_echo "$am_cv_langinfo_codeset" >&6; }
23615   if test $am_cv_langinfo_codeset = yes; then
23616
23617 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23618
23619   fi
23620
23621
23622 # checks for compiler characteristics
23623 ac_ext=cpp
23624 ac_cpp='$CXXCPP $CPPFLAGS'
23625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23628
23629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI array delete syntax is supported" >&5
23630 $as_echo_n "checking whether ANSI array delete syntax is supported... " >&6; }
23631    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h.  */
23633
23634
23635 int
23636 main ()
23637 {
23638
23639
23640 char *p = new char[5];
23641 delete [] p;
23642
23643
23644   ;
23645   return 0;
23646 }
23647
23648 _ACEOF
23649 if ac_fn_cxx_try_compile "$LINENO"; then :
23650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23651 $as_echo "yes" >&6; }
23652 else
23653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23654 $as_echo "no" >&6; }
23655
23656 $as_echo "#define ARRAY_DELETE_NEEDS_SIZE 1" >>confdefs.h
23657
23658 fi
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660    ac_ext=c
23661 ac_cpp='$CPP $CPPFLAGS'
23662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23665
23666 ac_ext=cpp
23667 ac_cpp='$CXXCPP $CPPFLAGS'
23668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23671
23672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking traditional preprocessor" >&5
23673 $as_echo_n "checking traditional preprocessor... " >&6; }
23674    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23675 /* end confdefs.h.  */
23676
23677
23678
23679 #define name2(a, b) a/**/b
23680
23681
23682 int
23683 main ()
23684 {
23685
23686
23687 int name2(foo, bar);
23688
23689
23690   ;
23691   return 0;
23692 }
23693
23694 _ACEOF
23695 if ac_fn_cxx_try_compile "$LINENO"; then :
23696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23697 $as_echo "yes" >&6; }
23698
23699 $as_echo "#define TRADITIONAL_CPP 1" >>confdefs.h
23700
23701 else
23702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23703 $as_echo "no" >&6; }
23704 fi
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706    ac_ext=c
23707 ac_cpp='$CPP $CPPFLAGS'
23708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23711
23712
23713 # checks for operating system services
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking w_coredump" >&5
23715 $as_echo_n "checking w_coredump... " >&6; }
23716    if test "$cross_compiling" = yes; then :
23717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23718 $as_echo "no" >&6; }
23719 else
23720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h.  */
23722
23723
23724
23725 #include <sys/types.h>
23726 #include <sys/wait.h>
23727
23728
23729 int
23730 main ()
23731 {
23732
23733
23734 main()
23735 {
23736 #ifdef WCOREFLAG
23737   exit(1);
23738 #else
23739   int i = 0;
23740   ((union wait *)&i)->w_coredump = 1;
23741   exit(i != 0200);
23742 #endif
23743 }
23744
23745
23746   ;
23747   return 0;
23748 }
23749
23750 _ACEOF
23751 if ac_fn_c_try_run "$LINENO"; then :
23752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23753 $as_echo "yes" >&6; }
23754
23755 $as_echo "#define WCOREFLAG 0200" >>confdefs.h
23756
23757 else
23758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23759 $as_echo "no" >&6; }
23760 fi
23761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23762   conftest.$ac_objext conftest.beam conftest.$ac_ext
23763 fi
23764
23765
23766 # URW fonts extra dir
23767
23768 # Check whether --with-urw-fonts-dir was given.
23769 if test "${with_urw_fonts_dir+set}" = set; then :
23770   withval=$with_urw_fonts_dir; urwfontsdir="$withval"
23771 fi
23772
23773
23774
23775 # other random stuff
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default value for grops -b option" >&5
23777 $as_echo_n "checking default value for grops -b option... " >&6; }
23778    test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
23779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROKEN_SPOOLER_FLAGS" >&5
23780 $as_echo "$BROKEN_SPOOLER_FLAGS" >&6; }
23781
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default paper size" >&5
23783 $as_echo_n "checking default paper size... " >&6; }
23784    groff_prefix=$prefix
23785    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
23786    if test -z "$PAGE" && test -r /etc/papersize; then
23787      PAGE=`cat /etc/papersize | sed -e 's/^ *#.*//g' | tr -d "\n" | awk '{ print  }'`
23788    fi
23789    if test -z "$PAGE"; then
23790      descfile=
23791      if test -r "$groff_prefix"/share/groff/font/devps/DESC; then
23792        descfile=$groff_prefix/share/groff/font/devps/DESC
23793      elif test -r "$groff_prefix"/lib/groff/font/devps/DESC; then
23794        descfile=$groff_prefix/lib/groff/font/devps/DESC
23795      else
23796        for f in "$groff_prefix"/share/groff/*/font/devps/DESC; do
23797          if test -r "$f"; then
23798            descfile=$f
23799            break
23800          fi
23801        done
23802      fi
23803
23804      if test -n "$descfile"; then
23805        if grep '^paperlength[    ]\+841890' "$descfile" >/dev/null 2>&1; then
23806          PAGE=A4
23807        elif grep '^papersize[    ]\+[aA]4' "$descfile" >/dev/null 2>&1; then
23808          PAGE=A4
23809        fi
23810      fi
23811    fi
23812
23813    if test -z "$PAGE"; then
23814      dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
23815          /etc/resolv.conf 2>/dev/null`
23816      if test -z "$dom"; then
23817        dom=`(domainname) 2>/dev/null | tr -d '+'`
23818        if test -z "$dom" \
23819           || test "$dom" = '(none)'; then
23820          dom=`(hostname) 2>/dev/null | grep '\.'`
23821        fi
23822      fi
23823      # If the top-level domain is two letters and it's not 'us' or 'ca'
23824      # then they probably use A4 paper.
23825      case "$dom" in
23826      *.[Uu][Ss]|*.[Cc][Aa])
23827        ;;
23828      *.[A-Za-z][A-Za-z])
23829        PAGE=A4 ;;
23830      esac
23831    fi
23832
23833    test -n "$PAGE" || PAGE=letter
23834    if test "x$PAGE" = "xA4"; then
23835
23836 $as_echo "#define PAGEA4 1" >>confdefs.h
23837
23838    fi
23839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAGE" >&5
23840 $as_echo "$PAGE" >&6; }
23841
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existing troff installation" >&5
23843 $as_echo_n "checking for existing troff installation... " >&6; }
23844    if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
23845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23846 $as_echo "yes" >&6; }
23847      g=g
23848    else
23849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23851      g=
23852    fi
23853
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix of system macro packages" >&5
23855 $as_echo_n "checking for prefix of system macro packages... " >&6; }
23856    sys_tmac_prefix=
23857    sys_tmac_file_prefix=
23858    for d in /usr/share/lib/tmac /usr/lib/tmac; do
23859      for t in "" tmac.; do
23860        for m in an s m; do
23861          f=$d/$t$m
23862          if test -z "$sys_tmac_prefix" \
23863             && test -f $f \
23864             && grep '^\.if' $f >/dev/null 2>&1; then
23865            sys_tmac_prefix=$d/$t
23866            sys_tmac_file_prefix=$t
23867          fi
23868        done
23869      done
23870    done
23871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sys_tmac_prefix" >&5
23872 $as_echo "$sys_tmac_prefix" >&6; }
23873
23874
23875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which system macro packages should be made available" >&5
23876 $as_echo_n "checking which system macro packages should be made available... " >&6; }
23877    tmac_wrap=
23878    if test "x$sys_tmac_file_prefix" = "xtmac."; then
23879      for f in $sys_tmac_prefix*; do
23880        suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
23881        case "$suff" in
23882        e)
23883          ;;
23884        *)
23885          grep "Copyright.*Free Software Foundation" $f >/dev/null \
23886               || tmac_wrap="$tmac_wrap $suff" ;;
23887        esac
23888      done
23889    elif test -n "$sys_tmac_prefix"; then
23890      files=`echo $sys_tmac_prefix*`
23891      grep "\\.so" $files >conftest.sol
23892      for f in $files; do
23893        case "$f" in
23894        ${sys_tmac_prefix}e)
23895          ;;
23896        *.me)
23897          ;;
23898        */ms.*)
23899          ;;
23900        *)
23901          b=`basename $f`
23902          if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
23903             || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
23904            :
23905          else
23906            suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
23907            case "$suff" in
23908            tmac.*)
23909              ;;
23910            *)
23911              tmac_wrap="$tmac_wrap $suff" ;;
23912            esac
23913          fi
23914        esac
23915      done
23916      rm -f conftest.sol
23917    fi
23918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmac_wrap" >&5
23919 $as_echo "$tmac_wrap" >&6; }
23920
23921
23922 # Check whether --with-compatibility-wrappers was given.
23923 if test "${with_compatibility_wrappers+set}" = set; then :
23924   withval=$with_compatibility_wrappers; compatibility_wrappers="$withval"
23925 else
23926   compatibility_wrappers="check"
23927 fi
23928
23929
23930     if test "x$compatibility_wrappers" != "xcheck"  -a \
23931             "x$compatibility_wrappers" != "xyes"    -a \
23932             "x$compatibility_wrappers" != "xno"     -a \
23933             "x$compatibility_wrappers" != "xmanual"
23934     then
23935          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid '--with-compatibility-wrappers' argument: '$compatibility_wrappers' - assuming 'check' requested." >&5
23936 $as_echo "$as_me: WARNING: Invalid '--with-compatibility-wrappers' argument: '$compatibility_wrappers' - assuming 'check' requested." >&2;}
23937          compatibility_wrappers="check"
23938     fi
23939
23940     if test "x$tmac_wrap" = "x"
23941     then
23942         # No Operating System Macro Sets Present
23943         if   test "x$compatibility_wrappers" = "xcheck"
23944         then
23945             compatibility_wrappers="no"
23946         elif test "x$compatibility_wrappers" = "xyes"
23947         then
23948             as_fn_error $? "No non-GNU macro sets found - cannot create and install compatibility wrappers" "$LINENO" 5
23949         elif test "x$compatibility_wrappers" = "xno"
23950         then
23951             : # No action required
23952         elif test "x$compatibility_wrappers" = "xmanual"
23953         then
23954             # 'manual' allows quiet conversion to 'no' to support
23955             # cross-platform build instructions
23956             compatibility_wrappers="no"
23957         fi
23958     else
23959         # One or more Operating System Macro Sets Present
23960         if   test "x$compatibility_wrappers" = "xcheck"
23961         then
23962             compatibility_wrappers="yes"
23963         fi
23964     fi
23965
23966     # Now compatibility_wrappers can only be yes, no or manual
23967
23968
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking separator character to use in groff search paths" >&5
23970 $as_echo_n "checking separator character to use in groff search paths... " >&6; }
23971    cp ${srcdir}/src/include/nonposix.h conftest.h
23972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h.  */
23974
23975
23976
23977 #include <ctype.h>
23978 #include "conftest.h"
23979
23980
23981 int
23982 main ()
23983 {
23984
23985
23986 #if PATH_SEP_CHAR == ';'
23987 make an error "Path separator is ';'"
23988 #endif
23989
23990
23991   ;
23992   return 0;
23993 }
23994
23995 _ACEOF
23996 if ac_fn_c_try_compile "$LINENO"; then :
23997   GROFF_PATH_SEPARATOR=":"
23998 else
23999   GROFF_PATH_SEPARATOR=";"
24000 fi
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF_PATH_SEPARATOR" >&5
24003 $as_echo "$GROFF_PATH_SEPARATOR" >&6; }
24004
24005
24006 # Check whether --with-alt-gs was given.
24007 if test "${with_alt_gs+set}" = set; then :
24008   withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
24009 else
24010   ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
24011 fi
24012
24013
24014
24015
24016 # Check whether --with-gs was given.
24017 if test "${with_gs+set}" = set; then :
24018   withval=$with_gs; GHOSTSCRIPT=$withval
24019 else
24020   if test -n "$ac_tool_prefix"; then
24021   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
24022   do
24023     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24026 $as_echo_n "checking for $ac_word... " >&6; }
24027 if ${ac_cv_prog_GHOSTSCRIPT+:} false; then :
24028   $as_echo_n "(cached) " >&6
24029 else
24030   if test -n "$GHOSTSCRIPT"; then
24031   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
24032 else
24033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24034 for as_dir in $PATH
24035 do
24036   IFS=$as_save_IFS
24037   test -z "$as_dir" && as_dir=.
24038     for ac_exec_ext in '' $ac_executable_extensions; do
24039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24040     ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
24041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24042     break 2
24043   fi
24044 done
24045   done
24046 IFS=$as_save_IFS
24047
24048 fi
24049 fi
24050 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
24051 if test -n "$GHOSTSCRIPT"; then
24052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GHOSTSCRIPT" >&5
24053 $as_echo "$GHOSTSCRIPT" >&6; }
24054 else
24055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24057 fi
24058
24059
24060     test -n "$GHOSTSCRIPT" && break
24061   done
24062 fi
24063 if test -z "$GHOSTSCRIPT"; then
24064   ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
24065   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
24066 do
24067   # Extract the first word of "$ac_prog", so it can be a program name with args.
24068 set dummy $ac_prog; ac_word=$2
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24070 $as_echo_n "checking for $ac_word... " >&6; }
24071 if ${ac_cv_prog_ac_ct_GHOSTSCRIPT+:} false; then :
24072   $as_echo_n "(cached) " >&6
24073 else
24074   if test -n "$ac_ct_GHOSTSCRIPT"; then
24075   ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
24076 else
24077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24078 for as_dir in $PATH
24079 do
24080   IFS=$as_save_IFS
24081   test -z "$as_dir" && as_dir=.
24082     for ac_exec_ext in '' $ac_executable_extensions; do
24083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24084     ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
24085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24086     break 2
24087   fi
24088 done
24089   done
24090 IFS=$as_save_IFS
24091
24092 fi
24093 fi
24094 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
24095 if test -n "$ac_ct_GHOSTSCRIPT"; then
24096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GHOSTSCRIPT" >&5
24097 $as_echo "$ac_ct_GHOSTSCRIPT" >&6; }
24098 else
24099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24100 $as_echo "no" >&6; }
24101 fi
24102
24103
24104   test -n "$ac_ct_GHOSTSCRIPT" && break
24105 done
24106
24107   if test "x$ac_ct_GHOSTSCRIPT" = x; then
24108     GHOSTSCRIPT="missing"
24109   else
24110     case $cross_compiling:$ac_tool_warned in
24111 yes:)
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24114 ac_tool_warned=yes ;;
24115 esac
24116     GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
24117   fi
24118 fi
24119
24120 fi
24121
24122    test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
24123 make_htmldoc=
24124    make_install_htmldoc=
24125    make_uninstall_htmldoc=
24126    make_htmlexamples=
24127    make_install_htmlexamples=
24128    make_uninstall_htmlexamples=
24129
24130
24131    missing=
24132    # Extract the first word of "pnmcut", so it can be a program name with args.
24133 set dummy pnmcut; ac_word=$2
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24135 $as_echo_n "checking for $ac_word... " >&6; }
24136 if ${ac_cv_prog_pnmcut+:} false; then :
24137   $as_echo_n "(cached) " >&6
24138 else
24139   if test -n "$pnmcut"; then
24140   ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
24141 else
24142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24143 for as_dir in $PATH
24144 do
24145   IFS=$as_save_IFS
24146   test -z "$as_dir" && as_dir=.
24147     for ac_exec_ext in '' $ac_executable_extensions; do
24148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24149     ac_cv_prog_pnmcut="found"
24150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24151     break 2
24152   fi
24153 done
24154   done
24155 IFS=$as_save_IFS
24156
24157   test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
24158 fi
24159 fi
24160 pnmcut=$ac_cv_prog_pnmcut
24161 if test -n "$pnmcut"; then
24162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcut" >&5
24163 $as_echo "$pnmcut" >&6; }
24164 else
24165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24166 $as_echo "no" >&6; }
24167 fi
24168
24169
24170       if test $pnmcut = missing; then
24171         missing="$missing 'pnmcut'"
24172       fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
24173 set dummy pnmcrop; ac_word=$2
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24175 $as_echo_n "checking for $ac_word... " >&6; }
24176 if ${ac_cv_prog_pnmcrop+:} false; then :
24177   $as_echo_n "(cached) " >&6
24178 else
24179   if test -n "$pnmcrop"; then
24180   ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
24181 else
24182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24183 for as_dir in $PATH
24184 do
24185   IFS=$as_save_IFS
24186   test -z "$as_dir" && as_dir=.
24187     for ac_exec_ext in '' $ac_executable_extensions; do
24188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24189     ac_cv_prog_pnmcrop="found"
24190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24191     break 2
24192   fi
24193 done
24194   done
24195 IFS=$as_save_IFS
24196
24197   test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
24198 fi
24199 fi
24200 pnmcrop=$ac_cv_prog_pnmcrop
24201 if test -n "$pnmcrop"; then
24202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcrop" >&5
24203 $as_echo "$pnmcrop" >&6; }
24204 else
24205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24206 $as_echo "no" >&6; }
24207 fi
24208
24209
24210       if test $pnmcrop = missing; then
24211         missing="$missing 'pnmcrop'"
24212       fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
24213 set dummy pnmtopng; ac_word=$2
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24215 $as_echo_n "checking for $ac_word... " >&6; }
24216 if ${ac_cv_prog_pnmtopng+:} false; then :
24217   $as_echo_n "(cached) " >&6
24218 else
24219   if test -n "$pnmtopng"; then
24220   ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
24221 else
24222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24223 for as_dir in $PATH
24224 do
24225   IFS=$as_save_IFS
24226   test -z "$as_dir" && as_dir=.
24227     for ac_exec_ext in '' $ac_executable_extensions; do
24228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24229     ac_cv_prog_pnmtopng="found"
24230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24231     break 2
24232   fi
24233 done
24234   done
24235 IFS=$as_save_IFS
24236
24237   test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
24238 fi
24239 fi
24240 pnmtopng=$ac_cv_prog_pnmtopng
24241 if test -n "$pnmtopng"; then
24242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtopng" >&5
24243 $as_echo "$pnmtopng" >&6; }
24244 else
24245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246 $as_echo "no" >&6; }
24247 fi
24248
24249
24250       if test $pnmtopng = missing; then
24251         missing="$missing 'pnmtopng'"
24252       fi;# Extract the first word of "psselect", so it can be a program name with args.
24253 set dummy psselect; ac_word=$2
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24255 $as_echo_n "checking for $ac_word... " >&6; }
24256 if ${ac_cv_prog_psselect+:} false; then :
24257   $as_echo_n "(cached) " >&6
24258 else
24259   if test -n "$psselect"; then
24260   ac_cv_prog_psselect="$psselect" # Let the user override the test.
24261 else
24262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24263 for as_dir in $PATH
24264 do
24265   IFS=$as_save_IFS
24266   test -z "$as_dir" && as_dir=.
24267     for ac_exec_ext in '' $ac_executable_extensions; do
24268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24269     ac_cv_prog_psselect="found"
24270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24271     break 2
24272   fi
24273 done
24274   done
24275 IFS=$as_save_IFS
24276
24277   test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
24278 fi
24279 fi
24280 psselect=$ac_cv_prog_psselect
24281 if test -n "$psselect"; then
24282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $psselect" >&5
24283 $as_echo "$psselect" >&6; }
24284 else
24285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24286 $as_echo "no" >&6; }
24287 fi
24288
24289
24290       if test $psselect = missing; then
24291         missing="$missing 'psselect'"
24292       fi;# Extract the first word of "pnmtops", so it can be a program name with args.
24293 set dummy pnmtops; ac_word=$2
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24295 $as_echo_n "checking for $ac_word... " >&6; }
24296 if ${ac_cv_prog_pnmtops+:} false; then :
24297   $as_echo_n "(cached) " >&6
24298 else
24299   if test -n "$pnmtops"; then
24300   ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
24301 else
24302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24303 for as_dir in $PATH
24304 do
24305   IFS=$as_save_IFS
24306   test -z "$as_dir" && as_dir=.
24307     for ac_exec_ext in '' $ac_executable_extensions; do
24308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24309     ac_cv_prog_pnmtops="found"
24310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24311     break 2
24312   fi
24313 done
24314   done
24315 IFS=$as_save_IFS
24316
24317   test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
24318 fi
24319 fi
24320 pnmtops=$ac_cv_prog_pnmtops
24321 if test -n "$pnmtops"; then
24322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtops" >&5
24323 $as_echo "$pnmtops" >&6; }
24324 else
24325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24326 $as_echo "no" >&6; }
24327 fi
24328
24329
24330       if test $pnmtops = missing; then
24331         missing="$missing 'pnmtops'"
24332       fi;
24333
24334    test "$GHOSTSCRIPT" = "missing" && missing="$missing 'gs'"
24335
24336    if test -z "$missing"; then
24337      if test $docadd_html = yes; then
24338        make_htmldoc=htmldoc
24339        make_install_htmldoc=install_htmldoc
24340        make_uninstall_htmldoc=uninstall_htmldoc
24341        if test $docadd_examples = yes; then
24342          make_htmlexamples=html_examples
24343          make_install_htmlexamples=install_htmlexamples
24344          make_uninstall_htmlexamples=uninstall_htmlexamples
24345        fi
24346      fi
24347    else
24348      plural=`set $missing; test $# -gt 1 && echo s`
24349      missing=`set $missing
24350        missing=""
24351        while test $# -gt 0
24352          do
24353            case $# in
24354              1) missing="$missing$1" ;;
24355              2) missing="$missing$1 and " ;;
24356              *) missing="$missing$1, " ;;
24357            esac
24358            shift
24359          done
24360          echo $missing`
24361
24362      docnote=.
24363      test $docadd_html = yes && docnote=';
24364   therefore, it will neither be possible to prepare, nor to install,
24365   documentation in HTML format.'
24366
24367      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
24368
24369   The program$plural
24370      $missing
24371   cannot be found in the PATH.
24372   Consequently, groff's HTML backend (grohtml) will not work properly$docnote
24373      " >&5
24374 $as_echo "$as_me: WARNING: missing program$plural:
24375
24376   The program$plural
24377      $missing
24378   cannot be found in the PATH.
24379   Consequently, groff's HTML backend (grohtml) will not work properly$docnote
24380      " >&2;}
24381      doc_dist_target_ok=no
24382    fi
24383
24384
24385
24386
24387
24388
24389
24390 # Check whether --with-alt-awk was given.
24391 if test "${with_alt_awk+set}" = set; then :
24392   withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
24393 else
24394   ALT_AWK_PROGS="gawk mawk nawk awk"
24395 fi
24396
24397
24398
24399
24400 # Check whether --with-awk was given.
24401 if test "${with_awk+set}" = set; then :
24402   withval=$with_awk; AWK=$withval
24403 else
24404   if test -n "$ac_tool_prefix"; then
24405   for ac_prog in $ALT_AWK_PROGS
24406   do
24407     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24410 $as_echo_n "checking for $ac_word... " >&6; }
24411 if ${ac_cv_prog_AWK+:} false; then :
24412   $as_echo_n "(cached) " >&6
24413 else
24414   if test -n "$AWK"; then
24415   ac_cv_prog_AWK="$AWK" # Let the user override the test.
24416 else
24417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24418 for as_dir in $PATH
24419 do
24420   IFS=$as_save_IFS
24421   test -z "$as_dir" && as_dir=.
24422     for ac_exec_ext in '' $ac_executable_extensions; do
24423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24424     ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
24425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24426     break 2
24427   fi
24428 done
24429   done
24430 IFS=$as_save_IFS
24431
24432 fi
24433 fi
24434 AWK=$ac_cv_prog_AWK
24435 if test -n "$AWK"; then
24436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24437 $as_echo "$AWK" >&6; }
24438 else
24439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 $as_echo "no" >&6; }
24441 fi
24442
24443
24444     test -n "$AWK" && break
24445   done
24446 fi
24447 if test -z "$AWK"; then
24448   ac_ct_AWK=$AWK
24449   for ac_prog in $ALT_AWK_PROGS
24450 do
24451   # Extract the first word of "$ac_prog", so it can be a program name with args.
24452 set dummy $ac_prog; ac_word=$2
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24454 $as_echo_n "checking for $ac_word... " >&6; }
24455 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
24456   $as_echo_n "(cached) " >&6
24457 else
24458   if test -n "$ac_ct_AWK"; then
24459   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
24460 else
24461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24462 for as_dir in $PATH
24463 do
24464   IFS=$as_save_IFS
24465   test -z "$as_dir" && as_dir=.
24466     for ac_exec_ext in '' $ac_executable_extensions; do
24467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24468     ac_cv_prog_ac_ct_AWK="$ac_prog"
24469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24470     break 2
24471   fi
24472 done
24473   done
24474 IFS=$as_save_IFS
24475
24476 fi
24477 fi
24478 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
24479 if test -n "$ac_ct_AWK"; then
24480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
24481 $as_echo "$ac_ct_AWK" >&6; }
24482 else
24483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24484 $as_echo "no" >&6; }
24485 fi
24486
24487
24488   test -n "$ac_ct_AWK" && break
24489 done
24490
24491   if test "x$ac_ct_AWK" = x; then
24492     AWK="missing"
24493   else
24494     case $cross_compiling:$ac_tool_warned in
24495 yes:)
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24498 ac_tool_warned=yes ;;
24499 esac
24500     AWK=$ac_ct_AWK
24501   fi
24502 fi
24503
24504 fi
24505
24506    test "$AWK" = "no" && AWK=missing
24507 make_pdfdoc=
24508    make_install_pdfdoc=
24509    make_uninstall_pdfdoc=
24510    make_pdfexamples=
24511    make_install_pdfexamples=
24512    make_uninstall_pdfexamples=
24513
24514
24515
24516    missing=""
24517    test "$AWK" = missing && missing="'awk'"
24518    test "$GHOSTSCRIPT" = missing && missing="$missing 'gs'"
24519    if test -z "$missing"; then
24520      if test $docadd_pdf = yes; then
24521        make_pdfdoc=pdfdoc
24522        make_install_pdfdoc=install_pdfdoc
24523        make_uninstall_pdfdoc=uninstall_pdfdoc
24524        if test $docadd_examples = yes; then
24525          make_pdfexamples=pdfexamples
24526          make_install_pdfexamples=install_pdfexamples
24527          make_uninstall_pdfexamples=uninstall_pdfexamples
24528        fi
24529      fi
24530    else
24531      plural=`set $missing; test $# -eq 2 && echo s`
24532      test x$plural = xs \
24533        && missing=`set $missing; echo "$1 and $2"` \
24534        || missing=`echo $missing`
24535
24536      docnote=.
24537      test $docadd_pdf = yes && docnote=';
24538   therefore, it will neither be possible to prepare, nor to install,
24539   documentation and most of the examples in PDF format.'
24540
24541      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
24542
24543   The program$plural $missing cannot be found in the PATH.
24544   Consequently, groff's PDF formatter (pdfroff) will not work properly$docnote
24545      " >&5
24546 $as_echo "$as_me: WARNING: missing program$plural:
24547
24548   The program$plural $missing cannot be found in the PATH.
24549   Consequently, groff's PDF formatter (pdfroff) will not work properly$docnote
24550      " >&2;}
24551      doc_dist_target_ok=no
24552    fi
24553
24554
24555
24556
24557
24558
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pnmtops can handle the -nosetpage option" >&5
24560 $as_echo_n "checking whether pnmtops can handle the -nosetpage option... " >&6; }
24561    if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
24562      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24563 $as_echo "yes" >&6; }
24564      pnmtops_nosetpage="pnmtops -nosetpage"
24565    else
24566      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567 $as_echo "no" >&6; }
24568      pnmtops_nosetpage="pnmtops"
24569    fi
24570
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make has builtin variable RM" >&5
24572 $as_echo_n "checking whether make has builtin variable RM... " >&6; }
24573 cat <<EOF > test_make_rm.mk
24574 all:
24575         @if test -n "\$(RM)"; then \
24576            echo "yes"; \
24577         else \
24578            echo "no"; \
24579         fi
24580 EOF
24581   groff_is_rm_defined=`make -sf test_make_rm.mk`
24582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_is_rm_defined" >&5
24583 $as_echo "$groff_is_rm_defined" >&6; }
24584   rm -f test_make_rm.mk
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a diff program that supports option -D" >&5
24586 $as_echo_n "checking for a diff program that supports option -D... " >&6; }
24587   groff_has_diff_d_option=no
24588   DIFF_PROG=diff
24589   diff -Dx /dev/null /dev/null >/dev/null 2>&1 && groff_has_diff_d_option=yes
24590   if test "$groff_has_diff_d_option" = no; then
24591     for ac_prog in gdiff
24592 do
24593   # Extract the first word of "$ac_prog", so it can be a program name with args.
24594 set dummy $ac_prog; ac_word=$2
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24596 $as_echo_n "checking for $ac_word... " >&6; }
24597 if ${ac_cv_prog_GDIFF+:} false; then :
24598   $as_echo_n "(cached) " >&6
24599 else
24600   if test -n "$GDIFF"; then
24601   ac_cv_prog_GDIFF="$GDIFF" # Let the user override the test.
24602 else
24603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24604 for as_dir in $PATH
24605 do
24606   IFS=$as_save_IFS
24607   test -z "$as_dir" && as_dir=.
24608     for ac_exec_ext in '' $ac_executable_extensions; do
24609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24610     ac_cv_prog_GDIFF="$ac_prog"
24611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24612     break 2
24613   fi
24614 done
24615   done
24616 IFS=$as_save_IFS
24617
24618 fi
24619 fi
24620 GDIFF=$ac_cv_prog_GDIFF
24621 if test -n "$GDIFF"; then
24622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDIFF" >&5
24623 $as_echo "$GDIFF" >&6; }
24624 else
24625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626 $as_echo "no" >&6; }
24627 fi
24628
24629
24630   test -n "$GDIFF" && break
24631 done
24632
24633     if test -n "$GDIFF"; then
24634       "$GDIFF" -Dx /dev/null /dev/null >/dev/null 2>&1 && groff_has_diff_d_option=yes
24635       if test "$groff_has_diff_d_option" = yes; then
24636         DIFF_PROG="$GDIFF"
24637       fi
24638     fi
24639   fi
24640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_has_diff_d_option" >&5
24641 $as_echo "$groff_has_diff_d_option" >&6; }
24642
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether test supports option -ef" >&5
24644 $as_echo_n "checking whether test supports option -ef... " >&6; }
24645   HAVE_TEST_EF_OPTION=no
24646   test /dev/null -ef /dev/null > /dev/null 2>&1 && HAVE_TEST_EF_OPTION=yes
24647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_TEST_EF_OPTION" >&5
24648 $as_echo "$HAVE_TEST_EF_OPTION" >&6; }
24649
24650 for ac_prog in bash
24651 do
24652   # Extract the first word of "$ac_prog", so it can be a program name with args.
24653 set dummy $ac_prog; ac_word=$2
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24655 $as_echo_n "checking for $ac_word... " >&6; }
24656 if ${ac_cv_path_BASH_PROG+:} false; then :
24657   $as_echo_n "(cached) " >&6
24658 else
24659   case $BASH_PROG in
24660   [\\/]* | ?:[\\/]*)
24661   ac_cv_path_BASH_PROG="$BASH_PROG" # Let the user override the test with a path.
24662   ;;
24663   *)
24664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24665 for as_dir in $PATH
24666 do
24667   IFS=$as_save_IFS
24668   test -z "$as_dir" && as_dir=.
24669     for ac_exec_ext in '' $ac_executable_extensions; do
24670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24671     ac_cv_path_BASH_PROG="$as_dir/$ac_word$ac_exec_ext"
24672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24673     break 2
24674   fi
24675 done
24676   done
24677 IFS=$as_save_IFS
24678
24679   ;;
24680 esac
24681 fi
24682 BASH_PROG=$ac_cv_path_BASH_PROG
24683 if test -n "$BASH_PROG"; then
24684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_PROG" >&5
24685 $as_echo "$BASH_PROG" >&6; }
24686 else
24687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24688 $as_echo "no" >&6; }
24689 fi
24690
24691
24692   test -n "$BASH_PROG" && break
24693 done
24694 test -n "$BASH_PROG" || BASH_PROG="no"
24695
24696   if test x$BASH_PROG = xno; then
24697      BASH_PROG=/bin/sh
24698   fi
24699
24700
24701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
24702 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
24703 if ${ac_cv_gnu_library_2_1+:} false; then :
24704   $as_echo_n "(cached) " >&6
24705 else
24706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707 /* end confdefs.h.  */
24708
24709 #include <features.h>
24710 #ifdef __GNU_LIBRARY__
24711  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
24712   Lucky GNU user
24713  #endif
24714 #endif
24715 #ifdef __UCLIBC__
24716  Lucky user
24717 #endif
24718
24719 _ACEOF
24720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24721   $EGREP "Lucky" >/dev/null 2>&1; then :
24722   ac_cv_gnu_library_2_1=yes
24723 else
24724   ac_cv_gnu_library_2_1=no
24725 fi
24726 rm -f conftest*
24727
24728
24729
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
24732 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
24733
24734     GLIBC21="$ac_cv_gnu_library_2_1"
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746 # checks for presence of URW fonts (requires ghostscript, which is
24747 # checked in GROFF_HTML_PROGRAMS
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether URW fonts in pfb format are available" >&5
24749 $as_echo_n "checking whether URW fonts in pfb format are available... " >&6; }
24750
24751
24752    groff_have_urw_fonts=no
24753    if test "$AWK" = "missing" -o "$GHOSTSCRIPT" = "missing"; then
24754      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: awk and gs are required, can't look for URW fonts" >&5
24755 $as_echo "$as_me: WARNING: awk and gs are required, can't look for URW fonts" >&2;}
24756    else
24757      _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { found = 1 } /^ *\// { print $'0' }'| tr : ' '`
24758      _list_paths="$_list_paths /usr/share/fonts/type1/gsfonts/ \
24759                /opt/local/share/fonts/urw-fonts/"
24760      if test -n "$urwfontsdir"; then
24761        _list_paths="$ _list_paths $urwfontsdir"
24762      fi
24763      for k in $_list_paths; do
24764        if test -f $k/a010013l.pfb; then
24765          { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $k" >&5
24766 $as_echo "found in $k" >&6; }
24767          groff_have_urw_fonts=yes
24768          break
24769        fi
24770      done
24771    fi
24772    if test $groff_have_urw_fonts = no; then
24773      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24774 $as_echo "no" >&6; }
24775    fi
24776
24777
24778
24779  if test -n "$make_winscripts"; then
24780   BUILD_WINSCRIPTS_TRUE=
24781   BUILD_WINSCRIPTS_FALSE='#'
24782 else
24783   BUILD_WINSCRIPTS_TRUE='#'
24784   BUILD_WINSCRIPTS_FALSE=
24785 fi
24786
24787
24788 # If X11 is not available, don't build:
24789 # font/devX75
24790 # font/devX75-12
24791 # font/devX100
24792 # font/devX100-12
24793 # src/devices/xditview
24794 # src/utils/xtotroff
24795 # src/libs/libxutil
24796  if test "x$groff_no_x" = "xyes"; then
24797   WITHOUT_X11_TRUE=
24798   WITHOUT_X11_FALSE='#'
24799 else
24800   WITHOUT_X11_TRUE='#'
24801   WITHOUT_X11_FALSE=
24802 fi
24803
24804
24805 # make builtin variable RM
24806  if test "x$groff_is_rm_defined" = "xno"; then
24807   MAKE_DONT_HAVE_RM_TRUE=
24808   MAKE_DONT_HAVE_RM_FALSE='#'
24809 else
24810   MAKE_DONT_HAVE_RM_TRUE='#'
24811   MAKE_DONT_HAVE_RM_FALSE=
24812 fi
24813
24814
24815 # Some programs have a "g" prefix if an existing groff installation is detected
24816  if test x$g = xg; then
24817   USEPROGRAMPREFIX_TRUE=
24818   USEPROGRAMPREFIX_FALSE='#'
24819 else
24820   USEPROGRAMPREFIX_TRUE='#'
24821   USEPROGRAMPREFIX_FALSE=
24822 fi
24823
24824
24825  if test -n "$make_infodoc"; then
24826   BUILD_INFODOC_TRUE=
24827   BUILD_INFODOC_FALSE='#'
24828 else
24829   BUILD_INFODOC_TRUE='#'
24830   BUILD_INFODOC_FALSE=
24831 fi
24832
24833  if test -n "$make_htmldoc"; then
24834   BUILD_HTML_TRUE=
24835   BUILD_HTML_FALSE='#'
24836 else
24837   BUILD_HTML_TRUE='#'
24838   BUILD_HTML_FALSE=
24839 fi
24840
24841  if test -n "$make_htmlexamples"; then
24842   BUILD_HTMLEXAMPLES_TRUE=
24843   BUILD_HTMLEXAMPLES_FALSE='#'
24844 else
24845   BUILD_HTMLEXAMPLES_TRUE='#'
24846   BUILD_HTMLEXAMPLES_FALSE=
24847 fi
24848
24849  if test -n "$make_pdfdoc"; then
24850   BUILD_PDFDOC_TRUE=
24851   BUILD_PDFDOC_FALSE='#'
24852 else
24853   BUILD_PDFDOC_TRUE='#'
24854   BUILD_PDFDOC_FALSE=
24855 fi
24856
24857  if test -n "$make_pdfexamples"; then
24858   BUILD_PDFEXAMPLES_TRUE=
24859   BUILD_PDFEXAMPLES_FALSE='#'
24860 else
24861   BUILD_PDFEXAMPLES_TRUE='#'
24862   BUILD_PDFEXAMPLES_FALSE=
24863 fi
24864
24865  if test -n "$make_otherdoc"; then
24866   BUILD_OTHERDOC_TRUE=
24867   BUILD_OTHERDOC_FALSE='#'
24868 else
24869   BUILD_OTHERDOC_TRUE='#'
24870   BUILD_OTHERDOC_FALSE=
24871 fi
24872
24873  if test -n "$make_examples"; then
24874   BUILD_EXAMPLES_TRUE=
24875   BUILD_EXAMPLES_FALSE='#'
24876 else
24877   BUILD_EXAMPLES_TRUE='#'
24878   BUILD_EXAMPLES_FALSE=
24879 fi
24880
24881  if test -n "$make_install_shipped_htmldoc"; then
24882   INSTALL_SHIPPED_HTML_TRUE=
24883   INSTALL_SHIPPED_HTML_FALSE='#'
24884 else
24885   INSTALL_SHIPPED_HTML_TRUE='#'
24886   INSTALL_SHIPPED_HTML_FALSE=
24887 fi
24888
24889  if test "x$groff_have_pdftools" = "xyes" ; then
24890   HAVE_PDFTOOLS_TRUE=
24891   HAVE_PDFTOOLS_FALSE='#'
24892 else
24893   HAVE_PDFTOOLS_TRUE='#'
24894   HAVE_PDFTOOLS_FALSE=
24895 fi
24896
24897  if test "x$groff_have_texi2dvi" = "xyes" ; then
24898   HAVE_TEXI2DVI_TRUE=
24899   HAVE_TEXI2DVI_FALSE='#'
24900 else
24901   HAVE_TEXI2DVI_TRUE='#'
24902   HAVE_TEXI2DVI_FALSE=
24903 fi
24904
24905
24906 ac_config_files="$ac_config_files Makefile"
24907
24908 ac_config_files="$ac_config_files test-groff"
24909
24910 cat >confcache <<\_ACEOF
24911 # This file is a shell script that caches the results of configure
24912 # tests run on this system so they can be shared between configure
24913 # scripts and configure runs, see configure's option --config-cache.
24914 # It is not useful on other systems.  If it contains results you don't
24915 # want to keep, you may remove or edit it.
24916 #
24917 # config.status only pays attention to the cache file if you give it
24918 # the --recheck option to rerun configure.
24919 #
24920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24922 # following values.
24923
24924 _ACEOF
24925
24926 # The following way of writing the cache mishandles newlines in values,
24927 # but we know of no workaround that is simple, portable, and efficient.
24928 # So, we kill variables containing newlines.
24929 # Ultrix sh set writes to stderr and can't be redirected directly,
24930 # and sets the high bit in the cache file unless we assign to the vars.
24931 (
24932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24933     eval ac_val=\$$ac_var
24934     case $ac_val in #(
24935     *${as_nl}*)
24936       case $ac_var in #(
24937       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24939       esac
24940       case $ac_var in #(
24941       _ | IFS | as_nl) ;; #(
24942       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24943       *) { eval $ac_var=; unset $ac_var;} ;;
24944       esac ;;
24945     esac
24946   done
24947
24948   (set) 2>&1 |
24949     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24950     *${as_nl}ac_space=\ *)
24951       # `set' does not quote correctly, so add quotes: double-quote
24952       # substitution turns \\\\ into \\, and sed turns \\ into \.
24953       sed -n \
24954         "s/'/'\\\\''/g;
24955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24956       ;; #(
24957     *)
24958       # `set' quotes correctly as required by POSIX, so do not add quotes.
24959       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24960       ;;
24961     esac |
24962     sort
24963 ) |
24964   sed '
24965      /^ac_cv_env_/b end
24966      t clear
24967      :clear
24968      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24969      t end
24970      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24971      :end' >>confcache
24972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24973   if test -w "$cache_file"; then
24974     if test "x$cache_file" != "x/dev/null"; then
24975       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24976 $as_echo "$as_me: updating cache $cache_file" >&6;}
24977       if test ! -f "$cache_file" || test -h "$cache_file"; then
24978         cat confcache >"$cache_file"
24979       else
24980         case $cache_file in #(
24981         */* | ?:*)
24982           mv -f confcache "$cache_file"$$ &&
24983           mv -f "$cache_file"$$ "$cache_file" ;; #(
24984         *)
24985           mv -f confcache "$cache_file" ;;
24986         esac
24987       fi
24988     fi
24989   else
24990     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24992   fi
24993 fi
24994 rm -f confcache
24995
24996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24997 # Let make expand exec_prefix.
24998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24999
25000 DEFS=-DHAVE_CONFIG_H
25001
25002 ac_libobjs=
25003 ac_ltlibobjs=
25004 U=
25005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25006   # 1. Remove the extension, and $U if already installed.
25007   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25008   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25009   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25010   #    will be set to the directory where LIBOBJS objects are built.
25011   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25012   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25013 done
25014 LIBOBJS=$ac_libobjs
25015
25016 LTLIBOBJS=$ac_ltlibobjs
25017
25018
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25020 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25021    if test -n "$am_sleep_pid"; then
25022      # Hide warnings about reused PIDs.
25023      wait $am_sleep_pid 2>/dev/null
25024    fi
25025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25026 $as_echo "done" >&6; }
25027 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25028   as_fn_error $? "conditional \"AMDEP\" was never defined.
25029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25030 fi
25031 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25032   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25034 fi
25035  if test -n "$EXEEXT"; then
25036   am__EXEEXT_TRUE=
25037   am__EXEEXT_FALSE='#'
25038 else
25039   am__EXEEXT_TRUE='#'
25040   am__EXEEXT_FALSE=
25041 fi
25042
25043 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25044   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25046 fi
25047 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25048   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050 fi
25051 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25052   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25054 fi
25055 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25056   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058 fi
25059 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25060   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25062 fi
25063
25064
25065 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25066   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25068 fi
25069
25070
25071
25072   # Tell AC_LIBSOURCES where to find source files like alloca.c.
25073
25074
25075   # This hack originated in bison.  It is required when using non-recursive
25076   # automake rules to build from gnulib-provided lib/ sources.  Hence, LIB_DIR
25077   # is usually simply "lib".  Those rules use the list of names like "fchdir.o"
25078   # and "strstr.o" in gl_LIBOBJS.  With non-recursive make, we must prefix each
25079   # such file name with the "lib/" prefix.  See also build-aux/prefix-gnulib-mk.
25080   gl_LIBOBJS=`echo "$gl_LIBOBJS" | sed -e 's, , lib/,g'`
25081
25082   # Listing the names of the variables to prefix is error-prone.
25083   # Rather, adjust each AC_SUBST'd variable whose name ends in '_H'
25084   # and whose value ends in '.h'.
25085   for ac_var in $ac_subst_vars
25086   do
25087     eval "ac_val=\$$ac_var"
25088     case $ac_var:$ac_val in
25089       *_H:*.h) eval "$ac_var=lib/\$$ac_var";;
25090     esac
25091   done
25092
25093
25094 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25095   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25097 fi
25098 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25099   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25101 fi
25102 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25103   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25105 fi
25106 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
25107   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25109 fi
25110
25111     gl_libobjs=
25112     gl_ltlibobjs=
25113     if test -n "$gl_LIBOBJS"; then
25114       # Remove the extension.
25115       sed_drop_objext='s/\.o$//;s/\.obj$//'
25116       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25117         gl_libobjs="$gl_libobjs $i.$ac_objext"
25118         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25119       done
25120     fi
25121     gl_LIBOBJS=$gl_libobjs
25122
25123     gl_LTLIBOBJS=$gl_ltlibobjs
25124
25125
25126
25127     gltests_libobjs=
25128     gltests_ltlibobjs=
25129     if test -n "$gltests_LIBOBJS"; then
25130       # Remove the extension.
25131       sed_drop_objext='s/\.o$//;s/\.obj$//'
25132       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25133         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25134         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25135       done
25136     fi
25137     gltests_LIBOBJS=$gltests_libobjs
25138
25139     gltests_LTLIBOBJS=$gltests_ltlibobjs
25140
25141
25142
25143 if test -z "${BUILD_WINSCRIPTS_TRUE}" && test -z "${BUILD_WINSCRIPTS_FALSE}"; then
25144   as_fn_error $? "conditional \"BUILD_WINSCRIPTS\" was never defined.
25145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25146 fi
25147 if test -z "${WITHOUT_X11_TRUE}" && test -z "${WITHOUT_X11_FALSE}"; then
25148   as_fn_error $? "conditional \"WITHOUT_X11\" was never defined.
25149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25150 fi
25151 if test -z "${MAKE_DONT_HAVE_RM_TRUE}" && test -z "${MAKE_DONT_HAVE_RM_FALSE}"; then
25152   as_fn_error $? "conditional \"MAKE_DONT_HAVE_RM\" was never defined.
25153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25154 fi
25155 if test -z "${USEPROGRAMPREFIX_TRUE}" && test -z "${USEPROGRAMPREFIX_FALSE}"; then
25156   as_fn_error $? "conditional \"USEPROGRAMPREFIX\" was never defined.
25157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25158 fi
25159 if test -z "${BUILD_INFODOC_TRUE}" && test -z "${BUILD_INFODOC_FALSE}"; then
25160   as_fn_error $? "conditional \"BUILD_INFODOC\" was never defined.
25161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25162 fi
25163 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
25164   as_fn_error $? "conditional \"BUILD_HTML\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 fi
25167 if test -z "${BUILD_HTMLEXAMPLES_TRUE}" && test -z "${BUILD_HTMLEXAMPLES_FALSE}"; then
25168   as_fn_error $? "conditional \"BUILD_HTMLEXAMPLES\" was never defined.
25169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25170 fi
25171 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
25172   as_fn_error $? "conditional \"BUILD_PDFDOC\" was never defined.
25173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25174 fi
25175 if test -z "${BUILD_PDFEXAMPLES_TRUE}" && test -z "${BUILD_PDFEXAMPLES_FALSE}"; then
25176   as_fn_error $? "conditional \"BUILD_PDFEXAMPLES\" was never defined.
25177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25178 fi
25179 if test -z "${BUILD_OTHERDOC_TRUE}" && test -z "${BUILD_OTHERDOC_FALSE}"; then
25180   as_fn_error $? "conditional \"BUILD_OTHERDOC\" was never defined.
25181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25182 fi
25183 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
25184   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
25185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25186 fi
25187 if test -z "${INSTALL_SHIPPED_HTML_TRUE}" && test -z "${INSTALL_SHIPPED_HTML_FALSE}"; then
25188   as_fn_error $? "conditional \"INSTALL_SHIPPED_HTML\" was never defined.
25189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25190 fi
25191 if test -z "${HAVE_PDFTOOLS_TRUE}" && test -z "${HAVE_PDFTOOLS_FALSE}"; then
25192   as_fn_error $? "conditional \"HAVE_PDFTOOLS\" was never defined.
25193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25194 fi
25195 if test -z "${HAVE_TEXI2DVI_TRUE}" && test -z "${HAVE_TEXI2DVI_FALSE}"; then
25196   as_fn_error $? "conditional \"HAVE_TEXI2DVI\" was never defined.
25197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25198 fi
25199
25200 : "${CONFIG_STATUS=./config.status}"
25201 ac_write_fail=0
25202 ac_clean_files_save=$ac_clean_files
25203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25205 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25206 as_write_fail=0
25207 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25208 #! $SHELL
25209 # Generated by $as_me.
25210 # Run this file to recreate the current configuration.
25211 # Compiler output produced by configure, useful for debugging
25212 # configure, is in config.log if it exists.
25213
25214 debug=false
25215 ac_cs_recheck=false
25216 ac_cs_silent=false
25217
25218 SHELL=\${CONFIG_SHELL-$SHELL}
25219 export SHELL
25220 _ASEOF
25221 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25222 ## -------------------- ##
25223 ## M4sh Initialization. ##
25224 ## -------------------- ##
25225
25226 # Be more Bourne compatible
25227 DUALCASE=1; export DUALCASE # for MKS sh
25228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25229   emulate sh
25230   NULLCMD=:
25231   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25232   # is contrary to our usage.  Disable this feature.
25233   alias -g '${1+"$@"}'='"$@"'
25234   setopt NO_GLOB_SUBST
25235 else
25236   case `(set -o) 2>/dev/null` in #(
25237   *posix*) :
25238     set -o posix ;; #(
25239   *) :
25240      ;;
25241 esac
25242 fi
25243
25244
25245 as_nl='
25246 '
25247 export as_nl
25248 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25249 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25252 # Prefer a ksh shell builtin over an external printf program on Solaris,
25253 # but without wasting forks for bash or zsh.
25254 if test -z "$BASH_VERSION$ZSH_VERSION" \
25255     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25256   as_echo='print -r --'
25257   as_echo_n='print -rn --'
25258 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25259   as_echo='printf %s\n'
25260   as_echo_n='printf %s'
25261 else
25262   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25263     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25264     as_echo_n='/usr/ucb/echo -n'
25265   else
25266     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25267     as_echo_n_body='eval
25268       arg=$1;
25269       case $arg in #(
25270       *"$as_nl"*)
25271         expr "X$arg" : "X\\(.*\\)$as_nl";
25272         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25273       esac;
25274       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25275     '
25276     export as_echo_n_body
25277     as_echo_n='sh -c $as_echo_n_body as_echo'
25278   fi
25279   export as_echo_body
25280   as_echo='sh -c $as_echo_body as_echo'
25281 fi
25282
25283 # The user is always right.
25284 if test "${PATH_SEPARATOR+set}" != set; then
25285   PATH_SEPARATOR=:
25286   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25287     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25288       PATH_SEPARATOR=';'
25289   }
25290 fi
25291
25292
25293 # IFS
25294 # We need space, tab and new line, in precisely that order.  Quoting is
25295 # there to prevent editors from complaining about space-tab.
25296 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25297 # splitting by setting IFS to empty value.)
25298 IFS=" ""        $as_nl"
25299
25300 # Find who we are.  Look in the path if we contain no directory separator.
25301 as_myself=
25302 case $0 in #((
25303   *[\\/]* ) as_myself=$0 ;;
25304   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25305 for as_dir in $PATH
25306 do
25307   IFS=$as_save_IFS
25308   test -z "$as_dir" && as_dir=.
25309     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25310   done
25311 IFS=$as_save_IFS
25312
25313      ;;
25314 esac
25315 # We did not find ourselves, most probably we were run as `sh COMMAND'
25316 # in which case we are not to be found in the path.
25317 if test "x$as_myself" = x; then
25318   as_myself=$0
25319 fi
25320 if test ! -f "$as_myself"; then
25321   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25322   exit 1
25323 fi
25324
25325 # Unset variables that we do not need and which cause bugs (e.g. in
25326 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25327 # suppresses any "Segmentation fault" message there.  '((' could
25328 # trigger a bug in pdksh 5.2.14.
25329 for as_var in BASH_ENV ENV MAIL MAILPATH
25330 do eval test x\${$as_var+set} = xset \
25331   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25332 done
25333 PS1='$ '
25334 PS2='> '
25335 PS4='+ '
25336
25337 # NLS nuisances.
25338 LC_ALL=C
25339 export LC_ALL
25340 LANGUAGE=C
25341 export LANGUAGE
25342
25343 # CDPATH.
25344 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25345
25346
25347 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25348 # ----------------------------------------
25349 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25350 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25351 # script with STATUS, using 1 if that was 0.
25352 as_fn_error ()
25353 {
25354   as_status=$1; test $as_status -eq 0 && as_status=1
25355   if test "$4"; then
25356     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25357     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25358   fi
25359   $as_echo "$as_me: error: $2" >&2
25360   as_fn_exit $as_status
25361 } # as_fn_error
25362
25363
25364 # as_fn_set_status STATUS
25365 # -----------------------
25366 # Set $? to STATUS, without forking.
25367 as_fn_set_status ()
25368 {
25369   return $1
25370 } # as_fn_set_status
25371
25372 # as_fn_exit STATUS
25373 # -----------------
25374 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25375 as_fn_exit ()
25376 {
25377   set +e
25378   as_fn_set_status $1
25379   exit $1
25380 } # as_fn_exit
25381
25382 # as_fn_unset VAR
25383 # ---------------
25384 # Portably unset VAR.
25385 as_fn_unset ()
25386 {
25387   { eval $1=; unset $1;}
25388 }
25389 as_unset=as_fn_unset
25390 # as_fn_append VAR VALUE
25391 # ----------------------
25392 # Append the text in VALUE to the end of the definition contained in VAR. Take
25393 # advantage of any shell optimizations that allow amortized linear growth over
25394 # repeated appends, instead of the typical quadratic growth present in naive
25395 # implementations.
25396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25397   eval 'as_fn_append ()
25398   {
25399     eval $1+=\$2
25400   }'
25401 else
25402   as_fn_append ()
25403   {
25404     eval $1=\$$1\$2
25405   }
25406 fi # as_fn_append
25407
25408 # as_fn_arith ARG...
25409 # ------------------
25410 # Perform arithmetic evaluation on the ARGs, and store the result in the
25411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25412 # must be portable across $(()) and expr.
25413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25414   eval 'as_fn_arith ()
25415   {
25416     as_val=$(( $* ))
25417   }'
25418 else
25419   as_fn_arith ()
25420   {
25421     as_val=`expr "$@" || test $? -eq 1`
25422   }
25423 fi # as_fn_arith
25424
25425
25426 if expr a : '\(a\)' >/dev/null 2>&1 &&
25427    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25428   as_expr=expr
25429 else
25430   as_expr=false
25431 fi
25432
25433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25434   as_basename=basename
25435 else
25436   as_basename=false
25437 fi
25438
25439 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25440   as_dirname=dirname
25441 else
25442   as_dirname=false
25443 fi
25444
25445 as_me=`$as_basename -- "$0" ||
25446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25447          X"$0" : 'X\(//\)$' \| \
25448          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25449 $as_echo X/"$0" |
25450     sed '/^.*\/\([^/][^/]*\)\/*$/{
25451             s//\1/
25452             q
25453           }
25454           /^X\/\(\/\/\)$/{
25455             s//\1/
25456             q
25457           }
25458           /^X\/\(\/\).*/{
25459             s//\1/
25460             q
25461           }
25462           s/.*/./; q'`
25463
25464 # Avoid depending upon Character Ranges.
25465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25468 as_cr_digits='0123456789'
25469 as_cr_alnum=$as_cr_Letters$as_cr_digits
25470
25471 ECHO_C= ECHO_N= ECHO_T=
25472 case `echo -n x` in #(((((
25473 -n*)
25474   case `echo 'xy\c'` in
25475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25476   xy)  ECHO_C='\c';;
25477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25478        ECHO_T=' ';;
25479   esac;;
25480 *)
25481   ECHO_N='-n';;
25482 esac
25483
25484 rm -f conf$$ conf$$.exe conf$$.file
25485 if test -d conf$$.dir; then
25486   rm -f conf$$.dir/conf$$.file
25487 else
25488   rm -f conf$$.dir
25489   mkdir conf$$.dir 2>/dev/null
25490 fi
25491 if (echo >conf$$.file) 2>/dev/null; then
25492   if ln -s conf$$.file conf$$ 2>/dev/null; then
25493     as_ln_s='ln -s'
25494     # ... but there are two gotchas:
25495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25497     # In both cases, we have to default to `cp -pR'.
25498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25499       as_ln_s='cp -pR'
25500   elif ln conf$$.file conf$$ 2>/dev/null; then
25501     as_ln_s=ln
25502   else
25503     as_ln_s='cp -pR'
25504   fi
25505 else
25506   as_ln_s='cp -pR'
25507 fi
25508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25509 rmdir conf$$.dir 2>/dev/null
25510
25511
25512 # as_fn_mkdir_p
25513 # -------------
25514 # Create "$as_dir" as a directory, including parents if necessary.
25515 as_fn_mkdir_p ()
25516 {
25517
25518   case $as_dir in #(
25519   -*) as_dir=./$as_dir;;
25520   esac
25521   test -d "$as_dir" || eval $as_mkdir_p || {
25522     as_dirs=
25523     while :; do
25524       case $as_dir in #(
25525       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25526       *) as_qdir=$as_dir;;
25527       esac
25528       as_dirs="'$as_qdir' $as_dirs"
25529       as_dir=`$as_dirname -- "$as_dir" ||
25530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25531          X"$as_dir" : 'X\(//\)[^/]' \| \
25532          X"$as_dir" : 'X\(//\)$' \| \
25533          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25534 $as_echo X"$as_dir" |
25535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25536             s//\1/
25537             q
25538           }
25539           /^X\(\/\/\)[^/].*/{
25540             s//\1/
25541             q
25542           }
25543           /^X\(\/\/\)$/{
25544             s//\1/
25545             q
25546           }
25547           /^X\(\/\).*/{
25548             s//\1/
25549             q
25550           }
25551           s/.*/./; q'`
25552       test -d "$as_dir" && break
25553     done
25554     test -z "$as_dirs" || eval "mkdir $as_dirs"
25555   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25556
25557
25558 } # as_fn_mkdir_p
25559 if mkdir -p . 2>/dev/null; then
25560   as_mkdir_p='mkdir -p "$as_dir"'
25561 else
25562   test -d ./-p && rmdir ./-p
25563   as_mkdir_p=false
25564 fi
25565
25566
25567 # as_fn_executable_p FILE
25568 # -----------------------
25569 # Test if FILE is an executable regular file.
25570 as_fn_executable_p ()
25571 {
25572   test -f "$1" && test -x "$1"
25573 } # as_fn_executable_p
25574 as_test_x='test -x'
25575 as_executable_p=as_fn_executable_p
25576
25577 # Sed expression to map a string onto a valid CPP name.
25578 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25579
25580 # Sed expression to map a string onto a valid variable name.
25581 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25582
25583
25584 exec 6>&1
25585 ## ----------------------------------- ##
25586 ## Main body of $CONFIG_STATUS script. ##
25587 ## ----------------------------------- ##
25588 _ASEOF
25589 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25590
25591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25592 # Save the log message, to keep $0 and so on meaningful, and to
25593 # report actual input values of CONFIG_FILES etc. instead of their
25594 # values after options handling.
25595 ac_log="
25596 This file was extended by GNU Troff $as_me 1.22.4, which was
25597 generated by GNU Autoconf 2.69.  Invocation command line was
25598
25599   CONFIG_FILES    = $CONFIG_FILES
25600   CONFIG_HEADERS  = $CONFIG_HEADERS
25601   CONFIG_LINKS    = $CONFIG_LINKS
25602   CONFIG_COMMANDS = $CONFIG_COMMANDS
25603   $ $0 $@
25604
25605 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25606 "
25607
25608 _ACEOF
25609
25610 case $ac_config_files in *"
25611 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25612 esac
25613
25614 case $ac_config_headers in *"
25615 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25616 esac
25617
25618
25619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25620 # Files that config.status was made for.
25621 config_files="$ac_config_files"
25622 config_headers="$ac_config_headers"
25623 config_commands="$ac_config_commands"
25624
25625 _ACEOF
25626
25627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25628 ac_cs_usage="\
25629 \`$as_me' instantiates files and other configuration actions
25630 from templates according to the current configuration.  Unless the files
25631 and actions are specified as TAGs, all are instantiated by default.
25632
25633 Usage: $0 [OPTION]... [TAG]...
25634
25635   -h, --help       print this help, then exit
25636   -V, --version    print version number and configuration settings, then exit
25637       --config     print configuration, then exit
25638   -q, --quiet, --silent
25639                    do not print progress messages
25640   -d, --debug      don't remove temporary files
25641       --recheck    update $as_me by reconfiguring in the same conditions
25642       --file=FILE[:TEMPLATE]
25643                    instantiate the configuration file FILE
25644       --header=FILE[:TEMPLATE]
25645                    instantiate the configuration header FILE
25646
25647 Configuration files:
25648 $config_files
25649
25650 Configuration headers:
25651 $config_headers
25652
25653 Configuration commands:
25654 $config_commands
25655
25656 Report bugs to <http://savannah.gnu.org/bugs/?group=groff>.
25657 GNU Troff home page: <http://www.gnu.org/software/groff/>.
25658 General help using GNU software: <http://www.gnu.org/gethelp/>."
25659
25660 _ACEOF
25661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25662 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25663 ac_cs_version="\\
25664 GNU Troff config.status 1.22.4
25665 configured by $0, generated by GNU Autoconf 2.69,
25666   with options \\"\$ac_cs_config\\"
25667
25668 Copyright (C) 2012 Free Software Foundation, Inc.
25669 This config.status script is free software; the Free Software Foundation
25670 gives unlimited permission to copy, distribute and modify it."
25671
25672 ac_pwd='$ac_pwd'
25673 srcdir='$srcdir'
25674 INSTALL='$INSTALL'
25675 MKDIR_P='$MKDIR_P'
25676 AWK='$AWK'
25677 test -n "\$AWK" || AWK=awk
25678 _ACEOF
25679
25680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25681 # The default lists apply if the user does not specify any file.
25682 ac_need_defaults=:
25683 while test $# != 0
25684 do
25685   case $1 in
25686   --*=?*)
25687     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25688     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25689     ac_shift=:
25690     ;;
25691   --*=)
25692     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25693     ac_optarg=
25694     ac_shift=:
25695     ;;
25696   *)
25697     ac_option=$1
25698     ac_optarg=$2
25699     ac_shift=shift
25700     ;;
25701   esac
25702
25703   case $ac_option in
25704   # Handling of the options.
25705   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25706     ac_cs_recheck=: ;;
25707   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25708     $as_echo "$ac_cs_version"; exit ;;
25709   --config | --confi | --conf | --con | --co | --c )
25710     $as_echo "$ac_cs_config"; exit ;;
25711   --debug | --debu | --deb | --de | --d | -d )
25712     debug=: ;;
25713   --file | --fil | --fi | --f )
25714     $ac_shift
25715     case $ac_optarg in
25716     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25717     '') as_fn_error $? "missing file argument" ;;
25718     esac
25719     as_fn_append CONFIG_FILES " '$ac_optarg'"
25720     ac_need_defaults=false;;
25721   --header | --heade | --head | --hea )
25722     $ac_shift
25723     case $ac_optarg in
25724     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25725     esac
25726     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25727     ac_need_defaults=false;;
25728   --he | --h)
25729     # Conflict between --help and --header
25730     as_fn_error $? "ambiguous option: \`$1'
25731 Try \`$0 --help' for more information.";;
25732   --help | --hel | -h )
25733     $as_echo "$ac_cs_usage"; exit ;;
25734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25735   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25736     ac_cs_silent=: ;;
25737
25738   # This is an error.
25739   -*) as_fn_error $? "unrecognized option: \`$1'
25740 Try \`$0 --help' for more information." ;;
25741
25742   *) as_fn_append ac_config_targets " $1"
25743      ac_need_defaults=false ;;
25744
25745   esac
25746   shift
25747 done
25748
25749 ac_configure_extra_args=
25750
25751 if $ac_cs_silent; then
25752   exec 6>/dev/null
25753   ac_configure_extra_args="$ac_configure_extra_args --silent"
25754 fi
25755
25756 _ACEOF
25757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25758 if \$ac_cs_recheck; then
25759   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25760   shift
25761   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25762   CONFIG_SHELL='$SHELL'
25763   export CONFIG_SHELL
25764   exec "\$@"
25765 fi
25766
25767 _ACEOF
25768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25769 exec 5>>config.log
25770 {
25771   echo
25772   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25773 ## Running $as_me. ##
25774 _ASBOX
25775   $as_echo "$ac_log"
25776 } >&5
25777
25778 _ACEOF
25779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25780 #
25781 # INIT-COMMANDS
25782 #
25783 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25784
25785 _ACEOF
25786
25787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25788
25789 # Handling of arguments.
25790 for ac_config_target in $ac_config_targets
25791 do
25792   case $ac_config_target in
25793     "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
25794     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25795     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25796     "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
25797
25798   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25799   esac
25800 done
25801
25802
25803 # If the user did not use the arguments to specify the items to instantiate,
25804 # then the envvar interface is used.  Set only those that are not.
25805 # We use the long form for the default assignment because of an extremely
25806 # bizarre bug on SunOS 4.1.3.
25807 if $ac_need_defaults; then
25808   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25809   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25810   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25811 fi
25812
25813 # Have a temporary directory for convenience.  Make it in the build tree
25814 # simply because there is no reason against having it here, and in addition,
25815 # creating and moving files from /tmp can sometimes cause problems.
25816 # Hook for its removal unless debugging.
25817 # Note that there is a small window in which the directory will not be cleaned:
25818 # after its creation but before its name has been assigned to `$tmp'.
25819 $debug ||
25820 {
25821   tmp= ac_tmp=
25822   trap 'exit_status=$?
25823   : "${ac_tmp:=$tmp}"
25824   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25825 ' 0
25826   trap 'as_fn_exit 1' 1 2 13 15
25827 }
25828 # Create a (secure) tmp directory for tmp files.
25829
25830 {
25831   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25832   test -d "$tmp"
25833 }  ||
25834 {
25835   tmp=./conf$$-$RANDOM
25836   (umask 077 && mkdir "$tmp")
25837 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25838 ac_tmp=$tmp
25839
25840 # Set up the scripts for CONFIG_FILES section.
25841 # No need to generate them if there are no CONFIG_FILES.
25842 # This happens for instance with `./config.status config.h'.
25843 if test -n "$CONFIG_FILES"; then
25844
25845
25846 ac_cr=`echo X | tr X '\015'`
25847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25848 # But we know of no other shell where ac_cr would be empty at this
25849 # point, so we can use a bashism as a fallback.
25850 if test "x$ac_cr" = x; then
25851   eval ac_cr=\$\'\\r\'
25852 fi
25853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25855   ac_cs_awk_cr='\\r'
25856 else
25857   ac_cs_awk_cr=$ac_cr
25858 fi
25859
25860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25861 _ACEOF
25862
25863
25864 {
25865   echo "cat >conf$$subs.awk <<_ACEOF" &&
25866   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25867   echo "_ACEOF"
25868 } >conf$$subs.sh ||
25869   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25871 ac_delim='%!_!# '
25872 for ac_last_try in false false false false false :; do
25873   . ./conf$$subs.sh ||
25874     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25875
25876   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25877   if test $ac_delim_n = $ac_delim_num; then
25878     break
25879   elif $ac_last_try; then
25880     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25881   else
25882     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25883   fi
25884 done
25885 rm -f conf$$subs.sh
25886
25887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25888 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25889 _ACEOF
25890 sed -n '
25891 h
25892 s/^/S["/; s/!.*/"]=/
25893 p
25894 g
25895 s/^[^!]*!//
25896 :repl
25897 t repl
25898 s/'"$ac_delim"'$//
25899 t delim
25900 :nl
25901 h
25902 s/\(.\{148\}\)..*/\1/
25903 t more1
25904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25905 p
25906 n
25907 b repl
25908 :more1
25909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25910 p
25911 g
25912 s/.\{148\}//
25913 t nl
25914 :delim
25915 h
25916 s/\(.\{148\}\)..*/\1/
25917 t more2
25918 s/["\\]/\\&/g; s/^/"/; s/$/"/
25919 p
25920 b
25921 :more2
25922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25923 p
25924 g
25925 s/.\{148\}//
25926 t delim
25927 ' <conf$$subs.awk | sed '
25928 /^[^""]/{
25929   N
25930   s/\n//
25931 }
25932 ' >>$CONFIG_STATUS || ac_write_fail=1
25933 rm -f conf$$subs.awk
25934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25935 _ACAWK
25936 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25937   for (key in S) S_is_set[key] = 1
25938   FS = "\a"
25939
25940 }
25941 {
25942   line = $ 0
25943   nfields = split(line, field, "@")
25944   substed = 0
25945   len = length(field[1])
25946   for (i = 2; i < nfields; i++) {
25947     key = field[i]
25948     keylen = length(key)
25949     if (S_is_set[key]) {
25950       value = S[key]
25951       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25952       len += length(value) + length(field[++i])
25953       substed = 1
25954     } else
25955       len += 1 + keylen
25956   }
25957
25958   print line
25959 }
25960
25961 _ACAWK
25962 _ACEOF
25963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25965   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25966 else
25967   cat
25968 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25969   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25970 _ACEOF
25971
25972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25974 # trailing colons and then remove the whole line if VPATH becomes empty
25975 # (actually we leave an empty line to preserve line numbers).
25976 if test "x$srcdir" = x.; then
25977   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
25978 h
25979 s///
25980 s/^/:/
25981 s/[      ]*$/:/
25982 s/:\$(srcdir):/:/g
25983 s/:\${srcdir}:/:/g
25984 s/:@srcdir@:/:/g
25985 s/^:*//
25986 s/:*$//
25987 x
25988 s/\(=[   ]*\).*/\1/
25989 G
25990 s/\n//
25991 s/^[^=]*=[       ]*$//
25992 }'
25993 fi
25994
25995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25996 fi # test -n "$CONFIG_FILES"
25997
25998 # Set up the scripts for CONFIG_HEADERS section.
25999 # No need to generate them if there are no CONFIG_HEADERS.
26000 # This happens for instance with `./config.status Makefile'.
26001 if test -n "$CONFIG_HEADERS"; then
26002 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26003 BEGIN {
26004 _ACEOF
26005
26006 # Transform confdefs.h into an awk script `defines.awk', embedded as
26007 # here-document in config.status, that substitutes the proper values into
26008 # config.h.in to produce config.h.
26009
26010 # Create a delimiter string that does not exist in confdefs.h, to ease
26011 # handling of long lines.
26012 ac_delim='%!_!# '
26013 for ac_last_try in false false :; do
26014   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26015   if test -z "$ac_tt"; then
26016     break
26017   elif $ac_last_try; then
26018     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26019   else
26020     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26021   fi
26022 done
26023
26024 # For the awk script, D is an array of macro values keyed by name,
26025 # likewise P contains macro parameters if any.  Preserve backslash
26026 # newline sequences.
26027
26028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26029 sed -n '
26030 s/.\{148\}/&'"$ac_delim"'/g
26031 t rset
26032 :rset
26033 s/^[     ]*#[    ]*define[       ][      ]*/ /
26034 t def
26035 d
26036 :def
26037 s/\\$//
26038 t bsnl
26039 s/["\\]/\\&/g
26040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26041 D["\1"]=" \3"/p
26042 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26043 d
26044 :bsnl
26045 s/["\\]/\\&/g
26046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26047 D["\1"]=" \3\\\\\\n"\\/p
26048 t cont
26049 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26050 t cont
26051 d
26052 :cont
26053 n
26054 s/.\{148\}/&'"$ac_delim"'/g
26055 t clear
26056 :clear
26057 s/\\$//
26058 t bsnlc
26059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26060 d
26061 :bsnlc
26062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26063 b cont
26064 ' <confdefs.h | sed '
26065 s/'"$ac_delim"'/"\\\
26066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26067
26068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26069   for (key in D) D_is_set[key] = 1
26070   FS = "\a"
26071 }
26072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26073   line = \$ 0
26074   split(line, arg, " ")
26075   if (arg[1] == "#") {
26076     defundef = arg[2]
26077     mac1 = arg[3]
26078   } else {
26079     defundef = substr(arg[1], 2)
26080     mac1 = arg[2]
26081   }
26082   split(mac1, mac2, "(") #)
26083   macro = mac2[1]
26084   prefix = substr(line, 1, index(line, defundef) - 1)
26085   if (D_is_set[macro]) {
26086     # Preserve the white space surrounding the "#".
26087     print prefix "define", macro P[macro] D[macro]
26088     next
26089   } else {
26090     # Replace #undef with comments.  This is necessary, for example,
26091     # in the case of _POSIX_SOURCE, which is predefined and required
26092     # on some systems where configure will not decide to define it.
26093     if (defundef == "undef") {
26094       print "/*", prefix defundef, macro, "*/"
26095       next
26096     }
26097   }
26098 }
26099 { print }
26100 _ACAWK
26101 _ACEOF
26102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26103   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26104 fi # test -n "$CONFIG_HEADERS"
26105
26106
26107 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26108 shift
26109 for ac_tag
26110 do
26111   case $ac_tag in
26112   :[FHLC]) ac_mode=$ac_tag; continue;;
26113   esac
26114   case $ac_mode$ac_tag in
26115   :[FHL]*:*);;
26116   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26117   :[FH]-) ac_tag=-:-;;
26118   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26119   esac
26120   ac_save_IFS=$IFS
26121   IFS=:
26122   set x $ac_tag
26123   IFS=$ac_save_IFS
26124   shift
26125   ac_file=$1
26126   shift
26127
26128   case $ac_mode in
26129   :L) ac_source=$1;;
26130   :[FH])
26131     ac_file_inputs=
26132     for ac_f
26133     do
26134       case $ac_f in
26135       -) ac_f="$ac_tmp/stdin";;
26136       *) # Look for the file first in the build tree, then in the source tree
26137          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26138          # because $ac_f cannot contain `:'.
26139          test -f "$ac_f" ||
26140            case $ac_f in
26141            [\\/$]*) false;;
26142            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26143            esac ||
26144            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26145       esac
26146       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26147       as_fn_append ac_file_inputs " '$ac_f'"
26148     done
26149
26150     # Let's still pretend it is `configure' which instantiates (i.e., don't
26151     # use $as_me), people would be surprised to read:
26152     #    /* config.h.  Generated by config.status.  */
26153     configure_input='Generated from '`
26154           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26155         `' by configure.'
26156     if test x"$ac_file" != x-; then
26157       configure_input="$ac_file.  $configure_input"
26158       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26159 $as_echo "$as_me: creating $ac_file" >&6;}
26160     fi
26161     # Neutralize special characters interpreted by sed in replacement strings.
26162     case $configure_input in #(
26163     *\&* | *\|* | *\\* )
26164        ac_sed_conf_input=`$as_echo "$configure_input" |
26165        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26166     *) ac_sed_conf_input=$configure_input;;
26167     esac
26168
26169     case $ac_tag in
26170     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26171       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26172     esac
26173     ;;
26174   esac
26175
26176   ac_dir=`$as_dirname -- "$ac_file" ||
26177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26178          X"$ac_file" : 'X\(//\)[^/]' \| \
26179          X"$ac_file" : 'X\(//\)$' \| \
26180          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26181 $as_echo X"$ac_file" |
26182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26183             s//\1/
26184             q
26185           }
26186           /^X\(\/\/\)[^/].*/{
26187             s//\1/
26188             q
26189           }
26190           /^X\(\/\/\)$/{
26191             s//\1/
26192             q
26193           }
26194           /^X\(\/\).*/{
26195             s//\1/
26196             q
26197           }
26198           s/.*/./; q'`
26199   as_dir="$ac_dir"; as_fn_mkdir_p
26200   ac_builddir=.
26201
26202 case "$ac_dir" in
26203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26204 *)
26205   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26206   # A ".." for each directory in $ac_dir_suffix.
26207   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26208   case $ac_top_builddir_sub in
26209   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26210   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26211   esac ;;
26212 esac
26213 ac_abs_top_builddir=$ac_pwd
26214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26215 # for backward compatibility:
26216 ac_top_builddir=$ac_top_build_prefix
26217
26218 case $srcdir in
26219   .)  # We are building in place.
26220     ac_srcdir=.
26221     ac_top_srcdir=$ac_top_builddir_sub
26222     ac_abs_top_srcdir=$ac_pwd ;;
26223   [\\/]* | ?:[\\/]* )  # Absolute name.
26224     ac_srcdir=$srcdir$ac_dir_suffix;
26225     ac_top_srcdir=$srcdir
26226     ac_abs_top_srcdir=$srcdir ;;
26227   *) # Relative name.
26228     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26229     ac_top_srcdir=$ac_top_build_prefix$srcdir
26230     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26231 esac
26232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26233
26234
26235   case $ac_mode in
26236   :F)
26237   #
26238   # CONFIG_FILE
26239   #
26240
26241   case $INSTALL in
26242   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26243   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26244   esac
26245   ac_MKDIR_P=$MKDIR_P
26246   case $MKDIR_P in
26247   [\\/$]* | ?:[\\/]* ) ;;
26248   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26249   esac
26250 _ACEOF
26251
26252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26253 # If the template does not know about datarootdir, expand it.
26254 # FIXME: This hack should be removed a few years after 2.60.
26255 ac_datarootdir_hack=; ac_datarootdir_seen=
26256 ac_sed_dataroot='
26257 /datarootdir/ {
26258   p
26259   q
26260 }
26261 /@datadir@/p
26262 /@docdir@/p
26263 /@infodir@/p
26264 /@localedir@/p
26265 /@mandir@/p'
26266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26267 *datarootdir*) ac_datarootdir_seen=yes;;
26268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26269   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26271 _ACEOF
26272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26273   ac_datarootdir_hack='
26274   s&@datadir@&$datadir&g
26275   s&@docdir@&$docdir&g
26276   s&@infodir@&$infodir&g
26277   s&@localedir@&$localedir&g
26278   s&@mandir@&$mandir&g
26279   s&\\\${datarootdir}&$datarootdir&g' ;;
26280 esac
26281 _ACEOF
26282
26283 # Neutralize VPATH when `$srcdir' = `.'.
26284 # Shell code in configure.ac might set extrasub.
26285 # FIXME: do we really want to maintain this feature?
26286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26287 ac_sed_extra="$ac_vpsub
26288 $extrasub
26289 _ACEOF
26290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26291 :t
26292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26293 s|@configure_input@|$ac_sed_conf_input|;t t
26294 s&@top_builddir@&$ac_top_builddir_sub&;t t
26295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26296 s&@srcdir@&$ac_srcdir&;t t
26297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26298 s&@top_srcdir@&$ac_top_srcdir&;t t
26299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26300 s&@builddir@&$ac_builddir&;t t
26301 s&@abs_builddir@&$ac_abs_builddir&;t t
26302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26303 s&@INSTALL@&$ac_INSTALL&;t t
26304 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26305 $ac_datarootdir_hack
26306 "
26307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26308   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26309
26310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26311   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26312   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26313       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26315 which seems to be undefined.  Please make sure it is defined" >&5
26316 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26317 which seems to be undefined.  Please make sure it is defined" >&2;}
26318
26319   rm -f "$ac_tmp/stdin"
26320   case $ac_file in
26321   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26322   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26323   esac \
26324   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26325  ;;
26326   :H)
26327   #
26328   # CONFIG_HEADER
26329   #
26330   if test x"$ac_file" != x-; then
26331     {
26332       $as_echo "/* $configure_input  */" \
26333       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26334     } >"$ac_tmp/config.h" \
26335       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26336     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26337       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26338 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26339     else
26340       rm -f "$ac_file"
26341       mv "$ac_tmp/config.h" "$ac_file" \
26342         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26343     fi
26344   else
26345     $as_echo "/* $configure_input  */" \
26346       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26347       || as_fn_error $? "could not create -" "$LINENO" 5
26348   fi
26349 # Compute "$ac_file"'s index in $config_headers.
26350 _am_arg="$ac_file"
26351 _am_stamp_count=1
26352 for _am_header in $config_headers :; do
26353   case $_am_header in
26354     $_am_arg | $_am_arg:* )
26355       break ;;
26356     * )
26357       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26358   esac
26359 done
26360 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26361 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26362          X"$_am_arg" : 'X\(//\)[^/]' \| \
26363          X"$_am_arg" : 'X\(//\)$' \| \
26364          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26365 $as_echo X"$_am_arg" |
26366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26367             s//\1/
26368             q
26369           }
26370           /^X\(\/\/\)[^/].*/{
26371             s//\1/
26372             q
26373           }
26374           /^X\(\/\/\)$/{
26375             s//\1/
26376             q
26377           }
26378           /^X\(\/\).*/{
26379             s//\1/
26380             q
26381           }
26382           s/.*/./; q'`/stamp-h$_am_stamp_count
26383  ;;
26384
26385   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26386 $as_echo "$as_me: executing $ac_file commands" >&6;}
26387  ;;
26388   esac
26389
26390
26391   case $ac_file$ac_mode in
26392     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26393   # Older Autoconf quotes --file arguments for eval, but not when files
26394   # are listed without --file.  Let's play safe and only enable the eval
26395   # if we detect the quoting.
26396   # TODO: see whether this extra hack can be removed once we start
26397   # requiring Autoconf 2.70 or later.
26398   case $CONFIG_FILES in #(
26399   *\'*) :
26400     eval set x "$CONFIG_FILES" ;; #(
26401   *) :
26402     set x $CONFIG_FILES ;; #(
26403   *) :
26404      ;;
26405 esac
26406   shift
26407   # Used to flag and report bootstrapping failures.
26408   am_rc=0
26409   for am_mf
26410   do
26411     # Strip MF so we end up with the name of the file.
26412     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
26413     # Check whether this is an Automake generated Makefile which includes
26414     # dependency-tracking related rules and includes.
26415     # Grep'ing the whole file directly is not great: AIX grep has a line
26416     # limit of 2048, but all sed's we know have understand at least 4000.
26417     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26418       || continue
26419     am_dirpart=`$as_dirname -- "$am_mf" ||
26420 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26421          X"$am_mf" : 'X\(//\)[^/]' \| \
26422          X"$am_mf" : 'X\(//\)$' \| \
26423          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26424 $as_echo X"$am_mf" |
26425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26426             s//\1/
26427             q
26428           }
26429           /^X\(\/\/\)[^/].*/{
26430             s//\1/
26431             q
26432           }
26433           /^X\(\/\/\)$/{
26434             s//\1/
26435             q
26436           }
26437           /^X\(\/\).*/{
26438             s//\1/
26439             q
26440           }
26441           s/.*/./; q'`
26442     am_filepart=`$as_basename -- "$am_mf" ||
26443 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26444          X"$am_mf" : 'X\(//\)$' \| \
26445          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26446 $as_echo X/"$am_mf" |
26447     sed '/^.*\/\([^/][^/]*\)\/*$/{
26448             s//\1/
26449             q
26450           }
26451           /^X\/\(\/\/\)$/{
26452             s//\1/
26453             q
26454           }
26455           /^X\/\(\/\).*/{
26456             s//\1/
26457             q
26458           }
26459           s/.*/./; q'`
26460     { echo "$as_me:$LINENO: cd "$am_dirpart" \
26461       && sed -e '/# am--include-marker/d' "$am_filepart" \
26462         | $MAKE -f - am--depfiles" >&5
26463    (cd "$am_dirpart" \
26464       && sed -e '/# am--include-marker/d' "$am_filepart" \
26465         | $MAKE -f - am--depfiles) >&5 2>&5
26466    ac_status=$?
26467    echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468    (exit $ac_status); } || am_rc=$?
26469   done
26470   if test $am_rc -ne 0; then
26471     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26473 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26474     for automatic dependency tracking.  Try re-running configure with the
26475     '--disable-dependency-tracking' option to at least be able to build
26476     the package (albeit without support for automatic dependency tracking).
26477 See \`config.log' for more details" "$LINENO" 5; }
26478   fi
26479   { am_dirpart=; unset am_dirpart;}
26480   { am_filepart=; unset am_filepart;}
26481   { am_mf=; unset am_mf;}
26482   { am_rc=; unset am_rc;}
26483   rm -f conftest-deps.mk
26484 }
26485  ;;
26486     "test-groff":F) chmod +x test-groff ;;
26487
26488   esac
26489 done # for ac_tag
26490
26491
26492 as_fn_exit 0
26493 _ACEOF
26494 ac_clean_files=$ac_clean_files_save
26495
26496 test $ac_write_fail = 0 ||
26497   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26498
26499
26500 # configure is writing to config.log, and then calls config.status.
26501 # config.status does its own redirection, appending to config.log.
26502 # Unfortunately, on DOS this fails, as config.log is still kept open
26503 # by configure, so config.status won't be able to write to it; its
26504 # output is simply discarded.  So we exec the FD to /dev/null,
26505 # effectively closing config.log, so it can be properly (re)opened and
26506 # appended to by config.status.  When coming back to configure, we
26507 # need to make the FD available again.
26508 if test "$no_create" != yes; then
26509   ac_cs_success=:
26510   ac_config_status_args=
26511   test "$silent" = yes &&
26512     ac_config_status_args="$ac_config_status_args --quiet"
26513   exec 5>/dev/null
26514   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26515   exec 5>>config.log
26516   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26517   # would make configure fail if this is the last instruction.
26518   $ac_cs_success || as_fn_exit 1
26519 fi
26520 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26521   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26522 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26523 fi
26524
26525
26526 echo "
26527 ${PACKAGE_NAME} version ${PACKAGE_VERSION}
26528 ----------------------------------------------------------------------
26529  Prefix                          : ${prefix}
26530  Compiler                        : ${CC} ${CFLAGS} ${CPPFLAGS}"
26531 if test "x$groff_no_x" = "xyes"; then
26532 echo "\
26533  X11 support                     : no"
26534 else
26535 echo "\
26536  X11 support                     : yes
26537  X11 resources dir               : $appresdir"
26538 fi
26539 if test "x$doc" = x; then
26540 echo "\
26541  Doc build                       : no"
26542 else
26543 echo "\
26544  Doc build                       : ${doc} "
26545 fi
26546 echo "\
26547  URW fonts for pdf               : $groff_have_urw_fonts
26548  Use uchardet library for preconv: $groff_have_uchardet
26549  pdftools for distcheck          : $groff_have_pdftools"
26550 echo "\
26551 ----------------------------------------------------------------------"
26552
26553 if test -z "$groff_no_x"; then
26554      if test "x$with_appresdir" = "x"; then
26555        { $as_echo "$as_me:${as_lineno-$LINENO}:
26556   The application resource files for gxditview (GXditview and
26557   GXditview-color) will be installed in:
26558
26559     $appresdir
26560
26561   (existing files will be saved by appending '.old' to the file
26562   name).
26563
26564   To install them into a different directory, say,
26565   '/etc/X11/app-defaults', add
26566   '--with-appresdir=/etc/X11/app-defaults' to the configure script
26567   command-line options and rerun it ('prefix' value has no effect on
26568   a --with-appresdir option).
26569
26570   If the gxditview resources are installed in a directory that is not
26571   one of the default X11 resources directories (common default
26572   directories are /usr/lib/X11/app-defaults,
26573   /usr/share/X11/app-defaults and /etc/X11/app-defaults), you will
26574   have to set the environment variable XFILESEARCHPATH to this
26575   path.  More details can be found in the X(7) manual page, or in \"X
26576   Toolkit Intrinsics - C Language Interface manual\".
26577        " >&5
26578 $as_echo "$as_me:
26579   The application resource files for gxditview (GXditview and
26580   GXditview-color) will be installed in:
26581
26582     $appresdir
26583
26584   (existing files will be saved by appending '.old' to the file
26585   name).
26586
26587   To install them into a different directory, say,
26588   '/etc/X11/app-defaults', add
26589   '--with-appresdir=/etc/X11/app-defaults' to the configure script
26590   command-line options and rerun it ('prefix' value has no effect on
26591   a --with-appresdir option).
26592
26593   If the gxditview resources are installed in a directory that is not
26594   one of the default X11 resources directories (common default
26595   directories are /usr/lib/X11/app-defaults,
26596   /usr/share/X11/app-defaults and /etc/X11/app-defaults), you will
26597   have to set the environment variable XFILESEARCHPATH to this
26598   path.  More details can be found in the X(7) manual page, or in \"X
26599   Toolkit Intrinsics - C Language Interface manual\".
26600        " >&6;}
26601      fi
26602    fi
26603 if test "$groff_have_urw_fonts" = no; then
26604   { $as_echo "$as_me:${as_lineno-$LINENO}:
26605   No URW fonts in .pfb format were found on your system, URW fonts
26606   generation for 'devpdf' will not work properly.  These fonts can be
26607   downloaded here:
26608
26609     http://downloads.ghostscript.com/public/fonts/urw-base35-v1.10.zip
26610
26611   By default groff will search these fonts in the paths given by \`gs
26612   -h' and in these 2 default directories:
26613   '/usr/share/fonts/type1/gsfonts/' and
26614   '/opt/local/share/fonts/urw-fonts/' (paths used by
26615   font/devpdf/Foundry.in).  You can also pass the option
26616   '--with-urw-fonts-dir=DIR' to 'configure' to set a custom path.  You
26617   would need to re-run the 'configure' script after installing these
26618   fonts.
26619
26620   " >&5
26621 $as_echo "$as_me:
26622   No URW fonts in .pfb format were found on your system, URW fonts
26623   generation for 'devpdf' will not work properly.  These fonts can be
26624   downloaded here:
26625
26626     http://downloads.ghostscript.com/public/fonts/urw-base35-v1.10.zip
26627
26628   By default groff will search these fonts in the paths given by \`gs
26629   -h' and in these 2 default directories:
26630   '/usr/share/fonts/type1/gsfonts/' and
26631   '/opt/local/share/fonts/urw-fonts/' (paths used by
26632   font/devpdf/Foundry.in).  You can also pass the option
26633   '--with-urw-fonts-dir=DIR' to 'configure' to set a custom path.  You
26634   would need to re-run the 'configure' script after installing these
26635   fonts.
26636
26637   " >&6;}
26638   fi
26639
26640 if test "x$groff_have_uchardet" = "xno" -a "x$with_uchardet" != "xno"; then
26641   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26642   uchardet library was not found; preprocessor 'preconv', which uses it to detect
26643   the input file encoding, might not work properly (to check how and in which
26644   order 'preconv' tries to determine the file encoding, see its man page).
26645   " >&5
26646 $as_echo "$as_me: WARNING:
26647   uchardet library was not found; preprocessor 'preconv', which uses it to detect
26648   the input file encoding, might not work properly (to check how and in which
26649   order 'preconv' tries to determine the file encoding, see its man page).
26650   " >&2;}
26651   fi
26652