packaging: improve spec file
[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 groff 1.22.2.
4 #
5 # Report bugs to <bug-groff@gnu.org>.
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 bug-groff@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: 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='groff'
582 PACKAGE_TARNAME='groff-1.22.2'
583 PACKAGE_VERSION='1.22.2'
584 PACKAGE_STRING='groff 1.22.2'
585 PACKAGE_BUGREPORT='bug-groff@gnu.org'
586 PACKAGE_URL=''
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_header_list=
626 ac_func_list=
627 ac_subst_vars='LTLIBOBJS
628 GLIBC21
629 pnmtops_nosetpage
630 make_install_pdfdoc
631 make_pdfdoc
632 ac_ct_AWK
633 AWK
634 ALT_AWK_PROGS
635 make_install_html
636 make_html
637 pnmtops
638 psselect
639 pnmtopng
640 pnmcrop
641 pnmcut
642 ac_ct_GHOSTSCRIPT
643 GHOSTSCRIPT
644 ALT_GHOSTSCRIPT_PROGS
645 GROFF_PATH_SEPARATOR
646 tmac_wrap
647 sys_tmac_prefix
648 g
649 PAGE
650 BROKEN_SPOOLER_FLAGS
651 LIBOBJS
652 LIBEXT
653 LTLIBICONV
654 LIBICONV
655 CXXCPP
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 LIBM
665 LIBC
666 SH_SCRIPT_SED_CMD
667 LN_S
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 INSTALL_INFO
672 RANLIB
673 MAKEINFO
674 YACC
675 PERLPATH
676 DVIPRINT
677 PSPRINT
678 LPQ
679 LP
680 LPR
681 groffer_dir
682 appresdir
683 XLIBDIRS
684 XPROGDIRS
685 XDEVDIRS
686 X_EXTRA_LIBS
687 X_LIBS
688 X_PRE_LIBS
689 X_CFLAGS
690 XMKMF
691 OTHERDEVDIRS
692 TTYDEVDIRS
693 ac_ct_CXX
694 CXXFLAGS
695 CXX
696 EGREP
697 GREP
698 CPP
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 with_x
748 with_appresdir
749 with_grofferdir
750 with_gnu_ld
751 enable_rpath
752 with_libiconv_prefix
753 with_alt_gs
754 with_gs
755 with_alt_awk
756 with_awk
757 '
758       ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP
767 CXX
768 CXXFLAGS
769 CCC
770 XMKMF
771 CXXCPP'
772
773
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
821
822 ac_prev=
823 ac_dashdash=
824 for ac_option
825 do
826   # If the previous option needs an argument, assign it.
827   if test -n "$ac_prev"; then
828     eval $ac_prev=\$ac_option
829     ac_prev=
830     continue
831   fi
832
833   case $ac_option in
834   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835   *=)   ac_optarg= ;;
836   *)    ac_optarg=yes ;;
837   esac
838
839   # Accept the important Cygnus configure options, so we can diagnose typos.
840
841   case $ac_dashdash$ac_option in
842   --)
843     ac_dashdash=yes ;;
844
845   -bindir | --bindir | --bindi | --bind | --bin | --bi)
846     ac_prev=bindir ;;
847   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848     bindir=$ac_optarg ;;
849
850   -build | --build | --buil | --bui | --bu)
851     ac_prev=build_alias ;;
852   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853     build_alias=$ac_optarg ;;
854
855   -cache-file | --cache-file | --cache-fil | --cache-fi \
856   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857     ac_prev=cache_file ;;
858   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860     cache_file=$ac_optarg ;;
861
862   --config-cache | -C)
863     cache_file=config.cache ;;
864
865   -datadir | --datadir | --datadi | --datad)
866     ac_prev=datadir ;;
867   -datadir=* | --datadir=* | --datadi=* | --datad=*)
868     datadir=$ac_optarg ;;
869
870   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871   | --dataroo | --dataro | --datar)
872     ac_prev=datarootdir ;;
873   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875     datarootdir=$ac_optarg ;;
876
877   -disable-* | --disable-*)
878     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879     # Reject names that are not valid shell variable names.
880     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881       as_fn_error $? "invalid feature name: $ac_useropt"
882     ac_useropt_orig=$ac_useropt
883     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884     case $ac_user_opts in
885       *"
886 "enable_$ac_useropt"
887 "*) ;;
888       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889          ac_unrecognized_sep=', ';;
890     esac
891     eval enable_$ac_useropt=no ;;
892
893   -docdir | --docdir | --docdi | --doc | --do)
894     ac_prev=docdir ;;
895   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896     docdir=$ac_optarg ;;
897
898   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899     ac_prev=dvidir ;;
900   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901     dvidir=$ac_optarg ;;
902
903   -enable-* | --enable-*)
904     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905     # Reject names that are not valid shell variable names.
906     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907       as_fn_error $? "invalid feature name: $ac_useropt"
908     ac_useropt_orig=$ac_useropt
909     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910     case $ac_user_opts in
911       *"
912 "enable_$ac_useropt"
913 "*) ;;
914       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915          ac_unrecognized_sep=', ';;
916     esac
917     eval enable_$ac_useropt=\$ac_optarg ;;
918
919   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921   | --exec | --exe | --ex)
922     ac_prev=exec_prefix ;;
923   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925   | --exec=* | --exe=* | --ex=*)
926     exec_prefix=$ac_optarg ;;
927
928   -gas | --gas | --ga | --g)
929     # Obsolete; use --with-gas.
930     with_gas=yes ;;
931
932   -help | --help | --hel | --he | -h)
933     ac_init_help=long ;;
934   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935     ac_init_help=recursive ;;
936   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937     ac_init_help=short ;;
938
939   -host | --host | --hos | --ho)
940     ac_prev=host_alias ;;
941   -host=* | --host=* | --hos=* | --ho=*)
942     host_alias=$ac_optarg ;;
943
944   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945     ac_prev=htmldir ;;
946   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947   | --ht=*)
948     htmldir=$ac_optarg ;;
949
950   -includedir | --includedir | --includedi | --included | --include \
951   | --includ | --inclu | --incl | --inc)
952     ac_prev=includedir ;;
953   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954   | --includ=* | --inclu=* | --incl=* | --inc=*)
955     includedir=$ac_optarg ;;
956
957   -infodir | --infodir | --infodi | --infod | --info | --inf)
958     ac_prev=infodir ;;
959   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960     infodir=$ac_optarg ;;
961
962   -libdir | --libdir | --libdi | --libd)
963     ac_prev=libdir ;;
964   -libdir=* | --libdir=* | --libdi=* | --libd=*)
965     libdir=$ac_optarg ;;
966
967   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968   | --libexe | --libex | --libe)
969     ac_prev=libexecdir ;;
970   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971   | --libexe=* | --libex=* | --libe=*)
972     libexecdir=$ac_optarg ;;
973
974   -localedir | --localedir | --localedi | --localed | --locale)
975     ac_prev=localedir ;;
976   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977     localedir=$ac_optarg ;;
978
979   -localstatedir | --localstatedir | --localstatedi | --localstated \
980   | --localstate | --localstat | --localsta | --localst | --locals)
981     ac_prev=localstatedir ;;
982   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984     localstatedir=$ac_optarg ;;
985
986   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987     ac_prev=mandir ;;
988   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989     mandir=$ac_optarg ;;
990
991   -nfp | --nfp | --nf)
992     # Obsolete; use --without-fp.
993     with_fp=no ;;
994
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n)
997     no_create=yes ;;
998
999   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001     no_recursion=yes ;;
1002
1003   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005   | --oldin | --oldi | --old | --ol | --o)
1006     ac_prev=oldincludedir ;;
1007   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010     oldincludedir=$ac_optarg ;;
1011
1012   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013     ac_prev=prefix ;;
1014   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015     prefix=$ac_optarg ;;
1016
1017   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018   | --program-pre | --program-pr | --program-p)
1019     ac_prev=program_prefix ;;
1020   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022     program_prefix=$ac_optarg ;;
1023
1024   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025   | --program-suf | --program-su | --program-s)
1026     ac_prev=program_suffix ;;
1027   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029     program_suffix=$ac_optarg ;;
1030
1031   -program-transform-name | --program-transform-name \
1032   | --program-transform-nam | --program-transform-na \
1033   | --program-transform-n | --program-transform- \
1034   | --program-transform | --program-transfor \
1035   | --program-transfo | --program-transf \
1036   | --program-trans | --program-tran \
1037   | --progr-tra | --program-tr | --program-t)
1038     ac_prev=program_transform_name ;;
1039   -program-transform-name=* | --program-transform-name=* \
1040   | --program-transform-nam=* | --program-transform-na=* \
1041   | --program-transform-n=* | --program-transform-=* \
1042   | --program-transform=* | --program-transfor=* \
1043   | --program-transfo=* | --program-transf=* \
1044   | --program-trans=* | --program-tran=* \
1045   | --progr-tra=* | --program-tr=* | --program-t=*)
1046     program_transform_name=$ac_optarg ;;
1047
1048   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049     ac_prev=pdfdir ;;
1050   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051     pdfdir=$ac_optarg ;;
1052
1053   -psdir | --psdir | --psdi | --psd | --ps)
1054     ac_prev=psdir ;;
1055   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056     psdir=$ac_optarg ;;
1057
1058   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059   | -silent | --silent | --silen | --sile | --sil)
1060     silent=yes ;;
1061
1062   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063     ac_prev=sbindir ;;
1064   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065   | --sbi=* | --sb=*)
1066     sbindir=$ac_optarg ;;
1067
1068   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070   | --sharedst | --shareds | --shared | --share | --shar \
1071   | --sha | --sh)
1072     ac_prev=sharedstatedir ;;
1073   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076   | --sha=* | --sh=*)
1077     sharedstatedir=$ac_optarg ;;
1078
1079   -site | --site | --sit)
1080     ac_prev=site ;;
1081   -site=* | --site=* | --sit=*)
1082     site=$ac_optarg ;;
1083
1084   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085     ac_prev=srcdir ;;
1086   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087     srcdir=$ac_optarg ;;
1088
1089   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090   | --syscon | --sysco | --sysc | --sys | --sy)
1091     ac_prev=sysconfdir ;;
1092   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094     sysconfdir=$ac_optarg ;;
1095
1096   -target | --target | --targe | --targ | --tar | --ta | --t)
1097     ac_prev=target_alias ;;
1098   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099     target_alias=$ac_optarg ;;
1100
1101   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102     verbose=yes ;;
1103
1104   -version | --version | --versio | --versi | --vers | -V)
1105     ac_init_version=: ;;
1106
1107   -with-* | --with-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=\$ac_optarg ;;
1122
1123   -without-* | --without-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error $? "invalid package name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval with_$ac_useropt=no ;;
1138
1139   --x)
1140     # Obsolete; use --with-x.
1141     with_x=yes ;;
1142
1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144   | --x-incl | --x-inc | --x-in | --x-i)
1145     ac_prev=x_includes ;;
1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148     x_includes=$ac_optarg ;;
1149
1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152     ac_prev=x_libraries ;;
1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155     x_libraries=$ac_optarg ;;
1156
1157   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information"
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     case $ac_envvar in #(
1165       '' | [0-9]* | *[!_$as_cr_alnum]* )
1166       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167     esac
1168     eval $ac_envvar=\$ac_optarg
1169     export $ac_envvar ;;
1170
1171   *)
1172     # FIXME: should be removed in autoconf 3.0.
1173     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177     ;;
1178
1179   esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184   as_fn_error $? "missing argument to $ac_option"
1185 fi
1186
1187 if test -n "$ac_unrecognized_opts"; then
1188   case $enable_option_checking in
1189     no) ;;
1190     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192   esac
1193 fi
1194
1195 # Check all directory arguments for consistency.
1196 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197                 datadir sysconfdir sharedstatedir localstatedir includedir \
1198                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199                 libdir localedir mandir
1200 do
1201   eval ac_val=\$$ac_var
1202   # Remove trailing slashes.
1203   case $ac_val in
1204     */ )
1205       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206       eval $ac_var=\$ac_val;;
1207   esac
1208   # Be sure to have absolute directory names.
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227   elif test "x$build_alias" != "x$host_alias"; then
1228     cross_compiling=yes
1229   fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241   as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243   as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248   ac_srcdir_defaulted=yes
1249   # Try the directory containing this script, then the parent directory.
1250   ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252          X"$as_myself" : 'X\(//\)[^/]' \| \
1253          X"$as_myself" : 'X\(//\)$' \| \
1254          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\/\)[^/].*/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\).*/{
1269             s//\1/
1270             q
1271           }
1272           s/.*/./; q'`
1273   srcdir=$ac_confdir
1274   if test ! -r "$srcdir/$ac_unique_file"; then
1275     srcdir=..
1276   fi
1277 else
1278   ac_srcdir_defaulted=no
1279 fi
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures groff 1.22.2 to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking ...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR            user executables [EPREFIX/bin]
1347   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR        program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR            object code libraries [EPREFIX/lib]
1353   --includedir=DIR        C header files [PREFIX/include]
1354   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR           info documentation [DATAROOTDIR/info]
1358   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR            man documentation [DATAROOTDIR/man]
1360   --docdir=DIR            documentation root [DATAROOTDIR/doc/groff-1.22.2]
1361   --htmldir=DIR           html documentation [DOCDIR]
1362   --dvidir=DIR            dvi documentation [DOCDIR]
1363   --pdfdir=DIR            pdf documentation [DOCDIR]
1364   --psdir=DIR             ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 X features:
1370   --x-includes=DIR    X include files are in DIR
1371   --x-libraries=DIR   X library files are in DIR
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of groff 1.22.2:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --disable-rpath         do not hardcode runtime library paths
1390
1391 Optional Packages:
1392   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1393   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1394   --with-x                use the X Window System
1395   --with-appresdir=DIR    X11 application resource files
1396   --with-grofferdir=DIR   groffer files location
1397   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1398   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1399   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1400   --with-alt-gs=LIST      alternative names for ghostscript executable
1401   --with-gs=PROG          actual [/path/]name of ghostscript executable
1402   --with-alt-awk=LIST     alternative names for awk executable
1403   --with-awk=PROG         actual [/path/]name of awk executable
1404
1405 Some influential environment variables:
1406   CC          C compiler command
1407   CFLAGS      C compiler flags
1408   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409               nonstandard directory <lib dir>
1410   LIBS        libraries to pass to the linker, e.g. -l<library>
1411   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412               you have headers in a nonstandard directory <include dir>
1413   CPP         C preprocessor
1414   CXX         C++ compiler command
1415   CXXFLAGS    C++ compiler flags
1416   XMKMF       Path to xmkmf, Makefile generator for X Window System
1417   CXXCPP      C++ preprocessor
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <bug-groff@gnu.org>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428   # If there are subdirs, report their specific --help.
1429   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430     test -d "$ac_dir" ||
1431       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432       continue
1433     ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439   # A ".." for each directory in $ac_dir_suffix.
1440   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441   case $ac_top_builddir_sub in
1442   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444   esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452   .)  # We are building in place.
1453     ac_srcdir=.
1454     ac_top_srcdir=$ac_top_builddir_sub
1455     ac_abs_top_srcdir=$ac_pwd ;;
1456   [\\/]* | ?:[\\/]* )  # Absolute name.
1457     ac_srcdir=$srcdir$ac_dir_suffix;
1458     ac_top_srcdir=$srcdir
1459     ac_abs_top_srcdir=$srcdir ;;
1460   *) # Relative name.
1461     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462     ac_top_srcdir=$ac_top_build_prefix$srcdir
1463     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467     cd "$ac_dir" || { ac_status=$?; continue; }
1468     # Check for guested configure.
1469     if test -f "$ac_srcdir/configure.gnu"; then
1470       echo &&
1471       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472     elif test -f "$ac_srcdir/configure"; then
1473       echo &&
1474       $SHELL "$ac_srcdir/configure" --help=recursive
1475     else
1476       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477     fi || ac_status=$?
1478     cd "$ac_pwd" || { ac_status=$?; break; }
1479   done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484   cat <<\_ACEOF
1485 groff configure 1.22.2
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492   exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505   rm -f conftest.$ac_objext
1506   if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509   *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513   (eval "$ac_compile") 2>conftest.err
1514   ac_status=$?
1515   if test -s conftest.err; then
1516     grep -v '^ *+' conftest.err >conftest.er1
1517     cat conftest.er1 >&5
1518     mv -f conftest.er1 conftest.err
1519   fi
1520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521   test $ac_status = 0; } && {
1522          test -z "$ac_c_werror_flag" ||
1523          test ! -s conftest.err
1524        } && test -s conftest.$ac_objext; then :
1525   ac_retval=0
1526 else
1527   $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530         ac_retval=1
1531 fi
1532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533   as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_try_cpp LINENO
1538 # ----------------------
1539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_cpp ()
1541 {
1542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543   if { { ac_try="$ac_cpp conftest.$ac_ext"
1544 case "(($ac_try" in
1545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546   *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551   ac_status=$?
1552   if test -s conftest.err; then
1553     grep -v '^ *+' conftest.err >conftest.er1
1554     cat conftest.er1 >&5
1555     mv -f conftest.er1 conftest.err
1556   fi
1557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558   test $ac_status = 0; } > conftest.i && {
1559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560          test ! -s conftest.err
1561        }; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567     ac_retval=1
1568 fi
1569   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570   as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_cpp
1573
1574 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577 # the include files in INCLUDES and setting the cache variable VAR
1578 # accordingly.
1579 ac_fn_c_check_header_mongrel ()
1580 {
1581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582   if eval \${$3+:} false; then :
1583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586   $as_echo_n "(cached) " >&6
1587 fi
1588 eval ac_res=\$$3
1589                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 else
1592   # Is the header compilable?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594 $as_echo_n "checking $2 usability... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h.  */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601   ac_header_compiler=yes
1602 else
1603   ac_header_compiler=no
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607 $as_echo "$ac_header_compiler" >&6; }
1608
1609 # Is the header present?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611 $as_echo_n "checking $2 presence... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h.  */
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_cpp "$LINENO"; then :
1617   ac_header_preproc=yes
1618 else
1619   ac_header_preproc=no
1620 fi
1621 rm -f conftest.err conftest.i conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623 $as_echo "$ac_header_preproc" >&6; }
1624
1625 # So?  What about this header?
1626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627   yes:no: )
1628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632     ;;
1633   no:yes:* )
1634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1637 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1641 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 ( $as_echo "## -------------------------------- ##
1645 ## Report this to bug-groff@gnu.org ##
1646 ## -------------------------------- ##"
1647      ) | sed "s/^/$as_me: WARNING:     /" >&2
1648     ;;
1649 esac
1650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653   $as_echo_n "(cached) " >&6
1654 else
1655   eval "$3=\$ac_header_compiler"
1656 fi
1657 eval ac_res=\$$3
1658                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 fi
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663 } # ac_fn_c_check_header_mongrel
1664
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1669 ac_fn_c_try_run ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_link") 2>&5
1680   ac_status=$?
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683   { { case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_try") 2>&5
1690   ac_status=$?
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; }; }; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: program exited with status $ac_status" >&5
1696        $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699        ac_retval=$ac_status
1700 fi
1701   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_run
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717   $as_echo_n "(cached) " >&6
1718 else
1719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h.  */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725   eval "$3=yes"
1726 else
1727   eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_cxx_try_compile LINENO
1739 # ----------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_cxx_try_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   rm -f conftest.$ac_objext
1745   if { { ac_try="$ac_compile"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_compile") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && {
1761          test -z "$ac_cxx_werror_flag" ||
1762          test ! -s conftest.err
1763        } && test -s conftest.$ac_objext; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769         ac_retval=1
1770 fi
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772   as_fn_set_status $ac_retval
1773
1774 } # ac_fn_cxx_try_compile
1775
1776 # ac_fn_cxx_try_run LINENO
1777 # ------------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_cxx_try_run ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_link") 2>&5
1791   ac_status=$?
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794   { { case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_try") 2>&5
1801   ac_status=$?
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; }; }; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: program exited with status $ac_status" >&5
1807        $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810        ac_retval=$ac_status
1811 fi
1812   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814   as_fn_set_status $ac_retval
1815
1816 } # ac_fn_cxx_try_run
1817
1818 # ac_fn_cxx_try_link LINENO
1819 # -------------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_link ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   rm -f conftest.$ac_objext conftest$ac_exeext
1825   if { { ac_try="$ac_link"
1826 case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_link") 2>conftest.err
1833   ac_status=$?
1834   if test -s conftest.err; then
1835     grep -v '^ *+' conftest.err >conftest.er1
1836     cat conftest.er1 >&5
1837     mv -f conftest.er1 conftest.err
1838   fi
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } && {
1841          test -z "$ac_cxx_werror_flag" ||
1842          test ! -s conftest.err
1843        } && test -s conftest$ac_exeext && {
1844          test "$cross_compiling" = yes ||
1845          test -x conftest$ac_exeext
1846        }; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852         ac_retval=1
1853 fi
1854   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856   # interfere with the next link command; also delete a directory that is
1857   # left behind by Apple's compiler.  We do this before executing the actions.
1858   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_cxx_try_link
1863
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_c_try_link ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   rm -f conftest.$ac_objext conftest$ac_exeext
1871   if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_link") 2>conftest.err
1879   ac_status=$?
1880   if test -s conftest.err; then
1881     grep -v '^ *+' conftest.err >conftest.er1
1882     cat conftest.er1 >&5
1883     mv -f conftest.er1 conftest.err
1884   fi
1885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } && {
1887          test -z "$ac_c_werror_flag" ||
1888          test ! -s conftest.err
1889        } && test -s conftest$ac_exeext && {
1890          test "$cross_compiling" = yes ||
1891          test -x conftest$ac_exeext
1892        }; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898         ac_retval=1
1899 fi
1900   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902   # interfere with the next link command; also delete a directory that is
1903   # left behind by Apple's compiler.  We do this before executing the actions.
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_link
1909
1910 # ac_fn_c_check_func LINENO FUNC VAR
1911 # ----------------------------------
1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1913 ac_fn_c_check_func ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1925 #define $2 innocuous_$2
1926
1927 /* System header to define __stub macros and hopefully few prototypes,
1928     which can conflict with char $2 (); below.
1929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930     <limits.h> exists even on freestanding compilers.  */
1931
1932 #ifdef __STDC__
1933 # include <limits.h>
1934 #else
1935 # include <assert.h>
1936 #endif
1937
1938 #undef $2
1939
1940 /* Override any GCC internal prototype to avoid an error.
1941    Use char because int might match the return type of a GCC
1942    builtin and then its argument prototype would still apply.  */
1943 #ifdef __cplusplus
1944 extern "C"
1945 #endif
1946 char $2 ();
1947 /* The GNU C library defines this for functions which it implements
1948     to always fail with ENOSYS.  Some functions are actually named
1949     something starting with __ and the normal name is an alias.  */
1950 #if defined __stub_$2 || defined __stub___$2
1951 choke me
1952 #endif
1953
1954 int
1955 main ()
1956 {
1957 return $2 ();
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_link "$LINENO"; then :
1963   eval "$3=yes"
1964 else
1965   eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext \
1968     conftest$ac_exeext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_func
1976
1977 # ac_fn_cxx_try_cpp LINENO
1978 # ------------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_cpp ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   if { { ac_try="$ac_cpp conftest.$ac_ext"
1984 case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1991   ac_status=$?
1992   if test -s conftest.err; then
1993     grep -v '^ *+' conftest.err >conftest.er1
1994     cat conftest.er1 >&5
1995     mv -f conftest.er1 conftest.err
1996   fi
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } > conftest.i && {
1999          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2000          test ! -s conftest.err
2001        }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007     ac_retval=1
2008 fi
2009   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010   as_fn_set_status $ac_retval
2011
2012 } # ac_fn_cxx_try_cpp
2013
2014 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2015 # ---------------------------------------------
2016 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2017 # accordingly.
2018 ac_fn_c_check_decl ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   as_decl_name=`echo $2|sed 's/ *(.*//'`
2022   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2024 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2025 if eval \${$3+:} false; then :
2026   $as_echo_n "(cached) " >&6
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 int
2032 main ()
2033 {
2034 #ifndef $as_decl_name
2035 #ifdef __cplusplus
2036   (void) $as_decl_use;
2037 #else
2038   (void) $as_decl_name;
2039 #endif
2040 #endif
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047   eval "$3=yes"
2048 else
2049   eval "$3=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_decl
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2062
2063 It was created by groff $as_me 1.22.2, which was
2064 generated by GNU Autoconf 2.69.  Invocation command line was
2065
2066   $ $0 $@
2067
2068 _ACEOF
2069 exec 5>>config.log
2070 {
2071 cat <<_ASUNAME
2072 ## --------- ##
2073 ## Platform. ##
2074 ## --------- ##
2075
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2084
2085 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2086 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2089 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2090 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2091 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2092
2093 _ASUNAME
2094
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100     $as_echo "PATH: $as_dir"
2101   done
2102 IFS=$as_save_IFS
2103
2104 } >&5
2105
2106 cat >&5 <<_ACEOF
2107
2108
2109 ## ----------- ##
2110 ## Core tests. ##
2111 ## ----------- ##
2112
2113 _ACEOF
2114
2115
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2121 ac_configure_args=
2122 ac_configure_args0=
2123 ac_configure_args1=
2124 ac_must_keep_next=false
2125 for ac_pass in 1 2
2126 do
2127   for ac_arg
2128   do
2129     case $ac_arg in
2130     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132     | -silent | --silent | --silen | --sile | --sil)
2133       continue ;;
2134     *\'*)
2135       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136     esac
2137     case $ac_pass in
2138     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139     2)
2140       as_fn_append ac_configure_args1 " '$ac_arg'"
2141       if test $ac_must_keep_next = true; then
2142         ac_must_keep_next=false # Got value, back to normal.
2143       else
2144         case $ac_arg in
2145           *=* | --config-cache | -C | -disable-* | --disable-* \
2146           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148           | -with-* | --with-* | -without-* | --without-* | --x)
2149             case "$ac_configure_args0 " in
2150               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151             esac
2152             ;;
2153           -* ) ac_must_keep_next=true ;;
2154         esac
2155       fi
2156       as_fn_append ac_configure_args " '$ac_arg'"
2157       ;;
2158     esac
2159   done
2160 done
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2163
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log.  We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170   # Save into config.log some information that might help in debugging.
2171   {
2172     echo
2173
2174     $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2177     echo
2178     # The following way of writing the cache mishandles newlines in values,
2179 (
2180   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181     eval ac_val=\$$ac_var
2182     case $ac_val in #(
2183     *${as_nl}*)
2184       case $ac_var in #(
2185       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187       esac
2188       case $ac_var in #(
2189       _ | IFS | as_nl) ;; #(
2190       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191       *) { eval $ac_var=; unset $ac_var;} ;;
2192       esac ;;
2193     esac
2194   done
2195   (set) 2>&1 |
2196     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197     *${as_nl}ac_space=\ *)
2198       sed -n \
2199         "s/'\''/'\''\\\\'\'''\''/g;
2200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201       ;; #(
2202     *)
2203       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204       ;;
2205     esac |
2206     sort
2207 )
2208     echo
2209
2210     $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2213     echo
2214     for ac_var in $ac_subst_vars
2215     do
2216       eval ac_val=\$$ac_var
2217       case $ac_val in
2218       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219       esac
2220       $as_echo "$ac_var='\''$ac_val'\''"
2221     done | sort
2222     echo
2223
2224     if test -n "$ac_subst_files"; then
2225       $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2228       echo
2229       for ac_var in $ac_subst_files
2230       do
2231         eval ac_val=\$$ac_var
2232         case $ac_val in
2233         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234         esac
2235         $as_echo "$ac_var='\''$ac_val'\''"
2236       done | sort
2237       echo
2238     fi
2239
2240     if test -s confdefs.h; then
2241       $as_echo "## ----------- ##
2242 ## confdefs.h. ##
2243 ## ----------- ##"
2244       echo
2245       cat confdefs.h
2246       echo
2247     fi
2248     test "$ac_signal" != 0 &&
2249       $as_echo "$as_me: caught signal $ac_signal"
2250     $as_echo "$as_me: exit $exit_status"
2251   } >&5
2252   rm -f core *.core core.conftest.* &&
2253     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254     exit $exit_status
2255 ' 0
2256 for ac_signal in 1 2 13 15; do
2257   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 done
2259 ac_signal=0
2260
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2263
2264 $as_echo "/* confdefs.h */" > confdefs.h
2265
2266 # Predefined preprocessor variables.
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2290 _ACEOF
2291
2292
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2295 ac_site_file1=NONE
2296 ac_site_file2=NONE
2297 if test -n "$CONFIG_SITE"; then
2298   # We do not want a PATH search for config.site.
2299   case $CONFIG_SITE in #((
2300     -*)  ac_site_file1=./$CONFIG_SITE;;
2301     */*) ac_site_file1=$CONFIG_SITE;;
2302     *)   ac_site_file1=./$CONFIG_SITE;;
2303   esac
2304 elif test "x$prefix" != xNONE; then
2305   ac_site_file1=$prefix/share/config.site
2306   ac_site_file2=$prefix/etc/config.site
2307 else
2308   ac_site_file1=$ac_default_prefix/share/config.site
2309   ac_site_file2=$ac_default_prefix/etc/config.site
2310 fi
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312 do
2313   test "x$ac_site_file" = xNONE && continue
2314   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317     sed 's/^/| /' "$ac_site_file" >&5
2318     . "$ac_site_file" \
2319       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2323   fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327   # Some versions of bash will fail to source /dev/null (special files
2328   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2329   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332     case $cache_file in
2333       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334       *)                      . "./$cache_file";;
2335     esac
2336   fi
2337 else
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340   >$cache_file
2341 fi
2342
2343 as_fn_append ac_header_list " stdlib.h"
2344 as_fn_append ac_header_list " unistd.h"
2345 as_fn_append ac_header_list " sys/param.h"
2346 as_fn_append ac_func_list " symlink"
2347 # Check that the precious variables saved in the cache have kept the same
2348 # value.
2349 ac_cache_corrupted=false
2350 for ac_var in $ac_precious_vars; do
2351   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2352   eval ac_new_set=\$ac_env_${ac_var}_set
2353   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2354   eval ac_new_val=\$ac_env_${ac_var}_value
2355   case $ac_old_set,$ac_new_set in
2356     set,)
2357       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2359       ac_cache_corrupted=: ;;
2360     ,set)
2361       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2362 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2363       ac_cache_corrupted=: ;;
2364     ,);;
2365     *)
2366       if test "x$ac_old_val" != "x$ac_new_val"; then
2367         # differences in whitespace do not lead to failure.
2368         ac_old_val_w=`echo x $ac_old_val`
2369         ac_new_val_w=`echo x $ac_new_val`
2370         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2371           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2372 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2373           ac_cache_corrupted=:
2374         else
2375           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2376 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2377           eval $ac_var=\$ac_old_val
2378         fi
2379         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2380 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2381         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2382 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2383       fi;;
2384   esac
2385   # Pass precious variables to config.status.
2386   if test "$ac_new_set" = set; then
2387     case $ac_new_val in
2388     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2389     *) ac_arg=$ac_var=$ac_new_val ;;
2390     esac
2391     case " $ac_configure_args " in
2392       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2393       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394     esac
2395   fi
2396 done
2397 if $ac_cache_corrupted; then
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2401 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2402   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403 fi
2404 ## -------------------- ##
2405 ## Main body of script. ##
2406 ## -------------------- ##
2407
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414
2415
2416
2417 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
2418
2419
2420
2421 ac_ext=c
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 if test -n "$ac_tool_prefix"; then
2427   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if ${ac_cv_prog_CC+:} false; then :
2432   $as_echo_n "(cached) " >&6
2433 else
2434   if test -n "$CC"; then
2435   ac_cv_prog_CC="$CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442     for ac_exec_ext in '' $ac_executable_extensions; do
2443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2446     break 2
2447   fi
2448 done
2449   done
2450 IFS=$as_save_IFS
2451
2452 fi
2453 fi
2454 CC=$ac_cv_prog_CC
2455 if test -n "$CC"; then
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2457 $as_echo "$CC" >&6; }
2458 else
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2461 fi
2462
2463
2464 fi
2465 if test -z "$ac_cv_prog_CC"; then
2466   ac_ct_CC=$CC
2467   # Extract the first word of "gcc", so it can be a program name with args.
2468 set dummy gcc; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2472   $as_echo_n "(cached) " >&6
2473 else
2474   if test -n "$ac_ct_CC"; then
2475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480   IFS=$as_save_IFS
2481   test -z "$as_dir" && as_dir=.
2482     for ac_exec_ext in '' $ac_executable_extensions; do
2483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484     ac_cv_prog_ac_ct_CC="gcc"
2485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486     break 2
2487   fi
2488 done
2489   done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2497 $as_echo "$ac_ct_CC" >&6; }
2498 else
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503   if test "x$ac_ct_CC" = x; then
2504     CC=""
2505   else
2506     case $cross_compiling:$ac_tool_warned in
2507 yes:)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512     CC=$ac_ct_CC
2513   fi
2514 else
2515   CC="$ac_cv_prog_CC"
2516 fi
2517
2518 if test -z "$CC"; then
2519           if test -n "$ac_tool_prefix"; then
2520     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_CC+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$CC"; then
2528   ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_CC="${ac_tool_prefix}cc"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2551 else
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557   fi
2558 fi
2559 if test -z "$CC"; then
2560   # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_CC+:} false; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   if test -n "$CC"; then
2568   ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570   ac_prog_rejected=no
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576     for ac_exec_ext in '' $ac_executable_extensions; do
2577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579        ac_prog_rejected=yes
2580        continue
2581      fi
2582     ac_cv_prog_CC="cc"
2583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587   done
2588 IFS=$as_save_IFS
2589
2590 if test $ac_prog_rejected = yes; then
2591   # We found a bogon in the path, so make sure we never use it.
2592   set dummy $ac_cv_prog_CC
2593   shift
2594   if test $# != 0; then
2595     # We chose a different compiler from the bogus one.
2596     # However, it has the same basename, so the bogon will be chosen
2597     # first if we set CC to just the basename; use the full file name.
2598     shift
2599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600   fi
2601 fi
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2608 else
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$CC"; then
2616   if test -n "$ac_tool_prefix"; then
2617   for ac_prog in cl.exe
2618   do
2619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641   done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656     test -n "$CC" && break
2657   done
2658 fi
2659 if test -z "$CC"; then
2660   ac_ct_CC=$CC
2661   for ac_prog in cl.exe
2662 do
2663   # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2668   $as_echo_n "(cached) " >&6
2669 else
2670   if test -n "$ac_ct_CC"; then
2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     for ac_exec_ext in '' $ac_executable_extensions; do
2679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680     ac_cv_prog_ac_ct_CC="$ac_prog"
2681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685   done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2694 else
2695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700   test -n "$ac_ct_CC" && break
2701 done
2702
2703   if test "x$ac_ct_CC" = x; then
2704     CC=""
2705   else
2706     case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2711 esac
2712     CC=$ac_ct_CC
2713   fi
2714 fi
2715
2716 fi
2717
2718
2719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error $? "no acceptable C compiler found in \$PATH
2722 See \`config.log' for more details" "$LINENO" 5; }
2723
2724 # Provide some information about the compiler.
2725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2726 set X $ac_compile
2727 ac_compiler=$2
2728 for ac_option in --version -v -V -qversion; do
2729   { { ac_try="$ac_compiler $ac_option >&5"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2735 $as_echo "$ac_try_echo"; } >&5
2736   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2737   ac_status=$?
2738   if test -s conftest.err; then
2739     sed '10a\
2740 ... rest of stderr output deleted ...
2741          10q' conftest.err >conftest.er1
2742     cat conftest.er1 >&5
2743   fi
2744   rm -f conftest.er1 conftest.err
2745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746   test $ac_status = 0; }
2747 done
2748
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h.  */
2751
2752 int
2753 main ()
2754 {
2755
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 ac_clean_files_save=$ac_clean_files
2761 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2762 # Try to create an executable without -o first, disregard a.out.
2763 # It will help us diagnose broken compilers, and finding out an intuition
2764 # of exeext.
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2766 $as_echo_n "checking whether the C compiler works... " >&6; }
2767 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2768
2769 # The possible output files:
2770 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2771
2772 ac_rmfiles=
2773 for ac_file in $ac_files
2774 do
2775   case $ac_file in
2776     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2777     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2778   esac
2779 done
2780 rm -f $ac_rmfiles
2781
2782 if { { ac_try="$ac_link_default"
2783 case "(($ac_try" in
2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785   *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789   (eval "$ac_link_default") 2>&5
2790   ac_status=$?
2791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792   test $ac_status = 0; }; then :
2793   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2794 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2795 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2796 # so that the user can short-circuit this test for compilers unknown to
2797 # Autoconf.
2798 for ac_file in $ac_files ''
2799 do
2800   test -f "$ac_file" || continue
2801   case $ac_file in
2802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2803         ;;
2804     [ab].out )
2805         # We found the default executable, but exeext='' is most
2806         # certainly right.
2807         break;;
2808     *.* )
2809         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2810         then :; else
2811            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2812         fi
2813         # We set ac_cv_exeext here because the later test for it is not
2814         # safe: cross compilers may not add the suffix if given an `-o'
2815         # argument, so we may need to know it at that point already.
2816         # Even if this section looks crufty: it has the advantage of
2817         # actually working.
2818         break;;
2819     * )
2820         break;;
2821   esac
2822 done
2823 test "$ac_cv_exeext" = no && ac_cv_exeext=
2824
2825 else
2826   ac_file=''
2827 fi
2828 if test -z "$ac_file"; then :
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 $as_echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 as_fn_error 77 "C compiler cannot create executables
2837 See \`config.log' for more details" "$LINENO" 5; }
2838 else
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840 $as_echo "yes" >&6; }
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2843 $as_echo_n "checking for C compiler default output file name... " >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2845 $as_echo "$ac_file" >&6; }
2846 ac_exeext=$ac_cv_exeext
2847
2848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2849 ac_clean_files=$ac_clean_files_save
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2851 $as_echo_n "checking for suffix of executables... " >&6; }
2852 if { { ac_try="$ac_link"
2853 case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859   (eval "$ac_link") 2>&5
2860   ac_status=$?
2861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862   test $ac_status = 0; }; then :
2863   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2864 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2865 # work properly (i.e., refer to `conftest.exe'), while it won't with
2866 # `rm'.
2867 for ac_file in conftest.exe conftest conftest.*; do
2868   test -f "$ac_file" || continue
2869   case $ac_file in
2870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2871     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872           break;;
2873     * ) break;;
2874   esac
2875 done
2876 else
2877   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2880 See \`config.log' for more details" "$LINENO" 5; }
2881 fi
2882 rm -f conftest conftest$ac_cv_exeext
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2884 $as_echo "$ac_cv_exeext" >&6; }
2885
2886 rm -f conftest.$ac_ext
2887 EXEEXT=$ac_cv_exeext
2888 ac_exeext=$EXEEXT
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h.  */
2891 #include <stdio.h>
2892 int
2893 main ()
2894 {
2895 FILE *f = fopen ("conftest.out", "w");
2896  return ferror (f) || fclose (f) != 0;
2897
2898   ;
2899   return 0;
2900 }
2901 _ACEOF
2902 ac_clean_files="$ac_clean_files conftest.out"
2903 # Check that the compiler produces executables we can run.  If not, either
2904 # the compiler is broken, or we cross compile.
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2906 $as_echo_n "checking whether we are cross compiling... " >&6; }
2907 if test "$cross_compiling" != yes; then
2908   { { ac_try="$ac_link"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915   (eval "$ac_link") 2>&5
2916   ac_status=$?
2917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918   test $ac_status = 0; }
2919   if { ac_try='./conftest$ac_cv_exeext'
2920   { { case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926   (eval "$ac_try") 2>&5
2927   ac_status=$?
2928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929   test $ac_status = 0; }; }; then
2930     cross_compiling=no
2931   else
2932     if test "$cross_compiling" = maybe; then
2933         cross_compiling=yes
2934     else
2935         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error $? "cannot run C compiled programs.
2938 If you meant to cross compile, use \`--host'.
2939 See \`config.log' for more details" "$LINENO" 5; }
2940     fi
2941   fi
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2944 $as_echo "$cross_compiling" >&6; }
2945
2946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2947 ac_clean_files=$ac_clean_files_save
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2949 $as_echo_n "checking for suffix of object files... " >&6; }
2950 if ${ac_cv_objext+:} false; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h.  */
2955
2956 int
2957 main ()
2958 {
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.o conftest.obj
2965 if { { ac_try="$ac_compile"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972   (eval "$ac_compile") 2>&5
2973   ac_status=$?
2974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975   test $ac_status = 0; }; then :
2976   for ac_file in conftest.o conftest.obj conftest.*; do
2977   test -f "$ac_file" || continue;
2978   case $ac_file in
2979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2980     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981        break;;
2982   esac
2983 done
2984 else
2985   $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details" "$LINENO" 5; }
2992 fi
2993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2996 $as_echo "$ac_cv_objext" >&6; }
2997 OBJEXT=$ac_cv_objext
2998 ac_objext=$OBJEXT
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3001 if ${ac_cv_c_compiler_gnu+:} false; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h.  */
3006
3007 int
3008 main ()
3009 {
3010 #ifndef __GNUC__
3011        choke me
3012 #endif
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 if ac_fn_c_try_compile "$LINENO"; then :
3019   ac_compiler_gnu=yes
3020 else
3021   ac_compiler_gnu=no
3022 fi
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3025
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3029 if test $ac_compiler_gnu = yes; then
3030   GCC=yes
3031 else
3032   GCC=
3033 fi
3034 ac_test_CFLAGS=${CFLAGS+set}
3035 ac_save_CFLAGS=$CFLAGS
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3038 if ${ac_cv_prog_cc_g+:} false; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   ac_save_c_werror_flag=$ac_c_werror_flag
3042    ac_c_werror_flag=yes
3043    ac_cv_prog_cc_g=no
3044    CFLAGS="-g"
3045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 if ac_fn_c_try_compile "$LINENO"; then :
3057   ac_cv_prog_cc_g=yes
3058 else
3059   CFLAGS=""
3060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h.  */
3062
3063 int
3064 main ()
3065 {
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 if ac_fn_c_try_compile "$LINENO"; then :
3072
3073 else
3074   ac_c_werror_flag=$ac_save_c_werror_flag
3075          CFLAGS="-g"
3076          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 if ac_fn_c_try_compile "$LINENO"; then :
3088   ac_cv_prog_cc_g=yes
3089 fi
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 fi
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 fi
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095    ac_c_werror_flag=$ac_save_c_werror_flag
3096 fi
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3098 $as_echo "$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100   CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102   if test "$GCC" = yes; then
3103     CFLAGS="-g -O2"
3104   else
3105     CFLAGS="-g"
3106   fi
3107 else
3108   if test "$GCC" = yes; then
3109     CFLAGS="-O2"
3110   else
3111     CFLAGS=
3112   fi
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3116 if ${ac_cv_prog_cc_c89+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   ac_cv_prog_cc_c89=no
3120 ac_save_CC=$CC
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h.  */
3123 #include <stdarg.h>
3124 #include <stdio.h>
3125 struct stat;
3126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3127 struct buf { int x; };
3128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3129 static char *e (p, i)
3130      char **p;
3131      int i;
3132 {
3133   return p[i];
3134 }
3135 static char *f (char * (*g) (char **, int), char **p, ...)
3136 {
3137   char *s;
3138   va_list v;
3139   va_start (v,p);
3140   s = g (p, va_arg (v,int));
3141   va_end (v);
3142   return s;
3143 }
3144
3145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3146    function prototypes and stuff, but not '\xHH' hex character constants.
3147    These don't provoke an error unfortunately, instead are silently treated
3148    as 'x'.  The following induces an error, until -std is added to get
3149    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3150    array size at least.  It's necessary to write '\x00'==0 to get something
3151    that's true only with -std.  */
3152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3153
3154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3155    inside strings and character constants.  */
3156 #define FOO(x) 'x'
3157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3158
3159 int test (int i, double x);
3160 struct s1 {int (*f) (int a);};
3161 struct s2 {int (*f) (double a);};
3162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3163 int argc;
3164 char **argv;
3165 int
3166 main ()
3167 {
3168 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3169   ;
3170   return 0;
3171 }
3172 _ACEOF
3173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3174         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3175 do
3176   CC="$ac_save_CC $ac_arg"
3177   if ac_fn_c_try_compile "$LINENO"; then :
3178   ac_cv_prog_cc_c89=$ac_arg
3179 fi
3180 rm -f core conftest.err conftest.$ac_objext
3181   test "x$ac_cv_prog_cc_c89" != "xno" && break
3182 done
3183 rm -f conftest.$ac_ext
3184 CC=$ac_save_CC
3185
3186 fi
3187 # AC_CACHE_VAL
3188 case "x$ac_cv_prog_cc_c89" in
3189   x)
3190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3191 $as_echo "none needed" >&6; } ;;
3192   xno)
3193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3194 $as_echo "unsupported" >&6; } ;;
3195   *)
3196     CC="$CC $ac_cv_prog_cc_c89"
3197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3199 esac
3200 if test "x$ac_cv_prog_cc_c89" != xno; then :
3201
3202 fi
3203
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3217 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3220   CPP=
3221 fi
3222 if test -z "$CPP"; then
3223   if ${ac_cv_prog_CPP+:} false; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226       # Double quotes because CPP needs to be expanded
3227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228     do
3229       ac_preproc_ok=false
3230 for ac_c_preproc_warn_flag in '' yes
3231 do
3232   # Use a header file that comes with gcc, so configuring glibc
3233   # with a fresh cross-compiler works.
3234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235   # <limits.h> exists even on freestanding compilers.
3236   # On the NeXT, cc -E runs the code through the compiler's parser,
3237   # not just through cpp. "Syntax error" is here to catch this case.
3238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h.  */
3240 #ifdef __STDC__
3241 # include <limits.h>
3242 #else
3243 # include <assert.h>
3244 #endif
3245                      Syntax error
3246 _ACEOF
3247 if ac_fn_c_try_cpp "$LINENO"; then :
3248
3249 else
3250   # Broken: fails on valid input.
3251 continue
3252 fi
3253 rm -f conftest.err conftest.i conftest.$ac_ext
3254
3255   # OK, works on sane cases.  Now check whether nonexistent headers
3256   # can be detected and how.
3257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h.  */
3259 #include <ac_nonexistent.h>
3260 _ACEOF
3261 if ac_fn_c_try_cpp "$LINENO"; then :
3262   # Broken: success on invalid input.
3263 continue
3264 else
3265   # Passes both tests.
3266 ac_preproc_ok=:
3267 break
3268 fi
3269 rm -f conftest.err conftest.i conftest.$ac_ext
3270
3271 done
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.i conftest.err conftest.$ac_ext
3274 if $ac_preproc_ok; then :
3275   break
3276 fi
3277
3278     done
3279     ac_cv_prog_CPP=$CPP
3280
3281 fi
3282   CPP=$ac_cv_prog_CPP
3283 else
3284   ac_cv_prog_CPP=$CPP
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3287 $as_echo "$CPP" >&6; }
3288 ac_preproc_ok=false
3289 for ac_c_preproc_warn_flag in '' yes
3290 do
3291   # Use a header file that comes with gcc, so configuring glibc
3292   # with a fresh cross-compiler works.
3293   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294   # <limits.h> exists even on freestanding compilers.
3295   # On the NeXT, cc -E runs the code through the compiler's parser,
3296   # not just through cpp. "Syntax error" is here to catch this case.
3297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h.  */
3299 #ifdef __STDC__
3300 # include <limits.h>
3301 #else
3302 # include <assert.h>
3303 #endif
3304                      Syntax error
3305 _ACEOF
3306 if ac_fn_c_try_cpp "$LINENO"; then :
3307
3308 else
3309   # Broken: fails on valid input.
3310 continue
3311 fi
3312 rm -f conftest.err conftest.i conftest.$ac_ext
3313
3314   # OK, works on sane cases.  Now check whether nonexistent headers
3315   # can be detected and how.
3316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h.  */
3318 #include <ac_nonexistent.h>
3319 _ACEOF
3320 if ac_fn_c_try_cpp "$LINENO"; then :
3321   # Broken: success on invalid input.
3322 continue
3323 else
3324   # Passes both tests.
3325 ac_preproc_ok=:
3326 break
3327 fi
3328 rm -f conftest.err conftest.i conftest.$ac_ext
3329
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.i conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then :
3334
3335 else
3336   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3339 See \`config.log' for more details" "$LINENO" 5; }
3340 fi
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3350 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3351 if ${ac_cv_path_GREP+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test -z "$GREP"; then
3355   ac_path_GREP_found=false
3356   # Loop through the user's path and test for each of PROGNAME-LIST
3357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_prog in grep ggrep; do
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3365       as_fn_executable_p "$ac_path_GREP" || continue
3366 # Check for GNU ac_path_GREP and select it if it is found.
3367   # Check for GNU $ac_path_GREP
3368 case `"$ac_path_GREP" --version 2>&1` in
3369 *GNU*)
3370   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3371 *)
3372   ac_count=0
3373   $as_echo_n 0123456789 >"conftest.in"
3374   while :
3375   do
3376     cat "conftest.in" "conftest.in" >"conftest.tmp"
3377     mv "conftest.tmp" "conftest.in"
3378     cp "conftest.in" "conftest.nl"
3379     $as_echo 'GREP' >> "conftest.nl"
3380     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3381     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3382     as_fn_arith $ac_count + 1 && ac_count=$as_val
3383     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3384       # Best one so far, save it but keep looking for a better one
3385       ac_cv_path_GREP="$ac_path_GREP"
3386       ac_path_GREP_max=$ac_count
3387     fi
3388     # 10*(2^10) chars as input seems more than enough
3389     test $ac_count -gt 10 && break
3390   done
3391   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3392 esac
3393
3394       $ac_path_GREP_found && break 3
3395     done
3396   done
3397   done
3398 IFS=$as_save_IFS
3399   if test -z "$ac_cv_path_GREP"; then
3400     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3401   fi
3402 else
3403   ac_cv_path_GREP=$GREP
3404 fi
3405
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3408 $as_echo "$ac_cv_path_GREP" >&6; }
3409  GREP="$ac_cv_path_GREP"
3410
3411
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3413 $as_echo_n "checking for egrep... " >&6; }
3414 if ${ac_cv_path_EGREP+:} false; then :
3415   $as_echo_n "(cached) " >&6
3416 else
3417   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3418    then ac_cv_path_EGREP="$GREP -E"
3419    else
3420      if test -z "$EGREP"; then
3421   ac_path_EGREP_found=false
3422   # Loop through the user's path and test for each of PROGNAME-LIST
3423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_prog in egrep; do
3429     for ac_exec_ext in '' $ac_executable_extensions; do
3430       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3431       as_fn_executable_p "$ac_path_EGREP" || continue
3432 # Check for GNU ac_path_EGREP and select it if it is found.
3433   # Check for GNU $ac_path_EGREP
3434 case `"$ac_path_EGREP" --version 2>&1` in
3435 *GNU*)
3436   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3437 *)
3438   ac_count=0
3439   $as_echo_n 0123456789 >"conftest.in"
3440   while :
3441   do
3442     cat "conftest.in" "conftest.in" >"conftest.tmp"
3443     mv "conftest.tmp" "conftest.in"
3444     cp "conftest.in" "conftest.nl"
3445     $as_echo 'EGREP' >> "conftest.nl"
3446     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3447     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3448     as_fn_arith $ac_count + 1 && ac_count=$as_val
3449     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3450       # Best one so far, save it but keep looking for a better one
3451       ac_cv_path_EGREP="$ac_path_EGREP"
3452       ac_path_EGREP_max=$ac_count
3453     fi
3454     # 10*(2^10) chars as input seems more than enough
3455     test $ac_count -gt 10 && break
3456   done
3457   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3458 esac
3459
3460       $ac_path_EGREP_found && break 3
3461     done
3462   done
3463   done
3464 IFS=$as_save_IFS
3465   if test -z "$ac_cv_path_EGREP"; then
3466     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3467   fi
3468 else
3469   ac_cv_path_EGREP=$EGREP
3470 fi
3471
3472    fi
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3475 $as_echo "$ac_cv_path_EGREP" >&6; }
3476  EGREP="$ac_cv_path_EGREP"
3477
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3480 $as_echo_n "checking for ANSI C header files... " >&6; }
3481 if ${ac_cv_header_stdc+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h.  */
3486 #include <stdlib.h>
3487 #include <stdarg.h>
3488 #include <string.h>
3489 #include <float.h>
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500   ac_cv_header_stdc=yes
3501 else
3502   ac_cv_header_stdc=no
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505
3506 if test $ac_cv_header_stdc = yes; then
3507   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510 #include <string.h>
3511
3512 _ACEOF
3513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3514   $EGREP "memchr" >/dev/null 2>&1; then :
3515
3516 else
3517   ac_cv_header_stdc=no
3518 fi
3519 rm -f conftest*
3520
3521 fi
3522
3523 if test $ac_cv_header_stdc = yes; then
3524   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h.  */
3527 #include <stdlib.h>
3528
3529 _ACEOF
3530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531   $EGREP "free" >/dev/null 2>&1; then :
3532
3533 else
3534   ac_cv_header_stdc=no
3535 fi
3536 rm -f conftest*
3537
3538 fi
3539
3540 if test $ac_cv_header_stdc = yes; then
3541   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3542   if test "$cross_compiling" = yes; then :
3543   :
3544 else
3545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547 #include <ctype.h>
3548 #include <stdlib.h>
3549 #if ((' ' & 0x0FF) == 0x020)
3550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3552 #else
3553 # define ISLOWER(c) \
3554                    (('a' <= (c) && (c) <= 'i') \
3555                      || ('j' <= (c) && (c) <= 'r') \
3556                      || ('s' <= (c) && (c) <= 'z'))
3557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3558 #endif
3559
3560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3561 int
3562 main ()
3563 {
3564   int i;
3565   for (i = 0; i < 256; i++)
3566     if (XOR (islower (i), ISLOWER (i))
3567         || toupper (i) != TOUPPER (i))
3568       return 2;
3569   return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_run "$LINENO"; then :
3573
3574 else
3575   ac_cv_header_stdc=no
3576 fi
3577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3578   conftest.$ac_objext conftest.beam conftest.$ac_ext
3579 fi
3580
3581 fi
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3584 $as_echo "$ac_cv_header_stdc" >&6; }
3585 if test $ac_cv_header_stdc = yes; then
3586
3587 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3588
3589 fi
3590
3591 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3593                   inttypes.h stdint.h unistd.h
3594 do :
3595   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3596 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3597 "
3598 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3599   cat >>confdefs.h <<_ACEOF
3600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 _ACEOF
3602
3603 fi
3604
3605 done
3606
3607
3608
3609   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3610 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3611   MINIX=yes
3612 else
3613   MINIX=
3614 fi
3615
3616
3617   if test "$MINIX" = yes; then
3618
3619 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3620
3621
3622 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3623
3624
3625 $as_echo "#define _MINIX 1" >>confdefs.h
3626
3627   fi
3628
3629
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3631 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3632 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 #         define __EXTENSIONS__ 1
3639           $ac_includes_default
3640 int
3641 main ()
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649   ac_cv_safe_to_define___extensions__=yes
3650 else
3651   ac_cv_safe_to_define___extensions__=no
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3657   test $ac_cv_safe_to_define___extensions__ = yes &&
3658     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3659
3660   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3661
3662   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3663
3664   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3665
3666   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3667
3668
3669
3670 # checks for programs
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 if test -n "$ac_tool_prefix"; then
3677   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_CC+:} false; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   if test -n "$CC"; then
3685   ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690   IFS=$as_save_IFS
3691   test -z "$as_dir" && as_dir=.
3692     for ac_exec_ext in '' $ac_executable_extensions; do
3693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696     break 2
3697   fi
3698 done
3699   done
3700 IFS=$as_save_IFS
3701
3702 fi
3703 fi
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3708 else
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3712
3713
3714 fi
3715 if test -z "$ac_cv_prog_CC"; then
3716   ac_ct_CC=$CC
3717   # Extract the first word of "gcc", so it can be a program name with args.
3718 set dummy gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$ac_ct_CC"; then
3725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734     ac_cv_prog_ac_ct_CC="gcc"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3745 if test -n "$ac_ct_CC"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3747 $as_echo "$ac_ct_CC" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753   if test "x$ac_ct_CC" = x; then
3754     CC=""
3755   else
3756     case $cross_compiling:$ac_tool_warned in
3757 yes:)
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762     CC=$ac_ct_CC
3763   fi
3764 else
3765   CC="$ac_cv_prog_CC"
3766 fi
3767
3768 if test -z "$CC"; then
3769           if test -n "$ac_tool_prefix"; then
3770     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}cc; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if ${ac_cv_prog_CC+:} false; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   if test -n "$CC"; then
3778   ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785     for ac_exec_ext in '' $ac_executable_extensions; do
3786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787     ac_cv_prog_CC="${ac_tool_prefix}cc"
3788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792   done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3805
3806
3807   fi
3808 fi
3809 if test -z "$CC"; then
3810   # Extract the first word of "cc", so it can be a program name with args.
3811 set dummy cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820   ac_prog_rejected=no
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826     for ac_exec_ext in '' $ac_executable_extensions; do
3827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829        ac_prog_rejected=yes
3830        continue
3831      fi
3832     ac_cv_prog_CC="cc"
3833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834     break 2
3835   fi
3836 done
3837   done
3838 IFS=$as_save_IFS
3839
3840 if test $ac_prog_rejected = yes; then
3841   # We found a bogon in the path, so make sure we never use it.
3842   set dummy $ac_cv_prog_CC
3843   shift
3844   if test $# != 0; then
3845     # We chose a different compiler from the bogus one.
3846     # However, it has the same basename, so the bogon will be chosen
3847     # first if we set CC to just the basename; use the full file name.
3848     shift
3849     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3850   fi
3851 fi
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$CC"; then
3866   if test -n "$ac_tool_prefix"; then
3867   for ac_prog in cl.exe
3868   do
3869     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_CC+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   if test -n "$CC"; then
3877   ac_cv_prog_CC="$CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882   IFS=$as_save_IFS
3883   test -z "$as_dir" && as_dir=.
3884     for ac_exec_ext in '' $ac_executable_extensions; do
3885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888     break 2
3889   fi
3890 done
3891   done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905
3906     test -n "$CC" && break
3907   done
3908 fi
3909 if test -z "$CC"; then
3910   ac_ct_CC=$CC
3911   for ac_prog in cl.exe
3912 do
3913   # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -n "$ac_ct_CC"; then
3921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928     for ac_exec_ext in '' $ac_executable_extensions; do
3929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930     ac_cv_prog_ac_ct_CC="$ac_prog"
3931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935   done
3936 IFS=$as_save_IFS
3937
3938 fi
3939 fi
3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941 if test -n "$ac_ct_CC"; then
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3943 $as_echo "$ac_ct_CC" >&6; }
3944 else
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3948
3949
3950   test -n "$ac_ct_CC" && break
3951 done
3952
3953   if test "x$ac_ct_CC" = x; then
3954     CC=""
3955   else
3956     case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962     CC=$ac_ct_CC
3963   fi
3964 fi
3965
3966 fi
3967
3968
3969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $? "no acceptable C compiler found in \$PATH
3972 See \`config.log' for more details" "$LINENO" 5; }
3973
3974 # Provide some information about the compiler.
3975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3976 set X $ac_compile
3977 ac_compiler=$2
3978 for ac_option in --version -v -V -qversion; do
3979   { { ac_try="$ac_compiler $ac_option >&5"
3980 case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987   ac_status=$?
3988   if test -s conftest.err; then
3989     sed '10a\
3990 ... rest of stderr output deleted ...
3991          10q' conftest.err >conftest.er1
3992     cat conftest.er1 >&5
3993   fi
3994   rm -f conftest.er1 conftest.err
3995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996   test $ac_status = 0; }
3997 done
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if ${ac_cv_c_compiler_gnu+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h.  */
4006
4007 int
4008 main ()
4009 {
4010 #ifndef __GNUC__
4011        choke me
4012 #endif
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019   ac_compiler_gnu=yes
4020 else
4021   ac_compiler_gnu=no
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030   GCC=yes
4031 else
4032   GCC=
4033 fi
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if ${ac_cv_prog_cc_g+:} false; then :
4039   $as_echo_n "(cached) " >&6
4040 else
4041   ac_save_c_werror_flag=$ac_c_werror_flag
4042    ac_c_werror_flag=yes
4043    ac_cv_prog_cc_g=no
4044    CFLAGS="-g"
4045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057   ac_cv_prog_cc_g=yes
4058 else
4059   CFLAGS=""
4060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072
4073 else
4074   ac_c_werror_flag=$ac_save_c_werror_flag
4075          CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
4088   ac_cv_prog_cc_g=yes
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095    ac_c_werror_flag=$ac_save_c_werror_flag
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100   CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102   if test "$GCC" = yes; then
4103     CFLAGS="-g -O2"
4104   else
4105     CFLAGS="-g"
4106   fi
4107 else
4108   if test "$GCC" = yes; then
4109     CFLAGS="-O2"
4110   else
4111     CFLAGS=
4112   fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if ${ac_cv_prog_cc_c89+:} false; then :
4117   $as_echo_n "(cached) " >&6
4118 else
4119   ac_cv_prog_cc_c89=no
4120 ac_save_CC=$CC
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123 #include <stdarg.h>
4124 #include <stdio.h>
4125 struct stat;
4126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4127 struct buf { int x; };
4128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4129 static char *e (p, i)
4130      char **p;
4131      int i;
4132 {
4133   return p[i];
4134 }
4135 static char *f (char * (*g) (char **, int), char **p, ...)
4136 {
4137   char *s;
4138   va_list v;
4139   va_start (v,p);
4140   s = g (p, va_arg (v,int));
4141   va_end (v);
4142   return s;
4143 }
4144
4145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4146    function prototypes and stuff, but not '\xHH' hex character constants.
4147    These don't provoke an error unfortunately, instead are silently treated
4148    as 'x'.  The following induces an error, until -std is added to get
4149    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4150    array size at least.  It's necessary to write '\x00'==0 to get something
4151    that's true only with -std.  */
4152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153
4154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4155    inside strings and character constants.  */
4156 #define FOO(x) 'x'
4157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158
4159 int test (int i, double x);
4160 struct s1 {int (*f) (int a);};
4161 struct s2 {int (*f) (double a);};
4162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4163 int argc;
4164 char **argv;
4165 int
4166 main ()
4167 {
4168 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4174         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 do
4176   CC="$ac_save_CC $ac_arg"
4177   if ac_fn_c_try_compile "$LINENO"; then :
4178   ac_cv_prog_cc_c89=$ac_arg
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext
4181   test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 done
4183 rm -f conftest.$ac_ext
4184 CC=$ac_save_CC
4185
4186 fi
4187 # AC_CACHE_VAL
4188 case "x$ac_cv_prog_cc_c89" in
4189   x)
4190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4191 $as_echo "none needed" >&6; } ;;
4192   xno)
4193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4194 $as_echo "unsupported" >&6; } ;;
4195   *)
4196     CC="$CC $ac_cv_prog_cc_c89"
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4199 esac
4200 if test "x$ac_cv_prog_cc_c89" != xno; then :
4201
4202 fi
4203
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210 ac_ext=cpp
4211 ac_cpp='$CXXCPP $CPPFLAGS'
4212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4215 if test -z "$CXX"; then
4216   if test -n "$CCC"; then
4217     CXX=$CCC
4218   else
4219     if test -n "$ac_tool_prefix"; then
4220   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4221   do
4222     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CXX+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if test -n "$CXX"; then
4230   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237     for ac_exec_ext in '' $ac_executable_extensions; do
4238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244   done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 CXX=$ac_cv_prog_CXX
4250 if test -n "$CXX"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4252 $as_echo "$CXX" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259     test -n "$CXX" && break
4260   done
4261 fi
4262 if test -z "$CXX"; then
4263   ac_ct_CXX=$CXX
4264   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4271   $as_echo_n "(cached) " >&6
4272 else
4273   if test -n "$ac_ct_CXX"; then
4274   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281     for ac_exec_ext in '' $ac_executable_extensions; do
4282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283     ac_cv_prog_ac_ct_CXX="$ac_prog"
4284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288   done
4289 IFS=$as_save_IFS
4290
4291 fi
4292 fi
4293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4294 if test -n "$ac_ct_CXX"; then
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4296 $as_echo "$ac_ct_CXX" >&6; }
4297 else
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 fi
4301
4302
4303   test -n "$ac_ct_CXX" && break
4304 done
4305
4306   if test "x$ac_ct_CXX" = x; then
4307     CXX="g++"
4308   else
4309     case $cross_compiling:$ac_tool_warned in
4310 yes:)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315     CXX=$ac_ct_CXX
4316   fi
4317 fi
4318
4319   fi
4320 fi
4321 # Provide some information about the compiler.
4322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4323 set X $ac_compile
4324 ac_compiler=$2
4325 for ac_option in --version -v -V -qversion; do
4326   { { ac_try="$ac_compiler $ac_option >&5"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4334   ac_status=$?
4335   if test -s conftest.err; then
4336     sed '10a\
4337 ... rest of stderr output deleted ...
4338          10q' conftest.err >conftest.er1
4339     cat conftest.er1 >&5
4340   fi
4341   rm -f conftest.er1 conftest.err
4342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343   test $ac_status = 0; }
4344 done
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4347 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4348 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353
4354 int
4355 main ()
4356 {
4357 #ifndef __GNUC__
4358        choke me
4359 #endif
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_cxx_try_compile "$LINENO"; then :
4366   ac_compiler_gnu=yes
4367 else
4368   ac_compiler_gnu=no
4369 fi
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4372
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4375 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4376 if test $ac_compiler_gnu = yes; then
4377   GXX=yes
4378 else
4379   GXX=
4380 fi
4381 ac_test_CXXFLAGS=${CXXFLAGS+set}
4382 ac_save_CXXFLAGS=$CXXFLAGS
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4384 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4385 if ${ac_cv_prog_cxx_g+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4389    ac_cxx_werror_flag=yes
4390    ac_cv_prog_cxx_g=no
4391    CXXFLAGS="-g"
4392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_cxx_try_compile "$LINENO"; then :
4404   ac_cv_prog_cxx_g=yes
4405 else
4406   CXXFLAGS=""
4407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h.  */
4409
4410 int
4411 main ()
4412 {
4413
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_cxx_try_compile "$LINENO"; then :
4419
4420 else
4421   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4422          CXXFLAGS="-g"
4423          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h.  */
4425
4426 int
4427 main ()
4428 {
4429
4430   ;
4431   return 0;
4432 }
4433 _ACEOF
4434 if ac_fn_cxx_try_compile "$LINENO"; then :
4435   ac_cv_prog_cxx_g=yes
4436 fi
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4445 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4446 if test "$ac_test_CXXFLAGS" = set; then
4447   CXXFLAGS=$ac_save_CXXFLAGS
4448 elif test $ac_cv_prog_cxx_g = yes; then
4449   if test "$GXX" = yes; then
4450     CXXFLAGS="-g -O2"
4451   else
4452     CXXFLAGS="-g"
4453   fi
4454 else
4455   if test "$GXX" = yes; then
4456     CXXFLAGS="-O2"
4457   else
4458     CXXFLAGS=
4459   fi
4460 fi
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467
4468
4469    ac_ext=cpp
4470 ac_cpp='$CXXCPP $CPPFLAGS'
4471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4474
4475    if test "$cross_compiling" = no; then
4476      { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can compile simple program" >&5
4477 $as_echo_n "checking that C++ compiler can compile simple program... " >&6; }
4478    fi
4479    if test "$cross_compiling" = yes; then :
4480   :
4481 else
4482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h.  */
4484
4485
4486
4487 int main() {
4488   return 0;
4489 }
4490
4491
4492
4493 _ACEOF
4494 if ac_fn_cxx_try_run "$LINENO"; then :
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 $as_echo "yes" >&6; }
4497 else
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500       as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
4501 fi
4502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4503   conftest.$ac_objext conftest.beam conftest.$ac_ext
4504 fi
4505
4506
4507    if test "$cross_compiling" = no; then
4508      { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ static constructors and destructors are called" >&5
4509 $as_echo_n "checking that C++ static constructors and destructors are called... " >&6; }
4510    fi
4511    if test "$cross_compiling" = yes; then :
4512   :
4513 else
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516
4517
4518
4519 extern "C" {
4520   void _exit(int);
4521 }
4522
4523 int i;
4524 struct A {
4525   char dummy;
4526   A() { i = 1; }
4527   ~A() { if (i == 1) _exit(0); }
4528 };
4529
4530 A a;
4531
4532 int main()
4533 {
4534   return 1;
4535 }
4536
4537
4538
4539 _ACEOF
4540 if ac_fn_cxx_try_run "$LINENO"; then :
4541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543 else
4544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546       as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
4547 fi
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4549   conftest.$ac_objext conftest.beam conftest.$ac_ext
4550 fi
4551
4552
4553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that header files support C++" >&5
4554 $as_echo_n "checking that header files support C++... " >&6; }
4555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h.  */
4557
4558
4559
4560 #include <stdio.h>
4561
4562
4563 int
4564 main ()
4565 {
4566
4567
4568 fopen(0, 0);
4569
4570
4571   ;
4572   return 0;
4573 }
4574
4575 _ACEOF
4576 if ac_fn_cxx_try_link "$LINENO"; then :
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4578 $as_echo "yes" >&6; }
4579 else
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582       as_fn_error $? "header files do not support C++
4583                    (if you are using a version of gcc/g++ earlier than 2.5,
4584                    you should install libg++)" "$LINENO" 5
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext \
4587     conftest$ac_exeext conftest.$ac_ext
4588    ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether character set is EBCDIC" >&5
4595 $as_echo_n "checking whether character set is EBCDIC... " >&6; }
4596    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599
4600
4601 /* Treat any failure as ASCII for compatibility with existing art.
4602    Use compile-time rather than run-time tests for cross-compiler
4603    tolerance. */
4604 #if '0' != 240
4605 make an error "Character set is not EBCDIC"
4606 #endif
4607
4608
4609 int
4610 main ()
4611 {
4612
4613   ;
4614   return 0;
4615 }
4616
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619   groff_cv_ebcdic="yes"
4620       TTYDEVDIRS="font/devcp1047"
4621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4622 $as_echo "yes" >&6; }
4623
4624 $as_echo "#define IS_EBCDIC_HOST 1" >>confdefs.h
4625
4626 else
4627   groff_cv_ebcdic="no"
4628      TTYDEVDIRS="font/devascii font/devlatin1"
4629      OTHERDEVDIRS="font/devlj4 font/devlbp"
4630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634
4635
4636 if test "$groff_cv_ebcdic" = "yes"; then
4637      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/390 Unix" >&5
4638 $as_echo_n "checking for OS/390 Unix... " >&6; }
4639      case `uname` in
4640      OS/390)
4641        CFLAGS="$CFLAGS -D_ALL_SOURCE"
4642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 $as_echo "yes" >&6; } ;;
4644      *)
4645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; } ;;
4647      esac
4648    fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4650 $as_echo_n "checking for X... " >&6; }
4651
4652
4653 # Check whether --with-x was given.
4654 if test "${with_x+set}" = set; then :
4655   withval=$with_x;
4656 fi
4657
4658 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4659 if test "x$with_x" = xno; then
4660   # The user explicitly disabled X.
4661   have_x=disabled
4662 else
4663   case $x_includes,$x_libraries in #(
4664     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4665     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4666   $as_echo_n "(cached) " >&6
4667 else
4668   # One or both of the vars are not set, and there is no cached value.
4669 ac_x_includes=no ac_x_libraries=no
4670 rm -f -r conftest.dir
4671 if mkdir conftest.dir; then
4672   cd conftest.dir
4673   cat >Imakefile <<'_ACEOF'
4674 incroot:
4675         @echo incroot='${INCROOT}'
4676 usrlibdir:
4677         @echo usrlibdir='${USRLIBDIR}'
4678 libdir:
4679         @echo libdir='${LIBDIR}'
4680 _ACEOF
4681   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4682     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4683     for ac_var in incroot usrlibdir libdir; do
4684       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4685     done
4686     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4687     for ac_extension in a so sl dylib la dll; do
4688       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4689          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4690         ac_im_usrlibdir=$ac_im_libdir; break
4691       fi
4692     done
4693     # Screen out bogus values from the imake configuration.  They are
4694     # bogus both because they are the default anyway, and because
4695     # using them would break gcc on systems where it needs fixed includes.
4696     case $ac_im_incroot in
4697         /usr/include) ac_x_includes= ;;
4698         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4699     esac
4700     case $ac_im_usrlibdir in
4701         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4702         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4703     esac
4704   fi
4705   cd ..
4706   rm -f -r conftest.dir
4707 fi
4708
4709 # Standard set of common directories for X headers.
4710 # Check X11 before X11Rn because it is often a symlink to the current release.
4711 ac_x_header_dirs='
4712 /usr/X11/include
4713 /usr/X11R7/include
4714 /usr/X11R6/include
4715 /usr/X11R5/include
4716 /usr/X11R4/include
4717
4718 /usr/include/X11
4719 /usr/include/X11R7
4720 /usr/include/X11R6
4721 /usr/include/X11R5
4722 /usr/include/X11R4
4723
4724 /usr/local/X11/include
4725 /usr/local/X11R7/include
4726 /usr/local/X11R6/include
4727 /usr/local/X11R5/include
4728 /usr/local/X11R4/include
4729
4730 /usr/local/include/X11
4731 /usr/local/include/X11R7
4732 /usr/local/include/X11R6
4733 /usr/local/include/X11R5
4734 /usr/local/include/X11R4
4735
4736 /usr/X386/include
4737 /usr/x386/include
4738 /usr/XFree86/include/X11
4739
4740 /usr/include
4741 /usr/local/include
4742 /usr/unsupported/include
4743 /usr/athena/include
4744 /usr/local/x11r5/include
4745 /usr/lpp/Xamples/include
4746
4747 /usr/openwin/include
4748 /usr/openwin/share/include'
4749
4750 if test "$ac_x_includes" = no; then
4751   # Guess where to find include files, by looking for Xlib.h.
4752   # First, try using that file with no special directory specified.
4753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h.  */
4755 #include <X11/Xlib.h>
4756 _ACEOF
4757 if ac_fn_c_try_cpp "$LINENO"; then :
4758   # We can compile using X headers with no special include directory.
4759 ac_x_includes=
4760 else
4761   for ac_dir in $ac_x_header_dirs; do
4762   if test -r "$ac_dir/X11/Xlib.h"; then
4763     ac_x_includes=$ac_dir
4764     break
4765   fi
4766 done
4767 fi
4768 rm -f conftest.err conftest.i conftest.$ac_ext
4769 fi # $ac_x_includes = no
4770
4771 if test "$ac_x_libraries" = no; then
4772   # Check for the libraries.
4773   # See if we find them without any special options.
4774   # Don't add to $LIBS permanently.
4775   ac_save_LIBS=$LIBS
4776   LIBS="-lX11 $LIBS"
4777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h.  */
4779 #include <X11/Xlib.h>
4780 int
4781 main ()
4782 {
4783 XrmInitialize ()
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_link "$LINENO"; then :
4789   LIBS=$ac_save_LIBS
4790 # We can link X programs with no special library path.
4791 ac_x_libraries=
4792 else
4793   LIBS=$ac_save_LIBS
4794 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4795 do
4796   # Don't even attempt the hair of trying to link an X program!
4797   for ac_extension in a so sl dylib la dll; do
4798     if test -r "$ac_dir/libX11.$ac_extension"; then
4799       ac_x_libraries=$ac_dir
4800       break 2
4801     fi
4802   done
4803 done
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext \
4806     conftest$ac_exeext conftest.$ac_ext
4807 fi # $ac_x_libraries = no
4808
4809 case $ac_x_includes,$ac_x_libraries in #(
4810   no,* | *,no | *\'*)
4811     # Didn't find X, or a directory has "'" in its name.
4812     ac_cv_have_x="have_x=no";; #(
4813   *)
4814     # Record where we found X for the cache.
4815     ac_cv_have_x="have_x=yes\
4816         ac_x_includes='$ac_x_includes'\
4817         ac_x_libraries='$ac_x_libraries'"
4818 esac
4819 fi
4820 ;; #(
4821     *) have_x=yes;;
4822   esac
4823   eval "$ac_cv_have_x"
4824 fi # $with_x != no
4825
4826 if test "$have_x" != yes; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4828 $as_echo "$have_x" >&6; }
4829   no_x=yes
4830 else
4831   # If each of the values was on the command line, it overrides each guess.
4832   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4833   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4834   # Update the cache value to reflect the command line values.
4835   ac_cv_have_x="have_x=yes\
4836         ac_x_includes='$x_includes'\
4837         ac_x_libraries='$x_libraries'"
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4839 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4840 fi
4841
4842 if test "$no_x" = yes; then
4843   # Not all programs may use this symbol, but it does not hurt to define it.
4844
4845 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4846
4847   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4848 else
4849   if test -n "$x_includes"; then
4850     X_CFLAGS="$X_CFLAGS -I$x_includes"
4851   fi
4852
4853   # It would also be nice to do this for all -L options, not just this one.
4854   if test -n "$x_libraries"; then
4855     X_LIBS="$X_LIBS -L$x_libraries"
4856     # For Solaris; some versions of Sun CC require a space after -R and
4857     # others require no space.  Words are not sufficient . . . .
4858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4859 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4860     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4861     ac_xsave_c_werror_flag=$ac_c_werror_flag
4862     ac_c_werror_flag=yes
4863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h.  */
4865
4866 int
4867 main ()
4868 {
4869
4870   ;
4871   return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_link "$LINENO"; then :
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877        X_LIBS="$X_LIBS -R$x_libraries"
4878 else
4879   LIBS="$ac_xsave_LIBS -R $x_libraries"
4880        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h.  */
4882
4883 int
4884 main ()
4885 {
4886
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 if ac_fn_c_try_link "$LINENO"; then :
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4893 $as_echo "yes" >&6; }
4894           X_LIBS="$X_LIBS -R $x_libraries"
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4897 $as_echo "neither works" >&6; }
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext \
4900     conftest$ac_exeext conftest.$ac_ext
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext \
4903     conftest$ac_exeext conftest.$ac_ext
4904     ac_c_werror_flag=$ac_xsave_c_werror_flag
4905     LIBS=$ac_xsave_LIBS
4906   fi
4907
4908   # Check for system-dependent libraries X programs must link with.
4909   # Do this before checking for the system-independent R6 libraries
4910   # (-lICE), since we may need -lsocket or whatever for X linking.
4911
4912   if test "$ISC" = yes; then
4913     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4914   else
4915     # Martyn Johnson says this is needed for Ultrix, if the X
4916     # libraries were built with DECnet support.  And Karl Berry says
4917     # the Alpha needs dnet_stub (dnet does not exist).
4918     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h.  */
4921
4922 /* Override any GCC internal prototype to avoid an error.
4923    Use char because int might match the return type of a GCC
4924    builtin and then its argument prototype would still apply.  */
4925 #ifdef __cplusplus
4926 extern "C"
4927 #endif
4928 char XOpenDisplay ();
4929 int
4930 main ()
4931 {
4932 return XOpenDisplay ();
4933   ;
4934   return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_link "$LINENO"; then :
4938
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4941 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4942 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   ac_check_lib_save_LIBS=$LIBS
4946 LIBS="-ldnet  $LIBS"
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949
4950 /* Override any GCC internal prototype to avoid an error.
4951    Use char because int might match the return type of a GCC
4952    builtin and then its argument prototype would still apply.  */
4953 #ifdef __cplusplus
4954 extern "C"
4955 #endif
4956 char dnet_ntoa ();
4957 int
4958 main ()
4959 {
4960 return dnet_ntoa ();
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
4965 if ac_fn_c_try_link "$LINENO"; then :
4966   ac_cv_lib_dnet_dnet_ntoa=yes
4967 else
4968   ac_cv_lib_dnet_dnet_ntoa=no
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext \
4971     conftest$ac_exeext conftest.$ac_ext
4972 LIBS=$ac_check_lib_save_LIBS
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4975 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4976 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4977   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4978 fi
4979
4980     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4982 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4983 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   ac_check_lib_save_LIBS=$LIBS
4987 LIBS="-ldnet_stub  $LIBS"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990
4991 /* Override any GCC internal prototype to avoid an error.
4992    Use char because int might match the return type of a GCC
4993    builtin and then its argument prototype would still apply.  */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 char dnet_ntoa ();
4998 int
4999 main ()
5000 {
5001 return dnet_ntoa ();
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 if ac_fn_c_try_link "$LINENO"; then :
5007   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5008 else
5009   ac_cv_lib_dnet_stub_dnet_ntoa=no
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext \
5012     conftest$ac_exeext conftest.$ac_ext
5013 LIBS=$ac_check_lib_save_LIBS
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5016 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5017 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5018   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5019 fi
5020
5021     fi
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext \
5024     conftest$ac_exeext conftest.$ac_ext
5025     LIBS="$ac_xsave_LIBS"
5026
5027     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5028     # to get the SysV transport functions.
5029     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5030     # needs -lnsl.
5031     # The nsl library prevents programs from opening the X display
5032     # on Irix 5.2, according to T.E. Dickey.
5033     # The functions gethostbyname, getservbyname, and inet_addr are
5034     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5035     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5036 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5037
5038 fi
5039
5040     if test $ac_cv_func_gethostbyname = no; then
5041       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5042 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5043 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046   ac_check_lib_save_LIBS=$LIBS
5047 LIBS="-lnsl  $LIBS"
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h.  */
5050
5051 /* Override any GCC internal prototype to avoid an error.
5052    Use char because int might match the return type of a GCC
5053    builtin and then its argument prototype would still apply.  */
5054 #ifdef __cplusplus
5055 extern "C"
5056 #endif
5057 char gethostbyname ();
5058 int
5059 main ()
5060 {
5061 return gethostbyname ();
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 if ac_fn_c_try_link "$LINENO"; then :
5067   ac_cv_lib_nsl_gethostbyname=yes
5068 else
5069   ac_cv_lib_nsl_gethostbyname=no
5070 fi
5071 rm -f core conftest.err conftest.$ac_objext \
5072     conftest$ac_exeext conftest.$ac_ext
5073 LIBS=$ac_check_lib_save_LIBS
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5076 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5077 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5078   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5079 fi
5080
5081       if test $ac_cv_lib_nsl_gethostbyname = no; then
5082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5083 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5084 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   ac_check_lib_save_LIBS=$LIBS
5088 LIBS="-lbsd  $LIBS"
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091
5092 /* Override any GCC internal prototype to avoid an error.
5093    Use char because int might match the return type of a GCC
5094    builtin and then its argument prototype would still apply.  */
5095 #ifdef __cplusplus
5096 extern "C"
5097 #endif
5098 char gethostbyname ();
5099 int
5100 main ()
5101 {
5102 return gethostbyname ();
5103   ;
5104   return 0;
5105 }
5106 _ACEOF
5107 if ac_fn_c_try_link "$LINENO"; then :
5108   ac_cv_lib_bsd_gethostbyname=yes
5109 else
5110   ac_cv_lib_bsd_gethostbyname=no
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext \
5113     conftest$ac_exeext conftest.$ac_ext
5114 LIBS=$ac_check_lib_save_LIBS
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5117 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5118 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5119   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5120 fi
5121
5122       fi
5123     fi
5124
5125     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5126     # socket/setsockopt and other routines are undefined under SCO ODT
5127     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5128     # on later versions), says Simon Leinen: it contains gethostby*
5129     # variants that don't use the name server (or something).  -lsocket
5130     # must be given before -lnsl if both are needed.  We assume that
5131     # if connect needs -lnsl, so does gethostbyname.
5132     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5133 if test "x$ac_cv_func_connect" = xyes; then :
5134
5135 fi
5136
5137     if test $ac_cv_func_connect = no; then
5138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5139 $as_echo_n "checking for connect in -lsocket... " >&6; }
5140 if ${ac_cv_lib_socket_connect+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   ac_check_lib_save_LIBS=$LIBS
5144 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h.  */
5147
5148 /* Override any GCC internal prototype to avoid an error.
5149    Use char because int might match the return type of a GCC
5150    builtin and then its argument prototype would still apply.  */
5151 #ifdef __cplusplus
5152 extern "C"
5153 #endif
5154 char connect ();
5155 int
5156 main ()
5157 {
5158 return connect ();
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_link "$LINENO"; then :
5164   ac_cv_lib_socket_connect=yes
5165 else
5166   ac_cv_lib_socket_connect=no
5167 fi
5168 rm -f core conftest.err conftest.$ac_objext \
5169     conftest$ac_exeext conftest.$ac_ext
5170 LIBS=$ac_check_lib_save_LIBS
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5173 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5174 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5175   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5176 fi
5177
5178     fi
5179
5180     # Guillermo Gomez says -lposix is necessary on A/UX.
5181     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5182 if test "x$ac_cv_func_remove" = xyes; then :
5183
5184 fi
5185
5186     if test $ac_cv_func_remove = no; then
5187       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5188 $as_echo_n "checking for remove in -lposix... " >&6; }
5189 if ${ac_cv_lib_posix_remove+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   ac_check_lib_save_LIBS=$LIBS
5193 LIBS="-lposix  $LIBS"
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h.  */
5196
5197 /* Override any GCC internal prototype to avoid an error.
5198    Use char because int might match the return type of a GCC
5199    builtin and then its argument prototype would still apply.  */
5200 #ifdef __cplusplus
5201 extern "C"
5202 #endif
5203 char remove ();
5204 int
5205 main ()
5206 {
5207 return remove ();
5208   ;
5209   return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_link "$LINENO"; then :
5213   ac_cv_lib_posix_remove=yes
5214 else
5215   ac_cv_lib_posix_remove=no
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext \
5218     conftest$ac_exeext conftest.$ac_ext
5219 LIBS=$ac_check_lib_save_LIBS
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5222 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5223 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5224   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5225 fi
5226
5227     fi
5228
5229     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5230     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5231 if test "x$ac_cv_func_shmat" = xyes; then :
5232
5233 fi
5234
5235     if test $ac_cv_func_shmat = no; then
5236       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5237 $as_echo_n "checking for shmat in -lipc... " >&6; }
5238 if ${ac_cv_lib_ipc_shmat+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   ac_check_lib_save_LIBS=$LIBS
5242 LIBS="-lipc  $LIBS"
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245
5246 /* Override any GCC internal prototype to avoid an error.
5247    Use char because int might match the return type of a GCC
5248    builtin and then its argument prototype would still apply.  */
5249 #ifdef __cplusplus
5250 extern "C"
5251 #endif
5252 char shmat ();
5253 int
5254 main ()
5255 {
5256 return shmat ();
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 if ac_fn_c_try_link "$LINENO"; then :
5262   ac_cv_lib_ipc_shmat=yes
5263 else
5264   ac_cv_lib_ipc_shmat=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext \
5267     conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5271 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5272 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5273   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5274 fi
5275
5276     fi
5277   fi
5278
5279   # Check for libraries that X11R6 Xt/Xaw programs need.
5280   ac_save_LDFLAGS=$LDFLAGS
5281   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5282   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5283   # check for ICE first), but we must link in the order -lSM -lICE or
5284   # we get undefined symbols.  So assume we have SM if we have ICE.
5285   # These have to be linked with before -lX11, unlike the other
5286   # libraries we check for below, so use a different variable.
5287   # John Interrante, Karl Berry
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5289 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5290 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   ac_check_lib_save_LIBS=$LIBS
5294 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297
5298 /* Override any GCC internal prototype to avoid an error.
5299    Use char because int might match the return type of a GCC
5300    builtin and then its argument prototype would still apply.  */
5301 #ifdef __cplusplus
5302 extern "C"
5303 #endif
5304 char IceConnectionNumber ();
5305 int
5306 main ()
5307 {
5308 return IceConnectionNumber ();
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_c_try_link "$LINENO"; then :
5314   ac_cv_lib_ICE_IceConnectionNumber=yes
5315 else
5316   ac_cv_lib_ICE_IceConnectionNumber=no
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext \
5319     conftest$ac_exeext conftest.$ac_ext
5320 LIBS=$ac_check_lib_save_LIBS
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5323 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5324 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5325   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5326 fi
5327
5328   LDFLAGS=$ac_save_LDFLAGS
5329
5330 fi
5331
5332
5333    groff_no_x=$no_x
5334    if test -z "$groff_no_x"; then
5335      OLDCFLAGS=$CFLAGS
5336      OLDLDFLAGS=$LDFLAGS
5337      OLDLIBS=$LIBS
5338      CFLAGS="$CFLAGS $X_CFLAGS"
5339      LDFLAGS="$LDFLAGS $X_LIBS"
5340      LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5341
5342      LIBS="$LIBS -lXaw"
5343      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xaw library and header files" >&5
5344 $as_echo_n "checking for Xaw library and header files... " >&6; }
5345      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h.  */
5347
5348
5349
5350 #include <X11/Intrinsic.h>
5351 #include <X11/Xaw/Simple.h>
5352
5353
5354 int
5355 main ()
5356 {
5357
5358   ;
5359   return 0;
5360 }
5361
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"; then :
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369         groff_no_x="yes"
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372     conftest$ac_exeext conftest.$ac_ext
5373
5374      LIBS="$LIBS -lXmu"
5375      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xmu library and header files" >&5
5376 $as_echo_n "checking for Xmu library and header files... " >&6; }
5377      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h.  */
5379
5380
5381
5382 #include <X11/Intrinsic.h>
5383 #include <X11/Xmu/Converters.h>
5384
5385
5386 int
5387 main ()
5388 {
5389
5390   ;
5391   return 0;
5392 }
5393
5394 _ACEOF
5395 if ac_fn_c_try_link "$LINENO"; then :
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398 else
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401         groff_no_x="yes"
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext \
5404     conftest$ac_exeext conftest.$ac_ext
5405
5406      CFLAGS=$OLDCFLAGS
5407      LDFLAGS=$OLDLDFLAGS
5408      LIBS=$OLDLIBS
5409    fi
5410
5411    if test "x$groff_no_x" = "xyes"; then
5412      { $as_echo "$as_me:${as_lineno-$LINENO}: gxditview and xtotroff won't be built" >&5
5413 $as_echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5414    else
5415      XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5416      XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5417      XLIBDIRS="src/libs/libxutil"
5418    fi
5419
5420
5421
5422
5423
5424 # Check whether --with-appresdir was given.
5425 if test "${with_appresdir+set}" = set; then :
5426   withval=$with_appresdir;
5427 fi
5428
5429 if test -z "$groff_no_x"; then
5430      # Create an Imakefile, run `xmkmf', then `make'.
5431      rm -f -r conftest.dir
5432      if mkdir conftest.dir; then
5433        cd conftest.dir
5434        # Make sure to not put `make' in the Imakefile rules,
5435        # since we grep it out.
5436        cat >Imakefile <<'EOF'
5437
5438 xlibdirs:
5439         @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5440 EOF
5441
5442        if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5443          # GNU make sometimes prints "make[1]: Entering...",
5444          # which would confuse us.
5445          eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5446
5447          # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5448          for groff_extension in a so sl; do
5449            if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5450               test -f $groff_x_libdir/libX11.$groff_extension; then
5451              groff_x_usrlibdir=$groff_x_libdir
5452              break
5453            fi
5454          done
5455        fi
5456
5457        cd ..
5458        rm -f -r conftest.dir
5459      fi
5460
5461      # In case the test with `xmkmf' wasn't successful, try a suite of
5462      # standard directories.  Check `X11' before `X11Rn' because it is often
5463      # a symlink to the current release.
5464      groff_x_libdirs='
5465        /usr/X11/lib
5466        /usr/X11R6/lib
5467        /usr/X11R5/lib
5468        /usr/X11R4/lib
5469
5470        /usr/lib/X11
5471        /usr/lib/X11R6
5472        /usr/lib/X11R5
5473        /usr/lib/X11R4
5474
5475        /usr/local/X11/lib
5476        /usr/local/X11R6/lib
5477        /usr/local/X11R5/lib
5478        /usr/local/X11R4/lib
5479
5480        /usr/local/lib/X11
5481        /usr/local/lib/X11R6
5482        /usr/local/lib/X11R5
5483        /usr/local/lib/X11R4
5484
5485        /usr/X386/lib
5486        /usr/x386/lib
5487        /usr/XFree86/lib/X11
5488
5489        /usr/lib
5490        /usr/local/lib
5491        /usr/unsupported/lib
5492        /usr/athena/lib
5493        /usr/local/x11r5/lib
5494        /usr/lpp/Xamples/lib
5495
5496        /usr/openwin/lib
5497        /usr/openwin/share/lib'
5498
5499      if test -z "$groff_x_usrlibdir"; then
5500        # We only test whether libX11 exists.
5501        for groff_dir in $groff_x_libdirs; do
5502          for groff_extension in a so sl; do
5503            if test ! -r $groff_dir/libX11.$groff_extension; then
5504              groff_x_usrlibdir=$groff_dir
5505              break 2
5506            fi
5507          done
5508        done
5509      fi
5510
5511      if test "x$with_appresdir" = "x"; then
5512        appresdir=$groff_x_usrlibdir/X11/app-defaults
5513      else
5514        appresdir=$with_appresdir
5515      fi
5516    fi
5517
5518
5519 # Check whether --with-grofferdir was given.
5520 if test "${with_grofferdir+set}" = set; then :
5521   withval=$with_grofferdir;
5522 fi
5523
5524 if test "x$with_grofferdir" = "x"; then
5525     groffer_dir=$libdir/groff/groffer
5526   else
5527     groffer_dir=$with_grofferdir
5528   fi
5529
5530 if test -z "$PSPRINT"; then
5531      for ac_prog in lpr
5532 do
5533   # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_LPR+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   if test -n "$LPR"; then
5541   ac_cv_prog_LPR="$LPR" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550     ac_cv_prog_LPR="$ac_prog"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 LPR=$ac_cv_prog_LPR
5561 if test -n "$LPR"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
5563 $as_echo "$LPR" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570   test -n "$LPR" && break
5571 done
5572
5573      for ac_prog in lp
5574 do
5575   # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_LP+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   if test -n "$LP"; then
5583   ac_cv_prog_LP="$LP" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592     ac_cv_prog_LP="$ac_prog"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 LP=$ac_cv_prog_LP
5603 if test -n "$LP"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LP" >&5
5605 $as_echo "$LP" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612   test -n "$LP" && break
5613 done
5614
5615      if test -n "$LPR" && test -n "$LP"; then
5616        # HP-UX provides an lpr command that emulates lpr using lp,
5617        # but it doesn't have lpq; in this case we want to use lp
5618        # rather than lpr.
5619        for ac_prog in lpq
5620 do
5621   # Extract the first word of "$ac_prog", so it can be a program name with args.
5622 set dummy $ac_prog; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_LPQ+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   if test -n "$LPQ"; then
5629   ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638     ac_cv_prog_LPQ="$ac_prog"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 LPQ=$ac_cv_prog_LPQ
5649 if test -n "$LPQ"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPQ" >&5
5651 $as_echo "$LPQ" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657
5658   test -n "$LPQ" && break
5659 done
5660
5661        test -n "$LPQ" || LPR=
5662      fi
5663      if test -n "$LPR"; then
5664        PSPRINT="$LPR"
5665      elif test -n "$LP"; then
5666        PSPRINT="$LP"
5667      fi
5668    fi
5669
5670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing PostScript files" >&5
5671 $as_echo_n "checking for command to use for printing PostScript files... " >&6; }
5672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSPRINT" >&5
5673 $as_echo "$PSPRINT" >&6; }
5674
5675    # Figure out DVIPRINT from PSPRINT.
5676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing dvi files" >&5
5677 $as_echo_n "checking for command to use for printing dvi files... " >&6; }
5678    if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5679      if test "x$PSPRINT" = "xlpr"; then
5680        DVIPRINT="lpr -d"
5681      else
5682        DVIPRINT="$PSPRINT"
5683      fi
5684    fi
5685
5686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPRINT" >&5
5687 $as_echo "$DVIPRINT" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5689 $as_echo_n "checking for egrep... " >&6; }
5690 if ${ac_cv_path_EGREP+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5694    then ac_cv_path_EGREP="$GREP -E"
5695    else
5696      if test -z "$EGREP"; then
5697   ac_path_EGREP_found=false
5698   # Loop through the user's path and test for each of PROGNAME-LIST
5699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704     for ac_prog in egrep; do
5705     for ac_exec_ext in '' $ac_executable_extensions; do
5706       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5707       as_fn_executable_p "$ac_path_EGREP" || continue
5708 # Check for GNU ac_path_EGREP and select it if it is found.
5709   # Check for GNU $ac_path_EGREP
5710 case `"$ac_path_EGREP" --version 2>&1` in
5711 *GNU*)
5712   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5713 *)
5714   ac_count=0
5715   $as_echo_n 0123456789 >"conftest.in"
5716   while :
5717   do
5718     cat "conftest.in" "conftest.in" >"conftest.tmp"
5719     mv "conftest.tmp" "conftest.in"
5720     cp "conftest.in" "conftest.nl"
5721     $as_echo 'EGREP' >> "conftest.nl"
5722     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5723     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5724     as_fn_arith $ac_count + 1 && ac_count=$as_val
5725     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5726       # Best one so far, save it but keep looking for a better one
5727       ac_cv_path_EGREP="$ac_path_EGREP"
5728       ac_path_EGREP_max=$ac_count
5729     fi
5730     # 10*(2^10) chars as input seems more than enough
5731     test $ac_count -gt 10 && break
5732   done
5733   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5734 esac
5735
5736       $ac_path_EGREP_found && break 3
5737     done
5738   done
5739   done
5740 IFS=$as_save_IFS
5741   if test -z "$ac_cv_path_EGREP"; then
5742     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5743   fi
5744 else
5745   ac_cv_path_EGREP=$EGREP
5746 fi
5747
5748    fi
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5751 $as_echo "$ac_cv_path_EGREP" >&6; }
5752  EGREP="$ac_cv_path_EGREP"
5753
5754
5755 # Extract the first word of "perl", so it can be a program name with args.
5756 set dummy perl; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_path_PERLPATH+:} false; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   case $PERLPATH in
5763   [\\/]* | ?:[\\/]*)
5764   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5765   ;;
5766   *)
5767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779   done
5780 IFS=$as_save_IFS
5781
5782   test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5783   ;;
5784 esac
5785 fi
5786 PERLPATH=$ac_cv_path_PERLPATH
5787 if test -n "$PERLPATH"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLPATH" >&5
5789 $as_echo "$PERLPATH" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 for ac_prog in byacc 'bison -y'
5797 do
5798   # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_YACC+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$YACC"; then
5806   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815     ac_cv_prog_YACC="$ac_prog"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 YACC=$ac_cv_prog_YACC
5826 if test -n "$YACC"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5828 $as_echo "$YACC" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835   test -n "$YACC" && break
5836 done
5837 test -n "$YACC" || YACC="yacc"
5838
5839 missing=
5840    # Extract the first word of "makeinfo", so it can be a program name with args.
5841 set dummy makeinfo; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_MAKEINFO+:} false; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   if test -n "$MAKEINFO"; then
5848   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857     ac_cv_prog_MAKEINFO="makeinfo"
5858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862   done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 MAKEINFO=$ac_cv_prog_MAKEINFO
5868 if test -n "$MAKEINFO"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5870 $as_echo "$MAKEINFO" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876
5877    if test -z "$MAKEINFO"; then
5878      missing="\`makeinfo' is missing."
5879    else
5880      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makeinfo version" >&5
5881 $as_echo_n "checking for makeinfo version... " >&6; }
5882      # We need an additional level of quoting to make sed's regexps work.
5883      makeinfo_version=`$MAKEINFO --version 2>&1 \
5884        | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $makeinfo_version" >&5
5886 $as_echo "$makeinfo_version" >&6; }
5887      # Consider only the first two numbers in version number string.
5888      makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
5889      makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
5890      makeinfo_version_numeric=`
5891        expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5892      if test $makeinfo_version_numeric -lt 4008; then
5893        missing="\`makeinfo' is too old."
5894      fi
5895    fi
5896
5897    if test -n "$missing"; then
5898      infofile=doc/groff.info
5899      test -f ${infofile} || infofile=${srcdir}/${infofile}
5900      if test ! -f ${infofile} \
5901         || test ${srcdir}/doc/groff.texinfo -nt ${infofile}; then
5902        as_fn_error $? "$missing
5903 Get the \`texinfo' package version 4.8 or newer." "$LINENO" 5
5904      else
5905        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $missing
5906 Get the \`texinfo' package version 4.8 or newer if you want to convert
5907 \`groff.texinfo' into a PDF or HTML document." >&5
5908 $as_echo "$as_me: WARNING: $missing
5909 Get the \`texinfo' package version 4.8 or newer if you want to convert
5910 \`groff.texinfo' into a PDF or HTML document." >&2;}
5911      fi
5912    fi
5913
5914 if test -n "$ac_tool_prefix"; then
5915   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_RANLIB+:} false; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922   if test -n "$RANLIB"; then
5923   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930     for ac_exec_ext in '' $ac_executable_extensions; do
5931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937   done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 RANLIB=$ac_cv_prog_RANLIB
5943 if test -n "$RANLIB"; then
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5945 $as_echo "$RANLIB" >&6; }
5946 else
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if test -z "$ac_cv_prog_RANLIB"; then
5954   ac_ct_RANLIB=$RANLIB
5955   # Extract the first word of "ranlib", so it can be a program name with args.
5956 set dummy ranlib; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$ac_ct_RANLIB"; then
5963   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_prog_ac_ct_RANLIB="ranlib"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5983 if test -n "$ac_ct_RANLIB"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5985 $as_echo "$ac_ct_RANLIB" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991   if test "x$ac_ct_RANLIB" = x; then
5992     RANLIB=":"
5993   else
5994     case $cross_compiling:$ac_tool_warned in
5995 yes:)
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
5999 esac
6000     RANLIB=$ac_ct_RANLIB
6001   fi
6002 else
6003   RANLIB="$ac_cv_prog_RANLIB"
6004 fi
6005
6006 ac_aux_dir=
6007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6008   if test -f "$ac_dir/install-sh"; then
6009     ac_aux_dir=$ac_dir
6010     ac_install_sh="$ac_aux_dir/install-sh -c"
6011     break
6012   elif test -f "$ac_dir/install.sh"; then
6013     ac_aux_dir=$ac_dir
6014     ac_install_sh="$ac_aux_dir/install.sh -c"
6015     break
6016   elif test -f "$ac_dir/shtool"; then
6017     ac_aux_dir=$ac_dir
6018     ac_install_sh="$ac_aux_dir/shtool install -c"
6019     break
6020   fi
6021 done
6022 if test -z "$ac_aux_dir"; then
6023   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6024 fi
6025
6026 # These three variables are undocumented and unsupported,
6027 # and are intended to be withdrawn in a future Autoconf release.
6028 # They can cause serious problems if a builder's source tree is in a directory
6029 # whose full name contains unusual characters.
6030 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6031 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6032 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6033
6034
6035
6036    ac_dir=`cd $ac_aux_dir; pwd`
6037    ac_install_sh="$ac_dir/install-sh -c"
6038 for ac_prog in install-info
6039 do
6040   # Extract the first word of "$ac_prog", so it can be a program name with args.
6041 set dummy $ac_prog; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_INSTALL_INFO+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   if test -n "$INSTALL_INFO"; then
6048   ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057     ac_cv_prog_INSTALL_INFO="$ac_prog"
6058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062   done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
6068 if test -n "$INSTALL_INFO"; then
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6070 $as_echo "$INSTALL_INFO" >&6; }
6071 else
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6074 fi
6075
6076
6077   test -n "$INSTALL_INFO" && break
6078 done
6079 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
6080
6081 # Find a good install program.  We prefer a C program (faster),
6082 # so one script is as good as another.  But avoid the broken or
6083 # incompatible versions:
6084 # SysV /etc/install, /usr/sbin/install
6085 # SunOS /usr/etc/install
6086 # IRIX /sbin/install
6087 # AIX /bin/install
6088 # AmigaOS /C/install, which installs bootblocks on floppy discs
6089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6092 # OS/2's system install, which has a completely different semantic
6093 # ./install, which can be erroneously created by make from ./install.sh.
6094 # Reject install programs that cannot install multiple files.
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6096 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6097 if test -z "$INSTALL"; then
6098 if ${ac_cv_path_install+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     # Account for people who put trailing slashes in PATH elements.
6107 case $as_dir/ in #((
6108   ./ | .// | /[cC]/* | \
6109   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6110   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6111   /usr/ucb/* ) ;;
6112   *)
6113     # OSF1 and SCO ODT 3.0 have their own names for install.
6114     # Don't use installbsd from OSF since it installs stuff as root
6115     # by default.
6116     for ac_prog in ginstall scoinst install; do
6117       for ac_exec_ext in '' $ac_executable_extensions; do
6118         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6119           if test $ac_prog = install &&
6120             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6121             # AIX install.  It has an incompatible calling convention.
6122             :
6123           elif test $ac_prog = install &&
6124             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6125             # program-specific install script used by HP pwplus--don't use.
6126             :
6127           else
6128             rm -rf conftest.one conftest.two conftest.dir
6129             echo one > conftest.one
6130             echo two > conftest.two
6131             mkdir conftest.dir
6132             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6133               test -s conftest.one && test -s conftest.two &&
6134               test -s conftest.dir/conftest.one &&
6135               test -s conftest.dir/conftest.two
6136             then
6137               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6138               break 3
6139             fi
6140           fi
6141         fi
6142       done
6143     done
6144     ;;
6145 esac
6146
6147   done
6148 IFS=$as_save_IFS
6149
6150 rm -rf conftest.one conftest.two conftest.dir
6151
6152 fi
6153   if test "${ac_cv_path_install+set}" = set; then
6154     INSTALL=$ac_cv_path_install
6155   else
6156     # As a last resort, use the slow shell script.  Don't cache a
6157     # value for INSTALL within a source directory, because that will
6158     # break other packages using the cache if that directory is
6159     # removed, or if the value is a relative name.
6160     INSTALL=$ac_install_sh
6161   fi
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6164 $as_echo "$INSTALL" >&6; }
6165
6166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6167 # It thinks the first close brace ends the variable substitution.
6168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6169
6170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6171
6172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6175 $as_echo_n "checking whether ln -s works... " >&6; }
6176 LN_S=$as_ln_s
6177 if test "$LN_S" = "ln -s"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6182 $as_echo "no, using $LN_S" >&6; }
6183 fi
6184
6185
6186 # use a dummy substitution if no csh hack is necessary to avoid errors
6187 # with non-GNU sed programs
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csh hash hack" >&5
6189 $as_echo_n "checking for csh hash hack... " >&6; }
6190
6191 cat <<EOF >conftest.sh
6192 #! /bin/sh
6193 true || exit 0
6194 export PATH || exit 0
6195 exit 1
6196 EOF
6197
6198    chmod +x conftest.sh
6199    if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
6200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6201 $as_echo "yes" >&6; }
6202      SH_SCRIPT_SED_CMD='1s/.*/:/'
6203    else
6204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6206      SH_SCRIPT_SED_CMD='1s/a/a/'
6207    fi
6208    rm -f conftest.sh
6209
6210
6211 # checks for headers
6212 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6213                   string.h strings.h math.h sys/time.h direct.h process.h
6214 do :
6215   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6217 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6218   cat >>confdefs.h <<_ACEOF
6219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6220 _ACEOF
6221
6222 fi
6223
6224 done
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISC 3.x or 4.x" >&5
6227 $as_echo_n "checking for ISC 3.x or 4.x... " >&6; }
6228    if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6229    then
6230      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6232
6233 $as_echo "#define _SYSV3 1" >>confdefs.h
6234
6235    else
6236      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238    fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -D_POSIX_SOURCE is necessary" >&5
6240 $as_echo_n "checking whether -D_POSIX_SOURCE is necessary... " >&6; }
6241    ac_ext=cpp
6242 ac_cpp='$CXXCPP $CPPFLAGS'
6243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6246
6247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h.  */
6249
6250
6251
6252 #include <stdio.h>
6253 extern "C" { void fileno(int); }
6254
6255
6256 int
6257 main ()
6258 {
6259
6260   ;
6261   return 0;
6262 }
6263
6264 _ACEOF
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6267 $as_echo "yes" >&6; }
6268
6269 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6270
6271 else
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276    ac_ext=c
6277 ac_cpp='$CPP $CPPFLAGS'
6278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
6282
6283 # checks for header stuff
6284 ac_ext=cpp
6285 ac_cpp='$CXXCPP $CPPFLAGS'
6286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6289
6290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of srand" >&5
6291 $as_echo_n "checking for return type of srand... " >&6; }
6292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h.  */
6294
6295
6296
6297 #include <stdlib.h>
6298 extern "C" { void srand(unsigned int); }
6299
6300
6301 int
6302 main ()
6303 {
6304
6305   ;
6306   return 0;
6307 }
6308
6309 _ACEOF
6310 if ac_fn_cxx_try_compile "$LINENO"; then :
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
6312 $as_echo "void" >&6; }
6313
6314 $as_echo "#define RET_TYPE_SRAND_IS_VOID 1" >>confdefs.h
6315
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
6318 $as_echo "int" >&6; }
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321    ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday must be declared" >&5
6328 $as_echo_n "checking whether gettimeofday must be declared... " >&6; }
6329    ac_ext=cpp
6330 ac_cpp='$CXXCPP $CPPFLAGS'
6331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6334
6335    if ${groff_cv_decl_needed_gettimeofday+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h.  */
6340
6341
6342
6343 #include <stdio.h>
6344 #ifdef HAVE_STRING_H
6345 #include <string.h>
6346 #endif
6347 #ifdef HAVE_STRINGS_H
6348 #include <strings.h>
6349 #endif
6350 #ifdef HAVE_STDLIB_H
6351 #include <stdlib.h>
6352 #endif
6353 #ifdef HAVE_SYS_TIME_H
6354 #include <sys/time.h>
6355 #endif
6356 #ifdef HAVE_UNISTD_H
6357 #include <unistd.h>
6358 #endif
6359 #ifdef HAVE_MATH_H
6360 #include <math.h>
6361 #endif
6362
6363
6364 int
6365 main ()
6366 {
6367
6368
6369 #ifndef gettimeofday
6370   char *p = (char *) gettimeofday;
6371 #endif
6372
6373
6374   ;
6375   return 0;
6376 }
6377
6378 _ACEOF
6379 if ac_fn_cxx_try_compile "$LINENO"; then :
6380   groff_cv_decl_needed_gettimeofday=no
6381 else
6382   groff_cv_decl_needed_gettimeofday=yes
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 fi
6386
6387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_gettimeofday" >&5
6388 $as_echo "$groff_cv_decl_needed_gettimeofday" >&6; }
6389    if test $groff_cv_decl_needed_gettimeofday = yes; then
6390
6391 $as_echo "#define NEED_DECLARATION_GETTIMEOFDAY 1" >>confdefs.h
6392
6393    fi
6394    ac_ext=c
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hypot must be declared" >&5
6401 $as_echo_n "checking whether hypot must be declared... " >&6; }
6402    ac_ext=cpp
6403 ac_cpp='$CXXCPP $CPPFLAGS'
6404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6407
6408    if ${groff_cv_decl_needed_hypot+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h.  */
6413
6414
6415
6416 #include <stdio.h>
6417 #ifdef HAVE_STRING_H
6418 #include <string.h>
6419 #endif
6420 #ifdef HAVE_STRINGS_H
6421 #include <strings.h>
6422 #endif
6423 #ifdef HAVE_STDLIB_H
6424 #include <stdlib.h>
6425 #endif
6426 #ifdef HAVE_SYS_TIME_H
6427 #include <sys/time.h>
6428 #endif
6429 #ifdef HAVE_UNISTD_H
6430 #include <unistd.h>
6431 #endif
6432 #ifdef HAVE_MATH_H
6433 #include <math.h>
6434 #endif
6435
6436
6437 int
6438 main ()
6439 {
6440
6441
6442 #ifndef hypot
6443   char *p = (char *) hypot;
6444 #endif
6445
6446
6447   ;
6448   return 0;
6449 }
6450
6451 _ACEOF
6452 if ac_fn_cxx_try_compile "$LINENO"; then :
6453   groff_cv_decl_needed_hypot=no
6454 else
6455   groff_cv_decl_needed_hypot=yes
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 fi
6459
6460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_hypot" >&5
6461 $as_echo "$groff_cv_decl_needed_hypot" >&6; }
6462    if test $groff_cv_decl_needed_hypot = yes; then
6463
6464 $as_echo "#define NEED_DECLARATION_HYPOT 1" >>confdefs.h
6465
6466    fi
6467    ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether popen must be declared" >&5
6474 $as_echo_n "checking whether popen must be declared... " >&6; }
6475    ac_ext=cpp
6476 ac_cpp='$CXXCPP $CPPFLAGS'
6477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6480
6481    if ${groff_cv_decl_needed_popen+:} false; then :
6482   $as_echo_n "(cached) " >&6
6483 else
6484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h.  */
6486
6487
6488
6489 #include <stdio.h>
6490 #ifdef HAVE_STRING_H
6491 #include <string.h>
6492 #endif
6493 #ifdef HAVE_STRINGS_H
6494 #include <strings.h>
6495 #endif
6496 #ifdef HAVE_STDLIB_H
6497 #include <stdlib.h>
6498 #endif
6499 #ifdef HAVE_SYS_TIME_H
6500 #include <sys/time.h>
6501 #endif
6502 #ifdef HAVE_UNISTD_H
6503 #include <unistd.h>
6504 #endif
6505 #ifdef HAVE_MATH_H
6506 #include <math.h>
6507 #endif
6508
6509
6510 int
6511 main ()
6512 {
6513
6514
6515 #ifndef popen
6516   char *p = (char *) popen;
6517 #endif
6518
6519
6520   ;
6521   return 0;
6522 }
6523
6524 _ACEOF
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526   groff_cv_decl_needed_popen=no
6527 else
6528   groff_cv_decl_needed_popen=yes
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532
6533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_popen" >&5
6534 $as_echo "$groff_cv_decl_needed_popen" >&6; }
6535    if test $groff_cv_decl_needed_popen = yes; then
6536
6537 $as_echo "#define NEED_DECLARATION_POPEN 1" >>confdefs.h
6538
6539    fi
6540    ac_ext=c
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pclose must be declared" >&5
6547 $as_echo_n "checking whether pclose must be declared... " >&6; }
6548    ac_ext=cpp
6549 ac_cpp='$CXXCPP $CPPFLAGS'
6550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6553
6554    if ${groff_cv_decl_needed_pclose+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h.  */
6559
6560
6561
6562 #include <stdio.h>
6563 #ifdef HAVE_STRING_H
6564 #include <string.h>
6565 #endif
6566 #ifdef HAVE_STRINGS_H
6567 #include <strings.h>
6568 #endif
6569 #ifdef HAVE_STDLIB_H
6570 #include <stdlib.h>
6571 #endif
6572 #ifdef HAVE_SYS_TIME_H
6573 #include <sys/time.h>
6574 #endif
6575 #ifdef HAVE_UNISTD_H
6576 #include <unistd.h>
6577 #endif
6578 #ifdef HAVE_MATH_H
6579 #include <math.h>
6580 #endif
6581
6582
6583 int
6584 main ()
6585 {
6586
6587
6588 #ifndef pclose
6589   char *p = (char *) pclose;
6590 #endif
6591
6592
6593   ;
6594   return 0;
6595 }
6596
6597 _ACEOF
6598 if ac_fn_cxx_try_compile "$LINENO"; then :
6599   groff_cv_decl_needed_pclose=no
6600 else
6601   groff_cv_decl_needed_pclose=yes
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 fi
6605
6606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_pclose" >&5
6607 $as_echo "$groff_cv_decl_needed_pclose" >&6; }
6608    if test $groff_cv_decl_needed_pclose = yes; then
6609
6610 $as_echo "#define NEED_DECLARATION_PCLOSE 1" >>confdefs.h
6611
6612    fi
6613    ac_ext=c
6614 ac_cpp='$CPP $CPPFLAGS'
6615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv must be declared" >&5
6620 $as_echo_n "checking whether putenv must be declared... " >&6; }
6621    ac_ext=cpp
6622 ac_cpp='$CXXCPP $CPPFLAGS'
6623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6626
6627    if ${groff_cv_decl_needed_putenv+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h.  */
6632
6633
6634
6635 #include <stdio.h>
6636 #ifdef HAVE_STRING_H
6637 #include <string.h>
6638 #endif
6639 #ifdef HAVE_STRINGS_H
6640 #include <strings.h>
6641 #endif
6642 #ifdef HAVE_STDLIB_H
6643 #include <stdlib.h>
6644 #endif
6645 #ifdef HAVE_SYS_TIME_H
6646 #include <sys/time.h>
6647 #endif
6648 #ifdef HAVE_UNISTD_H
6649 #include <unistd.h>
6650 #endif
6651 #ifdef HAVE_MATH_H
6652 #include <math.h>
6653 #endif
6654
6655
6656 int
6657 main ()
6658 {
6659
6660
6661 #ifndef putenv
6662   char *p = (char *) putenv;
6663 #endif
6664
6665
6666   ;
6667   return 0;
6668 }
6669
6670 _ACEOF
6671 if ac_fn_cxx_try_compile "$LINENO"; then :
6672   groff_cv_decl_needed_putenv=no
6673 else
6674   groff_cv_decl_needed_putenv=yes
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 fi
6678
6679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_putenv" >&5
6680 $as_echo "$groff_cv_decl_needed_putenv" >&6; }
6681    if test $groff_cv_decl_needed_putenv = yes; then
6682
6683 $as_echo "#define NEED_DECLARATION_PUTENV 1" >>confdefs.h
6684
6685    fi
6686    ac_ext=c
6687 ac_cpp='$CPP $CPPFLAGS'
6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rand must be declared" >&5
6693 $as_echo_n "checking whether rand must be declared... " >&6; }
6694    ac_ext=cpp
6695 ac_cpp='$CXXCPP $CPPFLAGS'
6696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6699
6700    if ${groff_cv_decl_needed_rand+:} false; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705
6706
6707
6708 #include <stdio.h>
6709 #ifdef HAVE_STRING_H
6710 #include <string.h>
6711 #endif
6712 #ifdef HAVE_STRINGS_H
6713 #include <strings.h>
6714 #endif
6715 #ifdef HAVE_STDLIB_H
6716 #include <stdlib.h>
6717 #endif
6718 #ifdef HAVE_SYS_TIME_H
6719 #include <sys/time.h>
6720 #endif
6721 #ifdef HAVE_UNISTD_H
6722 #include <unistd.h>
6723 #endif
6724 #ifdef HAVE_MATH_H
6725 #include <math.h>
6726 #endif
6727
6728
6729 int
6730 main ()
6731 {
6732
6733
6734 #ifndef rand
6735   char *p = (char *) rand;
6736 #endif
6737
6738
6739   ;
6740   return 0;
6741 }
6742
6743 _ACEOF
6744 if ac_fn_cxx_try_compile "$LINENO"; then :
6745   groff_cv_decl_needed_rand=no
6746 else
6747   groff_cv_decl_needed_rand=yes
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 fi
6751
6752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_rand" >&5
6753 $as_echo "$groff_cv_decl_needed_rand" >&6; }
6754    if test $groff_cv_decl_needed_rand = yes; then
6755
6756 $as_echo "#define NEED_DECLARATION_RAND 1" >>confdefs.h
6757
6758    fi
6759    ac_ext=c
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf must be declared" >&5
6766 $as_echo_n "checking whether snprintf must be declared... " >&6; }
6767    ac_ext=cpp
6768 ac_cpp='$CXXCPP $CPPFLAGS'
6769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6772
6773    if ${groff_cv_decl_needed_snprintf+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h.  */
6778
6779
6780
6781 #include <stdio.h>
6782 #ifdef HAVE_STRING_H
6783 #include <string.h>
6784 #endif
6785 #ifdef HAVE_STRINGS_H
6786 #include <strings.h>
6787 #endif
6788 #ifdef HAVE_STDLIB_H
6789 #include <stdlib.h>
6790 #endif
6791 #ifdef HAVE_SYS_TIME_H
6792 #include <sys/time.h>
6793 #endif
6794 #ifdef HAVE_UNISTD_H
6795 #include <unistd.h>
6796 #endif
6797 #ifdef HAVE_MATH_H
6798 #include <math.h>
6799 #endif
6800
6801
6802 int
6803 main ()
6804 {
6805
6806
6807 #ifndef snprintf
6808   char *p = (char *) snprintf;
6809 #endif
6810
6811
6812   ;
6813   return 0;
6814 }
6815
6816 _ACEOF
6817 if ac_fn_cxx_try_compile "$LINENO"; then :
6818   groff_cv_decl_needed_snprintf=no
6819 else
6820   groff_cv_decl_needed_snprintf=yes
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 fi
6824
6825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_snprintf" >&5
6826 $as_echo "$groff_cv_decl_needed_snprintf" >&6; }
6827    if test $groff_cv_decl_needed_snprintf = yes; then
6828
6829 $as_echo "#define NEED_DECLARATION_SNPRINTF 1" >>confdefs.h
6830
6831    fi
6832    ac_ext=c
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether srand must be declared" >&5
6839 $as_echo_n "checking whether srand must be declared... " >&6; }
6840    ac_ext=cpp
6841 ac_cpp='$CXXCPP $CPPFLAGS'
6842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845
6846    if ${groff_cv_decl_needed_srand+:} false; then :
6847   $as_echo_n "(cached) " >&6
6848 else
6849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h.  */
6851
6852
6853
6854 #include <stdio.h>
6855 #ifdef HAVE_STRING_H
6856 #include <string.h>
6857 #endif
6858 #ifdef HAVE_STRINGS_H
6859 #include <strings.h>
6860 #endif
6861 #ifdef HAVE_STDLIB_H
6862 #include <stdlib.h>
6863 #endif
6864 #ifdef HAVE_SYS_TIME_H
6865 #include <sys/time.h>
6866 #endif
6867 #ifdef HAVE_UNISTD_H
6868 #include <unistd.h>
6869 #endif
6870 #ifdef HAVE_MATH_H
6871 #include <math.h>
6872 #endif
6873
6874
6875 int
6876 main ()
6877 {
6878
6879
6880 #ifndef srand
6881   char *p = (char *) srand;
6882 #endif
6883
6884
6885   ;
6886   return 0;
6887 }
6888
6889 _ACEOF
6890 if ac_fn_cxx_try_compile "$LINENO"; then :
6891   groff_cv_decl_needed_srand=no
6892 else
6893   groff_cv_decl_needed_srand=yes
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 fi
6897
6898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_srand" >&5
6899 $as_echo "$groff_cv_decl_needed_srand" >&6; }
6900    if test $groff_cv_decl_needed_srand = yes; then
6901
6902 $as_echo "#define NEED_DECLARATION_SRAND 1" >>confdefs.h
6903
6904    fi
6905    ac_ext=c
6906 ac_cpp='$CPP $CPPFLAGS'
6907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasecmp must be declared" >&5
6912 $as_echo_n "checking whether strcasecmp must be declared... " >&6; }
6913    ac_ext=cpp
6914 ac_cpp='$CXXCPP $CPPFLAGS'
6915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6918
6919    if ${groff_cv_decl_needed_strcasecmp+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h.  */
6924
6925
6926
6927 #include <stdio.h>
6928 #ifdef HAVE_STRING_H
6929 #include <string.h>
6930 #endif
6931 #ifdef HAVE_STRINGS_H
6932 #include <strings.h>
6933 #endif
6934 #ifdef HAVE_STDLIB_H
6935 #include <stdlib.h>
6936 #endif
6937 #ifdef HAVE_SYS_TIME_H
6938 #include <sys/time.h>
6939 #endif
6940 #ifdef HAVE_UNISTD_H
6941 #include <unistd.h>
6942 #endif
6943 #ifdef HAVE_MATH_H
6944 #include <math.h>
6945 #endif
6946
6947
6948 int
6949 main ()
6950 {
6951
6952
6953 #ifndef strcasecmp
6954   char *p = (char *) strcasecmp;
6955 #endif
6956
6957
6958   ;
6959   return 0;
6960 }
6961
6962 _ACEOF
6963 if ac_fn_cxx_try_compile "$LINENO"; then :
6964   groff_cv_decl_needed_strcasecmp=no
6965 else
6966   groff_cv_decl_needed_strcasecmp=yes
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 fi
6970
6971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strcasecmp" >&5
6972 $as_echo "$groff_cv_decl_needed_strcasecmp" >&6; }
6973    if test $groff_cv_decl_needed_strcasecmp = yes; then
6974
6975 $as_echo "#define NEED_DECLARATION_STRCASECMP 1" >>confdefs.h
6976
6977    fi
6978    ac_ext=c
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncasecmp must be declared" >&5
6985 $as_echo_n "checking whether strncasecmp must be declared... " >&6; }
6986    ac_ext=cpp
6987 ac_cpp='$CXXCPP $CPPFLAGS'
6988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6991
6992    if ${groff_cv_decl_needed_strncasecmp+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h.  */
6997
6998
6999
7000 #include <stdio.h>
7001 #ifdef HAVE_STRING_H
7002 #include <string.h>
7003 #endif
7004 #ifdef HAVE_STRINGS_H
7005 #include <strings.h>
7006 #endif
7007 #ifdef HAVE_STDLIB_H
7008 #include <stdlib.h>
7009 #endif
7010 #ifdef HAVE_SYS_TIME_H
7011 #include <sys/time.h>
7012 #endif
7013 #ifdef HAVE_UNISTD_H
7014 #include <unistd.h>
7015 #endif
7016 #ifdef HAVE_MATH_H
7017 #include <math.h>
7018 #endif
7019
7020
7021 int
7022 main ()
7023 {
7024
7025
7026 #ifndef strncasecmp
7027   char *p = (char *) strncasecmp;
7028 #endif
7029
7030
7031   ;
7032   return 0;
7033 }
7034
7035 _ACEOF
7036 if ac_fn_cxx_try_compile "$LINENO"; then :
7037   groff_cv_decl_needed_strncasecmp=no
7038 else
7039   groff_cv_decl_needed_strncasecmp=yes
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043
7044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strncasecmp" >&5
7045 $as_echo "$groff_cv_decl_needed_strncasecmp" >&6; }
7046    if test $groff_cv_decl_needed_strncasecmp = yes; then
7047
7048 $as_echo "#define NEED_DECLARATION_STRNCASECMP 1" >>confdefs.h
7049
7050    fi
7051    ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfprintf must be declared" >&5
7058 $as_echo_n "checking whether vfprintf must be declared... " >&6; }
7059    ac_ext=cpp
7060 ac_cpp='$CXXCPP $CPPFLAGS'
7061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7064
7065    if ${groff_cv_decl_needed_vfprintf+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h.  */
7070
7071
7072
7073 #include <stdio.h>
7074 #ifdef HAVE_STRING_H
7075 #include <string.h>
7076 #endif
7077 #ifdef HAVE_STRINGS_H
7078 #include <strings.h>
7079 #endif
7080 #ifdef HAVE_STDLIB_H
7081 #include <stdlib.h>
7082 #endif
7083 #ifdef HAVE_SYS_TIME_H
7084 #include <sys/time.h>
7085 #endif
7086 #ifdef HAVE_UNISTD_H
7087 #include <unistd.h>
7088 #endif
7089 #ifdef HAVE_MATH_H
7090 #include <math.h>
7091 #endif
7092
7093
7094 int
7095 main ()
7096 {
7097
7098
7099 #ifndef vfprintf
7100   char *p = (char *) vfprintf;
7101 #endif
7102
7103
7104   ;
7105   return 0;
7106 }
7107
7108 _ACEOF
7109 if ac_fn_cxx_try_compile "$LINENO"; then :
7110   groff_cv_decl_needed_vfprintf=no
7111 else
7112   groff_cv_decl_needed_vfprintf=yes
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 fi
7116
7117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_vfprintf" >&5
7118 $as_echo "$groff_cv_decl_needed_vfprintf" >&6; }
7119    if test $groff_cv_decl_needed_vfprintf = yes; then
7120
7121 $as_echo "#define NEED_DECLARATION_VFPRINTF 1" >>confdefs.h
7122
7123    fi
7124    ac_ext=c
7125 ac_cpp='$CPP $CPPFLAGS'
7126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf must be declared" >&5
7131 $as_echo_n "checking whether vsnprintf must be declared... " >&6; }
7132    ac_ext=cpp
7133 ac_cpp='$CXXCPP $CPPFLAGS'
7134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7137
7138    if ${groff_cv_decl_needed_vsnprintf+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143
7144
7145
7146 #include <stdio.h>
7147 #ifdef HAVE_STRING_H
7148 #include <string.h>
7149 #endif
7150 #ifdef HAVE_STRINGS_H
7151 #include <strings.h>
7152 #endif
7153 #ifdef HAVE_STDLIB_H
7154 #include <stdlib.h>
7155 #endif
7156 #ifdef HAVE_SYS_TIME_H
7157 #include <sys/time.h>
7158 #endif
7159 #ifdef HAVE_UNISTD_H
7160 #include <unistd.h>
7161 #endif
7162 #ifdef HAVE_MATH_H
7163 #include <math.h>
7164 #endif
7165
7166
7167 int
7168 main ()
7169 {
7170
7171
7172 #ifndef vsnprintf
7173   char *p = (char *) vsnprintf;
7174 #endif
7175
7176
7177   ;
7178   return 0;
7179 }
7180
7181 _ACEOF
7182 if ac_fn_cxx_try_compile "$LINENO"; then :
7183   groff_cv_decl_needed_vsnprintf=no
7184 else
7185   groff_cv_decl_needed_vsnprintf=yes
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 fi
7189
7190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_vsnprintf" >&5
7191 $as_echo "$groff_cv_decl_needed_vsnprintf" >&6; }
7192    if test $groff_cv_decl_needed_vsnprintf = yes; then
7193
7194 $as_echo "#define NEED_DECLARATION_VSNPRINTF 1" >>confdefs.h
7195
7196    fi
7197    ac_ext=c
7198 ac_cpp='$CPP $CPPFLAGS'
7199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202
7203 ac_ext=cpp
7204 ac_cpp='$CXXCPP $CPPFLAGS'
7205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7208
7209    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7210 $as_echo_n "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7211    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h.  */
7213
7214
7215
7216 #include <errno.h>
7217 #include <stdio.h>
7218 #include <stdlib.h>
7219
7220
7221 int
7222 main ()
7223 {
7224
7225
7226 int k;
7227 k = sys_nerr;
7228
7229
7230   ;
7231   return 0;
7232 }
7233
7234 _ACEOF
7235 if ac_fn_cxx_try_compile "$LINENO"; then :
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7238
7239 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
7240
7241 else
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246    ac_ext=c
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7253 $as_echo_n "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7254    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h.  */
7256
7257
7258
7259 #include <errno.h>
7260 #include <stdio.h>
7261 #include <stdlib.h>
7262
7263
7264 int
7265 main ()
7266 {
7267
7268
7269 int k;
7270 k = (int)sys_errlist[0];
7271
7272
7273   ;
7274   return 0;
7275 }
7276
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 $as_echo "yes" >&6; }
7281
7282 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
7283
7284 else
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 ac_ext=cpp
7290 ac_cpp='$CXXCPP $CPPFLAGS'
7291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7294
7295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <osfcn.h>" >&5
7296 $as_echo_n "checking C++ <osfcn.h>... " >&6; }
7297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h.  */
7299
7300
7301
7302 #include <osfcn.h>
7303
7304
7305 int
7306 main ()
7307 {
7308
7309
7310 read(0, 0, 0);
7311 open(0, 0);
7312
7313
7314   ;
7315   return 0;
7316 }
7317
7318 _ACEOF
7319 if ac_fn_cxx_try_compile "$LINENO"; then :
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7321 $as_echo "yes" >&6; }
7322
7323 $as_echo "#define HAVE_CC_OSFCN_H 1" >>confdefs.h
7324
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330    ac_ext=c
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336 ac_ext=cpp
7337 ac_cpp='$CXXCPP $CPPFLAGS'
7338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7341
7342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <limits.h>" >&5
7343 $as_echo_n "checking C++ <limits.h>... " >&6; }
7344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h.  */
7346
7347
7348
7349 #include <limits.h>
7350
7351
7352 int
7353 main ()
7354 {
7355
7356
7357 int x = INT_MIN;
7358 int y = INT_MAX;
7359 int z = UCHAR_MAX;
7360
7361
7362   ;
7363   return 0;
7364 }
7365
7366 _ACEOF
7367 if ac_fn_cxx_try_compile "$LINENO"; then :
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7369 $as_echo "yes" >&6; }
7370
7371 $as_echo "#define HAVE_CC_LIMITS_H 1" >>confdefs.h
7372
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378    ac_ext=c
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384 ac_ext=cpp
7385 ac_cpp='$CXXCPP $CPPFLAGS'
7386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7389
7390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <inttypes.h>" >&5
7391 $as_echo_n "checking C++ <inttypes.h>... " >&6; }
7392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h.  */
7394
7395
7396
7397 #include <sys/types.h>
7398 #include <inttypes.h>
7399
7400
7401 int
7402 main ()
7403 {
7404
7405
7406 uintmax_t i = (uintmax_t)-1;
7407
7408
7409   ;
7410   return 0;
7411 }
7412
7413 _ACEOF
7414 if ac_fn_cxx_try_compile "$LINENO"; then :
7415   groff_cv_header_inttypes_h=yes
7416
7417 $as_echo "#define HAVE_CC_INTTYPES_H 1" >>confdefs.h
7418
7419 else
7420   groff_cv_header_inttypes_h=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_header_inttypes_h" >&5
7424 $as_echo "$groff_cv_header_inttypes_h" >&6; }
7425    ac_ext=c
7426 ac_cpp='$CPP $CPPFLAGS'
7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7430
7431
7432 # checks for typedefs
7433 ac_ext=cpp
7434 ac_cpp='$CXXCPP $CPPFLAGS'
7435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7438
7439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7440 $as_echo_n "checking for unsigned long long... " >&6; }
7441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h.  */
7443
7444
7445
7446 unsigned long long ull = 1;
7447 int i = 63;
7448 unsigned long long ullmax = (unsigned long long)-1;
7449
7450
7451 int
7452 main ()
7453 {
7454
7455
7456 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7457
7458
7459   ;
7460   return 0;
7461 }
7462
7463 _ACEOF
7464 if ac_fn_cxx_try_link "$LINENO"; then :
7465   groff_cv_type_unsigned_long_long=yes
7466 else
7467   groff_cv_type_unsigned_long_long=no
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext \
7470     conftest$ac_exeext conftest.$ac_ext
7471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_type_unsigned_long_long" >&5
7472 $as_echo "$groff_cv_type_unsigned_long_long" >&6; }
7473    ac_ext=c
7474 ac_cpp='$CPP $CPPFLAGS'
7475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478
7479
7480    if test $groff_cv_header_inttypes_h = no; then
7481
7482      test $groff_cv_type_unsigned_long_long = yes \
7483           && ac_type='unsigned long long' \
7484           || ac_type='unsigned long'
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define uintmax_t $ac_type
7488 _ACEOF
7489
7490    fi
7491 ac_ext=cpp
7492 ac_cpp='$CXXCPP $CPPFLAGS'
7493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7496
7497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of time_t" >&5
7498 $as_echo_n "checking for declaration of time_t... " >&6; }
7499    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h.  */
7501
7502
7503
7504 #include <time.h>
7505
7506
7507 int
7508 main ()
7509 {
7510
7511
7512 time_t t = time(0);
7513 struct tm *p = localtime(&t);
7514
7515
7516   ;
7517   return 0;
7518 }
7519
7520 _ACEOF
7521 if ac_fn_cxx_try_compile "$LINENO"; then :
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527
7528 $as_echo "#define LONG_FOR_TIME_T 1" >>confdefs.h
7529
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532    ac_ext=c
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of signal handlers" >&5
7539 $as_echo_n "checking for return type of signal handlers... " >&6; }
7540    for groff_declaration in \
7541      'extern "C" void (*signal (int, void (*)(int)))(int);' \
7542      'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
7543      'void (*signal ()) ();'
7544    do
7545      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547
7548
7549
7550 #include <sys/types.h>
7551 #include <signal.h>
7552 #ifdef signal
7553 # undef signal
7554 #endif
7555 $groff_declaration
7556
7557
7558 int
7559 main ()
7560 {
7561
7562
7563 int i;
7564
7565
7566   ;
7567   return 0;
7568 }
7569
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572   break
7573 else
7574   continue
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577    done
7578
7579    if test -n "$groff_declaration"; then
7580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
7581 $as_echo "void" >&6; }
7582
7583 $as_echo "#define RETSIGTYPE void" >>confdefs.h
7584
7585    else
7586      { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
7587 $as_echo "int" >&6; }
7588
7589 $as_echo "#define RETSIGTYPE int" >>confdefs.h
7590
7591    fi
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct exception" >&5
7593 $as_echo_n "checking struct exception... " >&6; }
7594    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h.  */
7596
7597
7598
7599 #include <math.h>
7600
7601
7602 int
7603 main ()
7604 {
7605
7606
7607 struct exception e;
7608
7609
7610   ;
7611   return 0;
7612 }
7613
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617 $as_echo "yes" >&6; }
7618
7619 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
7620
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626
7627 # check endianness
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7629 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7630 if ${ac_cv_c_bigendian+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   ac_cv_c_bigendian=unknown
7634     # See if we're dealing with a universal compiler.
7635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637 #ifndef __APPLE_CC__
7638                not a universal capable compiler
7639              #endif
7640              typedef int dummy;
7641
7642 _ACEOF
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644
7645         # Check for potential -arch flags.  It is not universal unless
7646         # there are at least two -arch flags with different values.
7647         ac_arch=
7648         ac_prev=
7649         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7650          if test -n "$ac_prev"; then
7651            case $ac_word in
7652              i?86 | x86_64 | ppc | ppc64)
7653                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7654                  ac_arch=$ac_word
7655                else
7656                  ac_cv_c_bigendian=universal
7657                  break
7658                fi
7659                ;;
7660            esac
7661            ac_prev=
7662          elif test "x$ac_word" = "x-arch"; then
7663            ac_prev=arch
7664          fi
7665        done
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668     if test $ac_cv_c_bigendian = unknown; then
7669       # See if sys/param.h defines the BYTE_ORDER macro.
7670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h.  */
7672 #include <sys/types.h>
7673              #include <sys/param.h>
7674
7675 int
7676 main ()
7677 {
7678 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7679                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7680                      && LITTLE_ENDIAN)
7681               bogus endian macros
7682              #endif
7683
7684   ;
7685   return 0;
7686 }
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689   # It does; now see whether it defined to BIG_ENDIAN or not.
7690          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692 #include <sys/types.h>
7693                 #include <sys/param.h>
7694
7695 int
7696 main ()
7697 {
7698 #if BYTE_ORDER != BIG_ENDIAN
7699                  not big endian
7700                 #endif
7701
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707   ac_cv_c_bigendian=yes
7708 else
7709   ac_cv_c_bigendian=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714     fi
7715     if test $ac_cv_c_bigendian = unknown; then
7716       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719 #include <limits.h>
7720
7721 int
7722 main ()
7723 {
7724 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7725               bogus endian macros
7726              #endif
7727
7728   ;
7729   return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733   # It does; now see whether it defined to _BIG_ENDIAN or not.
7734          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h.  */
7736 #include <limits.h>
7737
7738 int
7739 main ()
7740 {
7741 #ifndef _BIG_ENDIAN
7742                  not big endian
7743                 #endif
7744
7745   ;
7746   return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750   ac_cv_c_bigendian=yes
7751 else
7752   ac_cv_c_bigendian=no
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757     fi
7758     if test $ac_cv_c_bigendian = unknown; then
7759       # Compile a test program.
7760       if test "$cross_compiling" = yes; then :
7761   # Try to guess by grepping values from an object file.
7762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h.  */
7764 short int ascii_mm[] =
7765                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7766                 short int ascii_ii[] =
7767                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7768                 int use_ascii (int i) {
7769                   return ascii_mm[i] + ascii_ii[i];
7770                 }
7771                 short int ebcdic_ii[] =
7772                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7773                 short int ebcdic_mm[] =
7774                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7775                 int use_ebcdic (int i) {
7776                   return ebcdic_mm[i] + ebcdic_ii[i];
7777                 }
7778                 extern int foo;
7779
7780 int
7781 main ()
7782 {
7783 return use_ascii (foo) == use_ebcdic (foo);
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7790               ac_cv_c_bigendian=yes
7791             fi
7792             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7793               if test "$ac_cv_c_bigendian" = unknown; then
7794                 ac_cv_c_bigendian=no
7795               else
7796                 # finding both strings is unlikely to happen, but who knows?
7797                 ac_cv_c_bigendian=unknown
7798               fi
7799             fi
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 else
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 $ac_includes_default
7806 int
7807 main ()
7808 {
7809
7810              /* Are we little or big endian?  From Harbison&Steele.  */
7811              union
7812              {
7813                long int l;
7814                char c[sizeof (long int)];
7815              } u;
7816              u.l = 1;
7817              return u.c[sizeof (long int) - 1] == 1;
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 if ac_fn_c_try_run "$LINENO"; then :
7824   ac_cv_c_bigendian=no
7825 else
7826   ac_cv_c_bigendian=yes
7827 fi
7828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7829   conftest.$ac_objext conftest.beam conftest.$ac_ext
7830 fi
7831
7832     fi
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7835 $as_echo "$ac_cv_c_bigendian" >&6; }
7836  case $ac_cv_c_bigendian in #(
7837    yes)
7838      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7839 ;; #(
7840    no)
7841       ;; #(
7842    universal)
7843
7844 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7845
7846      ;; #(
7847    *)
7848      as_fn_error $? "unknown endianness
7849  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7850  esac
7851
7852
7853 # checks for libraries
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
7855 $as_echo_n "checking for main in -lc... " >&6; }
7856 if ${ac_cv_lib_c_main+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lc  $LIBS"
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h.  */
7863
7864
7865 int
7866 main ()
7867 {
7868 return main ();
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_link "$LINENO"; then :
7874   ac_cv_lib_c_main=yes
7875 else
7876   ac_cv_lib_c_main=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext \
7879     conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
7883 $as_echo "$ac_cv_lib_c_main" >&6; }
7884 if test "x$ac_cv_lib_c_main" = xyes; then :
7885   LIBC=-lc
7886 fi
7887
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
7890 $as_echo_n "checking for sin in -lm... " >&6; }
7891 if ${ac_cv_lib_m_sin+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   ac_check_lib_save_LIBS=$LIBS
7895 LIBS="-lm  $LIBS"
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h.  */
7898
7899 /* Override any GCC internal prototype to avoid an error.
7900    Use char because int might match the return type of a GCC
7901    builtin and then its argument prototype would still apply.  */
7902 #ifdef __cplusplus
7903 extern "C"
7904 #endif
7905 char sin ();
7906 int
7907 main ()
7908 {
7909 return sin ();
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_link "$LINENO"; then :
7915   ac_cv_lib_m_sin=yes
7916 else
7917   ac_cv_lib_m_sin=no
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext \
7920     conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
7924 $as_echo "$ac_cv_lib_m_sin" >&6; }
7925 if test "x$ac_cv_lib_m_sin" = xyes; then :
7926   LIBM=-lm
7927 fi
7928
7929
7930
7931 ac_ext=cpp
7932 ac_cpp='$CXXCPP $CPPFLAGS'
7933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7936
7937 # Make sure we can run config.sub.
7938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7939   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7942 $as_echo_n "checking build system type... " >&6; }
7943 if ${ac_cv_build+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   ac_build_alias=$build_alias
7947 test "x$ac_build_alias" = x &&
7948   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7949 test "x$ac_build_alias" = x &&
7950   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7952   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7953
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7956 $as_echo "$ac_cv_build" >&6; }
7957 case $ac_cv_build in
7958 *-*-*) ;;
7959 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7960 esac
7961 build=$ac_cv_build
7962 ac_save_IFS=$IFS; IFS='-'
7963 set x $ac_cv_build
7964 shift
7965 build_cpu=$1
7966 build_vendor=$2
7967 shift; shift
7968 # Remember, the first character of IFS is used to create $*,
7969 # except with old shells:
7970 build_os=$*
7971 IFS=$ac_save_IFS
7972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7973
7974
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7976 $as_echo_n "checking host system type... " >&6; }
7977 if ${ac_cv_host+:} false; then :
7978   $as_echo_n "(cached) " >&6
7979 else
7980   if test "x$host_alias" = x; then
7981   ac_cv_host=$ac_cv_build
7982 else
7983   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7984     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7985 fi
7986
7987 fi
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7989 $as_echo "$ac_cv_host" >&6; }
7990 case $ac_cv_host in
7991 *-*-*) ;;
7992 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7993 esac
7994 host=$ac_cv_host
7995 ac_save_IFS=$IFS; IFS='-'
7996 set x $ac_cv_host
7997 shift
7998 host_cpu=$1
7999 host_vendor=$2
8000 shift; shift
8001 # Remember, the first character of IFS is used to create $*,
8002 # except with old shells:
8003 host_os=$*
8004 IFS=$ac_save_IFS
8005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8006
8007
8008
8009       if test "X$prefix" = "XNONE"; then
8010     acl_final_prefix="$ac_default_prefix"
8011   else
8012     acl_final_prefix="$prefix"
8013   fi
8014   if test "X$exec_prefix" = "XNONE"; then
8015     acl_final_exec_prefix='${prefix}'
8016   else
8017     acl_final_exec_prefix="$exec_prefix"
8018   fi
8019   acl_save_prefix="$prefix"
8020   prefix="$acl_final_prefix"
8021   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8022   prefix="$acl_save_prefix"
8023
8024
8025 # Check whether --with-gnu-ld was given.
8026 if test "${with_gnu_ld+set}" = set; then :
8027   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8028 else
8029   with_gnu_ld=no
8030 fi
8031
8032 # Prepare PATH_SEPARATOR.
8033 # The user is always right.
8034 if test "${PATH_SEPARATOR+set}" != set; then
8035   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8036   # contains only /bin. Note that ksh looks also at the FPATH variable,
8037   # so we have to set that as well for the test.
8038   PATH_SEPARATOR=:
8039   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8040     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8041            || PATH_SEPARATOR=';'
8042        }
8043 fi
8044 ac_prog=ld
8045 if test "$GCC" = yes; then
8046   # Check if gcc -print-prog-name=ld gives a path.
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8048 $as_echo_n "checking for ld used by GCC... " >&6; }
8049   case $host in
8050   *-*-mingw*)
8051     # gcc leaves a trailing carriage return which upsets mingw
8052     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8053   *)
8054     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8055   esac
8056   case $ac_prog in
8057     # Accept absolute paths.
8058     [\\/]* | [A-Za-z]:[\\/]*)
8059       re_direlt='/[^/][^/]*/\.\./'
8060       # Canonicalize the path of ld
8061       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8062       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8063         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8064       done
8065       test -z "$LD" && LD="$ac_prog"
8066       ;;
8067   "")
8068     # If it fails, then pretend we aren't using GCC.
8069     ac_prog=ld
8070     ;;
8071   *)
8072     # If it is relative, then search for the first ld in PATH.
8073     with_gnu_ld=unknown
8074     ;;
8075   esac
8076 elif test "$with_gnu_ld" = yes; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8078 $as_echo_n "checking for GNU ld... " >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8081 $as_echo_n "checking for non-GNU ld... " >&6; }
8082 fi
8083 if ${acl_cv_path_LD+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   if test -z "$LD"; then
8087   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8088   for ac_dir in $PATH; do
8089     test -z "$ac_dir" && ac_dir=.
8090     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8091       acl_cv_path_LD="$ac_dir/$ac_prog"
8092       # Check to see if the program is GNU ld.  I'd rather use --version,
8093       # but apparently some GNU ld's only accept -v.
8094       # Break only if it was the GNU/non-GNU ld that we prefer.
8095       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8096       *GNU* | *'with BFD'*)
8097         test "$with_gnu_ld" != no && break ;;
8098       *)
8099         test "$with_gnu_ld" != yes && break ;;
8100       esac
8101     fi
8102   done
8103   IFS="$ac_save_ifs"
8104 else
8105   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8106 fi
8107 fi
8108
8109 LD="$acl_cv_path_LD"
8110 if test -n "$LD"; then
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8112 $as_echo "$LD" >&6; }
8113 else
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 fi
8117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8120 if ${acl_cv_prog_gnu_ld+:} false; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8124 case `$LD -v 2>&1 </dev/null` in
8125 *GNU* | *'with BFD'*)
8126   acl_cv_prog_gnu_ld=yes ;;
8127 *)
8128   acl_cv_prog_gnu_ld=no ;;
8129 esac
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8132 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8133 with_gnu_ld=$acl_cv_prog_gnu_ld
8134
8135
8136
8137
8138                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8139 $as_echo_n "checking for shared library run path origin... " >&6; }
8140 if ${acl_cv_rpath+:} false; then :
8141   $as_echo_n "(cached) " >&6
8142 else
8143
8144     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8145     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8146     . ./conftest.sh
8147     rm -f ./conftest.sh
8148     acl_cv_rpath=done
8149
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8152 $as_echo "$acl_cv_rpath" >&6; }
8153   wl="$acl_cv_wl"
8154   acl_libext="$acl_cv_libext"
8155   acl_shlibext="$acl_cv_shlibext"
8156   acl_libname_spec="$acl_cv_libname_spec"
8157   acl_library_names_spec="$acl_cv_library_names_spec"
8158   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8159   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8160   acl_hardcode_direct="$acl_cv_hardcode_direct"
8161   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8162     # Check whether --enable-rpath was given.
8163 if test "${enable_rpath+set}" = set; then :
8164   enableval=$enable_rpath; :
8165 else
8166   enable_rpath=yes
8167 fi
8168
8169
8170 ac_ext=cpp
8171 ac_cpp='$CXXCPP $CPPFLAGS'
8172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8176 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8177 if test -z "$CXXCPP"; then
8178   if ${ac_cv_prog_CXXCPP+:} false; then :
8179   $as_echo_n "(cached) " >&6
8180 else
8181       # Double quotes because CXXCPP needs to be expanded
8182     for CXXCPP in "$CXX -E" "/lib/cpp"
8183     do
8184       ac_preproc_ok=false
8185 for ac_cxx_preproc_warn_flag in '' yes
8186 do
8187   # Use a header file that comes with gcc, so configuring glibc
8188   # with a fresh cross-compiler works.
8189   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190   # <limits.h> exists even on freestanding compilers.
8191   # On the NeXT, cc -E runs the code through the compiler's parser,
8192   # not just through cpp. "Syntax error" is here to catch this case.
8193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195 #ifdef __STDC__
8196 # include <limits.h>
8197 #else
8198 # include <assert.h>
8199 #endif
8200                      Syntax error
8201 _ACEOF
8202 if ac_fn_cxx_try_cpp "$LINENO"; then :
8203
8204 else
8205   # Broken: fails on valid input.
8206 continue
8207 fi
8208 rm -f conftest.err conftest.i conftest.$ac_ext
8209
8210   # OK, works on sane cases.  Now check whether nonexistent headers
8211   # can be detected and how.
8212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h.  */
8214 #include <ac_nonexistent.h>
8215 _ACEOF
8216 if ac_fn_cxx_try_cpp "$LINENO"; then :
8217   # Broken: success on invalid input.
8218 continue
8219 else
8220   # Passes both tests.
8221 ac_preproc_ok=:
8222 break
8223 fi
8224 rm -f conftest.err conftest.i conftest.$ac_ext
8225
8226 done
8227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8228 rm -f conftest.i conftest.err conftest.$ac_ext
8229 if $ac_preproc_ok; then :
8230   break
8231 fi
8232
8233     done
8234     ac_cv_prog_CXXCPP=$CXXCPP
8235
8236 fi
8237   CXXCPP=$ac_cv_prog_CXXCPP
8238 else
8239   ac_cv_prog_CXXCPP=$CXXCPP
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8242 $as_echo "$CXXCPP" >&6; }
8243 ac_preproc_ok=false
8244 for ac_cxx_preproc_warn_flag in '' yes
8245 do
8246   # Use a header file that comes with gcc, so configuring glibc
8247   # with a fresh cross-compiler works.
8248   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249   # <limits.h> exists even on freestanding compilers.
8250   # On the NeXT, cc -E runs the code through the compiler's parser,
8251   # not just through cpp. "Syntax error" is here to catch this case.
8252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h.  */
8254 #ifdef __STDC__
8255 # include <limits.h>
8256 #else
8257 # include <assert.h>
8258 #endif
8259                      Syntax error
8260 _ACEOF
8261 if ac_fn_cxx_try_cpp "$LINENO"; then :
8262
8263 else
8264   # Broken: fails on valid input.
8265 continue
8266 fi
8267 rm -f conftest.err conftest.i conftest.$ac_ext
8268
8269   # OK, works on sane cases.  Now check whether nonexistent headers
8270   # can be detected and how.
8271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h.  */
8273 #include <ac_nonexistent.h>
8274 _ACEOF
8275 if ac_fn_cxx_try_cpp "$LINENO"; then :
8276   # Broken: success on invalid input.
8277 continue
8278 else
8279   # Passes both tests.
8280 ac_preproc_ok=:
8281 break
8282 fi
8283 rm -f conftest.err conftest.i conftest.$ac_ext
8284
8285 done
8286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8287 rm -f conftest.i conftest.err conftest.$ac_ext
8288 if $ac_preproc_ok; then :
8289
8290 else
8291   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8293 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
8294 See \`config.log' for more details" "$LINENO" 5; }
8295 fi
8296
8297 ac_ext=cpp
8298 ac_cpp='$CXXCPP $CPPFLAGS'
8299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8302
8303
8304
8305
8306   acl_libdirstem=lib
8307   acl_libdirstem2=
8308   case "$host_os" in
8309     solaris*)
8310                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8311 $as_echo_n "checking for 64-bit host... " >&6; }
8312 if ${gl_cv_solaris_64bit+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h.  */
8317
8318 #ifdef _LP64
8319 sixtyfour bits
8320 #endif
8321
8322 _ACEOF
8323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8324   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8325   gl_cv_solaris_64bit=yes
8326 else
8327   gl_cv_solaris_64bit=no
8328 fi
8329 rm -f conftest*
8330
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8334 $as_echo "$gl_cv_solaris_64bit" >&6; }
8335       if test $gl_cv_solaris_64bit = yes; then
8336         acl_libdirstem=lib/64
8337         case "$host_cpu" in
8338           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
8339           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8340         esac
8341       fi
8342       ;;
8343     *)
8344       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8345       if test -n "$searchpath"; then
8346         acl_save_IFS="${IFS=    }"; IFS=":"
8347         for searchdir in $searchpath; do
8348           if test -d "$searchdir"; then
8349             case "$searchdir" in
8350               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8351               */../ | */.. )
8352                 # Better ignore directories of this form. They are misleading.
8353                 ;;
8354               *) searchdir=`cd "$searchdir" && pwd`
8355                  case "$searchdir" in
8356                    */lib64 ) acl_libdirstem=lib64 ;;
8357                  esac ;;
8358             esac
8359           fi
8360         done
8361         IFS="$acl_save_IFS"
8362       fi
8363       ;;
8364   esac
8365   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378     use_additional=yes
8379
8380   acl_save_prefix="$prefix"
8381   prefix="$acl_final_prefix"
8382   acl_save_exec_prefix="$exec_prefix"
8383   exec_prefix="$acl_final_exec_prefix"
8384
8385     eval additional_includedir=\"$includedir\"
8386     eval additional_libdir=\"$libdir\"
8387
8388   exec_prefix="$acl_save_exec_prefix"
8389   prefix="$acl_save_prefix"
8390
8391
8392 # Check whether --with-libiconv-prefix was given.
8393 if test "${with_libiconv_prefix+set}" = set; then :
8394   withval=$with_libiconv_prefix;
8395     if test "X$withval" = "Xno"; then
8396       use_additional=no
8397     else
8398       if test "X$withval" = "X"; then
8399
8400   acl_save_prefix="$prefix"
8401   prefix="$acl_final_prefix"
8402   acl_save_exec_prefix="$exec_prefix"
8403   exec_prefix="$acl_final_exec_prefix"
8404
8405           eval additional_includedir=\"$includedir\"
8406           eval additional_libdir=\"$libdir\"
8407
8408   exec_prefix="$acl_save_exec_prefix"
8409   prefix="$acl_save_prefix"
8410
8411       else
8412         additional_includedir="$withval/include"
8413         additional_libdir="$withval/$acl_libdirstem"
8414         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8415            && ! test -d "$withval/$acl_libdirstem"; then
8416           additional_libdir="$withval/$acl_libdirstem2"
8417         fi
8418       fi
8419     fi
8420
8421 fi
8422
8423       LIBICONV=
8424   LTLIBICONV=
8425   INCICONV=
8426   LIBICONV_PREFIX=
8427       HAVE_LIBICONV=
8428   rpathdirs=
8429   ltrpathdirs=
8430   names_already_handled=
8431   names_next_round='iconv '
8432   while test -n "$names_next_round"; do
8433     names_this_round="$names_next_round"
8434     names_next_round=
8435     for name in $names_this_round; do
8436       already_handled=
8437       for n in $names_already_handled; do
8438         if test "$n" = "$name"; then
8439           already_handled=yes
8440           break
8441         fi
8442       done
8443       if test -z "$already_handled"; then
8444         names_already_handled="$names_already_handled $name"
8445                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8446         eval value=\"\$HAVE_LIB$uppername\"
8447         if test -n "$value"; then
8448           if test "$value" = yes; then
8449             eval value=\"\$LIB$uppername\"
8450             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8451             eval value=\"\$LTLIB$uppername\"
8452             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8453           else
8454                                     :
8455           fi
8456         else
8457                               found_dir=
8458           found_la=
8459           found_so=
8460           found_a=
8461           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8462           if test -n "$acl_shlibext"; then
8463             shrext=".$acl_shlibext"             # typically: shrext=.so
8464           else
8465             shrext=
8466           fi
8467           if test $use_additional = yes; then
8468             dir="$additional_libdir"
8469                                     if test -n "$acl_shlibext"; then
8470               if test -f "$dir/$libname$shrext"; then
8471                 found_dir="$dir"
8472                 found_so="$dir/$libname$shrext"
8473               else
8474                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8475                   ver=`(cd "$dir" && \
8476                         for f in "$libname$shrext".*; do echo "$f"; done \
8477                         | sed -e "s,^$libname$shrext\\\\.,," \
8478                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8479                         | sed 1q ) 2>/dev/null`
8480                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8481                     found_dir="$dir"
8482                     found_so="$dir/$libname$shrext.$ver"
8483                   fi
8484                 else
8485                   eval library_names=\"$acl_library_names_spec\"
8486                   for f in $library_names; do
8487                     if test -f "$dir/$f"; then
8488                       found_dir="$dir"
8489                       found_so="$dir/$f"
8490                       break
8491                     fi
8492                   done
8493                 fi
8494               fi
8495             fi
8496                         if test "X$found_dir" = "X"; then
8497               if test -f "$dir/$libname.$acl_libext"; then
8498                 found_dir="$dir"
8499                 found_a="$dir/$libname.$acl_libext"
8500               fi
8501             fi
8502             if test "X$found_dir" != "X"; then
8503               if test -f "$dir/$libname.la"; then
8504                 found_la="$dir/$libname.la"
8505               fi
8506             fi
8507           fi
8508           if test "X$found_dir" = "X"; then
8509             for x in $LDFLAGS $LTLIBICONV; do
8510
8511   acl_save_prefix="$prefix"
8512   prefix="$acl_final_prefix"
8513   acl_save_exec_prefix="$exec_prefix"
8514   exec_prefix="$acl_final_exec_prefix"
8515   eval x=\"$x\"
8516   exec_prefix="$acl_save_exec_prefix"
8517   prefix="$acl_save_prefix"
8518
8519               case "$x" in
8520                 -L*)
8521                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8522                                     if test -n "$acl_shlibext"; then
8523                     if test -f "$dir/$libname$shrext"; then
8524                       found_dir="$dir"
8525                       found_so="$dir/$libname$shrext"
8526                     else
8527                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8528                         ver=`(cd "$dir" && \
8529                               for f in "$libname$shrext".*; do echo "$f"; done \
8530                               | sed -e "s,^$libname$shrext\\\\.,," \
8531                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8532                               | sed 1q ) 2>/dev/null`
8533                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8534                           found_dir="$dir"
8535                           found_so="$dir/$libname$shrext.$ver"
8536                         fi
8537                       else
8538                         eval library_names=\"$acl_library_names_spec\"
8539                         for f in $library_names; do
8540                           if test -f "$dir/$f"; then
8541                             found_dir="$dir"
8542                             found_so="$dir/$f"
8543                             break
8544                           fi
8545                         done
8546                       fi
8547                     fi
8548                   fi
8549                                     if test "X$found_dir" = "X"; then
8550                     if test -f "$dir/$libname.$acl_libext"; then
8551                       found_dir="$dir"
8552                       found_a="$dir/$libname.$acl_libext"
8553                     fi
8554                   fi
8555                   if test "X$found_dir" != "X"; then
8556                     if test -f "$dir/$libname.la"; then
8557                       found_la="$dir/$libname.la"
8558                     fi
8559                   fi
8560                   ;;
8561               esac
8562               if test "X$found_dir" != "X"; then
8563                 break
8564               fi
8565             done
8566           fi
8567           if test "X$found_dir" != "X"; then
8568                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8569             if test "X$found_so" != "X"; then
8570                                                         if test "$enable_rpath" = no \
8571                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8572                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8573                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8574               else
8575                                                                                 haveit=
8576                 for x in $ltrpathdirs; do
8577                   if test "X$x" = "X$found_dir"; then
8578                     haveit=yes
8579                     break
8580                   fi
8581                 done
8582                 if test -z "$haveit"; then
8583                   ltrpathdirs="$ltrpathdirs $found_dir"
8584                 fi
8585                                 if test "$acl_hardcode_direct" = yes; then
8586                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8587                 else
8588                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8589                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8590                                                             haveit=
8591                     for x in $rpathdirs; do
8592                       if test "X$x" = "X$found_dir"; then
8593                         haveit=yes
8594                         break
8595                       fi
8596                     done
8597                     if test -z "$haveit"; then
8598                       rpathdirs="$rpathdirs $found_dir"
8599                     fi
8600                   else
8601                                                                                 haveit=
8602                     for x in $LDFLAGS $LIBICONV; do
8603
8604   acl_save_prefix="$prefix"
8605   prefix="$acl_final_prefix"
8606   acl_save_exec_prefix="$exec_prefix"
8607   exec_prefix="$acl_final_exec_prefix"
8608   eval x=\"$x\"
8609   exec_prefix="$acl_save_exec_prefix"
8610   prefix="$acl_save_prefix"
8611
8612                       if test "X$x" = "X-L$found_dir"; then
8613                         haveit=yes
8614                         break
8615                       fi
8616                     done
8617                     if test -z "$haveit"; then
8618                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8619                     fi
8620                     if test "$acl_hardcode_minus_L" != no; then
8621                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8622                     else
8623                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8624                     fi
8625                   fi
8626                 fi
8627               fi
8628             else
8629               if test "X$found_a" != "X"; then
8630                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8631               else
8632                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8633               fi
8634             fi
8635                         additional_includedir=
8636             case "$found_dir" in
8637               */$acl_libdirstem | */$acl_libdirstem/)
8638                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8639                 if test "$name" = 'iconv'; then
8640                   LIBICONV_PREFIX="$basedir"
8641                 fi
8642                 additional_includedir="$basedir/include"
8643                 ;;
8644               */$acl_libdirstem2 | */$acl_libdirstem2/)
8645                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8646                 if test "$name" = 'iconv'; then
8647                   LIBICONV_PREFIX="$basedir"
8648                 fi
8649                 additional_includedir="$basedir/include"
8650                 ;;
8651             esac
8652             if test "X$additional_includedir" != "X"; then
8653                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8654                 haveit=
8655                 if test "X$additional_includedir" = "X/usr/local/include"; then
8656                   if test -n "$GCC"; then
8657                     case $host_os in
8658                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8659                     esac
8660                   fi
8661                 fi
8662                 if test -z "$haveit"; then
8663                   for x in $CPPFLAGS $INCICONV; do
8664
8665   acl_save_prefix="$prefix"
8666   prefix="$acl_final_prefix"
8667   acl_save_exec_prefix="$exec_prefix"
8668   exec_prefix="$acl_final_exec_prefix"
8669   eval x=\"$x\"
8670   exec_prefix="$acl_save_exec_prefix"
8671   prefix="$acl_save_prefix"
8672
8673                     if test "X$x" = "X-I$additional_includedir"; then
8674                       haveit=yes
8675                       break
8676                     fi
8677                   done
8678                   if test -z "$haveit"; then
8679                     if test -d "$additional_includedir"; then
8680                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8681                     fi
8682                   fi
8683                 fi
8684               fi
8685             fi
8686                         if test -n "$found_la"; then
8687                                                         save_libdir="$libdir"
8688               case "$found_la" in
8689                 */* | *\\*) . "$found_la" ;;
8690                 *) . "./$found_la" ;;
8691               esac
8692               libdir="$save_libdir"
8693                             for dep in $dependency_libs; do
8694                 case "$dep" in
8695                   -L*)
8696                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8697                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8698                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8699                       haveit=
8700                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8701                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8702                         if test -n "$GCC"; then
8703                           case $host_os in
8704                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8705                           esac
8706                         fi
8707                       fi
8708                       if test -z "$haveit"; then
8709                         haveit=
8710                         for x in $LDFLAGS $LIBICONV; do
8711
8712   acl_save_prefix="$prefix"
8713   prefix="$acl_final_prefix"
8714   acl_save_exec_prefix="$exec_prefix"
8715   exec_prefix="$acl_final_exec_prefix"
8716   eval x=\"$x\"
8717   exec_prefix="$acl_save_exec_prefix"
8718   prefix="$acl_save_prefix"
8719
8720                           if test "X$x" = "X-L$additional_libdir"; then
8721                             haveit=yes
8722                             break
8723                           fi
8724                         done
8725                         if test -z "$haveit"; then
8726                           if test -d "$additional_libdir"; then
8727                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8728                           fi
8729                         fi
8730                         haveit=
8731                         for x in $LDFLAGS $LTLIBICONV; do
8732
8733   acl_save_prefix="$prefix"
8734   prefix="$acl_final_prefix"
8735   acl_save_exec_prefix="$exec_prefix"
8736   exec_prefix="$acl_final_exec_prefix"
8737   eval x=\"$x\"
8738   exec_prefix="$acl_save_exec_prefix"
8739   prefix="$acl_save_prefix"
8740
8741                           if test "X$x" = "X-L$additional_libdir"; then
8742                             haveit=yes
8743                             break
8744                           fi
8745                         done
8746                         if test -z "$haveit"; then
8747                           if test -d "$additional_libdir"; then
8748                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8749                           fi
8750                         fi
8751                       fi
8752                     fi
8753                     ;;
8754                   -R*)
8755                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8756                     if test "$enable_rpath" != no; then
8757                                                                   haveit=
8758                       for x in $rpathdirs; do
8759                         if test "X$x" = "X$dir"; then
8760                           haveit=yes
8761                           break
8762                         fi
8763                       done
8764                       if test -z "$haveit"; then
8765                         rpathdirs="$rpathdirs $dir"
8766                       fi
8767                                                                   haveit=
8768                       for x in $ltrpathdirs; do
8769                         if test "X$x" = "X$dir"; then
8770                           haveit=yes
8771                           break
8772                         fi
8773                       done
8774                       if test -z "$haveit"; then
8775                         ltrpathdirs="$ltrpathdirs $dir"
8776                       fi
8777                     fi
8778                     ;;
8779                   -l*)
8780                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8781                     ;;
8782                   *.la)
8783                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8784                     ;;
8785                   *)
8786                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8787                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8788                     ;;
8789                 esac
8790               done
8791             fi
8792           else
8793                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8794             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8795           fi
8796         fi
8797       fi
8798     done
8799   done
8800   if test "X$rpathdirs" != "X"; then
8801     if test -n "$acl_hardcode_libdir_separator"; then
8802                         alldirs=
8803       for found_dir in $rpathdirs; do
8804         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8805       done
8806             acl_save_libdir="$libdir"
8807       libdir="$alldirs"
8808       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8809       libdir="$acl_save_libdir"
8810       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8811     else
8812             for found_dir in $rpathdirs; do
8813         acl_save_libdir="$libdir"
8814         libdir="$found_dir"
8815         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8816         libdir="$acl_save_libdir"
8817         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8818       done
8819     fi
8820   fi
8821   if test "X$ltrpathdirs" != "X"; then
8822             for found_dir in $ltrpathdirs; do
8823       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8824     done
8825   fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838           am_save_CPPFLAGS="$CPPFLAGS"
8839
8840   for element in $INCICONV; do
8841     haveit=
8842     for x in $CPPFLAGS; do
8843
8844   acl_save_prefix="$prefix"
8845   prefix="$acl_final_prefix"
8846   acl_save_exec_prefix="$exec_prefix"
8847   exec_prefix="$acl_final_exec_prefix"
8848   eval x=\"$x\"
8849   exec_prefix="$acl_save_exec_prefix"
8850   prefix="$acl_save_prefix"
8851
8852       if test "X$x" = "X$element"; then
8853         haveit=yes
8854         break
8855       fi
8856     done
8857     if test -z "$haveit"; then
8858       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8859     fi
8860   done
8861
8862
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8864 $as_echo_n "checking for iconv... " >&6; }
8865 if ${am_cv_func_iconv+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868
8869     am_cv_func_iconv="no, consider installing GNU libiconv"
8870     am_cv_lib_iconv=no
8871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h.  */
8873
8874 #include <stdlib.h>
8875 #include <iconv.h>
8876
8877 int
8878 main ()
8879 {
8880 iconv_t cd = iconv_open("","");
8881            iconv(cd,NULL,NULL,NULL,NULL);
8882            iconv_close(cd);
8883   ;
8884   return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_cxx_try_link "$LINENO"; then :
8888   am_cv_func_iconv=yes
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891     conftest$ac_exeext conftest.$ac_ext
8892     if test "$am_cv_func_iconv" != yes; then
8893       am_save_LIBS="$LIBS"
8894       LIBS="$LIBS $LIBICONV"
8895       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h.  */
8897
8898 #include <stdlib.h>
8899 #include <iconv.h>
8900
8901 int
8902 main ()
8903 {
8904 iconv_t cd = iconv_open("","");
8905              iconv(cd,NULL,NULL,NULL,NULL);
8906              iconv_close(cd);
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_cxx_try_link "$LINENO"; then :
8912   am_cv_lib_iconv=yes
8913         am_cv_func_iconv=yes
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext \
8916     conftest$ac_exeext conftest.$ac_ext
8917       LIBS="$am_save_LIBS"
8918     fi
8919
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8922 $as_echo "$am_cv_func_iconv" >&6; }
8923   if test "$am_cv_func_iconv" = yes; then
8924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8925 $as_echo_n "checking for working iconv... " >&6; }
8926 if ${am_cv_func_iconv_works+:} false; then :
8927   $as_echo_n "(cached) " >&6
8928 else
8929
8930                   am_save_LIBS="$LIBS"
8931       if test $am_cv_lib_iconv = yes; then
8932         LIBS="$LIBS $LIBICONV"
8933       fi
8934       if test "$cross_compiling" = yes; then :
8935
8936          case "$host_os" in
8937            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8938            *)            am_cv_func_iconv_works="guessing yes" ;;
8939          esac
8940
8941 else
8942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h.  */
8944
8945 #include <iconv.h>
8946 #include <string.h>
8947 int main ()
8948 {
8949   int result = 0;
8950   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8951      returns.  */
8952   {
8953     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8954     if (cd_utf8_to_88591 != (iconv_t)(-1))
8955       {
8956         static const char input[] = "\342\202\254"; /* EURO SIGN */
8957         char buf[10];
8958         const char *inptr = input;
8959         size_t inbytesleft = strlen (input);
8960         char *outptr = buf;
8961         size_t outbytesleft = sizeof (buf);
8962         size_t res = iconv (cd_utf8_to_88591,
8963                             (char **) &inptr, &inbytesleft,
8964                             &outptr, &outbytesleft);
8965         if (res == 0)
8966           result |= 1;
8967         iconv_close (cd_utf8_to_88591);
8968       }
8969   }
8970   /* Test against Solaris 10 bug: Failures are not distinguishable from
8971      successful returns.  */
8972   {
8973     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8974     if (cd_ascii_to_88591 != (iconv_t)(-1))
8975       {
8976         static const char input[] = "\263";
8977         char buf[10];
8978         const char *inptr = input;
8979         size_t inbytesleft = strlen (input);
8980         char *outptr = buf;
8981         size_t outbytesleft = sizeof (buf);
8982         size_t res = iconv (cd_ascii_to_88591,
8983                             (char **) &inptr, &inbytesleft,
8984                             &outptr, &outbytesleft);
8985         if (res == 0)
8986           result |= 2;
8987         iconv_close (cd_ascii_to_88591);
8988       }
8989   }
8990   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
8991   {
8992     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8993     if (cd_88591_to_utf8 != (iconv_t)(-1))
8994       {
8995         static const char input[] = "\304";
8996         static char buf[2] = { (char)0xDE, (char)0xAD };
8997         const char *inptr = input;
8998         size_t inbytesleft = 1;
8999         char *outptr = buf;
9000         size_t outbytesleft = 1;
9001         size_t res = iconv (cd_88591_to_utf8,
9002                             (char **) &inptr, &inbytesleft,
9003                             &outptr, &outbytesleft);
9004         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9005           result |= 4;
9006         iconv_close (cd_88591_to_utf8);
9007       }
9008   }
9009 #if 0 /* This bug could be worked around by the caller.  */
9010   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9011   {
9012     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9013     if (cd_88591_to_utf8 != (iconv_t)(-1))
9014       {
9015         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9016         char buf[50];
9017         const char *inptr = input;
9018         size_t inbytesleft = strlen (input);
9019         char *outptr = buf;
9020         size_t outbytesleft = sizeof (buf);
9021         size_t res = iconv (cd_88591_to_utf8,
9022                             (char **) &inptr, &inbytesleft,
9023                             &outptr, &outbytesleft);
9024         if ((int)res > 0)
9025           result |= 8;
9026         iconv_close (cd_88591_to_utf8);
9027       }
9028   }
9029 #endif
9030   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9031      provided.  */
9032   if (/* Try standardized names.  */
9033       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9034       /* Try IRIX, OSF/1 names.  */
9035       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9036       /* Try AIX names.  */
9037       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9038       /* Try HP-UX names.  */
9039       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9040     result |= 16;
9041   return result;
9042 }
9043 _ACEOF
9044 if ac_fn_cxx_try_run "$LINENO"; then :
9045   am_cv_func_iconv_works=yes
9046 else
9047   am_cv_func_iconv_works=no
9048 fi
9049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9050   conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 fi
9052
9053       LIBS="$am_save_LIBS"
9054
9055 fi
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9057 $as_echo "$am_cv_func_iconv_works" >&6; }
9058     case "$am_cv_func_iconv_works" in
9059       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9060       *)   am_func_iconv=yes ;;
9061     esac
9062   else
9063     am_func_iconv=no am_cv_lib_iconv=no
9064   fi
9065   if test "$am_func_iconv" = yes; then
9066
9067 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9068
9069   fi
9070   if test "$am_cv_lib_iconv" = yes; then
9071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9072 $as_echo_n "checking how to link with libiconv... " >&6; }
9073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9074 $as_echo "$LIBICONV" >&6; }
9075   else
9076             CPPFLAGS="$am_save_CPPFLAGS"
9077     LIBICONV=
9078     LTLIBICONV=
9079   fi
9080
9081
9082
9083   if test "$am_cv_func_iconv" = yes; then
9084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9085 $as_echo_n "checking for iconv declaration... " >&6; }
9086     if ${am_cv_proto_iconv+:} false; then :
9087   $as_echo_n "(cached) " >&6
9088 else
9089
9090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092
9093 #include <stdlib.h>
9094 #include <iconv.h>
9095 extern
9096 #ifdef __cplusplus
9097 "C"
9098 #endif
9099 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9100 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9101 #else
9102 size_t iconv();
9103 #endif
9104
9105 int
9106 main ()
9107 {
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_cxx_try_compile "$LINENO"; then :
9114   am_cv_proto_iconv_arg1=""
9115 else
9116   am_cv_proto_iconv_arg1="const"
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119       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);"
9120 fi
9121
9122     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9123     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9124          $am_cv_proto_iconv" >&5
9125 $as_echo "
9126          $am_cv_proto_iconv" >&6; }
9127
9128 cat >>confdefs.h <<_ACEOF
9129 #define ICONV_CONST $am_cv_proto_iconv_arg1
9130 _ACEOF
9131
9132
9133   fi
9134
9135 ac_ext=c
9136 ac_cpp='$CPP $CPPFLAGS'
9137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9140
9141
9142 # we need LIBEXT
9143 LIBEXT=$acl_libext
9144
9145
9146 # checks for functions
9147
9148
9149
9150   for ac_header in $ac_header_list
9151 do :
9152   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9154 "
9155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9156   cat >>confdefs.h <<_ACEOF
9157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 _ACEOF
9159
9160 fi
9161
9162 done
9163
9164
9165
9166
9167
9168
9169
9170
9171 for ac_func in getpagesize
9172 do :
9173   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9174 if test "x$ac_cv_func_getpagesize" = xyes; then :
9175   cat >>confdefs.h <<_ACEOF
9176 #define HAVE_GETPAGESIZE 1
9177 _ACEOF
9178
9179 fi
9180 done
9181
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9183 $as_echo_n "checking for working mmap... " >&6; }
9184 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9185   $as_echo_n "(cached) " >&6
9186 else
9187   if test "$cross_compiling" = yes; then :
9188   ac_cv_func_mmap_fixed_mapped=no
9189 else
9190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h.  */
9192 $ac_includes_default
9193 /* malloc might have been renamed as rpl_malloc. */
9194 #undef malloc
9195
9196 /* Thanks to Mike Haertel and Jim Avera for this test.
9197    Here is a matrix of mmap possibilities:
9198         mmap private not fixed
9199         mmap private fixed at somewhere currently unmapped
9200         mmap private fixed at somewhere already mapped
9201         mmap shared not fixed
9202         mmap shared fixed at somewhere currently unmapped
9203         mmap shared fixed at somewhere already mapped
9204    For private mappings, we should verify that changes cannot be read()
9205    back from the file, nor mmap's back from the file at a different
9206    address.  (There have been systems where private was not correctly
9207    implemented like the infamous i386 svr4.0, and systems where the
9208    VM page cache was not coherent with the file system buffer cache
9209    like early versions of FreeBSD and possibly contemporary NetBSD.)
9210    For shared mappings, we should conversely verify that changes get
9211    propagated back to all the places they're supposed to be.
9212
9213    Grep wants private fixed already mapped.
9214    The main things grep needs to know about mmap are:
9215    * does it exist and is it safe to write into the mmap'd area
9216    * how to use it (BSD variants)  */
9217
9218 #include <fcntl.h>
9219 #include <sys/mman.h>
9220
9221 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9222 char *malloc ();
9223 #endif
9224
9225 /* This mess was copied from the GNU getpagesize.h.  */
9226 #ifndef HAVE_GETPAGESIZE
9227 # ifdef _SC_PAGESIZE
9228 #  define getpagesize() sysconf(_SC_PAGESIZE)
9229 # else /* no _SC_PAGESIZE */
9230 #  ifdef HAVE_SYS_PARAM_H
9231 #   include <sys/param.h>
9232 #   ifdef EXEC_PAGESIZE
9233 #    define getpagesize() EXEC_PAGESIZE
9234 #   else /* no EXEC_PAGESIZE */
9235 #    ifdef NBPG
9236 #     define getpagesize() NBPG * CLSIZE
9237 #     ifndef CLSIZE
9238 #      define CLSIZE 1
9239 #     endif /* no CLSIZE */
9240 #    else /* no NBPG */
9241 #     ifdef NBPC
9242 #      define getpagesize() NBPC
9243 #     else /* no NBPC */
9244 #      ifdef PAGESIZE
9245 #       define getpagesize() PAGESIZE
9246 #      endif /* PAGESIZE */
9247 #     endif /* no NBPC */
9248 #    endif /* no NBPG */
9249 #   endif /* no EXEC_PAGESIZE */
9250 #  else /* no HAVE_SYS_PARAM_H */
9251 #   define getpagesize() 8192   /* punt totally */
9252 #  endif /* no HAVE_SYS_PARAM_H */
9253 # endif /* no _SC_PAGESIZE */
9254
9255 #endif /* no HAVE_GETPAGESIZE */
9256
9257 int
9258 main ()
9259 {
9260   char *data, *data2, *data3;
9261   const char *cdata2;
9262   int i, pagesize;
9263   int fd, fd2;
9264
9265   pagesize = getpagesize ();
9266
9267   /* First, make a file with some known garbage in it. */
9268   data = (char *) malloc (pagesize);
9269   if (!data)
9270     return 1;
9271   for (i = 0; i < pagesize; ++i)
9272     *(data + i) = rand ();
9273   umask (0);
9274   fd = creat ("conftest.mmap", 0600);
9275   if (fd < 0)
9276     return 2;
9277   if (write (fd, data, pagesize) != pagesize)
9278     return 3;
9279   close (fd);
9280
9281   /* Next, check that the tail of a page is zero-filled.  File must have
9282      non-zero length, otherwise we risk SIGBUS for entire page.  */
9283   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9284   if (fd2 < 0)
9285     return 4;
9286   cdata2 = "";
9287   if (write (fd2, cdata2, 1) != 1)
9288     return 5;
9289   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9290   if (data2 == MAP_FAILED)
9291     return 6;
9292   for (i = 0; i < pagesize; ++i)
9293     if (*(data2 + i))
9294       return 7;
9295   close (fd2);
9296   if (munmap (data2, pagesize))
9297     return 8;
9298
9299   /* Next, try to mmap the file at a fixed address which already has
9300      something else allocated at it.  If we can, also make sure that
9301      we see the same garbage.  */
9302   fd = open ("conftest.mmap", O_RDWR);
9303   if (fd < 0)
9304     return 9;
9305   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9306                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9307     return 10;
9308   for (i = 0; i < pagesize; ++i)
9309     if (*(data + i) != *(data2 + i))
9310       return 11;
9311
9312   /* Finally, make sure that changes to the mapped area do not
9313      percolate back to the file as seen by read().  (This is a bug on
9314      some variants of i386 svr4.0.)  */
9315   for (i = 0; i < pagesize; ++i)
9316     *(data2 + i) = *(data2 + i) + 1;
9317   data3 = (char *) malloc (pagesize);
9318   if (!data3)
9319     return 12;
9320   if (read (fd, data3, pagesize) != pagesize)
9321     return 13;
9322   for (i = 0; i < pagesize; ++i)
9323     if (*(data + i) != *(data3 + i))
9324       return 14;
9325   close (fd);
9326   return 0;
9327 }
9328 _ACEOF
9329 if ac_fn_c_try_run "$LINENO"; then :
9330   ac_cv_func_mmap_fixed_mapped=yes
9331 else
9332   ac_cv_func_mmap_fixed_mapped=no
9333 fi
9334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9335   conftest.$ac_objext conftest.beam conftest.$ac_ext
9336 fi
9337
9338 fi
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9340 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9342
9343 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9344
9345 fi
9346 rm -f conftest.mmap conftest.txt
9347
9348 saved_libs="$LIBS"
9349 LIBS="$LIBS $LIBC $LIBM"
9350 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
9351 if test "x$ac_cv_func_fmod" = xyes; then :
9352   $as_echo "#define HAVE_FMOD 1" >>confdefs.h
9353
9354 else
9355   case " $LIBOBJS " in
9356   *" fmod.$ac_objext "* ) ;;
9357   *) LIBOBJS="$LIBOBJS fmod.$ac_objext"
9358  ;;
9359 esac
9360
9361 fi
9362
9363 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9364 if test "x$ac_cv_func_getcwd" = xyes; then :
9365   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9366
9367 else
9368   case " $LIBOBJS " in
9369   *" getcwd.$ac_objext "* ) ;;
9370   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
9371  ;;
9372 esac
9373
9374 fi
9375
9376 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
9377 if test "x$ac_cv_func_putenv" = xyes; then :
9378   $as_echo "#define HAVE_PUTENV 1" >>confdefs.h
9379
9380 else
9381   case " $LIBOBJS " in
9382   *" putenv.$ac_objext "* ) ;;
9383   *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
9384  ;;
9385 esac
9386
9387 fi
9388
9389 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
9390 if test "x$ac_cv_func_snprintf" = xyes; then :
9391   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
9392
9393 else
9394   case " $LIBOBJS " in
9395   *" snprintf.$ac_objext "* ) ;;
9396   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9397  ;;
9398 esac
9399
9400 fi
9401
9402 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9403 if test "x$ac_cv_func_strcasecmp" = xyes; then :
9404   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9405
9406 else
9407   case " $LIBOBJS " in
9408   *" strcasecmp.$ac_objext "* ) ;;
9409   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
9410  ;;
9411 esac
9412
9413 fi
9414
9415 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9416 if test "x$ac_cv_func_strerror" = xyes; then :
9417   $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
9418
9419 else
9420   case " $LIBOBJS " in
9421   *" strerror.$ac_objext "* ) ;;
9422   *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
9423  ;;
9424 esac
9425
9426 fi
9427
9428 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
9429 if test "x$ac_cv_func_strncasecmp" = xyes; then :
9430   $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
9431
9432 else
9433   case " $LIBOBJS " in
9434   *" strncasecmp.$ac_objext "* ) ;;
9435   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
9436  ;;
9437 esac
9438
9439 fi
9440
9441 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
9442 if test "x$ac_cv_func_strtol" = xyes; then :
9443   $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
9444
9445 else
9446   case " $LIBOBJS " in
9447   *" strtol.$ac_objext "* ) ;;
9448   *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
9449  ;;
9450 esac
9451
9452 fi
9453
9454
9455 # vsnprintf is in the same source file as snprintf
9456 for ac_func in vsnprintf
9457 do :
9458   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
9459 if test "x$ac_cv_func_vsnprintf" = xyes; then :
9460   cat >>confdefs.h <<_ACEOF
9461 #define HAVE_VSNPRINTF 1
9462 _ACEOF
9463
9464 else
9465   case " $LIBOBJS " in
9466   *" snprintf.$ac_objext "* ) ;;
9467   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9468  ;;
9469 esac
9470
9471 fi
9472 done
9473
9474 LIBS="$saved_libs"
9475 for ac_func in gettimeofday isatty kill rename setlocale strsep
9476 do :
9477   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9480   cat >>confdefs.h <<_ACEOF
9481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9482 _ACEOF
9483
9484 fi
9485 done
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
9488 $as_echo_n "checking for mkstemp... " >&6; }
9489    ac_ext=cpp
9490 ac_cpp='$CXXCPP $CPPFLAGS'
9491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9494
9495
9496    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h.  */
9498
9499
9500
9501 #include <stdlib.h>
9502 #include <unistd.h>
9503 int (*f) (char *);
9504
9505
9506 int
9507 main ()
9508 {
9509
9510
9511 f = mkstemp;
9512
9513
9514   ;
9515   return 0;
9516 }
9517
9518 _ACEOF
9519 if ac_fn_cxx_try_link "$LINENO"; then :
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9521 $as_echo "yes" >&6; }
9522
9523 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
9524
9525 else
9526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528       case " $LIBOBJS " in
9529   *" mkstemp.$ac_objext "* ) ;;
9530   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
9531  ;;
9532 esac
9533
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536     conftest$ac_exeext conftest.$ac_ext
9537    ac_ext=c
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9544 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
9545   ac_have_decl=1
9546 else
9547   ac_have_decl=0
9548 fi
9549
9550 cat >>confdefs.h <<_ACEOF
9551 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9552 _ACEOF
9553 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9554 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9555   ac_have_decl=1
9556 else
9557   ac_have_decl=0
9558 fi
9559
9560 cat >>confdefs.h <<_ACEOF
9561 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9562 _ACEOF
9563
9564
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9566 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9567 if ${am_cv_langinfo_codeset+:} false; then :
9568   $as_echo_n "(cached) " >&6
9569 else
9570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h.  */
9572 #include <langinfo.h>
9573 int
9574 main ()
9575 {
9576 char* cs = nl_langinfo(CODESET); return !cs;
9577   ;
9578   return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"; then :
9582   am_cv_langinfo_codeset=yes
9583 else
9584   am_cv_langinfo_codeset=no
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext \
9587     conftest$ac_exeext conftest.$ac_ext
9588
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9591 $as_echo "$am_cv_langinfo_codeset" >&6; }
9592   if test $am_cv_langinfo_codeset = yes; then
9593
9594 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9595
9596   fi
9597
9598
9599 # checks for compiler characteristics
9600 ac_ext=cpp
9601 ac_cpp='$CXXCPP $CPPFLAGS'
9602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9605
9606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI array delete syntax is supported" >&5
9607 $as_echo_n "checking whether ANSI array delete syntax is supported... " >&6; }
9608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h.  */
9610
9611
9612 int
9613 main ()
9614 {
9615
9616
9617 char *p = new char[5];
9618 delete [] p;
9619
9620
9621   ;
9622   return 0;
9623 }
9624
9625 _ACEOF
9626 if ac_fn_cxx_try_compile "$LINENO"; then :
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 else
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9632
9633 $as_echo "#define ARRAY_DELETE_NEEDS_SIZE 1" >>confdefs.h
9634
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637    ac_ext=c
9638 ac_cpp='$CPP $CPPFLAGS'
9639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9642
9643 ac_ext=cpp
9644 ac_cpp='$CXXCPP $CPPFLAGS'
9645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9648
9649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking traditional preprocessor" >&5
9650 $as_echo_n "checking traditional preprocessor... " >&6; }
9651    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h.  */
9653
9654
9655
9656 #define name2(a, b) a/**/b
9657
9658
9659 int
9660 main ()
9661 {
9662
9663
9664 int name2(foo, bar);
9665
9666
9667   ;
9668   return 0;
9669 }
9670
9671 _ACEOF
9672 if ac_fn_cxx_try_compile "$LINENO"; then :
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9674 $as_echo "yes" >&6; }
9675
9676 $as_echo "#define TRADITIONAL_CPP 1" >>confdefs.h
9677
9678 else
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683    ac_ext=c
9684 ac_cpp='$CPP $CPPFLAGS'
9685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688
9689
9690 # checks for operating system services
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking w_coredump" >&5
9692 $as_echo_n "checking w_coredump... " >&6; }
9693    if test "$cross_compiling" = yes; then :
9694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9696 else
9697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h.  */
9699
9700
9701
9702 #include <sys/types.h>
9703 #include <sys/wait.h>
9704
9705
9706 int
9707 main ()
9708 {
9709
9710
9711 main()
9712 {
9713 #ifdef WCOREFLAG
9714   exit(1);
9715 #else
9716   int i = 0;
9717   ((union wait *)&i)->w_coredump = 1;
9718   exit(i != 0200);
9719 #endif
9720 }
9721
9722
9723   ;
9724   return 0;
9725 }
9726
9727 _ACEOF
9728 if ac_fn_c_try_run "$LINENO"; then :
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9731
9732 $as_echo "#define WCOREFLAG 0200" >>confdefs.h
9733
9734 else
9735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9737 fi
9738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9739   conftest.$ac_objext conftest.beam conftest.$ac_ext
9740 fi
9741
9742
9743 # other random stuff
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default value for grops -b option" >&5
9745 $as_echo_n "checking default value for grops -b option... " >&6; }
9746    test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
9747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROKEN_SPOOLER_FLAGS" >&5
9748 $as_echo "$BROKEN_SPOOLER_FLAGS" >&6; }
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default paper size" >&5
9751 $as_echo_n "checking default paper size... " >&6; }
9752    groff_prefix=$prefix
9753    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
9754    if test -z "$PAGE"; then
9755      descfile=
9756      if test -r $groff_prefix/share/groff/font/devps/DESC; then
9757        descfile=$groff_prefix/share/groff/font/devps/DESC
9758      elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
9759        descfile=$groff_prefix/lib/groff/font/devps/DESC
9760      else
9761        for f in $groff_prefix/share/groff/*/font/devps/DESC; do
9762          if test -r $f; then
9763            descfile=$f
9764            break
9765          fi
9766        done
9767      fi
9768
9769      if test -n "$descfile"; then
9770        if grep '^paperlength[    ]\+841890' $descfile >/dev/null 2>&1; then
9771          PAGE=A4
9772        elif grep '^papersize[    ]\+[aA]4' $descfile >/dev/null 2>&1; then
9773          PAGE=A4
9774        fi
9775      fi
9776    fi
9777
9778    if test -z "$PAGE"; then
9779      dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9780          /etc/resolv.conf 2>/dev/null`
9781      if test -z "$dom"; then
9782        dom=`(domainname) 2>/dev/null | tr -d '+'`
9783        if test -z "$dom" \
9784           || test "$dom" = '(none)'; then
9785          dom=`(hostname) 2>/dev/null | grep '\.'`
9786        fi
9787      fi
9788      # If the top-level domain is two letters and it's not `us' or `ca'
9789      # then they probably use A4 paper.
9790      case "$dom" in
9791      *.[Uu][Ss]|*.[Cc][Aa])
9792        ;;
9793      *.[A-Za-z][A-Za-z])
9794        PAGE=A4 ;;
9795      esac
9796    fi
9797
9798    test -n "$PAGE" || PAGE=letter
9799    if test "x$PAGE" = "xA4"; then
9800
9801 $as_echo "#define PAGEA4 1" >>confdefs.h
9802
9803    fi
9804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAGE" >&5
9805 $as_echo "$PAGE" >&6; }
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existing troff installation" >&5
9808 $as_echo_n "checking for existing troff installation... " >&6; }
9809    if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
9810      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9811 $as_echo "yes" >&6; }
9812      g=g
9813    else
9814      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816      g=
9817    fi
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix of system macro packages" >&5
9820 $as_echo_n "checking for prefix of system macro packages... " >&6; }
9821    sys_tmac_prefix=
9822    sys_tmac_file_prefix=
9823    for d in /usr/share/lib/tmac /usr/lib/tmac; do
9824      for t in "" tmac.; do
9825        for m in an s m; do
9826          f=$d/$t$m
9827          if test -z "$sys_tmac_prefix" \
9828             && test -f $f \
9829             && grep '^\.if' $f >/dev/null 2>&1; then
9830            sys_tmac_prefix=$d/$t
9831            sys_tmac_file_prefix=$t
9832          fi
9833        done
9834      done
9835    done
9836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sys_tmac_prefix" >&5
9837 $as_echo "$sys_tmac_prefix" >&6; }
9838
9839
9840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which system macro packages should be made available" >&5
9841 $as_echo_n "checking which system macro packages should be made available... " >&6; }
9842    tmac_wrap=
9843    if test "x$sys_tmac_file_prefix" = "xtmac."; then
9844      for f in $sys_tmac_prefix*; do
9845        suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9846        case "$suff" in
9847        e)
9848          ;;
9849        *)
9850          grep "Copyright.*Free Software Foundation" $f >/dev/null \
9851               || tmac_wrap="$tmac_wrap $suff" ;;
9852        esac
9853      done
9854    elif test -n "$sys_tmac_prefix"; then
9855      files=`echo $sys_tmac_prefix*`
9856      grep "\\.so" $files >conftest.sol
9857      for f in $files; do
9858        case "$f" in
9859        ${sys_tmac_prefix}e)
9860          ;;
9861        *.me)
9862          ;;
9863        */ms.*)
9864          ;;
9865        *)
9866          b=`basename $f`
9867          if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
9868             || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
9869            :
9870          else
9871            suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9872            case "$suff" in
9873            tmac.*)
9874              ;;
9875            *)
9876              tmac_wrap="$tmac_wrap $suff" ;;
9877            esac
9878          fi
9879        esac
9880      done
9881      rm -f conftest.sol
9882    fi
9883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmac_wrap" >&5
9884 $as_echo "$tmac_wrap" >&6; }
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking separator character to use in groff search paths" >&5
9887 $as_echo_n "checking separator character to use in groff search paths... " >&6; }
9888    cp ${srcdir}/src/include/nonposix.h conftest.h
9889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h.  */
9891
9892
9893
9894 #include <ctype.h>
9895 #include "conftest.h"
9896
9897
9898 int
9899 main ()
9900 {
9901
9902
9903 #if PATH_SEP_CHAR == ';'
9904 make an error "Path separator is ';'"
9905 #endif
9906
9907
9908   ;
9909   return 0;
9910 }
9911
9912 _ACEOF
9913 if ac_fn_c_try_compile "$LINENO"; then :
9914   GROFF_PATH_SEPARATOR=":"
9915 else
9916   GROFF_PATH_SEPARATOR=";"
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF_PATH_SEPARATOR" >&5
9920 $as_echo "$GROFF_PATH_SEPARATOR" >&6; }
9921
9922
9923 # Check whether --with-alt-gs was given.
9924 if test "${with_alt_gs+set}" = set; then :
9925   withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
9926 else
9927   ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
9928 fi
9929
9930
9931
9932
9933 # Check whether --with-gs was given.
9934 if test "${with_gs+set}" = set; then :
9935   withval=$with_gs; GHOSTSCRIPT=$withval
9936 else
9937   if test -n "$ac_tool_prefix"; then
9938   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9939   do
9940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_prog_GHOSTSCRIPT+:} false; then :
9945   $as_echo_n "(cached) " >&6
9946 else
9947   if test -n "$GHOSTSCRIPT"; then
9948   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953   IFS=$as_save_IFS
9954   test -z "$as_dir" && as_dir=.
9955     for ac_exec_ext in '' $ac_executable_extensions; do
9956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957     ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
9958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959     break 2
9960   fi
9961 done
9962   done
9963 IFS=$as_save_IFS
9964
9965 fi
9966 fi
9967 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9968 if test -n "$GHOSTSCRIPT"; then
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GHOSTSCRIPT" >&5
9970 $as_echo "$GHOSTSCRIPT" >&6; }
9971 else
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 fi
9975
9976
9977     test -n "$GHOSTSCRIPT" && break
9978   done
9979 fi
9980 if test -z "$GHOSTSCRIPT"; then
9981   ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
9982   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
9983 do
9984   # Extract the first word of "$ac_prog", so it can be a program name with args.
9985 set dummy $ac_prog; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if ${ac_cv_prog_ac_ct_GHOSTSCRIPT+:} false; then :
9989   $as_echo_n "(cached) " >&6
9990 else
9991   if test -n "$ac_ct_GHOSTSCRIPT"; then
9992   ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997   IFS=$as_save_IFS
9998   test -z "$as_dir" && as_dir=.
9999     for ac_exec_ext in '' $ac_executable_extensions; do
10000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001     ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
10002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003     break 2
10004   fi
10005 done
10006   done
10007 IFS=$as_save_IFS
10008
10009 fi
10010 fi
10011 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
10012 if test -n "$ac_ct_GHOSTSCRIPT"; then
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GHOSTSCRIPT" >&5
10014 $as_echo "$ac_ct_GHOSTSCRIPT" >&6; }
10015 else
10016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019
10020
10021   test -n "$ac_ct_GHOSTSCRIPT" && break
10022 done
10023
10024   if test "x$ac_ct_GHOSTSCRIPT" = x; then
10025     GHOSTSCRIPT="missing"
10026   else
10027     case $cross_compiling:$ac_tool_warned in
10028 yes:)
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10031 ac_tool_warned=yes ;;
10032 esac
10033     GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
10034   fi
10035 fi
10036
10037 fi
10038
10039    test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
10040
10041    make_html=html
10042    make_install_html=install_html
10043
10044    missing=
10045    # Extract the first word of "pnmcut", so it can be a program name with args.
10046 set dummy pnmcut; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_prog_pnmcut+:} false; then :
10050   $as_echo_n "(cached) " >&6
10051 else
10052   if test -n "$pnmcut"; then
10053   ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
10054 else
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10057 do
10058   IFS=$as_save_IFS
10059   test -z "$as_dir" && as_dir=.
10060     for ac_exec_ext in '' $ac_executable_extensions; do
10061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062     ac_cv_prog_pnmcut="found"
10063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064     break 2
10065   fi
10066 done
10067   done
10068 IFS=$as_save_IFS
10069
10070   test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
10071 fi
10072 fi
10073 pnmcut=$ac_cv_prog_pnmcut
10074 if test -n "$pnmcut"; then
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcut" >&5
10076 $as_echo "$pnmcut" >&6; }
10077 else
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10080 fi
10081
10082
10083       if test $pnmcut = missing; then
10084         missing="$missing \`pnmcut'"
10085       fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
10086 set dummy pnmcrop; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_prog_pnmcrop+:} false; then :
10090   $as_echo_n "(cached) " >&6
10091 else
10092   if test -n "$pnmcrop"; then
10093   ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
10094 else
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10097 do
10098   IFS=$as_save_IFS
10099   test -z "$as_dir" && as_dir=.
10100     for ac_exec_ext in '' $ac_executable_extensions; do
10101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102     ac_cv_prog_pnmcrop="found"
10103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104     break 2
10105   fi
10106 done
10107   done
10108 IFS=$as_save_IFS
10109
10110   test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
10111 fi
10112 fi
10113 pnmcrop=$ac_cv_prog_pnmcrop
10114 if test -n "$pnmcrop"; then
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcrop" >&5
10116 $as_echo "$pnmcrop" >&6; }
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123       if test $pnmcrop = missing; then
10124         missing="$missing \`pnmcrop'"
10125       fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
10126 set dummy pnmtopng; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_prog_pnmtopng+:} false; then :
10130   $as_echo_n "(cached) " >&6
10131 else
10132   if test -n "$pnmtopng"; then
10133   ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
10134 else
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10137 do
10138   IFS=$as_save_IFS
10139   test -z "$as_dir" && as_dir=.
10140     for ac_exec_ext in '' $ac_executable_extensions; do
10141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142     ac_cv_prog_pnmtopng="found"
10143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144     break 2
10145   fi
10146 done
10147   done
10148 IFS=$as_save_IFS
10149
10150   test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
10151 fi
10152 fi
10153 pnmtopng=$ac_cv_prog_pnmtopng
10154 if test -n "$pnmtopng"; then
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtopng" >&5
10156 $as_echo "$pnmtopng" >&6; }
10157 else
10158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10160 fi
10161
10162
10163       if test $pnmtopng = missing; then
10164         missing="$missing \`pnmtopng'"
10165       fi;# Extract the first word of "psselect", so it can be a program name with args.
10166 set dummy psselect; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_prog_psselect+:} false; then :
10170   $as_echo_n "(cached) " >&6
10171 else
10172   if test -n "$psselect"; then
10173   ac_cv_prog_psselect="$psselect" # Let the user override the test.
10174 else
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10177 do
10178   IFS=$as_save_IFS
10179   test -z "$as_dir" && as_dir=.
10180     for ac_exec_ext in '' $ac_executable_extensions; do
10181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182     ac_cv_prog_psselect="found"
10183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184     break 2
10185   fi
10186 done
10187   done
10188 IFS=$as_save_IFS
10189
10190   test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
10191 fi
10192 fi
10193 psselect=$ac_cv_prog_psselect
10194 if test -n "$psselect"; then
10195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $psselect" >&5
10196 $as_echo "$psselect" >&6; }
10197 else
10198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10200 fi
10201
10202
10203       if test $psselect = missing; then
10204         missing="$missing \`psselect'"
10205       fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10206 set dummy pnmtops; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_prog_pnmtops+:} false; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   if test -n "$pnmtops"; then
10213   ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10217 do
10218   IFS=$as_save_IFS
10219   test -z "$as_dir" && as_dir=.
10220     for ac_exec_ext in '' $ac_executable_extensions; do
10221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222     ac_cv_prog_pnmtops="found"
10223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224     break 2
10225   fi
10226 done
10227   done
10228 IFS=$as_save_IFS
10229
10230   test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
10231 fi
10232 fi
10233 pnmtops=$ac_cv_prog_pnmtops
10234 if test -n "$pnmtops"; then
10235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtops" >&5
10236 $as_echo "$pnmtops" >&6; }
10237 else
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241
10242
10243       if test $pnmtops = missing; then
10244         missing="$missing \`pnmtops'"
10245       fi;
10246
10247    test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
10248
10249    if test -n "$missing"; then
10250      plural=`set $missing; test $# -gt 1 && echo s`
10251      missing=`set $missing
10252        missing=""
10253        while test $# -gt 0
10254          do
10255            case $# in
10256              1) missing="$missing$1" ;;
10257              2) missing="$missing$1 and " ;;
10258              *) missing="$missing$1, " ;;
10259            esac
10260            shift
10261          done
10262          echo $missing`
10263
10264      make_html=
10265      make_install_html=
10266
10267      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
10268
10269   The program$plural
10270      $missing
10271   cannot be found in the PATH.
10272   Consequently, groff's HTML backend (grohtml) will not work properly;
10273   therefore, it will neither be possible to prepare, nor to install,
10274   documentation in HTML format.
10275      " >&5
10276 $as_echo "$as_me: WARNING: missing program$plural:
10277
10278   The program$plural
10279      $missing
10280   cannot be found in the PATH.
10281   Consequently, groff's HTML backend (grohtml) will not work properly;
10282   therefore, it will neither be possible to prepare, nor to install,
10283   documentation in HTML format.
10284      " >&2;}
10285    fi
10286
10287
10288
10289
10290 # Check whether --with-alt-awk was given.
10291 if test "${with_alt_awk+set}" = set; then :
10292   withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
10293 else
10294   ALT_AWK_PROGS="gawk mawk nawk awk"
10295 fi
10296
10297
10298
10299
10300 # Check whether --with-awk was given.
10301 if test "${with_awk+set}" = set; then :
10302   withval=$with_awk; AWK=$withval
10303 else
10304   if test -n "$ac_tool_prefix"; then
10305   for ac_prog in $ALT_AWK_PROGS
10306   do
10307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_prog_AWK+:} false; then :
10312   $as_echo_n "(cached) " >&6
10313 else
10314   if test -n "$AWK"; then
10315   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10316 else
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10319 do
10320   IFS=$as_save_IFS
10321   test -z "$as_dir" && as_dir=.
10322     for ac_exec_ext in '' $ac_executable_extensions; do
10323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324     ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
10325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326     break 2
10327   fi
10328 done
10329   done
10330 IFS=$as_save_IFS
10331
10332 fi
10333 fi
10334 AWK=$ac_cv_prog_AWK
10335 if test -n "$AWK"; then
10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10337 $as_echo "$AWK" >&6; }
10338 else
10339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341 fi
10342
10343
10344     test -n "$AWK" && break
10345   done
10346 fi
10347 if test -z "$AWK"; then
10348   ac_ct_AWK=$AWK
10349   for ac_prog in $ALT_AWK_PROGS
10350 do
10351   # Extract the first word of "$ac_prog", so it can be a program name with args.
10352 set dummy $ac_prog; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   if test -n "$ac_ct_AWK"; then
10359   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
10360 else
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10363 do
10364   IFS=$as_save_IFS
10365   test -z "$as_dir" && as_dir=.
10366     for ac_exec_ext in '' $ac_executable_extensions; do
10367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368     ac_cv_prog_ac_ct_AWK="$ac_prog"
10369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370     break 2
10371   fi
10372 done
10373   done
10374 IFS=$as_save_IFS
10375
10376 fi
10377 fi
10378 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
10379 if test -n "$ac_ct_AWK"; then
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
10381 $as_echo "$ac_ct_AWK" >&6; }
10382 else
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 fi
10386
10387
10388   test -n "$ac_ct_AWK" && break
10389 done
10390
10391   if test "x$ac_ct_AWK" = x; then
10392     AWK="missing"
10393   else
10394     case $cross_compiling:$ac_tool_warned in
10395 yes:)
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10398 ac_tool_warned=yes ;;
10399 esac
10400     AWK=$ac_ct_AWK
10401   fi
10402 fi
10403
10404 fi
10405
10406    test "$AWK" = "no" && AWK=missing
10407
10408
10409
10410    make_pdfdoc=pdfdoc
10411    make_install_pdfdoc=install_pdfdoc
10412
10413    missing=""
10414    test "$AWK" = missing && missing="\`awk'"
10415    test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
10416    if test -n "$missing"; then
10417      plural=`set $missing; test $# -eq 2 && echo s`
10418      test x$plural = xs \
10419        && missing=`set $missing; echo "$1 and $2"` \
10420        || missing=`echo $missing`
10421
10422      make_pdfdoc=
10423      make_install_pdfdoc=
10424
10425      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
10426
10427   The program$plural $missing cannot be found in the PATH.
10428   Consequently, groff's PDF formatter (pdfroff) will not work properly;
10429   therefore, it will neither be possible to prepare, nor to install,
10430   documentation in PDF format.
10431      " >&5
10432 $as_echo "$as_me: WARNING: missing program$plural:
10433
10434   The program$plural $missing cannot be found in the PATH.
10435   Consequently, groff's PDF formatter (pdfroff) will not work properly;
10436   therefore, it will neither be possible to prepare, nor to install,
10437   documentation in PDF format.
10438      " >&2;}
10439    fi
10440
10441
10442
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pnmtops can handle the -nosetpage option" >&5
10444 $as_echo_n "checking whether pnmtops can handle the -nosetpage option... " >&6; }
10445    if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
10446      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10447 $as_echo "yes" >&6; }
10448      pnmtops_nosetpage="pnmtops -nosetpage"
10449    else
10450      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451 $as_echo "no" >&6; }
10452      pnmtops_nosetpage="pnmtops"
10453    fi
10454
10455
10456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10457 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10458 if ${ac_cv_gnu_library_2_1+:} false; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h.  */
10463
10464 #include <features.h>
10465 #ifdef __GNU_LIBRARY__
10466  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10467   Lucky GNU user
10468  #endif
10469 #endif
10470 #ifdef __UCLIBC__
10471  Lucky user
10472 #endif
10473
10474 _ACEOF
10475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10476   $EGREP "Lucky" >/dev/null 2>&1; then :
10477   ac_cv_gnu_library_2_1=yes
10478 else
10479   ac_cv_gnu_library_2_1=no
10480 fi
10481 rm -f conftest*
10482
10483
10484
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10487 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10488
10489     GLIBC21="$ac_cv_gnu_library_2_1"
10490
10491
10492
10493
10494
10495   for ac_func in $ac_func_list
10496 do :
10497   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10500   cat >>confdefs.h <<_ACEOF
10501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10502 _ACEOF
10503
10504 fi
10505 done
10506
10507
10508
10509
10510
10511
10512
10513
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10515 $as_echo_n "checking for working fcntl.h... " >&6; }
10516 if ${gl_cv_header_working_fcntl_h+:} false; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   if test "$cross_compiling" = yes; then :
10520   gl_cv_header_working_fcntl_h=cross-compiling
10521 else
10522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h.  */
10524 #include <sys/types.h>
10525            #include <sys/stat.h>
10526            #if HAVE_UNISTD_H
10527            # include <unistd.h>
10528            #else /* on Windows with MSVC */
10529            # include <io.h>
10530            # include <stdlib.h>
10531            # defined sleep(n) _sleep ((n) * 1000)
10532            #endif
10533            #include <fcntl.h>
10534            #ifndef O_NOATIME
10535             #define O_NOATIME 0
10536            #endif
10537            #ifndef O_NOFOLLOW
10538             #define O_NOFOLLOW 0
10539            #endif
10540            static int const constants[] =
10541             {
10542               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10543               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10544             };
10545
10546 int
10547 main ()
10548 {
10549
10550             int result = !constants;
10551             #if HAVE_SYMLINK
10552             {
10553               static char const sym[] = "conftest.sym";
10554               if (symlink (".", sym) != 0)
10555                 result |= 2;
10556               else
10557                 {
10558                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10559                   if (fd >= 0)
10560                     {
10561                       close (fd);
10562                       result |= 4;
10563                     }
10564                 }
10565               unlink (sym);
10566             }
10567             #endif
10568             {
10569               static char const file[] = "confdefs.h";
10570               int fd = open (file, O_RDONLY | O_NOATIME);
10571               if (fd < 0)
10572                 result |= 8;
10573               else
10574                 {
10575                   struct stat st0;
10576                   if (fstat (fd, &st0) != 0)
10577                     result |= 16;
10578                   else
10579                     {
10580                       char c;
10581                       sleep (1);
10582                       if (read (fd, &c, 1) != 1)
10583                         result |= 24;
10584                       else
10585                         {
10586                           if (close (fd) != 0)
10587                             result |= 32;
10588                           else
10589                             {
10590                               struct stat st1;
10591                               if (stat (file, &st1) != 0)
10592                                 result |= 40;
10593                               else
10594                                 if (st0.st_atime != st1.st_atime)
10595                                   result |= 64;
10596                             }
10597                         }
10598                     }
10599                 }
10600             }
10601             return result;
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_run "$LINENO"; then :
10607   gl_cv_header_working_fcntl_h=yes
10608 else
10609   case $? in #(
10610         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10611         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10612         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10613          *) gl_cv_header_working_fcntl_h='no';;
10614         esac
10615 fi
10616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10617   conftest.$ac_objext conftest.beam conftest.$ac_ext
10618 fi
10619
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10622 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10623
10624   case $gl_cv_header_working_fcntl_h in #(
10625   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10626   *) ac_val=1;;
10627   esac
10628
10629 cat >>confdefs.h <<_ACEOF
10630 #define HAVE_WORKING_O_NOATIME $ac_val
10631 _ACEOF
10632
10633
10634   case $gl_cv_header_working_fcntl_h in #(
10635   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10636   *) ac_val=1;;
10637   esac
10638
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10641 _ACEOF
10642
10643
10644 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10645 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10646   ac_have_decl=1
10647 else
10648   ac_have_decl=0
10649 fi
10650
10651 cat >>confdefs.h <<_ACEOF
10652 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10653 _ACEOF
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664 ac_config_files="$ac_config_files stamp-h"
10665
10666 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10667
10668 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
10669
10670 ac_config_files="$ac_config_files test-groff"
10671
10672 cat >confcache <<\_ACEOF
10673 # This file is a shell script that caches the results of configure
10674 # tests run on this system so they can be shared between configure
10675 # scripts and configure runs, see configure's option --config-cache.
10676 # It is not useful on other systems.  If it contains results you don't
10677 # want to keep, you may remove or edit it.
10678 #
10679 # config.status only pays attention to the cache file if you give it
10680 # the --recheck option to rerun configure.
10681 #
10682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10684 # following values.
10685
10686 _ACEOF
10687
10688 # The following way of writing the cache mishandles newlines in values,
10689 # but we know of no workaround that is simple, portable, and efficient.
10690 # So, we kill variables containing newlines.
10691 # Ultrix sh set writes to stderr and can't be redirected directly,
10692 # and sets the high bit in the cache file unless we assign to the vars.
10693 (
10694   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10695     eval ac_val=\$$ac_var
10696     case $ac_val in #(
10697     *${as_nl}*)
10698       case $ac_var in #(
10699       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10701       esac
10702       case $ac_var in #(
10703       _ | IFS | as_nl) ;; #(
10704       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10705       *) { eval $ac_var=; unset $ac_var;} ;;
10706       esac ;;
10707     esac
10708   done
10709
10710   (set) 2>&1 |
10711     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10712     *${as_nl}ac_space=\ *)
10713       # `set' does not quote correctly, so add quotes: double-quote
10714       # substitution turns \\\\ into \\, and sed turns \\ into \.
10715       sed -n \
10716         "s/'/'\\\\''/g;
10717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10718       ;; #(
10719     *)
10720       # `set' quotes correctly as required by POSIX, so do not add quotes.
10721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10722       ;;
10723     esac |
10724     sort
10725 ) |
10726   sed '
10727      /^ac_cv_env_/b end
10728      t clear
10729      :clear
10730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10731      t end
10732      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10733      :end' >>confcache
10734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10735   if test -w "$cache_file"; then
10736     if test "x$cache_file" != "x/dev/null"; then
10737       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10738 $as_echo "$as_me: updating cache $cache_file" >&6;}
10739       if test ! -f "$cache_file" || test -h "$cache_file"; then
10740         cat confcache >"$cache_file"
10741       else
10742         case $cache_file in #(
10743         */* | ?:*)
10744           mv -f confcache "$cache_file"$$ &&
10745           mv -f "$cache_file"$$ "$cache_file" ;; #(
10746         *)
10747           mv -f confcache "$cache_file" ;;
10748         esac
10749       fi
10750     fi
10751   else
10752     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10753 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10754   fi
10755 fi
10756 rm -f confcache
10757
10758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10759 # Let make expand exec_prefix.
10760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10761
10762 DEFS=-DHAVE_CONFIG_H
10763
10764 ac_libobjs=
10765 ac_ltlibobjs=
10766 U=
10767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10768   # 1. Remove the extension, and $U if already installed.
10769   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10770   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10771   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10772   #    will be set to the directory where LIBOBJS objects are built.
10773   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10774   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10775 done
10776 LIBOBJS=$ac_libobjs
10777
10778 LTLIBOBJS=$ac_ltlibobjs
10779
10780
10781
10782
10783 : "${CONFIG_STATUS=./config.status}"
10784 ac_write_fail=0
10785 ac_clean_files_save=$ac_clean_files
10786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10789 as_write_fail=0
10790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10791 #! $SHELL
10792 # Generated by $as_me.
10793 # Run this file to recreate the current configuration.
10794 # Compiler output produced by configure, useful for debugging
10795 # configure, is in config.log if it exists.
10796
10797 debug=false
10798 ac_cs_recheck=false
10799 ac_cs_silent=false
10800
10801 SHELL=\${CONFIG_SHELL-$SHELL}
10802 export SHELL
10803 _ASEOF
10804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10805 ## -------------------- ##
10806 ## M4sh Initialization. ##
10807 ## -------------------- ##
10808
10809 # Be more Bourne compatible
10810 DUALCASE=1; export DUALCASE # for MKS sh
10811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10812   emulate sh
10813   NULLCMD=:
10814   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10815   # is contrary to our usage.  Disable this feature.
10816   alias -g '${1+"$@"}'='"$@"'
10817   setopt NO_GLOB_SUBST
10818 else
10819   case `(set -o) 2>/dev/null` in #(
10820   *posix*) :
10821     set -o posix ;; #(
10822   *) :
10823      ;;
10824 esac
10825 fi
10826
10827
10828 as_nl='
10829 '
10830 export as_nl
10831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10835 # Prefer a ksh shell builtin over an external printf program on Solaris,
10836 # but without wasting forks for bash or zsh.
10837 if test -z "$BASH_VERSION$ZSH_VERSION" \
10838     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10839   as_echo='print -r --'
10840   as_echo_n='print -rn --'
10841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10842   as_echo='printf %s\n'
10843   as_echo_n='printf %s'
10844 else
10845   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10846     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10847     as_echo_n='/usr/ucb/echo -n'
10848   else
10849     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10850     as_echo_n_body='eval
10851       arg=$1;
10852       case $arg in #(
10853       *"$as_nl"*)
10854         expr "X$arg" : "X\\(.*\\)$as_nl";
10855         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10856       esac;
10857       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10858     '
10859     export as_echo_n_body
10860     as_echo_n='sh -c $as_echo_n_body as_echo'
10861   fi
10862   export as_echo_body
10863   as_echo='sh -c $as_echo_body as_echo'
10864 fi
10865
10866 # The user is always right.
10867 if test "${PATH_SEPARATOR+set}" != set; then
10868   PATH_SEPARATOR=:
10869   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10870     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10871       PATH_SEPARATOR=';'
10872   }
10873 fi
10874
10875
10876 # IFS
10877 # We need space, tab and new line, in precisely that order.  Quoting is
10878 # there to prevent editors from complaining about space-tab.
10879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10880 # splitting by setting IFS to empty value.)
10881 IFS=" ""        $as_nl"
10882
10883 # Find who we are.  Look in the path if we contain no directory separator.
10884 as_myself=
10885 case $0 in #((
10886   *[\\/]* ) as_myself=$0 ;;
10887   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10889 do
10890   IFS=$as_save_IFS
10891   test -z "$as_dir" && as_dir=.
10892     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10893   done
10894 IFS=$as_save_IFS
10895
10896      ;;
10897 esac
10898 # We did not find ourselves, most probably we were run as `sh COMMAND'
10899 # in which case we are not to be found in the path.
10900 if test "x$as_myself" = x; then
10901   as_myself=$0
10902 fi
10903 if test ! -f "$as_myself"; then
10904   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10905   exit 1
10906 fi
10907
10908 # Unset variables that we do not need and which cause bugs (e.g. in
10909 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10910 # suppresses any "Segmentation fault" message there.  '((' could
10911 # trigger a bug in pdksh 5.2.14.
10912 for as_var in BASH_ENV ENV MAIL MAILPATH
10913 do eval test x\${$as_var+set} = xset \
10914   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10915 done
10916 PS1='$ '
10917 PS2='> '
10918 PS4='+ '
10919
10920 # NLS nuisances.
10921 LC_ALL=C
10922 export LC_ALL
10923 LANGUAGE=C
10924 export LANGUAGE
10925
10926 # CDPATH.
10927 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10928
10929
10930 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10931 # ----------------------------------------
10932 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10933 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10934 # script with STATUS, using 1 if that was 0.
10935 as_fn_error ()
10936 {
10937   as_status=$1; test $as_status -eq 0 && as_status=1
10938   if test "$4"; then
10939     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10940     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10941   fi
10942   $as_echo "$as_me: error: $2" >&2
10943   as_fn_exit $as_status
10944 } # as_fn_error
10945
10946
10947 # as_fn_set_status STATUS
10948 # -----------------------
10949 # Set $? to STATUS, without forking.
10950 as_fn_set_status ()
10951 {
10952   return $1
10953 } # as_fn_set_status
10954
10955 # as_fn_exit STATUS
10956 # -----------------
10957 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10958 as_fn_exit ()
10959 {
10960   set +e
10961   as_fn_set_status $1
10962   exit $1
10963 } # as_fn_exit
10964
10965 # as_fn_unset VAR
10966 # ---------------
10967 # Portably unset VAR.
10968 as_fn_unset ()
10969 {
10970   { eval $1=; unset $1;}
10971 }
10972 as_unset=as_fn_unset
10973 # as_fn_append VAR VALUE
10974 # ----------------------
10975 # Append the text in VALUE to the end of the definition contained in VAR. Take
10976 # advantage of any shell optimizations that allow amortized linear growth over
10977 # repeated appends, instead of the typical quadratic growth present in naive
10978 # implementations.
10979 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10980   eval 'as_fn_append ()
10981   {
10982     eval $1+=\$2
10983   }'
10984 else
10985   as_fn_append ()
10986   {
10987     eval $1=\$$1\$2
10988   }
10989 fi # as_fn_append
10990
10991 # as_fn_arith ARG...
10992 # ------------------
10993 # Perform arithmetic evaluation on the ARGs, and store the result in the
10994 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10995 # must be portable across $(()) and expr.
10996 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10997   eval 'as_fn_arith ()
10998   {
10999     as_val=$(( $* ))
11000   }'
11001 else
11002   as_fn_arith ()
11003   {
11004     as_val=`expr "$@" || test $? -eq 1`
11005   }
11006 fi # as_fn_arith
11007
11008
11009 if expr a : '\(a\)' >/dev/null 2>&1 &&
11010    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11011   as_expr=expr
11012 else
11013   as_expr=false
11014 fi
11015
11016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11017   as_basename=basename
11018 else
11019   as_basename=false
11020 fi
11021
11022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11023   as_dirname=dirname
11024 else
11025   as_dirname=false
11026 fi
11027
11028 as_me=`$as_basename -- "$0" ||
11029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11030          X"$0" : 'X\(//\)$' \| \
11031          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11032 $as_echo X/"$0" |
11033     sed '/^.*\/\([^/][^/]*\)\/*$/{
11034             s//\1/
11035             q
11036           }
11037           /^X\/\(\/\/\)$/{
11038             s//\1/
11039             q
11040           }
11041           /^X\/\(\/\).*/{
11042             s//\1/
11043             q
11044           }
11045           s/.*/./; q'`
11046
11047 # Avoid depending upon Character Ranges.
11048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11051 as_cr_digits='0123456789'
11052 as_cr_alnum=$as_cr_Letters$as_cr_digits
11053
11054 ECHO_C= ECHO_N= ECHO_T=
11055 case `echo -n x` in #(((((
11056 -n*)
11057   case `echo 'xy\c'` in
11058   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11059   xy)  ECHO_C='\c';;
11060   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11061        ECHO_T=' ';;
11062   esac;;
11063 *)
11064   ECHO_N='-n';;
11065 esac
11066
11067 rm -f conf$$ conf$$.exe conf$$.file
11068 if test -d conf$$.dir; then
11069   rm -f conf$$.dir/conf$$.file
11070 else
11071   rm -f conf$$.dir
11072   mkdir conf$$.dir 2>/dev/null
11073 fi
11074 if (echo >conf$$.file) 2>/dev/null; then
11075   if ln -s conf$$.file conf$$ 2>/dev/null; then
11076     as_ln_s='ln -s'
11077     # ... but there are two gotchas:
11078     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11079     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11080     # In both cases, we have to default to `cp -pR'.
11081     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11082       as_ln_s='cp -pR'
11083   elif ln conf$$.file conf$$ 2>/dev/null; then
11084     as_ln_s=ln
11085   else
11086     as_ln_s='cp -pR'
11087   fi
11088 else
11089   as_ln_s='cp -pR'
11090 fi
11091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11092 rmdir conf$$.dir 2>/dev/null
11093
11094
11095 # as_fn_mkdir_p
11096 # -------------
11097 # Create "$as_dir" as a directory, including parents if necessary.
11098 as_fn_mkdir_p ()
11099 {
11100
11101   case $as_dir in #(
11102   -*) as_dir=./$as_dir;;
11103   esac
11104   test -d "$as_dir" || eval $as_mkdir_p || {
11105     as_dirs=
11106     while :; do
11107       case $as_dir in #(
11108       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11109       *) as_qdir=$as_dir;;
11110       esac
11111       as_dirs="'$as_qdir' $as_dirs"
11112       as_dir=`$as_dirname -- "$as_dir" ||
11113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11114          X"$as_dir" : 'X\(//\)[^/]' \| \
11115          X"$as_dir" : 'X\(//\)$' \| \
11116          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11117 $as_echo X"$as_dir" |
11118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11119             s//\1/
11120             q
11121           }
11122           /^X\(\/\/\)[^/].*/{
11123             s//\1/
11124             q
11125           }
11126           /^X\(\/\/\)$/{
11127             s//\1/
11128             q
11129           }
11130           /^X\(\/\).*/{
11131             s//\1/
11132             q
11133           }
11134           s/.*/./; q'`
11135       test -d "$as_dir" && break
11136     done
11137     test -z "$as_dirs" || eval "mkdir $as_dirs"
11138   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11139
11140
11141 } # as_fn_mkdir_p
11142 if mkdir -p . 2>/dev/null; then
11143   as_mkdir_p='mkdir -p "$as_dir"'
11144 else
11145   test -d ./-p && rmdir ./-p
11146   as_mkdir_p=false
11147 fi
11148
11149
11150 # as_fn_executable_p FILE
11151 # -----------------------
11152 # Test if FILE is an executable regular file.
11153 as_fn_executable_p ()
11154 {
11155   test -f "$1" && test -x "$1"
11156 } # as_fn_executable_p
11157 as_test_x='test -x'
11158 as_executable_p=as_fn_executable_p
11159
11160 # Sed expression to map a string onto a valid CPP name.
11161 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11162
11163 # Sed expression to map a string onto a valid variable name.
11164 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11165
11166
11167 exec 6>&1
11168 ## ----------------------------------- ##
11169 ## Main body of $CONFIG_STATUS script. ##
11170 ## ----------------------------------- ##
11171 _ASEOF
11172 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11173
11174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11175 # Save the log message, to keep $0 and so on meaningful, and to
11176 # report actual input values of CONFIG_FILES etc. instead of their
11177 # values after options handling.
11178 ac_log="
11179 This file was extended by groff $as_me 1.22.2, which was
11180 generated by GNU Autoconf 2.69.  Invocation command line was
11181
11182   CONFIG_FILES    = $CONFIG_FILES
11183   CONFIG_HEADERS  = $CONFIG_HEADERS
11184   CONFIG_LINKS    = $CONFIG_LINKS
11185   CONFIG_COMMANDS = $CONFIG_COMMANDS
11186   $ $0 $@
11187
11188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11189 "
11190
11191 _ACEOF
11192
11193 case $ac_config_files in *"
11194 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11195 esac
11196
11197 case $ac_config_headers in *"
11198 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11199 esac
11200
11201
11202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11203 # Files that config.status was made for.
11204 config_files="$ac_config_files"
11205 config_headers="$ac_config_headers"
11206
11207 _ACEOF
11208
11209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11210 ac_cs_usage="\
11211 \`$as_me' instantiates files and other configuration actions
11212 from templates according to the current configuration.  Unless the files
11213 and actions are specified as TAGs, all are instantiated by default.
11214
11215 Usage: $0 [OPTION]... [TAG]...
11216
11217   -h, --help       print this help, then exit
11218   -V, --version    print version number and configuration settings, then exit
11219       --config     print configuration, then exit
11220   -q, --quiet, --silent
11221                    do not print progress messages
11222   -d, --debug      don't remove temporary files
11223       --recheck    update $as_me by reconfiguring in the same conditions
11224       --file=FILE[:TEMPLATE]
11225                    instantiate the configuration file FILE
11226       --header=FILE[:TEMPLATE]
11227                    instantiate the configuration header FILE
11228
11229 Configuration files:
11230 $config_files
11231
11232 Configuration headers:
11233 $config_headers
11234
11235 Report bugs to <bug-groff@gnu.org>."
11236
11237 _ACEOF
11238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11239 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11240 ac_cs_version="\\
11241 groff config.status 1.22.2
11242 configured by $0, generated by GNU Autoconf 2.69,
11243   with options \\"\$ac_cs_config\\"
11244
11245 Copyright (C) 2012 Free Software Foundation, Inc.
11246 This config.status script is free software; the Free Software Foundation
11247 gives unlimited permission to copy, distribute and modify it."
11248
11249 ac_pwd='$ac_pwd'
11250 srcdir='$srcdir'
11251 INSTALL='$INSTALL'
11252 test -n "\$AWK" || AWK=awk
11253 _ACEOF
11254
11255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11256 # The default lists apply if the user does not specify any file.
11257 ac_need_defaults=:
11258 while test $# != 0
11259 do
11260   case $1 in
11261   --*=?*)
11262     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11263     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11264     ac_shift=:
11265     ;;
11266   --*=)
11267     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11268     ac_optarg=
11269     ac_shift=:
11270     ;;
11271   *)
11272     ac_option=$1
11273     ac_optarg=$2
11274     ac_shift=shift
11275     ;;
11276   esac
11277
11278   case $ac_option in
11279   # Handling of the options.
11280   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11281     ac_cs_recheck=: ;;
11282   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11283     $as_echo "$ac_cs_version"; exit ;;
11284   --config | --confi | --conf | --con | --co | --c )
11285     $as_echo "$ac_cs_config"; exit ;;
11286   --debug | --debu | --deb | --de | --d | -d )
11287     debug=: ;;
11288   --file | --fil | --fi | --f )
11289     $ac_shift
11290     case $ac_optarg in
11291     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11292     '') as_fn_error $? "missing file argument" ;;
11293     esac
11294     as_fn_append CONFIG_FILES " '$ac_optarg'"
11295     ac_need_defaults=false;;
11296   --header | --heade | --head | --hea )
11297     $ac_shift
11298     case $ac_optarg in
11299     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11300     esac
11301     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11302     ac_need_defaults=false;;
11303   --he | --h)
11304     # Conflict between --help and --header
11305     as_fn_error $? "ambiguous option: \`$1'
11306 Try \`$0 --help' for more information.";;
11307   --help | --hel | -h )
11308     $as_echo "$ac_cs_usage"; exit ;;
11309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11310   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11311     ac_cs_silent=: ;;
11312
11313   # This is an error.
11314   -*) as_fn_error $? "unrecognized option: \`$1'
11315 Try \`$0 --help' for more information." ;;
11316
11317   *) as_fn_append ac_config_targets " $1"
11318      ac_need_defaults=false ;;
11319
11320   esac
11321   shift
11322 done
11323
11324 ac_configure_extra_args=
11325
11326 if $ac_cs_silent; then
11327   exec 6>/dev/null
11328   ac_configure_extra_args="$ac_configure_extra_args --silent"
11329 fi
11330
11331 _ACEOF
11332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11333 if \$ac_cs_recheck; then
11334   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11335   shift
11336   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11337   CONFIG_SHELL='$SHELL'
11338   export CONFIG_SHELL
11339   exec "\$@"
11340 fi
11341
11342 _ACEOF
11343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11344 exec 5>>config.log
11345 {
11346   echo
11347   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11348 ## Running $as_me. ##
11349 _ASBOX
11350   $as_echo "$ac_log"
11351 } >&5
11352
11353 _ACEOF
11354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11355 _ACEOF
11356
11357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11358
11359 # Handling of arguments.
11360 for ac_config_target in $ac_config_targets
11361 do
11362   case $ac_config_target in
11363     "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
11364     "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
11365     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11366     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11367     "src/utils/xtotroff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
11368     "contrib/gdiffmk/tests/runtests") CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
11369     "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
11370
11371   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11372   esac
11373 done
11374
11375
11376 # If the user did not use the arguments to specify the items to instantiate,
11377 # then the envvar interface is used.  Set only those that are not.
11378 # We use the long form for the default assignment because of an extremely
11379 # bizarre bug on SunOS 4.1.3.
11380 if $ac_need_defaults; then
11381   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11382   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11383 fi
11384
11385 # Have a temporary directory for convenience.  Make it in the build tree
11386 # simply because there is no reason against having it here, and in addition,
11387 # creating and moving files from /tmp can sometimes cause problems.
11388 # Hook for its removal unless debugging.
11389 # Note that there is a small window in which the directory will not be cleaned:
11390 # after its creation but before its name has been assigned to `$tmp'.
11391 $debug ||
11392 {
11393   tmp= ac_tmp=
11394   trap 'exit_status=$?
11395   : "${ac_tmp:=$tmp}"
11396   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11397 ' 0
11398   trap 'as_fn_exit 1' 1 2 13 15
11399 }
11400 # Create a (secure) tmp directory for tmp files.
11401
11402 {
11403   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11404   test -d "$tmp"
11405 }  ||
11406 {
11407   tmp=./conf$$-$RANDOM
11408   (umask 077 && mkdir "$tmp")
11409 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11410 ac_tmp=$tmp
11411
11412 # Set up the scripts for CONFIG_FILES section.
11413 # No need to generate them if there are no CONFIG_FILES.
11414 # This happens for instance with `./config.status config.h'.
11415 if test -n "$CONFIG_FILES"; then
11416
11417
11418 ac_cr=`echo X | tr X '\015'`
11419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11420 # But we know of no other shell where ac_cr would be empty at this
11421 # point, so we can use a bashism as a fallback.
11422 if test "x$ac_cr" = x; then
11423   eval ac_cr=\$\'\\r\'
11424 fi
11425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11427   ac_cs_awk_cr='\\r'
11428 else
11429   ac_cs_awk_cr=$ac_cr
11430 fi
11431
11432 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11433 _ACEOF
11434
11435
11436 {
11437   echo "cat >conf$$subs.awk <<_ACEOF" &&
11438   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11439   echo "_ACEOF"
11440 } >conf$$subs.sh ||
11441   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11443 ac_delim='%!_!# '
11444 for ac_last_try in false false false false false :; do
11445   . ./conf$$subs.sh ||
11446     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11447
11448   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11449   if test $ac_delim_n = $ac_delim_num; then
11450     break
11451   elif $ac_last_try; then
11452     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11453   else
11454     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11455   fi
11456 done
11457 rm -f conf$$subs.sh
11458
11459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11460 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11461 _ACEOF
11462 sed -n '
11463 h
11464 s/^/S["/; s/!.*/"]=/
11465 p
11466 g
11467 s/^[^!]*!//
11468 :repl
11469 t repl
11470 s/'"$ac_delim"'$//
11471 t delim
11472 :nl
11473 h
11474 s/\(.\{148\}\)..*/\1/
11475 t more1
11476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11477 p
11478 n
11479 b repl
11480 :more1
11481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11482 p
11483 g
11484 s/.\{148\}//
11485 t nl
11486 :delim
11487 h
11488 s/\(.\{148\}\)..*/\1/
11489 t more2
11490 s/["\\]/\\&/g; s/^/"/; s/$/"/
11491 p
11492 b
11493 :more2
11494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11495 p
11496 g
11497 s/.\{148\}//
11498 t delim
11499 ' <conf$$subs.awk | sed '
11500 /^[^""]/{
11501   N
11502   s/\n//
11503 }
11504 ' >>$CONFIG_STATUS || ac_write_fail=1
11505 rm -f conf$$subs.awk
11506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11507 _ACAWK
11508 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11509   for (key in S) S_is_set[key] = 1
11510   FS = "\a"
11511
11512 }
11513 {
11514   line = $ 0
11515   nfields = split(line, field, "@")
11516   substed = 0
11517   len = length(field[1])
11518   for (i = 2; i < nfields; i++) {
11519     key = field[i]
11520     keylen = length(key)
11521     if (S_is_set[key]) {
11522       value = S[key]
11523       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11524       len += length(value) + length(field[++i])
11525       substed = 1
11526     } else
11527       len += 1 + keylen
11528   }
11529
11530   print line
11531 }
11532
11533 _ACAWK
11534 _ACEOF
11535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11537   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11538 else
11539   cat
11540 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11541   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11542 _ACEOF
11543
11544 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11545 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11546 # trailing colons and then remove the whole line if VPATH becomes empty
11547 # (actually we leave an empty line to preserve line numbers).
11548 if test "x$srcdir" = x.; then
11549   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11550 h
11551 s///
11552 s/^/:/
11553 s/[      ]*$/:/
11554 s/:\$(srcdir):/:/g
11555 s/:\${srcdir}:/:/g
11556 s/:@srcdir@:/:/g
11557 s/^:*//
11558 s/:*$//
11559 x
11560 s/\(=[   ]*\).*/\1/
11561 G
11562 s/\n//
11563 s/^[^=]*=[       ]*$//
11564 }'
11565 fi
11566
11567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11568 fi # test -n "$CONFIG_FILES"
11569
11570 # Set up the scripts for CONFIG_HEADERS section.
11571 # No need to generate them if there are no CONFIG_HEADERS.
11572 # This happens for instance with `./config.status Makefile'.
11573 if test -n "$CONFIG_HEADERS"; then
11574 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11575 BEGIN {
11576 _ACEOF
11577
11578 # Transform confdefs.h into an awk script `defines.awk', embedded as
11579 # here-document in config.status, that substitutes the proper values into
11580 # config.h.in to produce config.h.
11581
11582 # Create a delimiter string that does not exist in confdefs.h, to ease
11583 # handling of long lines.
11584 ac_delim='%!_!# '
11585 for ac_last_try in false false :; do
11586   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11587   if test -z "$ac_tt"; then
11588     break
11589   elif $ac_last_try; then
11590     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11591   else
11592     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11593   fi
11594 done
11595
11596 # For the awk script, D is an array of macro values keyed by name,
11597 # likewise P contains macro parameters if any.  Preserve backslash
11598 # newline sequences.
11599
11600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11601 sed -n '
11602 s/.\{148\}/&'"$ac_delim"'/g
11603 t rset
11604 :rset
11605 s/^[     ]*#[    ]*define[       ][      ]*/ /
11606 t def
11607 d
11608 :def
11609 s/\\$//
11610 t bsnl
11611 s/["\\]/\\&/g
11612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11613 D["\1"]=" \3"/p
11614 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11615 d
11616 :bsnl
11617 s/["\\]/\\&/g
11618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11619 D["\1"]=" \3\\\\\\n"\\/p
11620 t cont
11621 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11622 t cont
11623 d
11624 :cont
11625 n
11626 s/.\{148\}/&'"$ac_delim"'/g
11627 t clear
11628 :clear
11629 s/\\$//
11630 t bsnlc
11631 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11632 d
11633 :bsnlc
11634 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11635 b cont
11636 ' <confdefs.h | sed '
11637 s/'"$ac_delim"'/"\\\
11638 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11639
11640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11641   for (key in D) D_is_set[key] = 1
11642   FS = "\a"
11643 }
11644 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11645   line = \$ 0
11646   split(line, arg, " ")
11647   if (arg[1] == "#") {
11648     defundef = arg[2]
11649     mac1 = arg[3]
11650   } else {
11651     defundef = substr(arg[1], 2)
11652     mac1 = arg[2]
11653   }
11654   split(mac1, mac2, "(") #)
11655   macro = mac2[1]
11656   prefix = substr(line, 1, index(line, defundef) - 1)
11657   if (D_is_set[macro]) {
11658     # Preserve the white space surrounding the "#".
11659     print prefix "define", macro P[macro] D[macro]
11660     next
11661   } else {
11662     # Replace #undef with comments.  This is necessary, for example,
11663     # in the case of _POSIX_SOURCE, which is predefined and required
11664     # on some systems where configure will not decide to define it.
11665     if (defundef == "undef") {
11666       print "/*", prefix defundef, macro, "*/"
11667       next
11668     }
11669   }
11670 }
11671 { print }
11672 _ACAWK
11673 _ACEOF
11674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11675   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11676 fi # test -n "$CONFIG_HEADERS"
11677
11678
11679 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11680 shift
11681 for ac_tag
11682 do
11683   case $ac_tag in
11684   :[FHLC]) ac_mode=$ac_tag; continue;;
11685   esac
11686   case $ac_mode$ac_tag in
11687   :[FHL]*:*);;
11688   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11689   :[FH]-) ac_tag=-:-;;
11690   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11691   esac
11692   ac_save_IFS=$IFS
11693   IFS=:
11694   set x $ac_tag
11695   IFS=$ac_save_IFS
11696   shift
11697   ac_file=$1
11698   shift
11699
11700   case $ac_mode in
11701   :L) ac_source=$1;;
11702   :[FH])
11703     ac_file_inputs=
11704     for ac_f
11705     do
11706       case $ac_f in
11707       -) ac_f="$ac_tmp/stdin";;
11708       *) # Look for the file first in the build tree, then in the source tree
11709          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11710          # because $ac_f cannot contain `:'.
11711          test -f "$ac_f" ||
11712            case $ac_f in
11713            [\\/$]*) false;;
11714            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11715            esac ||
11716            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11717       esac
11718       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11719       as_fn_append ac_file_inputs " '$ac_f'"
11720     done
11721
11722     # Let's still pretend it is `configure' which instantiates (i.e., don't
11723     # use $as_me), people would be surprised to read:
11724     #    /* config.h.  Generated by config.status.  */
11725     configure_input='Generated from '`
11726           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11727         `' by configure.'
11728     if test x"$ac_file" != x-; then
11729       configure_input="$ac_file.  $configure_input"
11730       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11731 $as_echo "$as_me: creating $ac_file" >&6;}
11732     fi
11733     # Neutralize special characters interpreted by sed in replacement strings.
11734     case $configure_input in #(
11735     *\&* | *\|* | *\\* )
11736        ac_sed_conf_input=`$as_echo "$configure_input" |
11737        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11738     *) ac_sed_conf_input=$configure_input;;
11739     esac
11740
11741     case $ac_tag in
11742     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11743       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11744     esac
11745     ;;
11746   esac
11747
11748   ac_dir=`$as_dirname -- "$ac_file" ||
11749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11750          X"$ac_file" : 'X\(//\)[^/]' \| \
11751          X"$ac_file" : 'X\(//\)$' \| \
11752          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11753 $as_echo X"$ac_file" |
11754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11755             s//\1/
11756             q
11757           }
11758           /^X\(\/\/\)[^/].*/{
11759             s//\1/
11760             q
11761           }
11762           /^X\(\/\/\)$/{
11763             s//\1/
11764             q
11765           }
11766           /^X\(\/\).*/{
11767             s//\1/
11768             q
11769           }
11770           s/.*/./; q'`
11771   as_dir="$ac_dir"; as_fn_mkdir_p
11772   ac_builddir=.
11773
11774 case "$ac_dir" in
11775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11776 *)
11777   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11778   # A ".." for each directory in $ac_dir_suffix.
11779   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11780   case $ac_top_builddir_sub in
11781   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11782   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11783   esac ;;
11784 esac
11785 ac_abs_top_builddir=$ac_pwd
11786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11787 # for backward compatibility:
11788 ac_top_builddir=$ac_top_build_prefix
11789
11790 case $srcdir in
11791   .)  # We are building in place.
11792     ac_srcdir=.
11793     ac_top_srcdir=$ac_top_builddir_sub
11794     ac_abs_top_srcdir=$ac_pwd ;;
11795   [\\/]* | ?:[\\/]* )  # Absolute name.
11796     ac_srcdir=$srcdir$ac_dir_suffix;
11797     ac_top_srcdir=$srcdir
11798     ac_abs_top_srcdir=$srcdir ;;
11799   *) # Relative name.
11800     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11801     ac_top_srcdir=$ac_top_build_prefix$srcdir
11802     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11803 esac
11804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11805
11806
11807   case $ac_mode in
11808   :F)
11809   #
11810   # CONFIG_FILE
11811   #
11812
11813   case $INSTALL in
11814   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11815   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11816   esac
11817 _ACEOF
11818
11819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11820 # If the template does not know about datarootdir, expand it.
11821 # FIXME: This hack should be removed a few years after 2.60.
11822 ac_datarootdir_hack=; ac_datarootdir_seen=
11823 ac_sed_dataroot='
11824 /datarootdir/ {
11825   p
11826   q
11827 }
11828 /@datadir@/p
11829 /@docdir@/p
11830 /@infodir@/p
11831 /@localedir@/p
11832 /@mandir@/p'
11833 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11834 *datarootdir*) ac_datarootdir_seen=yes;;
11835 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11837 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11838 _ACEOF
11839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11840   ac_datarootdir_hack='
11841   s&@datadir@&$datadir&g
11842   s&@docdir@&$docdir&g
11843   s&@infodir@&$infodir&g
11844   s&@localedir@&$localedir&g
11845   s&@mandir@&$mandir&g
11846   s&\\\${datarootdir}&$datarootdir&g' ;;
11847 esac
11848 _ACEOF
11849
11850 # Neutralize VPATH when `$srcdir' = `.'.
11851 # Shell code in configure.ac might set extrasub.
11852 # FIXME: do we really want to maintain this feature?
11853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11854 ac_sed_extra="$ac_vpsub
11855 $extrasub
11856 _ACEOF
11857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11858 :t
11859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11860 s|@configure_input@|$ac_sed_conf_input|;t t
11861 s&@top_builddir@&$ac_top_builddir_sub&;t t
11862 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11863 s&@srcdir@&$ac_srcdir&;t t
11864 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11865 s&@top_srcdir@&$ac_top_srcdir&;t t
11866 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11867 s&@builddir@&$ac_builddir&;t t
11868 s&@abs_builddir@&$ac_abs_builddir&;t t
11869 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11870 s&@INSTALL@&$ac_INSTALL&;t t
11871 $ac_datarootdir_hack
11872 "
11873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11874   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11875
11876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11877   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
11879       "$ac_tmp/out"`; test -z "$ac_out"; } &&
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11881 which seems to be undefined.  Please make sure it is defined" >&5
11882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11883 which seems to be undefined.  Please make sure it is defined" >&2;}
11884
11885   rm -f "$ac_tmp/stdin"
11886   case $ac_file in
11887   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11888   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11889   esac \
11890   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11891  ;;
11892   :H)
11893   #
11894   # CONFIG_HEADER
11895   #
11896   if test x"$ac_file" != x-; then
11897     {
11898       $as_echo "/* $configure_input  */" \
11899       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11900     } >"$ac_tmp/config.h" \
11901       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11902     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11903       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11905     else
11906       rm -f "$ac_file"
11907       mv "$ac_tmp/config.h" "$ac_file" \
11908         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11909     fi
11910   else
11911     $as_echo "/* $configure_input  */" \
11912       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11913       || as_fn_error $? "could not create -" "$LINENO" 5
11914   fi
11915  ;;
11916
11917
11918   esac
11919
11920
11921   case $ac_file$ac_mode in
11922     "stamp-h":F) echo timestamp > stamp-h ;;
11923     "contrib/gdiffmk/tests/runtests":F) chmod +x contrib/gdiffmk/tests/runtests ;;
11924     "test-groff":F) chmod +x test-groff ;;
11925
11926   esac
11927 done # for ac_tag
11928
11929
11930 as_fn_exit 0
11931 _ACEOF
11932 ac_clean_files=$ac_clean_files_save
11933
11934 test $ac_write_fail = 0 ||
11935   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11936
11937
11938 # configure is writing to config.log, and then calls config.status.
11939 # config.status does its own redirection, appending to config.log.
11940 # Unfortunately, on DOS this fails, as config.log is still kept open
11941 # by configure, so config.status won't be able to write to it; its
11942 # output is simply discarded.  So we exec the FD to /dev/null,
11943 # effectively closing config.log, so it can be properly (re)opened and
11944 # appended to by config.status.  When coming back to configure, we
11945 # need to make the FD available again.
11946 if test "$no_create" != yes; then
11947   ac_cs_success=:
11948   ac_config_status_args=
11949   test "$silent" = yes &&
11950     ac_config_status_args="$ac_config_status_args --quiet"
11951   exec 5>/dev/null
11952   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11953   exec 5>>config.log
11954   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11955   # would make configure fail if this is the last instruction.
11956   $ac_cs_success || as_fn_exit 1
11957 fi
11958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11961 fi
11962
11963
11964 if test -z "$groff_no_x"; then
11965      if test "x$with_appresdir" = "x"; then
11966        { $as_echo "$as_me:${as_lineno-$LINENO}:
11967
11968   The application resource files for gxditview will be installed as
11969
11970     $appresdir/GXditview
11971
11972   and
11973
11974     $appresdir/GXditview-color
11975
11976   (existing files will be saved by appending \`.old' to the file
11977   name).
11978
11979   To install them into a different directory, say, \`/etc/gxditview',
11980   add \`--with-appresdir=/etc/gxditview' to the configure script
11981   command line options and rerun it.  The environment variable
11982   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11983   omitting the \`gxditview' part which is automatically appended by
11984   the X11 searching routines for resource files.  More details can be
11985   found in the X(7) manual page.
11986        " >&5
11987 $as_echo "$as_me:
11988
11989   The application resource files for gxditview will be installed as
11990
11991     $appresdir/GXditview
11992
11993   and
11994
11995     $appresdir/GXditview-color
11996
11997   (existing files will be saved by appending \`.old' to the file
11998   name).
11999
12000   To install them into a different directory, say, \`/etc/gxditview',
12001   add \`--with-appresdir=/etc/gxditview' to the configure script
12002   command line options and rerun it.  The environment variable
12003   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
12004   omitting the \`gxditview' part which is automatically appended by
12005   the X11 searching routines for resource files.  More details can be
12006   found in the X(7) manual page.
12007        " >&6;}
12008      fi
12009    fi