]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/less/configure
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / less / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for less 1.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='less'
551 PACKAGE_TARNAME='less'
552 PACKAGE_VERSION='1'
553 PACKAGE_STRING='less 1'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="forwback.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 #  include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #  include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 REGEX_O
597 INSTALL_DATA
598 INSTALL_SCRIPT
599 INSTALL_PROGRAM
600 EGREP
601 GREP
602 CPP
603 OBJEXT
604 EXEEXT
605 ac_ct_CC
606 CPPFLAGS
607 LDFLAGS
608 CFLAGS
609 CC
610 target_alias
611 host_alias
612 build_alias
613 LIBS
614 ECHO_T
615 ECHO_N
616 ECHO_C
617 DEFS
618 mandir
619 localedir
620 libdir
621 psdir
622 pdfdir
623 dvidir
624 htmldir
625 infodir
626 docdir
627 oldincludedir
628 includedir
629 localstatedir
630 sharedstatedir
631 sysconfdir
632 datadir
633 datarootdir
634 libexecdir
635 sbindir
636 bindir
637 program_transform_name
638 prefix
639 exec_prefix
640 PACKAGE_URL
641 PACKAGE_BUGREPORT
642 PACKAGE_STRING
643 PACKAGE_VERSION
644 PACKAGE_TARNAME
645 PACKAGE_NAME
646 PATH_SEPARATOR
647 SHELL'
648 ac_subst_files=''
649 ac_user_opts='
650 enable_option_checking
651 enable_largefile
652 with_secure
653 with_no_float
654 with_regex
655 with_editor
656 '
657       ac_precious_vars='build_alias
658 host_alias
659 target_alias
660 CC
661 CFLAGS
662 LDFLAGS
663 LIBS
664 CPPFLAGS
665 CPP'
666
667
668 # Initialize some variables set by options.
669 ac_init_help=
670 ac_init_version=false
671 ac_unrecognized_opts=
672 ac_unrecognized_sep=
673 # The variables have the same names as the options, with
674 # dashes changed to underlines.
675 cache_file=/dev/null
676 exec_prefix=NONE
677 no_create=
678 no_recursion=
679 prefix=NONE
680 program_prefix=NONE
681 program_suffix=NONE
682 program_transform_name=s,x,x,
683 silent=
684 site=
685 srcdir=
686 verbose=
687 x_includes=NONE
688 x_libraries=NONE
689
690 # Installation directory options.
691 # These are left unexpanded so users can "make install exec_prefix=/foo"
692 # and all the variables that are supposed to be based on exec_prefix
693 # by default will actually change.
694 # Use braces instead of parens because sh, perl, etc. also accept them.
695 # (The list follows the same order as the GNU Coding Standards.)
696 bindir='${exec_prefix}/bin'
697 sbindir='${exec_prefix}/sbin'
698 libexecdir='${exec_prefix}/libexec'
699 datarootdir='${prefix}/share'
700 datadir='${datarootdir}'
701 sysconfdir='${prefix}/etc'
702 sharedstatedir='${prefix}/com'
703 localstatedir='${prefix}/var'
704 includedir='${prefix}/include'
705 oldincludedir='/usr/include'
706 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
707 infodir='${datarootdir}/info'
708 htmldir='${docdir}'
709 dvidir='${docdir}'
710 pdfdir='${docdir}'
711 psdir='${docdir}'
712 libdir='${exec_prefix}/lib'
713 localedir='${datarootdir}/locale'
714 mandir='${datarootdir}/man'
715
716 ac_prev=
717 ac_dashdash=
718 for ac_option
719 do
720   # If the previous option needs an argument, assign it.
721   if test -n "$ac_prev"; then
722     eval $ac_prev=\$ac_option
723     ac_prev=
724     continue
725   fi
726
727   case $ac_option in
728   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
729   *=)   ac_optarg= ;;
730   *)    ac_optarg=yes ;;
731   esac
732
733   # Accept the important Cygnus configure options, so we can diagnose typos.
734
735   case $ac_dashdash$ac_option in
736   --)
737     ac_dashdash=yes ;;
738
739   -bindir | --bindir | --bindi | --bind | --bin | --bi)
740     ac_prev=bindir ;;
741   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
742     bindir=$ac_optarg ;;
743
744   -build | --build | --buil | --bui | --bu)
745     ac_prev=build_alias ;;
746   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
747     build_alias=$ac_optarg ;;
748
749   -cache-file | --cache-file | --cache-fil | --cache-fi \
750   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
751     ac_prev=cache_file ;;
752   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
753   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
754     cache_file=$ac_optarg ;;
755
756   --config-cache | -C)
757     cache_file=config.cache ;;
758
759   -datadir | --datadir | --datadi | --datad)
760     ac_prev=datadir ;;
761   -datadir=* | --datadir=* | --datadi=* | --datad=*)
762     datadir=$ac_optarg ;;
763
764   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
765   | --dataroo | --dataro | --datar)
766     ac_prev=datarootdir ;;
767   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
768   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
769     datarootdir=$ac_optarg ;;
770
771   -disable-* | --disable-*)
772     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
773     # Reject names that are not valid shell variable names.
774     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
775       as_fn_error $? "invalid feature name: $ac_useropt"
776     ac_useropt_orig=$ac_useropt
777     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
778     case $ac_user_opts in
779       *"
780 "enable_$ac_useropt"
781 "*) ;;
782       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
783          ac_unrecognized_sep=', ';;
784     esac
785     eval enable_$ac_useropt=no ;;
786
787   -docdir | --docdir | --docdi | --doc | --do)
788     ac_prev=docdir ;;
789   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
790     docdir=$ac_optarg ;;
791
792   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
793     ac_prev=dvidir ;;
794   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
795     dvidir=$ac_optarg ;;
796
797   -enable-* | --enable-*)
798     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801       as_fn_error $? "invalid feature name: $ac_useropt"
802     ac_useropt_orig=$ac_useropt
803     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804     case $ac_user_opts in
805       *"
806 "enable_$ac_useropt"
807 "*) ;;
808       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
809          ac_unrecognized_sep=', ';;
810     esac
811     eval enable_$ac_useropt=\$ac_optarg ;;
812
813   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815   | --exec | --exe | --ex)
816     ac_prev=exec_prefix ;;
817   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819   | --exec=* | --exe=* | --ex=*)
820     exec_prefix=$ac_optarg ;;
821
822   -gas | --gas | --ga | --g)
823     # Obsolete; use --with-gas.
824     with_gas=yes ;;
825
826   -help | --help | --hel | --he | -h)
827     ac_init_help=long ;;
828   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829     ac_init_help=recursive ;;
830   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831     ac_init_help=short ;;
832
833   -host | --host | --hos | --ho)
834     ac_prev=host_alias ;;
835   -host=* | --host=* | --hos=* | --ho=*)
836     host_alias=$ac_optarg ;;
837
838   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
839     ac_prev=htmldir ;;
840   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
841   | --ht=*)
842     htmldir=$ac_optarg ;;
843
844   -includedir | --includedir | --includedi | --included | --include \
845   | --includ | --inclu | --incl | --inc)
846     ac_prev=includedir ;;
847   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848   | --includ=* | --inclu=* | --incl=* | --inc=*)
849     includedir=$ac_optarg ;;
850
851   -infodir | --infodir | --infodi | --infod | --info | --inf)
852     ac_prev=infodir ;;
853   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854     infodir=$ac_optarg ;;
855
856   -libdir | --libdir | --libdi | --libd)
857     ac_prev=libdir ;;
858   -libdir=* | --libdir=* | --libdi=* | --libd=*)
859     libdir=$ac_optarg ;;
860
861   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862   | --libexe | --libex | --libe)
863     ac_prev=libexecdir ;;
864   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865   | --libexe=* | --libex=* | --libe=*)
866     libexecdir=$ac_optarg ;;
867
868   -localedir | --localedir | --localedi | --localed | --locale)
869     ac_prev=localedir ;;
870   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871     localedir=$ac_optarg ;;
872
873   -localstatedir | --localstatedir | --localstatedi | --localstated \
874   | --localstate | --localstat | --localsta | --localst | --locals)
875     ac_prev=localstatedir ;;
876   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878     localstatedir=$ac_optarg ;;
879
880   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
881     ac_prev=mandir ;;
882   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
883     mandir=$ac_optarg ;;
884
885   -nfp | --nfp | --nf)
886     # Obsolete; use --without-fp.
887     with_fp=no ;;
888
889   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890   | --no-cr | --no-c | -n)
891     no_create=yes ;;
892
893   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
895     no_recursion=yes ;;
896
897   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899   | --oldin | --oldi | --old | --ol | --o)
900     ac_prev=oldincludedir ;;
901   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904     oldincludedir=$ac_optarg ;;
905
906   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
907     ac_prev=prefix ;;
908   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
909     prefix=$ac_optarg ;;
910
911   -program-prefix | --program-prefix | --program-prefi | --program-pref \
912   | --program-pre | --program-pr | --program-p)
913     ac_prev=program_prefix ;;
914   -program-prefix=* | --program-prefix=* | --program-prefi=* \
915   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916     program_prefix=$ac_optarg ;;
917
918   -program-suffix | --program-suffix | --program-suffi | --program-suff \
919   | --program-suf | --program-su | --program-s)
920     ac_prev=program_suffix ;;
921   -program-suffix=* | --program-suffix=* | --program-suffi=* \
922   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923     program_suffix=$ac_optarg ;;
924
925   -program-transform-name | --program-transform-name \
926   | --program-transform-nam | --program-transform-na \
927   | --program-transform-n | --program-transform- \
928   | --program-transform | --program-transfor \
929   | --program-transfo | --program-transf \
930   | --program-trans | --program-tran \
931   | --progr-tra | --program-tr | --program-t)
932     ac_prev=program_transform_name ;;
933   -program-transform-name=* | --program-transform-name=* \
934   | --program-transform-nam=* | --program-transform-na=* \
935   | --program-transform-n=* | --program-transform-=* \
936   | --program-transform=* | --program-transfor=* \
937   | --program-transfo=* | --program-transf=* \
938   | --program-trans=* | --program-tran=* \
939   | --progr-tra=* | --program-tr=* | --program-t=*)
940     program_transform_name=$ac_optarg ;;
941
942   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
943     ac_prev=pdfdir ;;
944   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
945     pdfdir=$ac_optarg ;;
946
947   -psdir | --psdir | --psdi | --psd | --ps)
948     ac_prev=psdir ;;
949   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
950     psdir=$ac_optarg ;;
951
952   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953   | -silent | --silent | --silen | --sile | --sil)
954     silent=yes ;;
955
956   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
957     ac_prev=sbindir ;;
958   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
959   | --sbi=* | --sb=*)
960     sbindir=$ac_optarg ;;
961
962   -sharedstatedir | --sharedstatedir | --sharedstatedi \
963   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964   | --sharedst | --shareds | --shared | --share | --shar \
965   | --sha | --sh)
966     ac_prev=sharedstatedir ;;
967   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
970   | --sha=* | --sh=*)
971     sharedstatedir=$ac_optarg ;;
972
973   -site | --site | --sit)
974     ac_prev=site ;;
975   -site=* | --site=* | --sit=*)
976     site=$ac_optarg ;;
977
978   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
979     ac_prev=srcdir ;;
980   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
981     srcdir=$ac_optarg ;;
982
983   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984   | --syscon | --sysco | --sysc | --sys | --sy)
985     ac_prev=sysconfdir ;;
986   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988     sysconfdir=$ac_optarg ;;
989
990   -target | --target | --targe | --targ | --tar | --ta | --t)
991     ac_prev=target_alias ;;
992   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993     target_alias=$ac_optarg ;;
994
995   -v | -verbose | --verbose | --verbos | --verbo | --verb)
996     verbose=yes ;;
997
998   -version | --version | --versio | --versi | --vers | -V)
999     ac_init_version=: ;;
1000
1001   -with-* | --with-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error $? "invalid package name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "with_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval with_$ac_useropt=\$ac_optarg ;;
1016
1017   -without-* | --without-*)
1018     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021       as_fn_error $? "invalid package name: $ac_useropt"
1022     ac_useropt_orig=$ac_useropt
1023     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024     case $ac_user_opts in
1025       *"
1026 "with_$ac_useropt"
1027 "*) ;;
1028       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1029          ac_unrecognized_sep=', ';;
1030     esac
1031     eval with_$ac_useropt=no ;;
1032
1033   --x)
1034     # Obsolete; use --with-x.
1035     with_x=yes ;;
1036
1037   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1038   | --x-incl | --x-inc | --x-in | --x-i)
1039     ac_prev=x_includes ;;
1040   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1041   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1042     x_includes=$ac_optarg ;;
1043
1044   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1045   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1046     ac_prev=x_libraries ;;
1047   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1048   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1049     x_libraries=$ac_optarg ;;
1050
1051   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1052 Try \`$0 --help' for more information"
1053     ;;
1054
1055   *=*)
1056     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1057     # Reject names that are not valid shell variable names.
1058     case $ac_envvar in #(
1059       '' | [0-9]* | *[!_$as_cr_alnum]* )
1060       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1061     esac
1062     eval $ac_envvar=\$ac_optarg
1063     export $ac_envvar ;;
1064
1065   *)
1066     # FIXME: should be removed in autoconf 3.0.
1067     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1071     ;;
1072
1073   esac
1074 done
1075
1076 if test -n "$ac_prev"; then
1077   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1078   as_fn_error $? "missing argument to $ac_option"
1079 fi
1080
1081 if test -n "$ac_unrecognized_opts"; then
1082   case $enable_option_checking in
1083     no) ;;
1084     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1085     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1086   esac
1087 fi
1088
1089 # Check all directory arguments for consistency.
1090 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1091                 datadir sysconfdir sharedstatedir localstatedir includedir \
1092                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1093                 libdir localedir mandir
1094 do
1095   eval ac_val=\$$ac_var
1096   # Remove trailing slashes.
1097   case $ac_val in
1098     */ )
1099       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1100       eval $ac_var=\$ac_val;;
1101   esac
1102   # Be sure to have absolute directory names.
1103   case $ac_val in
1104     [\\/$]* | ?:[\\/]* )  continue;;
1105     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106   esac
1107   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1108 done
1109
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1113 build=$build_alias
1114 host=$host_alias
1115 target=$target_alias
1116
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119   if test "x$build_alias" = x; then
1120     cross_compiling=maybe
1121     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1122     If a cross compiler is detected then cross compile mode will be used" >&2
1123   elif test "x$build_alias" != "x$host_alias"; then
1124     cross_compiling=yes
1125   fi
1126 fi
1127
1128 ac_tool_prefix=
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130
1131 test "$silent" = yes && exec 6>/dev/null
1132
1133
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137   as_fn_error $? "working directory cannot be determined"
1138 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139   as_fn_error $? "pwd does not report name of working directory"
1140
1141
1142 # Find the source files, if location was not specified.
1143 if test -z "$srcdir"; then
1144   ac_srcdir_defaulted=yes
1145   # Try the directory containing this script, then the parent directory.
1146   ac_confdir=`$as_dirname -- "$as_myself" ||
1147 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148          X"$as_myself" : 'X\(//\)[^/]' \| \
1149          X"$as_myself" : 'X\(//\)$' \| \
1150          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1151 $as_echo X"$as_myself" |
1152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153             s//\1/
1154             q
1155           }
1156           /^X\(\/\/\)[^/].*/{
1157             s//\1/
1158             q
1159           }
1160           /^X\(\/\/\)$/{
1161             s//\1/
1162             q
1163           }
1164           /^X\(\/\).*/{
1165             s//\1/
1166             q
1167           }
1168           s/.*/./; q'`
1169   srcdir=$ac_confdir
1170   if test ! -r "$srcdir/$ac_unique_file"; then
1171     srcdir=..
1172   fi
1173 else
1174   ac_srcdir_defaulted=no
1175 fi
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1179 fi
1180 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 ac_abs_confdir=`(
1182         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1183         pwd)`
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1186   srcdir=.
1187 fi
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1191 case $srcdir in
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 esac
1194 for ac_var in $ac_precious_vars; do
1195   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196   eval ac_env_${ac_var}_value=\$${ac_var}
1197   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199 done
1200
1201 #
1202 # Report the --help message.
1203 #
1204 if test "$ac_init_help" = "long"; then
1205   # Omit some internal or obsolete options to make the list less imposing.
1206   # This message is too long to be a string in the A/UX 3.1 sh.
1207   cat <<_ACEOF
1208 \`configure' configures less 1 to adapt to many kinds of systems.
1209
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1211
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE.  See below for descriptions of some of the useful variables.
1214
1215 Defaults for the options are specified in brackets.
1216
1217 Configuration:
1218   -h, --help              display this help and exit
1219       --help=short        display options specific to this package
1220       --help=recursive    display the short help of all the included packages
1221   -V, --version           display version information and exit
1222   -q, --quiet, --silent   do not print \`checking ...' messages
1223       --cache-file=FILE   cache test results in FILE [disabled]
1224   -C, --config-cache      alias for \`--cache-file=config.cache'
1225   -n, --no-create         do not create output files
1226       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1227
1228 Installation directories:
1229   --prefix=PREFIX         install architecture-independent files in PREFIX
1230                           [$ac_default_prefix]
1231   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1232                           [PREFIX]
1233
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1238
1239 For better control, use the options below.
1240
1241 Fine tuning of the installation directories:
1242   --bindir=DIR            user executables [EPREFIX/bin]
1243   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1244   --libexecdir=DIR        program executables [EPREFIX/libexec]
1245   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1246   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1247   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1248   --libdir=DIR            object code libraries [EPREFIX/lib]
1249   --includedir=DIR        C header files [PREFIX/include]
1250   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1251   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1252   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1253   --infodir=DIR           info documentation [DATAROOTDIR/info]
1254   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1255   --mandir=DIR            man documentation [DATAROOTDIR/man]
1256   --docdir=DIR            documentation root [DATAROOTDIR/doc/less]
1257   --htmldir=DIR           html documentation [DOCDIR]
1258   --dvidir=DIR            dvi documentation [DOCDIR]
1259   --pdfdir=DIR            pdf documentation [DOCDIR]
1260   --psdir=DIR             ps documentation [DOCDIR]
1261 _ACEOF
1262
1263   cat <<\_ACEOF
1264 _ACEOF
1265 fi
1266
1267 if test -n "$ac_init_help"; then
1268   case $ac_init_help in
1269      short | recursive ) echo "Configuration of less 1:";;
1270    esac
1271   cat <<\_ACEOF
1272
1273 Optional Features:
1274   --disable-option-checking  ignore unrecognized --enable/--with options
1275   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1276   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1277   --disable-largefile     omit support for large files
1278
1279 Optional Packages:
1280   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1281   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1282   --with-secure  Compile in secure mode
1283   --with-no-float  Do not use floating point
1284   --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local}  Select a regular expression library  auto
1285   --with-editor=PROGRAM   use PROGRAM as the default editor vi
1286
1287 Some influential environment variables:
1288   CC          C compiler command
1289   CFLAGS      C compiler flags
1290   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1291               nonstandard directory <lib dir>
1292   LIBS        libraries to pass to the linker, e.g. -l<library>
1293   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1294               you have headers in a nonstandard directory <include dir>
1295   CPP         C preprocessor
1296
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1299
1300 Report bugs to the package provider.
1301 _ACEOF
1302 ac_status=$?
1303 fi
1304
1305 if test "$ac_init_help" = "recursive"; then
1306   # If there are subdirs, report their specific --help.
1307   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1308     test -d "$ac_dir" ||
1309       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1310       continue
1311     ac_builddir=.
1312
1313 case "$ac_dir" in
1314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 *)
1316   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1317   # A ".." for each directory in $ac_dir_suffix.
1318   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1319   case $ac_top_builddir_sub in
1320   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1321   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1322   esac ;;
1323 esac
1324 ac_abs_top_builddir=$ac_pwd
1325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1326 # for backward compatibility:
1327 ac_top_builddir=$ac_top_build_prefix
1328
1329 case $srcdir in
1330   .)  # We are building in place.
1331     ac_srcdir=.
1332     ac_top_srcdir=$ac_top_builddir_sub
1333     ac_abs_top_srcdir=$ac_pwd ;;
1334   [\\/]* | ?:[\\/]* )  # Absolute name.
1335     ac_srcdir=$srcdir$ac_dir_suffix;
1336     ac_top_srcdir=$srcdir
1337     ac_abs_top_srcdir=$srcdir ;;
1338   *) # Relative name.
1339     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1340     ac_top_srcdir=$ac_top_build_prefix$srcdir
1341     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1342 esac
1343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1344
1345     cd "$ac_dir" || { ac_status=$?; continue; }
1346     # Check for guested configure.
1347     if test -f "$ac_srcdir/configure.gnu"; then
1348       echo &&
1349       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1350     elif test -f "$ac_srcdir/configure"; then
1351       echo &&
1352       $SHELL "$ac_srcdir/configure" --help=recursive
1353     else
1354       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1355     fi || ac_status=$?
1356     cd "$ac_pwd" || { ac_status=$?; break; }
1357   done
1358 fi
1359
1360 test -n "$ac_init_help" && exit $ac_status
1361 if $ac_init_version; then
1362   cat <<\_ACEOF
1363 less configure 1
1364 generated by GNU Autoconf 2.67
1365
1366 Copyright (C) 2010 Free Software Foundation, Inc.
1367 This configure script is free software; the Free Software Foundation
1368 gives unlimited permission to copy, distribute and modify it.
1369 _ACEOF
1370   exit
1371 fi
1372
1373 ## ------------------------ ##
1374 ## Autoconf initialization. ##
1375 ## ------------------------ ##
1376
1377 # ac_fn_c_try_compile LINENO
1378 # --------------------------
1379 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1380 ac_fn_c_try_compile ()
1381 {
1382   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1383   rm -f conftest.$ac_objext
1384   if { { ac_try="$ac_compile"
1385 case "(($ac_try" in
1386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1387   *) ac_try_echo=$ac_try;;
1388 esac
1389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1390 $as_echo "$ac_try_echo"; } >&5
1391   (eval "$ac_compile") 2>conftest.err
1392   ac_status=$?
1393   if test -s conftest.err; then
1394     grep -v '^ *+' conftest.err >conftest.er1
1395     cat conftest.er1 >&5
1396     mv -f conftest.er1 conftest.err
1397   fi
1398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1399   test $ac_status = 0; } && {
1400          test -z "$ac_c_werror_flag" ||
1401          test ! -s conftest.err
1402        } && test -s conftest.$ac_objext; then :
1403   ac_retval=0
1404 else
1405   $as_echo "$as_me: failed program was:" >&5
1406 sed 's/^/| /' conftest.$ac_ext >&5
1407
1408         ac_retval=1
1409 fi
1410   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1411   as_fn_set_status $ac_retval
1412
1413 } # ac_fn_c_try_compile
1414
1415 # ac_fn_c_try_link LINENO
1416 # -----------------------
1417 # Try to link conftest.$ac_ext, and return whether this succeeded.
1418 ac_fn_c_try_link ()
1419 {
1420   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421   rm -f conftest.$ac_objext conftest$ac_exeext
1422   if { { ac_try="$ac_link"
1423 case "(($ac_try" in
1424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425   *) ac_try_echo=$ac_try;;
1426 esac
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429   (eval "$ac_link") 2>conftest.err
1430   ac_status=$?
1431   if test -s conftest.err; then
1432     grep -v '^ *+' conftest.err >conftest.er1
1433     cat conftest.er1 >&5
1434     mv -f conftest.er1 conftest.err
1435   fi
1436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437   test $ac_status = 0; } && {
1438          test -z "$ac_c_werror_flag" ||
1439          test ! -s conftest.err
1440        } && test -s conftest$ac_exeext && {
1441          test "$cross_compiling" = yes ||
1442          $as_test_x conftest$ac_exeext
1443        }; then :
1444   ac_retval=0
1445 else
1446   $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1448
1449         ac_retval=1
1450 fi
1451   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1452   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1453   # interfere with the next link command; also delete a directory that is
1454   # left behind by Apple's compiler.  We do this before executing the actions.
1455   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1456   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1457   as_fn_set_status $ac_retval
1458
1459 } # ac_fn_c_try_link
1460
1461 # ac_fn_c_try_cpp LINENO
1462 # ----------------------
1463 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_cpp ()
1465 {
1466   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467   if { { ac_try="$ac_cpp conftest.$ac_ext"
1468 case "(($ac_try" in
1469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470   *) ac_try_echo=$ac_try;;
1471 esac
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1475   ac_status=$?
1476   if test -s conftest.err; then
1477     grep -v '^ *+' conftest.err >conftest.er1
1478     cat conftest.er1 >&5
1479     mv -f conftest.er1 conftest.err
1480   fi
1481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482   test $ac_status = 0; } > conftest.i && {
1483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1484          test ! -s conftest.err
1485        }; then :
1486   ac_retval=0
1487 else
1488   $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1490
1491     ac_retval=1
1492 fi
1493   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1494   as_fn_set_status $ac_retval
1495
1496 } # ac_fn_c_try_cpp
1497
1498 # ac_fn_c_try_run LINENO
1499 # ----------------------
1500 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1501 # that executables *can* be run.
1502 ac_fn_c_try_run ()
1503 {
1504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505   if { { ac_try="$ac_link"
1506 case "(($ac_try" in
1507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508   *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512   (eval "$ac_link") 2>&5
1513   ac_status=$?
1514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1516   { { case "(($ac_try" in
1517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518   *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522   (eval "$ac_try") 2>&5
1523   ac_status=$?
1524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525   test $ac_status = 0; }; }; then :
1526   ac_retval=0
1527 else
1528   $as_echo "$as_me: program exited with status $ac_status" >&5
1529        $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1531
1532        ac_retval=$ac_status
1533 fi
1534   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1535   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536   as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_run
1539
1540 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1541 # -------------------------------------------------------
1542 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1543 # the include files in INCLUDES and setting the cache variable VAR
1544 # accordingly.
1545 ac_fn_c_check_header_mongrel ()
1546 {
1547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548   if eval "test \"\${$3+set}\"" = set; then :
1549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550 $as_echo_n "checking for $2... " >&6; }
1551 if eval "test \"\${$3+set}\"" = set; then :
1552   $as_echo_n "(cached) " >&6
1553 fi
1554 eval ac_res=\$$3
1555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556 $as_echo "$ac_res" >&6; }
1557 else
1558   # Is the header compilable?
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1560 $as_echo_n "checking $2 usability... " >&6; }
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h.  */
1563 $4
1564 #include <$2>
1565 _ACEOF
1566 if ac_fn_c_try_compile "$LINENO"; then :
1567   ac_header_compiler=yes
1568 else
1569   ac_header_compiler=no
1570 fi
1571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1573 $as_echo "$ac_header_compiler" >&6; }
1574
1575 # Is the header present?
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1577 $as_echo_n "checking $2 presence... " >&6; }
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h.  */
1580 #include <$2>
1581 _ACEOF
1582 if ac_fn_c_try_cpp "$LINENO"; then :
1583   ac_header_preproc=yes
1584 else
1585   ac_header_preproc=no
1586 fi
1587 rm -f conftest.err conftest.i conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1589 $as_echo "$ac_header_preproc" >&6; }
1590
1591 # So?  What about this header?
1592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1593   yes:no: )
1594     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1595 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1596     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598     ;;
1599   no:yes:* )
1600     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1601 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1602     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1603 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1604     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1605 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1606     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1607 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1608     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1610     ;;
1611 esac
1612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval "test \"\${$3+set}\"" = set; then :
1615   $as_echo_n "(cached) " >&6
1616 else
1617   eval "$3=\$ac_header_compiler"
1618 fi
1619 eval ac_res=\$$3
1620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622 fi
1623   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624
1625 } # ac_fn_c_check_header_mongrel
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if eval "test \"\${$3+set}\"" = set; then :
1637   $as_echo_n "(cached) " >&6
1638 else
1639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h.  */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645   eval "$3=yes"
1646 else
1647   eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1659 # -------------------------------------------
1660 # Tests whether TYPE exists after having included INCLUDES, setting cache
1661 # variable VAR accordingly.
1662 ac_fn_c_check_type ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval "test \"\${$3+set}\"" = set; then :
1668   $as_echo_n "(cached) " >&6
1669 else
1670   eval "$3=no"
1671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h.  */
1673 $4
1674 int
1675 main ()
1676 {
1677 if (sizeof ($2))
1678          return 0;
1679   ;
1680   return 0;
1681 }
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 $4
1687 int
1688 main ()
1689 {
1690 if (sizeof (($2)))
1691             return 0;
1692   ;
1693   return 0;
1694 }
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697
1698 else
1699   eval "$3=yes"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 fi
1705 eval ac_res=\$$3
1706                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709
1710 } # ac_fn_c_check_type
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval "test \"\${$3+set}\"" = set; then :
1721   $as_echo_n "(cached) " >&6
1722 else
1723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h.  */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730     which can conflict with char $2 (); below.
1731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732     <limits.h> exists even on freestanding compilers.  */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743    Use char because int might match the return type of a GCC
1744    builtin and then its argument prototype would still apply.  */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750     to always fail with ENOSYS.  Some functions are actually named
1751     something starting with __ and the normal name is an alias.  */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760   ;
1761   return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765   eval "$3=yes"
1766 else
1767   eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770     conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776
1777 } # ac_fn_c_check_func
1778 cat >config.log <<_ACEOF
1779 This file contains any messages produced by compilers while
1780 running configure, to aid debugging if configure makes a mistake.
1781
1782 It was created by less $as_me 1, which was
1783 generated by GNU Autoconf 2.67.  Invocation command line was
1784
1785   $ $0 $@
1786
1787 _ACEOF
1788 exec 5>>config.log
1789 {
1790 cat <<_ASUNAME
1791 ## --------- ##
1792 ## Platform. ##
1793 ## --------- ##
1794
1795 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1800
1801 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1803
1804 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1805 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1806 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1808 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1809 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1810 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1811
1812 _ASUNAME
1813
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819     $as_echo "PATH: $as_dir"
1820   done
1821 IFS=$as_save_IFS
1822
1823 } >&5
1824
1825 cat >&5 <<_ACEOF
1826
1827
1828 ## ----------- ##
1829 ## Core tests. ##
1830 ## ----------- ##
1831
1832 _ACEOF
1833
1834
1835 # Keep a trace of the command line.
1836 # Strip out --no-create and --no-recursion so they do not pile up.
1837 # Strip out --silent because we don't want to record it for future runs.
1838 # Also quote any args containing shell meta-characters.
1839 # Make two passes to allow for proper duplicate-argument suppression.
1840 ac_configure_args=
1841 ac_configure_args0=
1842 ac_configure_args1=
1843 ac_must_keep_next=false
1844 for ac_pass in 1 2
1845 do
1846   for ac_arg
1847   do
1848     case $ac_arg in
1849     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851     | -silent | --silent | --silen | --sile | --sil)
1852       continue ;;
1853     *\'*)
1854       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855     esac
1856     case $ac_pass in
1857     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858     2)
1859       as_fn_append ac_configure_args1 " '$ac_arg'"
1860       if test $ac_must_keep_next = true; then
1861         ac_must_keep_next=false # Got value, back to normal.
1862       else
1863         case $ac_arg in
1864           *=* | --config-cache | -C | -disable-* | --disable-* \
1865           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867           | -with-* | --with-* | -without-* | --without-* | --x)
1868             case "$ac_configure_args0 " in
1869               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870             esac
1871             ;;
1872           -* ) ac_must_keep_next=true ;;
1873         esac
1874       fi
1875       as_fn_append ac_configure_args " '$ac_arg'"
1876       ;;
1877     esac
1878   done
1879 done
1880 { ac_configure_args0=; unset ac_configure_args0;}
1881 { ac_configure_args1=; unset ac_configure_args1;}
1882
1883 # When interrupted or exit'd, cleanup temporary files, and complete
1884 # config.log.  We remove comments because anyway the quotes in there
1885 # would cause problems or look ugly.
1886 # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 trap 'exit_status=$?
1889   # Save into config.log some information that might help in debugging.
1890   {
1891     echo
1892
1893     $as_echo "## ---------------- ##
1894 ## Cache variables. ##
1895 ## ---------------- ##"
1896     echo
1897     # The following way of writing the cache mishandles newlines in values,
1898 (
1899   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900     eval ac_val=\$$ac_var
1901     case $ac_val in #(
1902     *${as_nl}*)
1903       case $ac_var in #(
1904       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906       esac
1907       case $ac_var in #(
1908       _ | IFS | as_nl) ;; #(
1909       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910       *) { eval $ac_var=; unset $ac_var;} ;;
1911       esac ;;
1912     esac
1913   done
1914   (set) 2>&1 |
1915     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916     *${as_nl}ac_space=\ *)
1917       sed -n \
1918         "s/'\''/'\''\\\\'\'''\''/g;
1919           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920       ;; #(
1921     *)
1922       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923       ;;
1924     esac |
1925     sort
1926 )
1927     echo
1928
1929     $as_echo "## ----------------- ##
1930 ## Output variables. ##
1931 ## ----------------- ##"
1932     echo
1933     for ac_var in $ac_subst_vars
1934     do
1935       eval ac_val=\$$ac_var
1936       case $ac_val in
1937       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938       esac
1939       $as_echo "$ac_var='\''$ac_val'\''"
1940     done | sort
1941     echo
1942
1943     if test -n "$ac_subst_files"; then
1944       $as_echo "## ------------------- ##
1945 ## File substitutions. ##
1946 ## ------------------- ##"
1947       echo
1948       for ac_var in $ac_subst_files
1949       do
1950         eval ac_val=\$$ac_var
1951         case $ac_val in
1952         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953         esac
1954         $as_echo "$ac_var='\''$ac_val'\''"
1955       done | sort
1956       echo
1957     fi
1958
1959     if test -s confdefs.h; then
1960       $as_echo "## ----------- ##
1961 ## confdefs.h. ##
1962 ## ----------- ##"
1963       echo
1964       cat confdefs.h
1965       echo
1966     fi
1967     test "$ac_signal" != 0 &&
1968       $as_echo "$as_me: caught signal $ac_signal"
1969     $as_echo "$as_me: exit $exit_status"
1970   } >&5
1971   rm -f core *.core core.conftest.* &&
1972     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973     exit $exit_status
1974 ' 0
1975 for ac_signal in 1 2 13 15; do
1976   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1977 done
1978 ac_signal=0
1979
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1982
1983 $as_echo "/* confdefs.h */" > confdefs.h
1984
1985 # Predefined preprocessor variables.
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_NAME "$PACKAGE_NAME"
1989 _ACEOF
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1997 _ACEOF
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_STRING "$PACKAGE_STRING"
2001 _ACEOF
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_URL "$PACKAGE_URL"
2009 _ACEOF
2010
2011
2012 # Let the site file select an alternate cache file if it wants to.
2013 # Prefer an explicitly selected file to automatically selected ones.
2014 ac_site_file1=NONE
2015 ac_site_file2=NONE
2016 if test -n "$CONFIG_SITE"; then
2017   # We do not want a PATH search for config.site.
2018   case $CONFIG_SITE in #((
2019     -*)  ac_site_file1=./$CONFIG_SITE;;
2020     */*) ac_site_file1=$CONFIG_SITE;;
2021     *)   ac_site_file1=./$CONFIG_SITE;;
2022   esac
2023 elif test "x$prefix" != xNONE; then
2024   ac_site_file1=$prefix/share/config.site
2025   ac_site_file2=$prefix/etc/config.site
2026 else
2027   ac_site_file1=$ac_default_prefix/share/config.site
2028   ac_site_file2=$ac_default_prefix/etc/config.site
2029 fi
2030 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031 do
2032   test "x$ac_site_file" = xNONE && continue
2033   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036     sed 's/^/| /' "$ac_site_file" >&5
2037     . "$ac_site_file" \
2038       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See \`config.log' for more details" "$LINENO" 5 ; }
2042   fi
2043 done
2044
2045 if test -r "$cache_file"; then
2046   # Some versions of bash will fail to source /dev/null (special files
2047   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2048   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 $as_echo "$as_me: loading cache $cache_file" >&6;}
2051     case $cache_file in
2052       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053       *)                      . "./$cache_file";;
2054     esac
2055   fi
2056 else
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 $as_echo "$as_me: creating cache $cache_file" >&6;}
2059   >$cache_file
2060 fi
2061
2062 # Check that the precious variables saved in the cache have kept the same
2063 # value.
2064 ac_cache_corrupted=false
2065 for ac_var in $ac_precious_vars; do
2066   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2067   eval ac_new_set=\$ac_env_${ac_var}_set
2068   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2069   eval ac_new_val=\$ac_env_${ac_var}_value
2070   case $ac_old_set,$ac_new_set in
2071     set,)
2072       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2073 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2074       ac_cache_corrupted=: ;;
2075     ,set)
2076       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2077 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2078       ac_cache_corrupted=: ;;
2079     ,);;
2080     *)
2081       if test "x$ac_old_val" != "x$ac_new_val"; then
2082         # differences in whitespace do not lead to failure.
2083         ac_old_val_w=`echo x $ac_old_val`
2084         ac_new_val_w=`echo x $ac_new_val`
2085         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2086           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2087 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2088           ac_cache_corrupted=:
2089         else
2090           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2091 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2092           eval $ac_var=\$ac_old_val
2093         fi
2094         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2095 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2096         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2097 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2098       fi;;
2099   esac
2100   # Pass precious variables to config.status.
2101   if test "$ac_new_set" = set; then
2102     case $ac_new_val in
2103     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2104     *) ac_arg=$ac_var=$ac_new_val ;;
2105     esac
2106     case " $ac_configure_args " in
2107       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2108       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2109     esac
2110   fi
2111 done
2112 if $ac_cache_corrupted; then
2113   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2116 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2117   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2118 fi
2119 ## -------------------- ##
2120 ## Main body of script. ##
2121 ## -------------------- ##
2122
2123 ac_ext=c
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128
2129
2130
2131 ac_config_headers="$ac_config_headers defines.h"
2132
2133
2134 # Checks for programs.
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144 $as_echo_n "checking for $ac_word... " >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   if test -n "$CC"; then
2149   ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156     for ac_exec_ext in '' $ac_executable_extensions; do
2157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163   done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171 $as_echo "$CC" >&6; }
2172 else
2173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174 $as_echo "no" >&6; }
2175 fi
2176
2177
2178 fi
2179 if test -z "$ac_cv_prog_CC"; then
2180   ac_ct_CC=$CC
2181   # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2184 $as_echo_n "checking for $ac_word... " >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2186   $as_echo_n "(cached) " >&6
2187 else
2188   if test -n "$ac_ct_CC"; then
2189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196     for ac_exec_ext in '' $ac_executable_extensions; do
2197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198     ac_cv_prog_ac_ct_CC="gcc"
2199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2200     break 2
2201   fi
2202 done
2203   done
2204 IFS=$as_save_IFS
2205
2206 fi
2207 fi
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2211 $as_echo "$ac_ct_CC" >&6; }
2212 else
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2214 $as_echo "no" >&6; }
2215 fi
2216
2217   if test "x$ac_ct_CC" = x; then
2218     CC=""
2219   else
2220     case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224 ac_tool_warned=yes ;;
2225 esac
2226     CC=$ac_ct_CC
2227   fi
2228 else
2229   CC="$ac_cv_prog_CC"
2230 fi
2231
2232 if test -z "$CC"; then
2233           if test -n "$ac_tool_prefix"; then
2234     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2235 set dummy ${ac_tool_prefix}cc; ac_word=$2
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then :
2239   $as_echo_n "(cached) " >&6
2240 else
2241   if test -n "$CC"; then
2242   ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249     for ac_exec_ext in '' $ac_executable_extensions; do
2250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251     ac_cv_prog_CC="${ac_tool_prefix}cc"
2252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256   done
2257 IFS=$as_save_IFS
2258
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2264 $as_echo "$CC" >&6; }
2265 else
2266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267 $as_echo "no" >&6; }
2268 fi
2269
2270
2271   fi
2272 fi
2273 if test -z "$CC"; then
2274   # Extract the first word of "cc", so it can be a program name with args.
2275 set dummy cc; ac_word=$2
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_CC+set}" = set; then :
2279   $as_echo_n "(cached) " >&6
2280 else
2281   if test -n "$CC"; then
2282   ac_cv_prog_CC="$CC" # Let the user override the test.
2283 else
2284   ac_prog_rejected=no
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290     for ac_exec_ext in '' $ac_executable_extensions; do
2291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293        ac_prog_rejected=yes
2294        continue
2295      fi
2296     ac_cv_prog_CC="cc"
2297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298     break 2
2299   fi
2300 done
2301   done
2302 IFS=$as_save_IFS
2303
2304 if test $ac_prog_rejected = yes; then
2305   # We found a bogon in the path, so make sure we never use it.
2306   set dummy $ac_cv_prog_CC
2307   shift
2308   if test $# != 0; then
2309     # We chose a different compiler from the bogus one.
2310     # However, it has the same basename, so the bogon will be chosen
2311     # first if we set CC to just the basename; use the full file name.
2312     shift
2313     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2314   fi
2315 fi
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321 $as_echo "$CC" >&6; }
2322 else
2323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2325 fi
2326
2327
2328 fi
2329 if test -z "$CC"; then
2330   if test -n "$ac_tool_prefix"; then
2331   for ac_prog in cl.exe
2332   do
2333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then :
2338   $as_echo_n "(cached) " >&6
2339 else
2340   if test -n "$CC"; then
2341   ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348     for ac_exec_ext in '' $ac_executable_extensions; do
2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355   done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363 $as_echo "$CC" >&6; }
2364 else
2365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2367 fi
2368
2369
2370     test -n "$CC" && break
2371   done
2372 fi
2373 if test -z "$CC"; then
2374   ac_ct_CC=$CC
2375   for ac_prog in cl.exe
2376 do
2377   # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 set dummy $ac_prog; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   if test -n "$ac_ct_CC"; then
2385   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392     for ac_exec_ext in '' $ac_executable_extensions; do
2393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394     ac_cv_prog_ac_ct_CC="$ac_prog"
2395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399   done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407 $as_echo "$ac_ct_CC" >&6; }
2408 else
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2411 fi
2412
2413
2414   test -n "$ac_ct_CC" && break
2415 done
2416
2417   if test "x$ac_ct_CC" = x; then
2418     CC=""
2419   else
2420     case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426     CC=$ac_ct_CC
2427   fi
2428 fi
2429
2430 fi
2431
2432
2433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 as_fn_error $? "no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details" "$LINENO" 5 ; }
2437
2438 # Provide some information about the compiler.
2439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2440 set X $ac_compile
2441 ac_compiler=$2
2442 for ac_option in --version -v -V -qversion; do
2443   { { ac_try="$ac_compiler $ac_option >&5"
2444 case "(($ac_try" in
2445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446   *) ac_try_echo=$ac_try;;
2447 esac
2448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449 $as_echo "$ac_try_echo"; } >&5
2450   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2451   ac_status=$?
2452   if test -s conftest.err; then
2453     sed '10a\
2454 ... rest of stderr output deleted ...
2455          10q' conftest.err >conftest.er1
2456     cat conftest.er1 >&5
2457   fi
2458   rm -f conftest.er1 conftest.err
2459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460   test $ac_status = 0; }
2461 done
2462
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 ac_clean_files_save=$ac_clean_files
2475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2476 # Try to create an executable without -o first, disregard a.out.
2477 # It will help us diagnose broken compilers, and finding out an intuition
2478 # of exeext.
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2480 $as_echo_n "checking whether the C compiler works... " >&6; }
2481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482
2483 # The possible output files:
2484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2485
2486 ac_rmfiles=
2487 for ac_file in $ac_files
2488 do
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2492   esac
2493 done
2494 rm -f $ac_rmfiles
2495
2496 if { { ac_try="$ac_link_default"
2497 case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503   (eval "$ac_link_default") 2>&5
2504   ac_status=$?
2505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506   test $ac_status = 0; }; then :
2507   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2509 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2510 # so that the user can short-circuit this test for compilers unknown to
2511 # Autoconf.
2512 for ac_file in $ac_files ''
2513 do
2514   test -f "$ac_file" || continue
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2517         ;;
2518     [ab].out )
2519         # We found the default executable, but exeext='' is most
2520         # certainly right.
2521         break;;
2522     *.* )
2523         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2524         then :; else
2525            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526         fi
2527         # We set ac_cv_exeext here because the later test for it is not
2528         # safe: cross compilers may not add the suffix if given an `-o'
2529         # argument, so we may need to know it at that point already.
2530         # Even if this section looks crufty: it has the advantage of
2531         # actually working.
2532         break;;
2533     * )
2534         break;;
2535   esac
2536 done
2537 test "$ac_cv_exeext" = no && ac_cv_exeext=
2538
2539 else
2540   ac_file=''
2541 fi
2542 if test -z "$ac_file"; then :
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 as_fn_error 77 "C compiler cannot create executables
2551 See \`config.log' for more details" "$LINENO" 5 ; }
2552 else
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2557 $as_echo_n "checking for C compiler default output file name... " >&6; }
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2559 $as_echo "$ac_file" >&6; }
2560 ac_exeext=$ac_cv_exeext
2561
2562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2563 ac_clean_files=$ac_clean_files_save
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2565 $as_echo_n "checking for suffix of executables... " >&6; }
2566 if { { ac_try="$ac_link"
2567 case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573   (eval "$ac_link") 2>&5
2574   ac_status=$?
2575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576   test $ac_status = 0; }; then :
2577   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2578 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2579 # work properly (i.e., refer to `conftest.exe'), while it won't with
2580 # `rm'.
2581 for ac_file in conftest.exe conftest conftest.*; do
2582   test -f "$ac_file" || continue
2583   case $ac_file in
2584     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2585     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2586           break;;
2587     * ) break;;
2588   esac
2589 done
2590 else
2591   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2594 See \`config.log' for more details" "$LINENO" 5 ; }
2595 fi
2596 rm -f conftest conftest$ac_cv_exeext
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2598 $as_echo "$ac_cv_exeext" >&6; }
2599
2600 rm -f conftest.$ac_ext
2601 EXEEXT=$ac_cv_exeext
2602 ac_exeext=$EXEEXT
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 #include <stdio.h>
2606 int
2607 main ()
2608 {
2609 FILE *f = fopen ("conftest.out", "w");
2610  return ferror (f) || fclose (f) != 0;
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 ac_clean_files="$ac_clean_files conftest.out"
2617 # Check that the compiler produces executables we can run.  If not, either
2618 # the compiler is broken, or we cross compile.
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2620 $as_echo_n "checking whether we are cross compiling... " >&6; }
2621 if test "$cross_compiling" != yes; then
2622   { { ac_try="$ac_link"
2623 case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629   (eval "$ac_link") 2>&5
2630   ac_status=$?
2631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632   test $ac_status = 0; }
2633   if { ac_try='./conftest$ac_cv_exeext'
2634   { { case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640   (eval "$ac_try") 2>&5
2641   ac_status=$?
2642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643   test $ac_status = 0; }; }; then
2644     cross_compiling=no
2645   else
2646     if test "$cross_compiling" = maybe; then
2647         cross_compiling=yes
2648     else
2649         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 as_fn_error $? "cannot run C compiled programs.
2652 If you meant to cross compile, use \`--host'.
2653 See \`config.log' for more details" "$LINENO" 5 ; }
2654     fi
2655   fi
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2658 $as_echo "$cross_compiling" >&6; }
2659
2660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2661 ac_clean_files=$ac_clean_files_save
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2663 $as_echo_n "checking for suffix of object files... " >&6; }
2664 if test "${ac_cv_objext+set}" = set; then :
2665   $as_echo_n "(cached) " >&6
2666 else
2667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.o conftest.obj
2679 if { { ac_try="$ac_compile"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686   (eval "$ac_compile") 2>&5
2687   ac_status=$?
2688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689   test $ac_status = 0; }; then :
2690   for ac_file in conftest.o conftest.obj conftest.*; do
2691   test -f "$ac_file" || continue;
2692   case $ac_file in
2693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2694     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2695        break;;
2696   esac
2697 done
2698 else
2699   $as_echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error $? "cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details" "$LINENO" 5 ; }
2706 fi
2707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2710 $as_echo "$ac_cv_objext" >&6; }
2711 OBJEXT=$ac_cv_objext
2712 ac_objext=$OBJEXT
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2715 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2716   $as_echo_n "(cached) " >&6
2717 else
2718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h.  */
2720
2721 int
2722 main ()
2723 {
2724 #ifndef __GNUC__
2725        choke me
2726 #endif
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733   ac_compiler_gnu=yes
2734 else
2735   ac_compiler_gnu=no
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2739
2740 fi
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2743 if test $ac_compiler_gnu = yes; then
2744   GCC=yes
2745 else
2746   GCC=
2747 fi
2748 ac_test_CFLAGS=${CFLAGS+set}
2749 ac_save_CFLAGS=$CFLAGS
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2752 if test "${ac_cv_prog_cc_g+set}" = set; then :
2753   $as_echo_n "(cached) " >&6
2754 else
2755   ac_save_c_werror_flag=$ac_c_werror_flag
2756    ac_c_werror_flag=yes
2757    ac_cv_prog_cc_g=no
2758    CFLAGS="-g"
2759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h.  */
2761
2762 int
2763 main ()
2764 {
2765
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771   ac_cv_prog_cc_g=yes
2772 else
2773   CFLAGS=""
2774       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776
2777 int
2778 main ()
2779 {
2780
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 if ac_fn_c_try_compile "$LINENO"; then :
2786
2787 else
2788   ac_c_werror_flag=$ac_save_c_werror_flag
2789          CFLAGS="-g"
2790          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792
2793 int
2794 main ()
2795 {
2796
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 if ac_fn_c_try_compile "$LINENO"; then :
2802   ac_cv_prog_cc_g=yes
2803 fi
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 fi
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809    ac_c_werror_flag=$ac_save_c_werror_flag
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2812 $as_echo "$ac_cv_prog_cc_g" >&6; }
2813 if test "$ac_test_CFLAGS" = set; then
2814   CFLAGS=$ac_save_CFLAGS
2815 elif test $ac_cv_prog_cc_g = yes; then
2816   if test "$GCC" = yes; then
2817     CFLAGS="-g -O2"
2818   else
2819     CFLAGS="-g"
2820   fi
2821 else
2822   if test "$GCC" = yes; then
2823     CFLAGS="-O2"
2824   else
2825     CFLAGS=
2826   fi
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2831   $as_echo_n "(cached) " >&6
2832 else
2833   ac_cv_prog_cc_c89=no
2834 ac_save_CC=$CC
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h.  */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845      char **p;
2846      int i;
2847 {
2848   return p[i];
2849 }
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2851 {
2852   char *s;
2853   va_list v;
2854   va_start (v,p);
2855   s = g (p, va_arg (v,int));
2856   va_end (v);
2857   return s;
2858 }
2859
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2861    function prototypes and stuff, but not '\xHH' hex character constants.
2862    These don't provoke an error unfortunately, instead are silently treated
2863    as 'x'.  The following induces an error, until -std is added to get
2864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2865    array size at least.  It's necessary to write '\x00'==0 to get something
2866    that's true only with -std.  */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870    inside strings and character constants.  */
2871 #define FOO(x) 'x'
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2873
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 int argc;
2879 char **argv;
2880 int
2881 main ()
2882 {
2883 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2890 do
2891   CC="$ac_save_CC $ac_arg"
2892   if ac_fn_c_try_compile "$LINENO"; then :
2893   ac_cv_prog_cc_c89=$ac_arg
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext
2896   test "x$ac_cv_prog_cc_c89" != "xno" && break
2897 done
2898 rm -f conftest.$ac_ext
2899 CC=$ac_save_CC
2900
2901 fi
2902 # AC_CACHE_VAL
2903 case "x$ac_cv_prog_cc_c89" in
2904   x)
2905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2906 $as_echo "none needed" >&6; } ;;
2907   xno)
2908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2909 $as_echo "unsupported" >&6; } ;;
2910   *)
2911     CC="$CC $ac_cv_prog_cc_c89"
2912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2914 esac
2915 if test "x$ac_cv_prog_cc_c89" != xno; then :
2916
2917 fi
2918
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
2927 $as_echo_n "checking for library containing strerror... " >&6; }
2928 if test "${ac_cv_search_strerror+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   ac_func_search_save_LIBS=$LIBS
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h.  */
2934
2935 /* Override any GCC internal prototype to avoid an error.
2936    Use char because int might match the return type of a GCC
2937    builtin and then its argument prototype would still apply.  */
2938 #ifdef __cplusplus
2939 extern "C"
2940 #endif
2941 char strerror ();
2942 int
2943 main ()
2944 {
2945 return strerror ();
2946   ;
2947   return 0;
2948 }
2949 _ACEOF
2950 for ac_lib in '' cposix; do
2951   if test -z "$ac_lib"; then
2952     ac_res="none required"
2953   else
2954     ac_res=-l$ac_lib
2955     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2956   fi
2957   if ac_fn_c_try_link "$LINENO"; then :
2958   ac_cv_search_strerror=$ac_res
2959 fi
2960 rm -f core conftest.err conftest.$ac_objext \
2961     conftest$ac_exeext
2962   if test "${ac_cv_search_strerror+set}" = set; then :
2963   break
2964 fi
2965 done
2966 if test "${ac_cv_search_strerror+set}" = set; then :
2967
2968 else
2969   ac_cv_search_strerror=no
2970 fi
2971 rm conftest.$ac_ext
2972 LIBS=$ac_func_search_save_LIBS
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
2975 $as_echo "$ac_cv_search_strerror" >&6; }
2976 ac_res=$ac_cv_search_strerror
2977 if test "$ac_res" != no; then :
2978   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2979
2980 fi
2981
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2991   CPP=
2992 fi
2993 if test -z "$CPP"; then
2994   if test "${ac_cv_prog_CPP+set}" = set; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997       # Double quotes because CPP needs to be expanded
2998     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2999     do
3000       ac_preproc_ok=false
3001 for ac_c_preproc_warn_flag in '' yes
3002 do
3003   # Use a header file that comes with gcc, so configuring glibc
3004   # with a fresh cross-compiler works.
3005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006   # <limits.h> exists even on freestanding compilers.
3007   # On the NeXT, cc -E runs the code through the compiler's parser,
3008   # not just through cpp. "Syntax error" is here to catch this case.
3009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h.  */
3011 #ifdef __STDC__
3012 # include <limits.h>
3013 #else
3014 # include <assert.h>
3015 #endif
3016                      Syntax error
3017 _ACEOF
3018 if ac_fn_c_try_cpp "$LINENO"; then :
3019
3020 else
3021   # Broken: fails on valid input.
3022 continue
3023 fi
3024 rm -f conftest.err conftest.i conftest.$ac_ext
3025
3026   # OK, works on sane cases.  Now check whether nonexistent headers
3027   # can be detected and how.
3028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h.  */
3030 #include <ac_nonexistent.h>
3031 _ACEOF
3032 if ac_fn_c_try_cpp "$LINENO"; then :
3033   # Broken: success on invalid input.
3034 continue
3035 else
3036   # Passes both tests.
3037 ac_preproc_ok=:
3038 break
3039 fi
3040 rm -f conftest.err conftest.i conftest.$ac_ext
3041
3042 done
3043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3044 rm -f conftest.i conftest.err conftest.$ac_ext
3045 if $ac_preproc_ok; then :
3046   break
3047 fi
3048
3049     done
3050     ac_cv_prog_CPP=$CPP
3051
3052 fi
3053   CPP=$ac_cv_prog_CPP
3054 else
3055   ac_cv_prog_CPP=$CPP
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3058 $as_echo "$CPP" >&6; }
3059 ac_preproc_ok=false
3060 for ac_c_preproc_warn_flag in '' yes
3061 do
3062   # Use a header file that comes with gcc, so configuring glibc
3063   # with a fresh cross-compiler works.
3064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065   # <limits.h> exists even on freestanding compilers.
3066   # On the NeXT, cc -E runs the code through the compiler's parser,
3067   # not just through cpp. "Syntax error" is here to catch this case.
3068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h.  */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075                      Syntax error
3076 _ACEOF
3077 if ac_fn_c_try_cpp "$LINENO"; then :
3078
3079 else
3080   # Broken: fails on valid input.
3081 continue
3082 fi
3083 rm -f conftest.err conftest.i conftest.$ac_ext
3084
3085   # OK, works on sane cases.  Now check whether nonexistent headers
3086   # can be detected and how.
3087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h.  */
3089 #include <ac_nonexistent.h>
3090 _ACEOF
3091 if ac_fn_c_try_cpp "$LINENO"; then :
3092   # Broken: success on invalid input.
3093 continue
3094 else
3095   # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3098 fi
3099 rm -f conftest.err conftest.i conftest.$ac_ext
3100
3101 done
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.i conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then :
3105
3106 else
3107   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details" "$LINENO" 5 ; }
3111 fi
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3122 if test "${ac_cv_path_GREP+set}" = set; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   if test -z "$GREP"; then
3126   ac_path_GREP_found=false
3127   # Loop through the user's path and test for each of PROGNAME-LIST
3128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133     for ac_prog in grep ggrep; do
3134     for ac_exec_ext in '' $ac_executable_extensions; do
3135       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3136       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3137 # Check for GNU ac_path_GREP and select it if it is found.
3138   # Check for GNU $ac_path_GREP
3139 case `"$ac_path_GREP" --version 2>&1` in
3140 *GNU*)
3141   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3142 *)
3143   ac_count=0
3144   $as_echo_n 0123456789 >"conftest.in"
3145   while :
3146   do
3147     cat "conftest.in" "conftest.in" >"conftest.tmp"
3148     mv "conftest.tmp" "conftest.in"
3149     cp "conftest.in" "conftest.nl"
3150     $as_echo 'GREP' >> "conftest.nl"
3151     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3153     as_fn_arith $ac_count + 1 && ac_count=$as_val
3154     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3155       # Best one so far, save it but keep looking for a better one
3156       ac_cv_path_GREP="$ac_path_GREP"
3157       ac_path_GREP_max=$ac_count
3158     fi
3159     # 10*(2^10) chars as input seems more than enough
3160     test $ac_count -gt 10 && break
3161   done
3162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3163 esac
3164
3165       $ac_path_GREP_found && break 3
3166     done
3167   done
3168   done
3169 IFS=$as_save_IFS
3170   if test -z "$ac_cv_path_GREP"; then
3171     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3172   fi
3173 else
3174   ac_cv_path_GREP=$GREP
3175 fi
3176
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3179 $as_echo "$ac_cv_path_GREP" >&6; }
3180  GREP="$ac_cv_path_GREP"
3181
3182
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3184 $as_echo_n "checking for egrep... " >&6; }
3185 if test "${ac_cv_path_EGREP+set}" = set; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3189    then ac_cv_path_EGREP="$GREP -E"
3190    else
3191      if test -z "$EGREP"; then
3192   ac_path_EGREP_found=false
3193   # Loop through the user's path and test for each of PROGNAME-LIST
3194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_prog in egrep; do
3200     for ac_exec_ext in '' $ac_executable_extensions; do
3201       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3202       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3203 # Check for GNU ac_path_EGREP and select it if it is found.
3204   # Check for GNU $ac_path_EGREP
3205 case `"$ac_path_EGREP" --version 2>&1` in
3206 *GNU*)
3207   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3208 *)
3209   ac_count=0
3210   $as_echo_n 0123456789 >"conftest.in"
3211   while :
3212   do
3213     cat "conftest.in" "conftest.in" >"conftest.tmp"
3214     mv "conftest.tmp" "conftest.in"
3215     cp "conftest.in" "conftest.nl"
3216     $as_echo 'EGREP' >> "conftest.nl"
3217     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3219     as_fn_arith $ac_count + 1 && ac_count=$as_val
3220     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3221       # Best one so far, save it but keep looking for a better one
3222       ac_cv_path_EGREP="$ac_path_EGREP"
3223       ac_path_EGREP_max=$ac_count
3224     fi
3225     # 10*(2^10) chars as input seems more than enough
3226     test $ac_count -gt 10 && break
3227   done
3228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3229 esac
3230
3231       $ac_path_EGREP_found && break 3
3232     done
3233   done
3234   done
3235 IFS=$as_save_IFS
3236   if test -z "$ac_cv_path_EGREP"; then
3237     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3238   fi
3239 else
3240   ac_cv_path_EGREP=$EGREP
3241 fi
3242
3243    fi
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3246 $as_echo "$ac_cv_path_EGREP" >&6; }
3247  EGREP="$ac_cv_path_EGREP"
3248
3249
3250 if test $ac_cv_c_compiler_gnu = yes; then
3251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3252 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3253 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256     ac_pattern="Autoconf.*'x'"
3257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h.  */
3259 #include <sgtty.h>
3260 Autoconf TIOCGETP
3261 _ACEOF
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3264   ac_cv_prog_gcc_traditional=yes
3265 else
3266   ac_cv_prog_gcc_traditional=no
3267 fi
3268 rm -f conftest*
3269
3270
3271   if test $ac_cv_prog_gcc_traditional = no; then
3272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274 #include <termio.h>
3275 Autoconf TCGETA
3276 _ACEOF
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3279   ac_cv_prog_gcc_traditional=yes
3280 fi
3281 rm -f conftest*
3282
3283   fi
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3286 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3287   if test $ac_cv_prog_gcc_traditional = yes; then
3288     CC="$CC -traditional"
3289   fi
3290 fi
3291
3292 ac_aux_dir=
3293 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3294   if test -f "$ac_dir/install-sh"; then
3295     ac_aux_dir=$ac_dir
3296     ac_install_sh="$ac_aux_dir/install-sh -c"
3297     break
3298   elif test -f "$ac_dir/install.sh"; then
3299     ac_aux_dir=$ac_dir
3300     ac_install_sh="$ac_aux_dir/install.sh -c"
3301     break
3302   elif test -f "$ac_dir/shtool"; then
3303     ac_aux_dir=$ac_dir
3304     ac_install_sh="$ac_aux_dir/shtool install -c"
3305     break
3306   fi
3307 done
3308 if test -z "$ac_aux_dir"; then
3309   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3310 fi
3311
3312 # These three variables are undocumented and unsupported,
3313 # and are intended to be withdrawn in a future Autoconf release.
3314 # They can cause serious problems if a builder's source tree is in a directory
3315 # whose full name contains unusual characters.
3316 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3317 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3318 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3319
3320
3321 # Find a good install program.  We prefer a C program (faster),
3322 # so one script is as good as another.  But avoid the broken or
3323 # incompatible versions:
3324 # SysV /etc/install, /usr/sbin/install
3325 # SunOS /usr/etc/install
3326 # IRIX /sbin/install
3327 # AIX /bin/install
3328 # AmigaOS /C/install, which installs bootblocks on floppy discs
3329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3332 # OS/2's system install, which has a completely different semantic
3333 # ./install, which can be erroneously created by make from ./install.sh.
3334 # Reject install programs that cannot install multiple files.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3337 if test -z "$INSTALL"; then
3338 if test "${ac_cv_path_install+set}" = set; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346     # Account for people who put trailing slashes in PATH elements.
3347 case $as_dir/ in #((
3348   ./ | .// | /[cC]/* | \
3349   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3350   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3351   /usr/ucb/* ) ;;
3352   *)
3353     # OSF1 and SCO ODT 3.0 have their own names for install.
3354     # Don't use installbsd from OSF since it installs stuff as root
3355     # by default.
3356     for ac_prog in ginstall scoinst install; do
3357       for ac_exec_ext in '' $ac_executable_extensions; do
3358         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3359           if test $ac_prog = install &&
3360             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3361             # AIX install.  It has an incompatible calling convention.
3362             :
3363           elif test $ac_prog = install &&
3364             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3365             # program-specific install script used by HP pwplus--don't use.
3366             :
3367           else
3368             rm -rf conftest.one conftest.two conftest.dir
3369             echo one > conftest.one
3370             echo two > conftest.two
3371             mkdir conftest.dir
3372             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3373               test -s conftest.one && test -s conftest.two &&
3374               test -s conftest.dir/conftest.one &&
3375               test -s conftest.dir/conftest.two
3376             then
3377               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3378               break 3
3379             fi
3380           fi
3381         fi
3382       done
3383     done
3384     ;;
3385 esac
3386
3387   done
3388 IFS=$as_save_IFS
3389
3390 rm -rf conftest.one conftest.two conftest.dir
3391
3392 fi
3393   if test "${ac_cv_path_install+set}" = set; then
3394     INSTALL=$ac_cv_path_install
3395   else
3396     # As a last resort, use the slow shell script.  Don't cache a
3397     # value for INSTALL within a source directory, because that will
3398     # break other packages using the cache if that directory is
3399     # removed, or if the value is a relative name.
3400     INSTALL=$ac_install_sh
3401   fi
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3404 $as_echo "$INSTALL" >&6; }
3405
3406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3407 # It thinks the first close brace ends the variable substitution.
3408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3409
3410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3411
3412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3413
3414
3415 # Checks for compilation model.
3416 # Check whether --enable-largefile was given.
3417 if test "${enable_largefile+set}" = set; then :
3418   enableval=$enable_largefile;
3419 fi
3420
3421 if test "$enable_largefile" != no; then
3422
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3424 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3425 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   ac_cv_sys_largefile_CC=no
3429      if test "$GCC" != yes; then
3430        ac_save_CC=$CC
3431        while :; do
3432          # IRIX 6.2 and later do not support large files by default,
3433          # so use the C compiler's -n32 option if that helps.
3434          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436 #include <sys/types.h>
3437  /* Check that off_t can represent 2**63 - 1 correctly.
3438     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3439     since some C++ compilers masquerading as C compilers
3440     incorrectly reject 9223372036854775807.  */
3441 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3442   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3443                        && LARGE_OFF_T % 2147483647 == 1)
3444                       ? 1 : -1];
3445 int
3446 main ()
3447 {
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453          if ac_fn_c_try_compile "$LINENO"; then :
3454   break
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext
3457          CC="$CC -n32"
3458          if ac_fn_c_try_compile "$LINENO"; then :
3459   ac_cv_sys_largefile_CC=' -n32'; break
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext
3462          break
3463        done
3464        CC=$ac_save_CC
3465        rm -f conftest.$ac_ext
3466     fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3469 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3470   if test "$ac_cv_sys_largefile_CC" != no; then
3471     CC=$CC$ac_cv_sys_largefile_CC
3472   fi
3473
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3475 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3476 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   while :; do
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482 #include <sys/types.h>
3483  /* Check that off_t can represent 2**63 - 1 correctly.
3484     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3485     since some C++ compilers masquerading as C compilers
3486     incorrectly reject 9223372036854775807.  */
3487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3488   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3489                        && LARGE_OFF_T % 2147483647 == 1)
3490                       ? 1 : -1];
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_sys_file_offset_bits=no; break
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505 #define _FILE_OFFSET_BITS 64
3506 #include <sys/types.h>
3507  /* Check that off_t can represent 2**63 - 1 correctly.
3508     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3509     since some C++ compilers masquerading as C compilers
3510     incorrectly reject 9223372036854775807.  */
3511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3512   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3513                        && LARGE_OFF_T % 2147483647 == 1)
3514                       ? 1 : -1];
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524   ac_cv_sys_file_offset_bits=64; break
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527   ac_cv_sys_file_offset_bits=unknown
3528   break
3529 done
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3532 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3533 case $ac_cv_sys_file_offset_bits in #(
3534   no | unknown) ;;
3535   *)
3536 cat >>confdefs.h <<_ACEOF
3537 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3538 _ACEOF
3539 ;;
3540 esac
3541 rm -rf conftest*
3542   if test $ac_cv_sys_file_offset_bits = unknown; then
3543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3544 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3545 if test "${ac_cv_sys_large_files+set}" = set; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   while :; do
3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 #include <sys/types.h>
3552  /* Check that off_t can represent 2**63 - 1 correctly.
3553     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3554     since some C++ compilers masquerading as C compilers
3555     incorrectly reject 9223372036854775807.  */
3556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3557   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3558                        && LARGE_OFF_T % 2147483647 == 1)
3559                       ? 1 : -1];
3560 int
3561 main ()
3562 {
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569   ac_cv_sys_large_files=no; break
3570 fi
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574 #define _LARGE_FILES 1
3575 #include <sys/types.h>
3576  /* Check that off_t can represent 2**63 - 1 correctly.
3577     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3578     since some C++ compilers masquerading as C compilers
3579     incorrectly reject 9223372036854775807.  */
3580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3581   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3582                        && LARGE_OFF_T % 2147483647 == 1)
3583                       ? 1 : -1];
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_cv_sys_large_files=1; break
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596   ac_cv_sys_large_files=unknown
3597   break
3598 done
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3601 $as_echo "$ac_cv_sys_large_files" >&6; }
3602 case $ac_cv_sys_large_files in #(
3603   no | unknown) ;;
3604   *)
3605 cat >>confdefs.h <<_ACEOF
3606 #define _LARGE_FILES $ac_cv_sys_large_files
3607 _ACEOF
3608 ;;
3609 esac
3610 rm -rf conftest*
3611   fi
3612 fi
3613
3614
3615 # Checks for general libraries.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3617 $as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3618 if test "${ac_cv_lib_tinfo_tgoto+set}" = set; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   ac_check_lib_save_LIBS=$LIBS
3622 LIBS="-ltinfo  $LIBS"
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625
3626 /* Override any GCC internal prototype to avoid an error.
3627    Use char because int might match the return type of a GCC
3628    builtin and then its argument prototype would still apply.  */
3629 #ifdef __cplusplus
3630 extern "C"
3631 #endif
3632 char tgoto ();
3633 int
3634 main ()
3635 {
3636 return tgoto ();
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_link "$LINENO"; then :
3642   ac_cv_lib_tinfo_tgoto=yes
3643 else
3644   ac_cv_lib_tinfo_tgoto=no
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext \
3647     conftest$ac_exeext conftest.$ac_ext
3648 LIBS=$ac_check_lib_save_LIBS
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3651 $as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3652 if test "x$ac_cv_lib_tinfo_tgoto" = x""yes; then :
3653   have_tinfo=yes
3654 else
3655   have_tinfo=no
3656 fi
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
3659 $as_echo_n "checking for initscr in -lxcurses... " >&6; }
3660 if test "${ac_cv_lib_xcurses_initscr+set}" = set; then :
3661   $as_echo_n "(cached) " >&6
3662 else
3663   ac_check_lib_save_LIBS=$LIBS
3664 LIBS="-lxcurses  $LIBS"
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667
3668 /* Override any GCC internal prototype to avoid an error.
3669    Use char because int might match the return type of a GCC
3670    builtin and then its argument prototype would still apply.  */
3671 #ifdef __cplusplus
3672 extern "C"
3673 #endif
3674 char initscr ();
3675 int
3676 main ()
3677 {
3678 return initscr ();
3679   ;
3680   return 0;
3681 }
3682 _ACEOF
3683 if ac_fn_c_try_link "$LINENO"; then :
3684   ac_cv_lib_xcurses_initscr=yes
3685 else
3686   ac_cv_lib_xcurses_initscr=no
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext \
3689     conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
3693 $as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3694 if test "x$ac_cv_lib_xcurses_initscr" = x""yes; then :
3695   have_xcurses=yes
3696 else
3697   have_xcurses=no
3698 fi
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3701 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3702 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   ac_check_lib_save_LIBS=$LIBS
3706 LIBS="-lncursesw  $LIBS"
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 /* Override any GCC internal prototype to avoid an error.
3711    Use char because int might match the return type of a GCC
3712    builtin and then its argument prototype would still apply.  */
3713 #ifdef __cplusplus
3714 extern "C"
3715 #endif
3716 char initscr ();
3717 int
3718 main ()
3719 {
3720 return initscr ();
3721   ;
3722   return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_link "$LINENO"; then :
3726   ac_cv_lib_ncursesw_initscr=yes
3727 else
3728   ac_cv_lib_ncursesw_initscr=no
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext \
3731     conftest$ac_exeext conftest.$ac_ext
3732 LIBS=$ac_check_lib_save_LIBS
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3735 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3736 if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then :
3737   have_ncursesw=yes
3738 else
3739   have_ncursesw=no
3740 fi
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3743 $as_echo_n "checking for initscr in -lncurses... " >&6; }
3744 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   ac_check_lib_save_LIBS=$LIBS
3748 LIBS="-lncurses  $LIBS"
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h.  */
3751
3752 /* Override any GCC internal prototype to avoid an error.
3753    Use char because int might match the return type of a GCC
3754    builtin and then its argument prototype would still apply.  */
3755 #ifdef __cplusplus
3756 extern "C"
3757 #endif
3758 char initscr ();
3759 int
3760 main ()
3761 {
3762 return initscr ();
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_link "$LINENO"; then :
3768   ac_cv_lib_ncurses_initscr=yes
3769 else
3770   ac_cv_lib_ncurses_initscr=no
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext \
3773     conftest$ac_exeext conftest.$ac_ext
3774 LIBS=$ac_check_lib_save_LIBS
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3777 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3778 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
3779   have_ncurses=yes
3780 else
3781   have_ncurses=no
3782 fi
3783
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3785 $as_echo_n "checking for initscr in -lcurses... " >&6; }
3786 if test "${ac_cv_lib_curses_initscr+set}" = set; then :
3787   $as_echo_n "(cached) " >&6
3788 else
3789   ac_check_lib_save_LIBS=$LIBS
3790 LIBS="-lcurses  $LIBS"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h.  */
3793
3794 /* Override any GCC internal prototype to avoid an error.
3795    Use char because int might match the return type of a GCC
3796    builtin and then its argument prototype would still apply.  */
3797 #ifdef __cplusplus
3798 extern "C"
3799 #endif
3800 char initscr ();
3801 int
3802 main ()
3803 {
3804 return initscr ();
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_link "$LINENO"; then :
3810   ac_cv_lib_curses_initscr=yes
3811 else
3812   ac_cv_lib_curses_initscr=no
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext \
3815     conftest$ac_exeext conftest.$ac_ext
3816 LIBS=$ac_check_lib_save_LIBS
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3819 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
3820 if test "x$ac_cv_lib_curses_initscr" = x""yes; then :
3821   have_curses=yes
3822 else
3823   have_curses=no
3824 fi
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
3827 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
3828 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   ac_check_lib_save_LIBS=$LIBS
3832 LIBS="-ltermcap  $LIBS"
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835
3836 /* Override any GCC internal prototype to avoid an error.
3837    Use char because int might match the return type of a GCC
3838    builtin and then its argument prototype would still apply.  */
3839 #ifdef __cplusplus
3840 extern "C"
3841 #endif
3842 char tgetent ();
3843 int
3844 main ()
3845 {
3846 return tgetent ();
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_link "$LINENO"; then :
3852   ac_cv_lib_termcap_tgetent=yes
3853 else
3854   ac_cv_lib_termcap_tgetent=no
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext \
3857     conftest$ac_exeext conftest.$ac_ext
3858 LIBS=$ac_check_lib_save_LIBS
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
3861 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
3862 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
3863   have_termcap=yes
3864 else
3865   have_termcap=no
3866 fi
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
3869 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
3870 if test "${ac_cv_lib_termlib_tgetent+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   ac_check_lib_save_LIBS=$LIBS
3874 LIBS="-ltermlib  $LIBS"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 /* Override any GCC internal prototype to avoid an error.
3879    Use char because int might match the return type of a GCC
3880    builtin and then its argument prototype would still apply.  */
3881 #ifdef __cplusplus
3882 extern "C"
3883 #endif
3884 char tgetent ();
3885 int
3886 main ()
3887 {
3888 return tgetent ();
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_link "$LINENO"; then :
3894   ac_cv_lib_termlib_tgetent=yes
3895 else
3896   ac_cv_lib_termlib_tgetent=no
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext \
3899     conftest$ac_exeext conftest.$ac_ext
3900 LIBS=$ac_check_lib_save_LIBS
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
3903 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
3904 if test "x$ac_cv_lib_termlib_tgetent" = x""yes; then :
3905   have_termlib=yes
3906 else
3907   have_termlib=no
3908 fi
3909
3910 # Regular expressions (regcmp) are in -lgen on Solaris 2,
3911 # and in -lintl on SCO Unix.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
3913 $as_echo_n "checking for regcmp in -lgen... " >&6; }
3914 if test "${ac_cv_lib_gen_regcmp+set}" = set; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   ac_check_lib_save_LIBS=$LIBS
3918 LIBS="-lgen  $LIBS"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921
3922 /* Override any GCC internal prototype to avoid an error.
3923    Use char because int might match the return type of a GCC
3924    builtin and then its argument prototype would still apply.  */
3925 #ifdef __cplusplus
3926 extern "C"
3927 #endif
3928 char regcmp ();
3929 int
3930 main ()
3931 {
3932 return regcmp ();
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_c_try_link "$LINENO"; then :
3938   ac_cv_lib_gen_regcmp=yes
3939 else
3940   ac_cv_lib_gen_regcmp=no
3941 fi
3942 rm -f core conftest.err conftest.$ac_objext \
3943     conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
3947 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
3948 if test "x$ac_cv_lib_gen_regcmp" = x""yes; then :
3949   cat >>confdefs.h <<_ACEOF
3950 #define HAVE_LIBGEN 1
3951 _ACEOF
3952
3953   LIBS="-lgen $LIBS"
3954
3955 fi
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lintl" >&5
3958 $as_echo_n "checking for regcmp in -lintl... " >&6; }
3959 if test "${ac_cv_lib_intl_regcmp+set}" = set; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   ac_check_lib_save_LIBS=$LIBS
3963 LIBS="-lintl  $LIBS"
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 /* Override any GCC internal prototype to avoid an error.
3968    Use char because int might match the return type of a GCC
3969    builtin and then its argument prototype would still apply.  */
3970 #ifdef __cplusplus
3971 extern "C"
3972 #endif
3973 char regcmp ();
3974 int
3975 main ()
3976 {
3977 return regcmp ();
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_link "$LINENO"; then :
3983   ac_cv_lib_intl_regcmp=yes
3984 else
3985   ac_cv_lib_intl_regcmp=no
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext \
3988     conftest$ac_exeext conftest.$ac_ext
3989 LIBS=$ac_check_lib_save_LIBS
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_regcmp" >&5
3992 $as_echo "$ac_cv_lib_intl_regcmp" >&6; }
3993 if test "x$ac_cv_lib_intl_regcmp" = x""yes; then :
3994   cat >>confdefs.h <<_ACEOF
3995 #define HAVE_LIBINTL 1
3996 _ACEOF
3997
3998   LIBS="-lintl $LIBS"
3999
4000 fi
4001
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lPW" >&5
4003 $as_echo_n "checking for regcmp in -lPW... " >&6; }
4004 if test "${ac_cv_lib_PW_regcmp+set}" = set; then :
4005   $as_echo_n "(cached) " >&6
4006 else
4007   ac_check_lib_save_LIBS=$LIBS
4008 LIBS="-lPW  $LIBS"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h.  */
4011
4012 /* Override any GCC internal prototype to avoid an error.
4013    Use char because int might match the return type of a GCC
4014    builtin and then its argument prototype would still apply.  */
4015 #ifdef __cplusplus
4016 extern "C"
4017 #endif
4018 char regcmp ();
4019 int
4020 main ()
4021 {
4022 return regcmp ();
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_link "$LINENO"; then :
4028   ac_cv_lib_PW_regcmp=yes
4029 else
4030   ac_cv_lib_PW_regcmp=no
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext \
4033     conftest$ac_exeext conftest.$ac_ext
4034 LIBS=$ac_check_lib_save_LIBS
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_regcmp" >&5
4037 $as_echo "$ac_cv_lib_PW_regcmp" >&6; }
4038 if test "x$ac_cv_lib_PW_regcmp" = x""yes; then :
4039   cat >>confdefs.h <<_ACEOF
4040 #define HAVE_LIBPW 1
4041 _ACEOF
4042
4043   LIBS="-lPW $LIBS"
4044
4045 fi
4046
4047
4048 # Checks for terminal libraries
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
4050 $as_echo_n "checking for working terminal libraries... " >&6; }
4051 TERMLIBS=
4052
4053 # Check for systems where curses is broken.
4054 curses_broken=0
4055 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4056 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4057    curses_broken=1
4058 fi
4059 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4060    curses_broken=1
4061 fi
4062 fi
4063
4064 if test $curses_broken = 0; then
4065
4066 # -- Try tinfo.
4067 if test "x$TERMLIBS" = x; then
4068   if test $have_tinfo = yes; then
4069     TERMLIBS="-ltinfo"
4070     SAVE_LIBS=$LIBS
4071     LIBS="$LIBS $TERMLIBS"
4072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074
4075 int
4076 main ()
4077 {
4078 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_link "$LINENO"; then :
4084   termok=yes
4085 else
4086   termok=no
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext \
4089     conftest$ac_exeext conftest.$ac_ext
4090     LIBS=$SAVE_LIBS
4091     if test $termok = no; then TERMLIBS=""; fi
4092   fi
4093 fi
4094
4095 # -- Try xcurses.
4096 if test "x$TERMLIBS" = x; then
4097   if test $have_xcurses = yes; then
4098     TERMLIBS="-lxcurses"
4099     SAVE_LIBS=$LIBS
4100     LIBS="$LIBS $TERMLIBS"
4101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h.  */
4103
4104 int
4105 main ()
4106 {
4107 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_link "$LINENO"; then :
4113   termok=yes
4114 else
4115   termok=no
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext \
4118     conftest$ac_exeext conftest.$ac_ext
4119     LIBS=$SAVE_LIBS
4120     if test $termok = no; then TERMLIBS=""; fi
4121   fi
4122 fi
4123
4124 # -- Try ncursesw.
4125 if test "x$TERMLIBS" = x; then
4126   if test $have_ncursesw = yes; then
4127     TERMLIBS="-lncursesw"
4128     SAVE_LIBS=$LIBS
4129     LIBS="$LIBS $TERMLIBS"
4130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h.  */
4132
4133 int
4134 main ()
4135 {
4136 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_link "$LINENO"; then :
4142   termok=yes
4143 else
4144   termok=no
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext \
4147     conftest$ac_exeext conftest.$ac_ext
4148     LIBS=$SAVE_LIBS
4149     if test $termok = no; then TERMLIBS=""; fi
4150   fi
4151 fi
4152
4153 # -- Try ncurses.
4154 if test "x$TERMLIBS" = x; then
4155   if test $have_ncurses = yes; then
4156     TERMLIBS="-lncurses"
4157     SAVE_LIBS=$LIBS
4158     LIBS="$LIBS $TERMLIBS"
4159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161
4162 int
4163 main ()
4164 {
4165 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_link "$LINENO"; then :
4171   termok=yes
4172 else
4173   termok=no
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext \
4176     conftest$ac_exeext conftest.$ac_ext
4177     LIBS=$SAVE_LIBS
4178     if test $termok = no; then TERMLIBS=""; fi
4179   fi
4180 fi
4181
4182 # -- Try curses.
4183 if test "x$TERMLIBS" = x; then
4184   if test $have_curses = yes; then
4185     TERMLIBS="-lcurses"
4186     SAVE_LIBS=$LIBS
4187     LIBS="$LIBS $TERMLIBS"
4188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h.  */
4190
4191 int
4192 main ()
4193 {
4194 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_link "$LINENO"; then :
4200   termok=yes
4201 else
4202   termok=no
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext \
4205     conftest$ac_exeext conftest.$ac_ext
4206     LIBS=$SAVE_LIBS
4207     if test $termok = no; then TERMLIBS=""; fi
4208   fi
4209 fi
4210
4211 # -- Try curses & termcap.
4212 if test "x$TERMLIBS" = x; then
4213   if test $have_curses = yes; then
4214   if test $have_termcap = yes; then
4215     TERMLIBS="-lcurses -ltermcap"
4216     SAVE_LIBS=$LIBS
4217     LIBS="$LIBS $TERMLIBS"
4218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220
4221 int
4222 main ()
4223 {
4224 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 if ac_fn_c_try_link "$LINENO"; then :
4230   termok=yes
4231 else
4232   termok=no
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext \
4235     conftest$ac_exeext conftest.$ac_ext
4236     LIBS=$SAVE_LIBS
4237     if test $termok = no; then TERMLIBS=""; fi
4238   fi
4239   fi
4240 fi
4241 fi
4242
4243 # -- Try termcap.
4244 if test "x$TERMLIBS" = x; then
4245   if test $have_termcap = yes; then
4246     TERMLIBS="-ltermcap"
4247     SAVE_LIBS=$LIBS
4248     LIBS="$LIBS $TERMLIBS"
4249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_c_try_link "$LINENO"; then :
4261   termok=yes
4262 else
4263   termok=no
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext \
4266     conftest$ac_exeext conftest.$ac_ext
4267     LIBS=$SAVE_LIBS
4268     if test $termok = no; then TERMLIBS=""; fi
4269   fi
4270 fi
4271
4272 # -- Try termlib.
4273 if test "x$TERMLIBS" = x; then
4274   if test $have_termlib = yes; then
4275     TERMLIBS="-lcurses -ltermlib"
4276     SAVE_LIBS=$LIBS
4277     LIBS="$LIBS $TERMLIBS"
4278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_link "$LINENO"; then :
4290   termok=yes
4291 else
4292   termok=no
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext \
4295     conftest$ac_exeext conftest.$ac_ext
4296     LIBS=$SAVE_LIBS
4297     if test $termok = no; then TERMLIBS=""; fi
4298   fi
4299 fi
4300
4301 if test "x$TERMLIBS" = x; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4303 $as_echo "Cannot find terminal libraries - configure failed" >&6; }
4304   exit 1
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4307 $as_echo "using $TERMLIBS" >&6; }
4308 LIBS="$LIBS $TERMLIBS"
4309
4310 # Checks for header files.
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4312 $as_echo_n "checking for ANSI C header files... " >&6; }
4313 if test "${ac_cv_header_stdc+set}" = set; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h.  */
4318 #include <stdlib.h>
4319 #include <stdarg.h>
4320 #include <string.h>
4321 #include <float.h>
4322
4323 int
4324 main ()
4325 {
4326
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_c_try_compile "$LINENO"; then :
4332   ac_cv_header_stdc=yes
4333 else
4334   ac_cv_header_stdc=no
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337
4338 if test $ac_cv_header_stdc = yes; then
4339   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342 #include <string.h>
4343
4344 _ACEOF
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346   $EGREP "memchr" >/dev/null 2>&1; then :
4347
4348 else
4349   ac_cv_header_stdc=no
4350 fi
4351 rm -f conftest*
4352
4353 fi
4354
4355 if test $ac_cv_header_stdc = yes; then
4356   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h.  */
4359 #include <stdlib.h>
4360
4361 _ACEOF
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363   $EGREP "free" >/dev/null 2>&1; then :
4364
4365 else
4366   ac_cv_header_stdc=no
4367 fi
4368 rm -f conftest*
4369
4370 fi
4371
4372 if test $ac_cv_header_stdc = yes; then
4373   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4374   if test "$cross_compiling" = yes; then :
4375   :
4376 else
4377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h.  */
4379 #include <ctype.h>
4380 #include <stdlib.h>
4381 #if ((' ' & 0x0FF) == 0x020)
4382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4384 #else
4385 # define ISLOWER(c) \
4386                    (('a' <= (c) && (c) <= 'i') \
4387                      || ('j' <= (c) && (c) <= 'r') \
4388                      || ('s' <= (c) && (c) <= 'z'))
4389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4390 #endif
4391
4392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4393 int
4394 main ()
4395 {
4396   int i;
4397   for (i = 0; i < 256; i++)
4398     if (XOR (islower (i), ISLOWER (i))
4399         || toupper (i) != TOUPPER (i))
4400       return 2;
4401   return 0;
4402 }
4403 _ACEOF
4404 if ac_fn_c_try_run "$LINENO"; then :
4405
4406 else
4407   ac_cv_header_stdc=no
4408 fi
4409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4410   conftest.$ac_objext conftest.beam conftest.$ac_ext
4411 fi
4412
4413 fi
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4416 $as_echo "$ac_cv_header_stdc" >&6; }
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4420
4421 fi
4422
4423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425                   inttypes.h stdint.h unistd.h
4426 do :
4427   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4429 "
4430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4431   cat >>confdefs.h <<_ACEOF
4432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4433 _ACEOF
4434
4435 fi
4436
4437 done
4438
4439
4440 for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h
4441 do :
4442   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4445   cat >>confdefs.h <<_ACEOF
4446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4447 _ACEOF
4448
4449 fi
4450
4451 done
4452
4453
4454 # Checks for typedefs, structures, and compiler characteristics.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4456 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4457 if test "${ac_cv_header_stat_broken+set}" = set; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462 #include <sys/types.h>
4463 #include <sys/stat.h>
4464
4465 #if defined S_ISBLK && defined S_IFDIR
4466 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4467 #endif
4468
4469 #if defined S_ISBLK && defined S_IFCHR
4470 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4471 #endif
4472
4473 #if defined S_ISLNK && defined S_IFREG
4474 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4475 #endif
4476
4477 #if defined S_ISSOCK && defined S_IFREG
4478 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4479 #endif
4480
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483   ac_cv_header_stat_broken=no
4484 else
4485   ac_cv_header_stat_broken=yes
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4490 $as_echo "$ac_cv_header_stat_broken" >&6; }
4491 if test $ac_cv_header_stat_broken = yes; then
4492
4493 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4494
4495 fi
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4498 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4499 if test "${ac_cv_c_const+set}" = set; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508 /* FIXME: Include the comments suggested by Paul. */
4509 #ifndef __cplusplus
4510   /* Ultrix mips cc rejects this.  */
4511   typedef int charset[2];
4512   const charset cs;
4513   /* SunOS 4.1.1 cc rejects this.  */
4514   char const *const *pcpcc;
4515   char **ppc;
4516   /* NEC SVR4.0.2 mips cc rejects this.  */
4517   struct point {int x, y;};
4518   static struct point const zero = {0,0};
4519   /* AIX XL C 1.02.0.0 rejects this.
4520      It does not let you subtract one const X* pointer from another in
4521      an arm of an if-expression whose if-part is not a constant
4522      expression */
4523   const char *g = "string";
4524   pcpcc = &g + (g ? g-g : 0);
4525   /* HPUX 7.0 cc rejects these. */
4526   ++pcpcc;
4527   ppc = (char**) pcpcc;
4528   pcpcc = (char const *const *) ppc;
4529   { /* SCO 3.2v4 cc rejects this.  */
4530     char *t;
4531     char const *s = 0 ? (char *) 0 : (char const *) 0;
4532
4533     *t++ = 0;
4534     if (s) return 0;
4535   }
4536   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4537     int x[] = {25, 17};
4538     const int *foo = &x[0];
4539     ++foo;
4540   }
4541   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4542     typedef const int *iptr;
4543     iptr p = 0;
4544     ++p;
4545   }
4546   { /* AIX XL C 1.02.0.0 rejects this saying
4547        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4548     struct s { int j; const int *ap[3]; };
4549     struct s *b; b->j = 5;
4550   }
4551   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4552     const int foo = 10;
4553     if (!foo) return 0;
4554   }
4555   return !cs[0] && !zero.x;
4556 #endif
4557
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563   ac_cv_c_const=yes
4564 else
4565   ac_cv_c_const=no
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4570 $as_echo "$ac_cv_c_const" >&6; }
4571 if test $ac_cv_c_const = no; then
4572
4573 $as_echo "#define const /**/" >>confdefs.h
4574
4575 fi
4576
4577 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4578 if test "x$ac_cv_type_off_t" = x""yes; then :
4579
4580 else
4581
4582 cat >>confdefs.h <<_ACEOF
4583 #define off_t long int
4584 _ACEOF
4585
4586 fi
4587
4588 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4589 if test "x$ac_cv_type_size_t" = x""yes; then :
4590
4591 else
4592
4593 cat >>confdefs.h <<_ACEOF
4594 #define size_t unsigned int
4595 _ACEOF
4596
4597 fi
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4600 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4601 if test "${ac_cv_header_time+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606 #include <sys/types.h>
4607 #include <sys/time.h>
4608 #include <time.h>
4609
4610 int
4611 main ()
4612 {
4613 if ((struct tm *) 0)
4614 return 0;
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620   ac_cv_header_time=yes
4621 else
4622   ac_cv_header_time=no
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4627 $as_echo "$ac_cv_header_time" >&6; }
4628 if test $ac_cv_header_time = yes; then
4629
4630 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4631
4632 fi
4633
4634
4635 # Autoheader templates for symbols defined later by AC_DEFINE.
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 # Checks for identifiers.
4665 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4666 if test "x$ac_cv_type_off_t" = x""yes; then :
4667
4668 else
4669
4670 cat >>confdefs.h <<_ACEOF
4671 #define off_t long int
4672 _ACEOF
4673
4674 fi
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4677 $as_echo_n "checking for void... " >&6; }
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680
4681 int
4682 main ()
4683 {
4684 void *foo = 0;
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691 $as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
4692
4693 else
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4699 $as_echo_n "checking for const... " >&6; }
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702
4703 int
4704 main ()
4705 {
4706 const int foo = 0;
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
4714
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4721 $as_echo_n "checking for time_t... " >&6; }
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <time.h>
4725 int
4726 main ()
4727 {
4728 time_t t = 0;
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4735 $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
4736
4737 else
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4743 $as_echo_n "checking for st_ino in struct stat... " >&6; }
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h.  */
4746 #include <sys/types.h>
4747 #include <sys/stat.h>
4748 int
4749 main ()
4750 {
4751 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4759
4760 else
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765
4766 # Checks for library functions.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4768 $as_echo_n "checking return type of signal handlers... " >&6; }
4769 if test "${ac_cv_type_signal+set}" = set; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774 #include <sys/types.h>
4775 #include <signal.h>
4776
4777 int
4778 main ()
4779 {
4780 return *(signal (0, 0)) (0) == 1;
4781   ;
4782   return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786   ac_cv_type_signal=int
4787 else
4788   ac_cv_type_signal=void
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4793 $as_echo "$ac_cv_type_signal" >&6; }
4794
4795 cat >>confdefs.h <<_ACEOF
4796 #define RETSIGTYPE $ac_cv_type_signal
4797 _ACEOF
4798
4799
4800 for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4801 do :
4802   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4805   cat >>confdefs.h <<_ACEOF
4806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4807 _ACEOF
4808
4809 fi
4810 done
4811
4812
4813 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4815 $as_echo_n "checking for memcpy... " >&6; }
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818
4819 #if HAVE_STRING_H
4820 #include <string.h>
4821 #endif
4822 int
4823 main ()
4824 {
4825 memcpy(0,0,0);
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_link "$LINENO"; then :
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832 $as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4833
4834 else
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext \
4839     conftest$ac_exeext conftest.$ac_ext
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4842 $as_echo_n "checking for strchr... " >&6; }
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845
4846 #if HAVE_STRING_H
4847 #include <string.h>
4848 #endif
4849 int
4850 main ()
4851 {
4852 strchr("x",'x');
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_link "$LINENO"; then :
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4859 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4860
4861 else
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext \
4866     conftest$ac_exeext conftest.$ac_ext
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4869 $as_echo_n "checking for strstr... " >&6; }
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h.  */
4872
4873 #if HAVE_STRING_H
4874 #include <string.h>
4875 #endif
4876 int
4877 main ()
4878 {
4879 strstr("x","x");
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_link "$LINENO"; then :
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4886 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4887
4888 else
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext \
4893     conftest$ac_exeext conftest.$ac_ext
4894
4895 # Some systems have termios.h but not the corresponding functions.
4896 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4897 if test "x$ac_cv_func_tcgetattr" = x""yes; then :
4898   $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4899
4900 fi
4901
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4904 $as_echo_n "checking for fileno... " >&6; }
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h.  */
4907
4908 #if HAVE_STDIO_H
4909 #include <stdio.h>
4910 #endif
4911 int
4912 main ()
4913 {
4914 static int x; x = fileno(stdin);
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_link "$LINENO"; then :
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
4922
4923 else
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927 rm -f core conftest.err conftest.$ac_objext \
4928     conftest$ac_exeext conftest.$ac_ext
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4931 $as_echo_n "checking for strerror... " >&6; }
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934
4935 #if HAVE_STDIO_H
4936 #include <stdio.h>
4937 #endif
4938 #if HAVE_STRING_H
4939 #include <string.h>
4940 #endif
4941 #if HAVE_ERRNO_H
4942 #include <errno.h>
4943 #endif
4944 int
4945 main ()
4946 {
4947 static char *x; x = strerror(0);
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_link "$LINENO"; then :
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4954 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
4955
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext \
4961     conftest$ac_exeext conftest.$ac_ext
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4964 $as_echo_n "checking for sys_errlist... " >&6; }
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h.  */
4967
4968 int
4969 main ()
4970 {
4971 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4972   ;
4973   return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_link "$LINENO"; then :
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4978 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
4979
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext \
4985     conftest$ac_exeext conftest.$ac_ext
4986
4987 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4988 "
4989 if test "x$ac_cv_type_sigset_t" = x""yes; then :
4990
4991 cat >>confdefs.h <<_ACEOF
4992 #define HAVE_SIGSET_T 1
4993 _ACEOF
4994
4995
4996 fi
4997
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
5000 $as_echo_n "checking for sigemptyset... " >&6; }
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h.  */
5003
5004 #include <signal.h>
5005
5006 int
5007 main ()
5008 {
5009 sigset_t s; sigemptyset(&s);
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_c_try_link "$LINENO"; then :
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
5017
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext \
5023     conftest$ac_exeext conftest.$ac_ext
5024
5025 have_errno=no
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
5027 $as_echo_n "checking for errno... " >&6; }
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h.  */
5030
5031 #if HAVE_ERRNO_H
5032 #include <errno.h>
5033 #endif
5034 int
5035 main ()
5036 {
5037 static int x; x = errno;
5038   ;
5039   return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_link "$LINENO"; then :
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5044 $as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5045  have_errno=yes
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext \
5048     conftest$ac_exeext conftest.$ac_ext
5049 if test $have_errno = no; then
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052
5053 #if HAVE_ERRNO_H
5054 #include <errno.h>
5055 #endif
5056 int
5057 main ()
5058 {
5059 extern int errno; static int x; x = errno;
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_link "$LINENO"; then :
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5066 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5067  $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5068
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext \
5074     conftest$ac_exeext conftest.$ac_ext
5075 fi
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5078 $as_echo_n "checking for locale... " >&6; }
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h.  */
5081 #include <locale.h>
5082 #include <ctype.h>
5083 #include <langinfo.h>
5084 int
5085 main ()
5086 {
5087 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5088   ;
5089   return 0;
5090 }
5091 _ACEOF
5092 if ac_fn_c_try_link "$LINENO"; then :
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
5095
5096 else
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext \
5101     conftest$ac_exeext conftest.$ac_ext
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5104 $as_echo_n "checking for ctype functions... " >&6; }
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h.  */
5107
5108 #if HAVE_CTYPE_H
5109 #include <ctype.h>
5110 #endif
5111 int
5112 main ()
5113 {
5114 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5115   ;
5116   return 0;
5117 }
5118 _ACEOF
5119 if ac_fn_c_try_link "$LINENO"; then :
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121 $as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5122
5123 else
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext \
5128     conftest$ac_exeext conftest.$ac_ext
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5131 $as_echo_n "checking for wctype functions... " >&6; }
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h.  */
5134 #include <wctype.h>
5135 int
5136 main ()
5137 {
5138 iswlower(0); iswupper(0); towlower(0); towupper(0);
5139   ;
5140   return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_link "$LINENO"; then :
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 $as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5146
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext \
5152     conftest$ac_exeext conftest.$ac_ext
5153
5154 # Checks for external variable ospeed in the termcap library.
5155 have_ospeed=no
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5157 $as_echo_n "checking termcap for ospeed... " >&6; }
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h.  */
5160
5161 #include <sys/types.h>
5162 #if HAVE_TERMIOS_H
5163 #include <termios.h>
5164 #endif
5165 #if HAVE_TERMCAP_H
5166 #include <termcap.h>
5167 #endif
5168 int
5169 main ()
5170 {
5171 ospeed = 0;
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 if ac_fn_c_try_link "$LINENO"; then :
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5178 $as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5179  have_ospeed=yes
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext \
5182     conftest$ac_exeext conftest.$ac_ext
5183 if test $have_ospeed = no; then
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h.  */
5186
5187 int
5188 main ()
5189 {
5190 extern short ospeed; ospeed = 0;
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 if ac_fn_c_try_link "$LINENO"; then :
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5197 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5198  $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5199
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext \
5205     conftest$ac_exeext conftest.$ac_ext
5206 fi
5207
5208 # Compile in secure mode?
5209
5210 # Check whether --with-secure was given.
5211 if test "${with_secure+set}" = set; then :
5212   withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5213
5214 else
5215   $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5216
5217 fi
5218
5219
5220 # Should we use floating point?
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5222 $as_echo_n "checking for floating point... " >&6; }
5223
5224 # Check whether --with-no-float was given.
5225 if test "${with_no_float+set}" = set; then :
5226   withval=$with_no_float; WANT_NO_FLOAT=1
5227 else
5228   WANT_NO_FLOAT=0
5229 fi
5230
5231 if test $WANT_NO_FLOAT = 0; then
5232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h.  */
5234
5235 int
5236 main ()
5237 {
5238 double f1 = 12.5; double f2 = f1*f1/2.5;
5239   ;
5240   return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_link "$LINENO"; then :
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5245 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5246
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext \
5252     conftest$ac_exeext conftest.$ac_ext
5253 else
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5255 $as_echo "disabled by user" >&6; }
5256 fi
5257
5258 # Checks for regular expression functions.
5259 have_regex=no
5260 have_posix_regex=unknown
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5
5262 $as_echo_n "checking for regcomp... " >&6; }
5263
5264 # Select a regular expression library.
5265 WANT_REGEX=auto
5266
5267 # Check whether --with-regex was given.
5268 if test "${with_regex+set}" = set; then :
5269   withval=$with_regex; WANT_REGEX="$withval"
5270 fi
5271
5272
5273 if test $have_regex = no; then
5274 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5275 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5276 # So we run a test program.  If we're cross-compiling, do it the old way.
5277 if test "$cross_compiling" = yes; then :
5278   have_posix_regex=unknown
5279 else
5280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h.  */
5282
5283 #include <sys/types.h>
5284 #include <regex.h>
5285 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5286 if (regcomp(&r, "abc", 0)) exit(1);
5287 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5288 #ifndef __WATCOMC__
5289 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5290 #else
5291 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5292 #endif
5293 exit(0); }
5294 _ACEOF
5295 if ac_fn_c_try_run "$LINENO"; then :
5296   have_posix_regex=yes
5297 else
5298   have_posix_regex=no
5299 fi
5300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5301   conftest.$ac_objext conftest.beam conftest.$ac_ext
5302 fi
5303
5304 if test $have_posix_regex = yes; then
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5
5306 $as_echo "using POSIX regcomp" >&6; }
5307   $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5308
5309   have_regex=yes
5310 elif test $have_posix_regex = unknown; then
5311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h.  */
5313
5314 #include <sys/types.h>
5315 #include <regex.h>
5316 int
5317 main ()
5318 {
5319 regex_t *r; regfree(r);
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_link "$LINENO"; then :
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5
5326 $as_echo "using POSIX regcomp" >&6; }
5327   $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5328  have_regex=yes
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext \
5331     conftest$ac_exeext conftest.$ac_ext
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336 fi
5337 fi
5338
5339 if test $have_regex = no; then
5340 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5342 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5343 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lpcre  $LIBS"
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350
5351 /* Override any GCC internal prototype to avoid an error.
5352    Use char because int might match the return type of a GCC
5353    builtin and then its argument prototype would still apply.  */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 char pcre_compile ();
5358 int
5359 main ()
5360 {
5361 return pcre_compile ();
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"; then :
5367   ac_cv_lib_pcre_pcre_compile=yes
5368 else
5369   ac_cv_lib_pcre_pcre_compile=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372     conftest$ac_exeext conftest.$ac_ext
5373 LIBS=$ac_check_lib_save_LIBS
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5376 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5377 if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then :
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using pcre" >&5
5379 $as_echo "using pcre" >&6; }; $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5380  LIBS="$LIBS -lpcre" have_regex=yes
5381 fi
5382
5383 fi
5384 fi
5385
5386 if test $have_regex = no; then
5387 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5388 ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5389 if test "x$ac_cv_func_regcmp" = x""yes; then :
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using regcmp" >&5
5391 $as_echo "using regcmp" >&6; }; $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5392  have_regex=yes
5393 fi
5394
5395 fi
5396 fi
5397
5398 if test $have_regex = no; then
5399 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h.  */
5402
5403 #include "regexp.h"
5404 int
5405 main ()
5406 {
5407 regcomp("");
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_link "$LINENO"; then :
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp" >&5
5414 $as_echo "using V8 regcomp" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5415  have_regex=yes
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext \
5418     conftest$ac_exeext conftest.$ac_ext
5419 fi
5420 fi
5421
5422 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5423 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5425 $as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5426  $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
5427  REGEX_O='regexp.$(O)'  have_regex=yes
5428 fi
5429 fi
5430
5431 if test $have_regex = no; then
5432 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using re_comp" >&5
5434 $as_echo "using re_comp" >&6; }; ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5435 if test "x$ac_cv_func_re_comp" = x""yes; then :
5436   $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5437  have_regex=yes
5438 fi
5439
5440 fi
5441 fi
5442
5443 if test $have_regex = no; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find regular expression library" >&5
5445 $as_echo "cannot find regular expression library" >&6; }; $as_echo "#define NO_REGEX 1" >>confdefs.h
5446
5447 fi
5448
5449
5450 # Check whether --with-editor was given.
5451 if test "${with_editor+set}" = set; then :
5452   withval=$with_editor; cat >>confdefs.h <<_ACEOF
5453 #define EDIT_PGM "$withval"
5454 _ACEOF
5455
5456 else
5457   $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
5458
5459 fi
5460
5461
5462
5463
5464 ac_config_files="$ac_config_files Makefile"
5465
5466 cat >confcache <<\_ACEOF
5467 # This file is a shell script that caches the results of configure
5468 # tests run on this system so they can be shared between configure
5469 # scripts and configure runs, see configure's option --config-cache.
5470 # It is not useful on other systems.  If it contains results you don't
5471 # want to keep, you may remove or edit it.
5472 #
5473 # config.status only pays attention to the cache file if you give it
5474 # the --recheck option to rerun configure.
5475 #
5476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5478 # following values.
5479
5480 _ACEOF
5481
5482 # The following way of writing the cache mishandles newlines in values,
5483 # but we know of no workaround that is simple, portable, and efficient.
5484 # So, we kill variables containing newlines.
5485 # Ultrix sh set writes to stderr and can't be redirected directly,
5486 # and sets the high bit in the cache file unless we assign to the vars.
5487 (
5488   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5489     eval ac_val=\$$ac_var
5490     case $ac_val in #(
5491     *${as_nl}*)
5492       case $ac_var in #(
5493       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5495       esac
5496       case $ac_var in #(
5497       _ | IFS | as_nl) ;; #(
5498       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5499       *) { eval $ac_var=; unset $ac_var;} ;;
5500       esac ;;
5501     esac
5502   done
5503
5504   (set) 2>&1 |
5505     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5506     *${as_nl}ac_space=\ *)
5507       # `set' does not quote correctly, so add quotes: double-quote
5508       # substitution turns \\\\ into \\, and sed turns \\ into \.
5509       sed -n \
5510         "s/'/'\\\\''/g;
5511           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5512       ;; #(
5513     *)
5514       # `set' quotes correctly as required by POSIX, so do not add quotes.
5515       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5516       ;;
5517     esac |
5518     sort
5519 ) |
5520   sed '
5521      /^ac_cv_env_/b end
5522      t clear
5523      :clear
5524      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5525      t end
5526      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5527      :end' >>confcache
5528 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5529   if test -w "$cache_file"; then
5530     test "x$cache_file" != "x/dev/null" &&
5531       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5532 $as_echo "$as_me: updating cache $cache_file" >&6;}
5533     cat confcache >$cache_file
5534   else
5535     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5537   fi
5538 fi
5539 rm -f confcache
5540
5541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5542 # Let make expand exec_prefix.
5543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5544
5545 DEFS=-DHAVE_CONFIG_H
5546
5547 ac_libobjs=
5548 ac_ltlibobjs=
5549 U=
5550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5551   # 1. Remove the extension, and $U if already installed.
5552   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5553   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5554   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5555   #    will be set to the directory where LIBOBJS objects are built.
5556   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5557   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5558 done
5559 LIBOBJS=$ac_libobjs
5560
5561 LTLIBOBJS=$ac_ltlibobjs
5562
5563
5564
5565 : ${CONFIG_STATUS=./config.status}
5566 ac_write_fail=0
5567 ac_clean_files_save=$ac_clean_files
5568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5571 as_write_fail=0
5572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5573 #! $SHELL
5574 # Generated by $as_me.
5575 # Run this file to recreate the current configuration.
5576 # Compiler output produced by configure, useful for debugging
5577 # configure, is in config.log if it exists.
5578
5579 debug=false
5580 ac_cs_recheck=false
5581 ac_cs_silent=false
5582
5583 SHELL=\${CONFIG_SHELL-$SHELL}
5584 export SHELL
5585 _ASEOF
5586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5587 ## -------------------- ##
5588 ## M4sh Initialization. ##
5589 ## -------------------- ##
5590
5591 # Be more Bourne compatible
5592 DUALCASE=1; export DUALCASE # for MKS sh
5593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5594   emulate sh
5595   NULLCMD=:
5596   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5597   # is contrary to our usage.  Disable this feature.
5598   alias -g '${1+"$@"}'='"$@"'
5599   setopt NO_GLOB_SUBST
5600 else
5601   case `(set -o) 2>/dev/null` in #(
5602   *posix*) :
5603     set -o posix ;; #(
5604   *) :
5605      ;;
5606 esac
5607 fi
5608
5609
5610 as_nl='
5611 '
5612 export as_nl
5613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5617 # Prefer a ksh shell builtin over an external printf program on Solaris,
5618 # but without wasting forks for bash or zsh.
5619 if test -z "$BASH_VERSION$ZSH_VERSION" \
5620     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5621   as_echo='print -r --'
5622   as_echo_n='print -rn --'
5623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5624   as_echo='printf %s\n'
5625   as_echo_n='printf %s'
5626 else
5627   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5628     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5629     as_echo_n='/usr/ucb/echo -n'
5630   else
5631     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5632     as_echo_n_body='eval
5633       arg=$1;
5634       case $arg in #(
5635       *"$as_nl"*)
5636         expr "X$arg" : "X\\(.*\\)$as_nl";
5637         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5638       esac;
5639       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5640     '
5641     export as_echo_n_body
5642     as_echo_n='sh -c $as_echo_n_body as_echo'
5643   fi
5644   export as_echo_body
5645   as_echo='sh -c $as_echo_body as_echo'
5646 fi
5647
5648 # The user is always right.
5649 if test "${PATH_SEPARATOR+set}" != set; then
5650   PATH_SEPARATOR=:
5651   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5652     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5653       PATH_SEPARATOR=';'
5654   }
5655 fi
5656
5657
5658 # IFS
5659 # We need space, tab and new line, in precisely that order.  Quoting is
5660 # there to prevent editors from complaining about space-tab.
5661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5662 # splitting by setting IFS to empty value.)
5663 IFS=" ""        $as_nl"
5664
5665 # Find who we are.  Look in the path if we contain no directory separator.
5666 case $0 in #((
5667   *[\\/]* ) as_myself=$0 ;;
5668   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5674   done
5675 IFS=$as_save_IFS
5676
5677      ;;
5678 esac
5679 # We did not find ourselves, most probably we were run as `sh COMMAND'
5680 # in which case we are not to be found in the path.
5681 if test "x$as_myself" = x; then
5682   as_myself=$0
5683 fi
5684 if test ! -f "$as_myself"; then
5685   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5686   exit 1
5687 fi
5688
5689 # Unset variables that we do not need and which cause bugs (e.g. in
5690 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5691 # suppresses any "Segmentation fault" message there.  '((' could
5692 # trigger a bug in pdksh 5.2.14.
5693 for as_var in BASH_ENV ENV MAIL MAILPATH
5694 do eval test x\${$as_var+set} = xset \
5695   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5696 done
5697 PS1='$ '
5698 PS2='> '
5699 PS4='+ '
5700
5701 # NLS nuisances.
5702 LC_ALL=C
5703 export LC_ALL
5704 LANGUAGE=C
5705 export LANGUAGE
5706
5707 # CDPATH.
5708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5709
5710
5711 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5712 # ----------------------------------------
5713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5715 # script with STATUS, using 1 if that was 0.
5716 as_fn_error ()
5717 {
5718   as_status=$1; test $as_status -eq 0 && as_status=1
5719   if test "$4"; then
5720     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5721     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5722   fi
5723   $as_echo "$as_me: error: $2" >&2
5724   as_fn_exit $as_status
5725 } # as_fn_error
5726
5727
5728 # as_fn_set_status STATUS
5729 # -----------------------
5730 # Set $? to STATUS, without forking.
5731 as_fn_set_status ()
5732 {
5733   return $1
5734 } # as_fn_set_status
5735
5736 # as_fn_exit STATUS
5737 # -----------------
5738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5739 as_fn_exit ()
5740 {
5741   set +e
5742   as_fn_set_status $1
5743   exit $1
5744 } # as_fn_exit
5745
5746 # as_fn_unset VAR
5747 # ---------------
5748 # Portably unset VAR.
5749 as_fn_unset ()
5750 {
5751   { eval $1=; unset $1;}
5752 }
5753 as_unset=as_fn_unset
5754 # as_fn_append VAR VALUE
5755 # ----------------------
5756 # Append the text in VALUE to the end of the definition contained in VAR. Take
5757 # advantage of any shell optimizations that allow amortized linear growth over
5758 # repeated appends, instead of the typical quadratic growth present in naive
5759 # implementations.
5760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5761   eval 'as_fn_append ()
5762   {
5763     eval $1+=\$2
5764   }'
5765 else
5766   as_fn_append ()
5767   {
5768     eval $1=\$$1\$2
5769   }
5770 fi # as_fn_append
5771
5772 # as_fn_arith ARG...
5773 # ------------------
5774 # Perform arithmetic evaluation on the ARGs, and store the result in the
5775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5776 # must be portable across $(()) and expr.
5777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5778   eval 'as_fn_arith ()
5779   {
5780     as_val=$(( $* ))
5781   }'
5782 else
5783   as_fn_arith ()
5784   {
5785     as_val=`expr "$@" || test $? -eq 1`
5786   }
5787 fi # as_fn_arith
5788
5789
5790 if expr a : '\(a\)' >/dev/null 2>&1 &&
5791    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5792   as_expr=expr
5793 else
5794   as_expr=false
5795 fi
5796
5797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5798   as_basename=basename
5799 else
5800   as_basename=false
5801 fi
5802
5803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5804   as_dirname=dirname
5805 else
5806   as_dirname=false
5807 fi
5808
5809 as_me=`$as_basename -- "$0" ||
5810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5811          X"$0" : 'X\(//\)$' \| \
5812          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5813 $as_echo X/"$0" |
5814     sed '/^.*\/\([^/][^/]*\)\/*$/{
5815             s//\1/
5816             q
5817           }
5818           /^X\/\(\/\/\)$/{
5819             s//\1/
5820             q
5821           }
5822           /^X\/\(\/\).*/{
5823             s//\1/
5824             q
5825           }
5826           s/.*/./; q'`
5827
5828 # Avoid depending upon Character Ranges.
5829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5832 as_cr_digits='0123456789'
5833 as_cr_alnum=$as_cr_Letters$as_cr_digits
5834
5835 ECHO_C= ECHO_N= ECHO_T=
5836 case `echo -n x` in #(((((
5837 -n*)
5838   case `echo 'xy\c'` in
5839   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5840   xy)  ECHO_C='\c';;
5841   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5842        ECHO_T=' ';;
5843   esac;;
5844 *)
5845   ECHO_N='-n';;
5846 esac
5847
5848 rm -f conf$$ conf$$.exe conf$$.file
5849 if test -d conf$$.dir; then
5850   rm -f conf$$.dir/conf$$.file
5851 else
5852   rm -f conf$$.dir
5853   mkdir conf$$.dir 2>/dev/null
5854 fi
5855 if (echo >conf$$.file) 2>/dev/null; then
5856   if ln -s conf$$.file conf$$ 2>/dev/null; then
5857     as_ln_s='ln -s'
5858     # ... but there are two gotchas:
5859     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5860     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5861     # In both cases, we have to default to `cp -p'.
5862     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5863       as_ln_s='cp -p'
5864   elif ln conf$$.file conf$$ 2>/dev/null; then
5865     as_ln_s=ln
5866   else
5867     as_ln_s='cp -p'
5868   fi
5869 else
5870   as_ln_s='cp -p'
5871 fi
5872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5873 rmdir conf$$.dir 2>/dev/null
5874
5875
5876 # as_fn_mkdir_p
5877 # -------------
5878 # Create "$as_dir" as a directory, including parents if necessary.
5879 as_fn_mkdir_p ()
5880 {
5881
5882   case $as_dir in #(
5883   -*) as_dir=./$as_dir;;
5884   esac
5885   test -d "$as_dir" || eval $as_mkdir_p || {
5886     as_dirs=
5887     while :; do
5888       case $as_dir in #(
5889       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5890       *) as_qdir=$as_dir;;
5891       esac
5892       as_dirs="'$as_qdir' $as_dirs"
5893       as_dir=`$as_dirname -- "$as_dir" ||
5894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895          X"$as_dir" : 'X\(//\)[^/]' \| \
5896          X"$as_dir" : 'X\(//\)$' \| \
5897          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5898 $as_echo X"$as_dir" |
5899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5900             s//\1/
5901             q
5902           }
5903           /^X\(\/\/\)[^/].*/{
5904             s//\1/
5905             q
5906           }
5907           /^X\(\/\/\)$/{
5908             s//\1/
5909             q
5910           }
5911           /^X\(\/\).*/{
5912             s//\1/
5913             q
5914           }
5915           s/.*/./; q'`
5916       test -d "$as_dir" && break
5917     done
5918     test -z "$as_dirs" || eval "mkdir $as_dirs"
5919   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5920
5921
5922 } # as_fn_mkdir_p
5923 if mkdir -p . 2>/dev/null; then
5924   as_mkdir_p='mkdir -p "$as_dir"'
5925 else
5926   test -d ./-p && rmdir ./-p
5927   as_mkdir_p=false
5928 fi
5929
5930 if test -x / >/dev/null 2>&1; then
5931   as_test_x='test -x'
5932 else
5933   if ls -dL / >/dev/null 2>&1; then
5934     as_ls_L_option=L
5935   else
5936     as_ls_L_option=
5937   fi
5938   as_test_x='
5939     eval sh -c '\''
5940       if test -d "$1"; then
5941         test -d "$1/.";
5942       else
5943         case $1 in #(
5944         -*)set "./$1";;
5945         esac;
5946         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5947         ???[sx]*):;;*)false;;esac;fi
5948     '\'' sh
5949   '
5950 fi
5951 as_executable_p=$as_test_x
5952
5953 # Sed expression to map a string onto a valid CPP name.
5954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5955
5956 # Sed expression to map a string onto a valid variable name.
5957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5958
5959
5960 exec 6>&1
5961 ## ----------------------------------- ##
5962 ## Main body of $CONFIG_STATUS script. ##
5963 ## ----------------------------------- ##
5964 _ASEOF
5965 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5966
5967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5968 # Save the log message, to keep $0 and so on meaningful, and to
5969 # report actual input values of CONFIG_FILES etc. instead of their
5970 # values after options handling.
5971 ac_log="
5972 This file was extended by less $as_me 1, which was
5973 generated by GNU Autoconf 2.67.  Invocation command line was
5974
5975   CONFIG_FILES    = $CONFIG_FILES
5976   CONFIG_HEADERS  = $CONFIG_HEADERS
5977   CONFIG_LINKS    = $CONFIG_LINKS
5978   CONFIG_COMMANDS = $CONFIG_COMMANDS
5979   $ $0 $@
5980
5981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5982 "
5983
5984 _ACEOF
5985
5986 case $ac_config_files in *"
5987 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5988 esac
5989
5990 case $ac_config_headers in *"
5991 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5992 esac
5993
5994
5995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5996 # Files that config.status was made for.
5997 config_files="$ac_config_files"
5998 config_headers="$ac_config_headers"
5999
6000 _ACEOF
6001
6002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6003 ac_cs_usage="\
6004 \`$as_me' instantiates files and other configuration actions
6005 from templates according to the current configuration.  Unless the files
6006 and actions are specified as TAGs, all are instantiated by default.
6007
6008 Usage: $0 [OPTION]... [TAG]...
6009
6010   -h, --help       print this help, then exit
6011   -V, --version    print version number and configuration settings, then exit
6012       --config     print configuration, then exit
6013   -q, --quiet, --silent
6014                    do not print progress messages
6015   -d, --debug      don't remove temporary files
6016       --recheck    update $as_me by reconfiguring in the same conditions
6017       --file=FILE[:TEMPLATE]
6018                    instantiate the configuration file FILE
6019       --header=FILE[:TEMPLATE]
6020                    instantiate the configuration header FILE
6021
6022 Configuration files:
6023 $config_files
6024
6025 Configuration headers:
6026 $config_headers
6027
6028 Report bugs to the package provider."
6029
6030 _ACEOF
6031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6033 ac_cs_version="\\
6034 less config.status 1
6035 configured by $0, generated by GNU Autoconf 2.67,
6036   with options \\"\$ac_cs_config\\"
6037
6038 Copyright (C) 2010 Free Software Foundation, Inc.
6039 This config.status script is free software; the Free Software Foundation
6040 gives unlimited permission to copy, distribute and modify it."
6041
6042 ac_pwd='$ac_pwd'
6043 srcdir='$srcdir'
6044 INSTALL='$INSTALL'
6045 test -n "\$AWK" || AWK=awk
6046 _ACEOF
6047
6048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6049 # The default lists apply if the user does not specify any file.
6050 ac_need_defaults=:
6051 while test $# != 0
6052 do
6053   case $1 in
6054   --*=?*)
6055     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6056     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6057     ac_shift=:
6058     ;;
6059   --*=)
6060     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6061     ac_optarg=
6062     ac_shift=:
6063     ;;
6064   *)
6065     ac_option=$1
6066     ac_optarg=$2
6067     ac_shift=shift
6068     ;;
6069   esac
6070
6071   case $ac_option in
6072   # Handling of the options.
6073   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6074     ac_cs_recheck=: ;;
6075   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6076     $as_echo "$ac_cs_version"; exit ;;
6077   --config | --confi | --conf | --con | --co | --c )
6078     $as_echo "$ac_cs_config"; exit ;;
6079   --debug | --debu | --deb | --de | --d | -d )
6080     debug=: ;;
6081   --file | --fil | --fi | --f )
6082     $ac_shift
6083     case $ac_optarg in
6084     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6085     '') as_fn_error $? "missing file argument" ;;
6086     esac
6087     as_fn_append CONFIG_FILES " '$ac_optarg'"
6088     ac_need_defaults=false;;
6089   --header | --heade | --head | --hea )
6090     $ac_shift
6091     case $ac_optarg in
6092     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6093     esac
6094     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6095     ac_need_defaults=false;;
6096   --he | --h)
6097     # Conflict between --help and --header
6098     as_fn_error $? "ambiguous option: \`$1'
6099 Try \`$0 --help' for more information.";;
6100   --help | --hel | -h )
6101     $as_echo "$ac_cs_usage"; exit ;;
6102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6103   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6104     ac_cs_silent=: ;;
6105
6106   # This is an error.
6107   -*) as_fn_error $? "unrecognized option: \`$1'
6108 Try \`$0 --help' for more information." ;;
6109
6110   *) as_fn_append ac_config_targets " $1"
6111      ac_need_defaults=false ;;
6112
6113   esac
6114   shift
6115 done
6116
6117 ac_configure_extra_args=
6118
6119 if $ac_cs_silent; then
6120   exec 6>/dev/null
6121   ac_configure_extra_args="$ac_configure_extra_args --silent"
6122 fi
6123
6124 _ACEOF
6125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6126 if \$ac_cs_recheck; then
6127   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6128   shift
6129   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6130   CONFIG_SHELL='$SHELL'
6131   export CONFIG_SHELL
6132   exec "\$@"
6133 fi
6134
6135 _ACEOF
6136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6137 exec 5>>config.log
6138 {
6139   echo
6140   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6141 ## Running $as_me. ##
6142 _ASBOX
6143   $as_echo "$ac_log"
6144 } >&5
6145
6146 _ACEOF
6147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6148 _ACEOF
6149
6150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6151
6152 # Handling of arguments.
6153 for ac_config_target in $ac_config_targets
6154 do
6155   case $ac_config_target in
6156     "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6157     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6158
6159   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6160   esac
6161 done
6162
6163
6164 # If the user did not use the arguments to specify the items to instantiate,
6165 # then the envvar interface is used.  Set only those that are not.
6166 # We use the long form for the default assignment because of an extremely
6167 # bizarre bug on SunOS 4.1.3.
6168 if $ac_need_defaults; then
6169   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6170   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6171 fi
6172
6173 # Have a temporary directory for convenience.  Make it in the build tree
6174 # simply because there is no reason against having it here, and in addition,
6175 # creating and moving files from /tmp can sometimes cause problems.
6176 # Hook for its removal unless debugging.
6177 # Note that there is a small window in which the directory will not be cleaned:
6178 # after its creation but before its name has been assigned to `$tmp'.
6179 $debug ||
6180 {
6181   tmp=
6182   trap 'exit_status=$?
6183   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6184 ' 0
6185   trap 'as_fn_exit 1' 1 2 13 15
6186 }
6187 # Create a (secure) tmp directory for tmp files.
6188
6189 {
6190   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6191   test -n "$tmp" && test -d "$tmp"
6192 }  ||
6193 {
6194   tmp=./conf$$-$RANDOM
6195   (umask 077 && mkdir "$tmp")
6196 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6197
6198 # Set up the scripts for CONFIG_FILES section.
6199 # No need to generate them if there are no CONFIG_FILES.
6200 # This happens for instance with `./config.status config.h'.
6201 if test -n "$CONFIG_FILES"; then
6202
6203
6204 ac_cr=`echo X | tr X '\015'`
6205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6206 # But we know of no other shell where ac_cr would be empty at this
6207 # point, so we can use a bashism as a fallback.
6208 if test "x$ac_cr" = x; then
6209   eval ac_cr=\$\'\\r\'
6210 fi
6211 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6213   ac_cs_awk_cr='\\r'
6214 else
6215   ac_cs_awk_cr=$ac_cr
6216 fi
6217
6218 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6219 _ACEOF
6220
6221
6222 {
6223   echo "cat >conf$$subs.awk <<_ACEOF" &&
6224   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6225   echo "_ACEOF"
6226 } >conf$$subs.sh ||
6227   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6228 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6229 ac_delim='%!_!# '
6230 for ac_last_try in false false false false false :; do
6231   . ./conf$$subs.sh ||
6232     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6233
6234   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6235   if test $ac_delim_n = $ac_delim_num; then
6236     break
6237   elif $ac_last_try; then
6238     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6239   else
6240     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6241   fi
6242 done
6243 rm -f conf$$subs.sh
6244
6245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6246 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6247 _ACEOF
6248 sed -n '
6249 h
6250 s/^/S["/; s/!.*/"]=/
6251 p
6252 g
6253 s/^[^!]*!//
6254 :repl
6255 t repl
6256 s/'"$ac_delim"'$//
6257 t delim
6258 :nl
6259 h
6260 s/\(.\{148\}\)..*/\1/
6261 t more1
6262 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6263 p
6264 n
6265 b repl
6266 :more1
6267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6268 p
6269 g
6270 s/.\{148\}//
6271 t nl
6272 :delim
6273 h
6274 s/\(.\{148\}\)..*/\1/
6275 t more2
6276 s/["\\]/\\&/g; s/^/"/; s/$/"/
6277 p
6278 b
6279 :more2
6280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6281 p
6282 g
6283 s/.\{148\}//
6284 t delim
6285 ' <conf$$subs.awk | sed '
6286 /^[^""]/{
6287   N
6288   s/\n//
6289 }
6290 ' >>$CONFIG_STATUS || ac_write_fail=1
6291 rm -f conf$$subs.awk
6292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6293 _ACAWK
6294 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6295   for (key in S) S_is_set[key] = 1
6296   FS = "\a"
6297
6298 }
6299 {
6300   line = $ 0
6301   nfields = split(line, field, "@")
6302   substed = 0
6303   len = length(field[1])
6304   for (i = 2; i < nfields; i++) {
6305     key = field[i]
6306     keylen = length(key)
6307     if (S_is_set[key]) {
6308       value = S[key]
6309       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6310       len += length(value) + length(field[++i])
6311       substed = 1
6312     } else
6313       len += 1 + keylen
6314   }
6315
6316   print line
6317 }
6318
6319 _ACAWK
6320 _ACEOF
6321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6322 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6323   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6324 else
6325   cat
6326 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6327   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6328 _ACEOF
6329
6330 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6331 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6332 # trailing colons and then remove the whole line if VPATH becomes empty
6333 # (actually we leave an empty line to preserve line numbers).
6334 if test "x$srcdir" = x.; then
6335   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6336 h
6337 s///
6338 s/^/:/
6339 s/[      ]*$/:/
6340 s/:\$(srcdir):/:/g
6341 s/:\${srcdir}:/:/g
6342 s/:@srcdir@:/:/g
6343 s/^:*//
6344 s/:*$//
6345 x
6346 s/\(=[   ]*\).*/\1/
6347 G
6348 s/\n//
6349 s/^[^=]*=[       ]*$//
6350 }'
6351 fi
6352
6353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6354 fi # test -n "$CONFIG_FILES"
6355
6356 # Set up the scripts for CONFIG_HEADERS section.
6357 # No need to generate them if there are no CONFIG_HEADERS.
6358 # This happens for instance with `./config.status Makefile'.
6359 if test -n "$CONFIG_HEADERS"; then
6360 cat >"$tmp/defines.awk" <<\_ACAWK ||
6361 BEGIN {
6362 _ACEOF
6363
6364 # Transform confdefs.h into an awk script `defines.awk', embedded as
6365 # here-document in config.status, that substitutes the proper values into
6366 # config.h.in to produce config.h.
6367
6368 # Create a delimiter string that does not exist in confdefs.h, to ease
6369 # handling of long lines.
6370 ac_delim='%!_!# '
6371 for ac_last_try in false false :; do
6372   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6373   if test -z "$ac_t"; then
6374     break
6375   elif $ac_last_try; then
6376     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6377   else
6378     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6379   fi
6380 done
6381
6382 # For the awk script, D is an array of macro values keyed by name,
6383 # likewise P contains macro parameters if any.  Preserve backslash
6384 # newline sequences.
6385
6386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6387 sed -n '
6388 s/.\{148\}/&'"$ac_delim"'/g
6389 t rset
6390 :rset
6391 s/^[     ]*#[    ]*define[       ][      ]*/ /
6392 t def
6393 d
6394 :def
6395 s/\\$//
6396 t bsnl
6397 s/["\\]/\\&/g
6398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6399 D["\1"]=" \3"/p
6400 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6401 d
6402 :bsnl
6403 s/["\\]/\\&/g
6404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6405 D["\1"]=" \3\\\\\\n"\\/p
6406 t cont
6407 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6408 t cont
6409 d
6410 :cont
6411 n
6412 s/.\{148\}/&'"$ac_delim"'/g
6413 t clear
6414 :clear
6415 s/\\$//
6416 t bsnlc
6417 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6418 d
6419 :bsnlc
6420 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6421 b cont
6422 ' <confdefs.h | sed '
6423 s/'"$ac_delim"'/"\\\
6424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6425
6426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6427   for (key in D) D_is_set[key] = 1
6428   FS = "\a"
6429 }
6430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6431   line = \$ 0
6432   split(line, arg, " ")
6433   if (arg[1] == "#") {
6434     defundef = arg[2]
6435     mac1 = arg[3]
6436   } else {
6437     defundef = substr(arg[1], 2)
6438     mac1 = arg[2]
6439   }
6440   split(mac1, mac2, "(") #)
6441   macro = mac2[1]
6442   prefix = substr(line, 1, index(line, defundef) - 1)
6443   if (D_is_set[macro]) {
6444     # Preserve the white space surrounding the "#".
6445     print prefix "define", macro P[macro] D[macro]
6446     next
6447   } else {
6448     # Replace #undef with comments.  This is necessary, for example,
6449     # in the case of _POSIX_SOURCE, which is predefined and required
6450     # on some systems where configure will not decide to define it.
6451     if (defundef == "undef") {
6452       print "/*", prefix defundef, macro, "*/"
6453       next
6454     }
6455   }
6456 }
6457 { print }
6458 _ACAWK
6459 _ACEOF
6460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6461   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6462 fi # test -n "$CONFIG_HEADERS"
6463
6464
6465 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6466 shift
6467 for ac_tag
6468 do
6469   case $ac_tag in
6470   :[FHLC]) ac_mode=$ac_tag; continue;;
6471   esac
6472   case $ac_mode$ac_tag in
6473   :[FHL]*:*);;
6474   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6475   :[FH]-) ac_tag=-:-;;
6476   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6477   esac
6478   ac_save_IFS=$IFS
6479   IFS=:
6480   set x $ac_tag
6481   IFS=$ac_save_IFS
6482   shift
6483   ac_file=$1
6484   shift
6485
6486   case $ac_mode in
6487   :L) ac_source=$1;;
6488   :[FH])
6489     ac_file_inputs=
6490     for ac_f
6491     do
6492       case $ac_f in
6493       -) ac_f="$tmp/stdin";;
6494       *) # Look for the file first in the build tree, then in the source tree
6495          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6496          # because $ac_f cannot contain `:'.
6497          test -f "$ac_f" ||
6498            case $ac_f in
6499            [\\/$]*) false;;
6500            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6501            esac ||
6502            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6503       esac
6504       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6505       as_fn_append ac_file_inputs " '$ac_f'"
6506     done
6507
6508     # Let's still pretend it is `configure' which instantiates (i.e., don't
6509     # use $as_me), people would be surprised to read:
6510     #    /* config.h.  Generated by config.status.  */
6511     configure_input='Generated from '`
6512           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6513         `' by configure.'
6514     if test x"$ac_file" != x-; then
6515       configure_input="$ac_file.  $configure_input"
6516       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6517 $as_echo "$as_me: creating $ac_file" >&6;}
6518     fi
6519     # Neutralize special characters interpreted by sed in replacement strings.
6520     case $configure_input in #(
6521     *\&* | *\|* | *\\* )
6522        ac_sed_conf_input=`$as_echo "$configure_input" |
6523        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6524     *) ac_sed_conf_input=$configure_input;;
6525     esac
6526
6527     case $ac_tag in
6528     *:-:* | *:-) cat >"$tmp/stdin" \
6529       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
6530     esac
6531     ;;
6532   esac
6533
6534   ac_dir=`$as_dirname -- "$ac_file" ||
6535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6536          X"$ac_file" : 'X\(//\)[^/]' \| \
6537          X"$ac_file" : 'X\(//\)$' \| \
6538          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6539 $as_echo X"$ac_file" |
6540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6541             s//\1/
6542             q
6543           }
6544           /^X\(\/\/\)[^/].*/{
6545             s//\1/
6546             q
6547           }
6548           /^X\(\/\/\)$/{
6549             s//\1/
6550             q
6551           }
6552           /^X\(\/\).*/{
6553             s//\1/
6554             q
6555           }
6556           s/.*/./; q'`
6557   as_dir="$ac_dir"; as_fn_mkdir_p
6558   ac_builddir=.
6559
6560 case "$ac_dir" in
6561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6562 *)
6563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6564   # A ".." for each directory in $ac_dir_suffix.
6565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6566   case $ac_top_builddir_sub in
6567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6569   esac ;;
6570 esac
6571 ac_abs_top_builddir=$ac_pwd
6572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6573 # for backward compatibility:
6574 ac_top_builddir=$ac_top_build_prefix
6575
6576 case $srcdir in
6577   .)  # We are building in place.
6578     ac_srcdir=.
6579     ac_top_srcdir=$ac_top_builddir_sub
6580     ac_abs_top_srcdir=$ac_pwd ;;
6581   [\\/]* | ?:[\\/]* )  # Absolute name.
6582     ac_srcdir=$srcdir$ac_dir_suffix;
6583     ac_top_srcdir=$srcdir
6584     ac_abs_top_srcdir=$srcdir ;;
6585   *) # Relative name.
6586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6587     ac_top_srcdir=$ac_top_build_prefix$srcdir
6588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6589 esac
6590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6591
6592
6593   case $ac_mode in
6594   :F)
6595   #
6596   # CONFIG_FILE
6597   #
6598
6599   case $INSTALL in
6600   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6601   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6602   esac
6603 _ACEOF
6604
6605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6606 # If the template does not know about datarootdir, expand it.
6607 # FIXME: This hack should be removed a few years after 2.60.
6608 ac_datarootdir_hack=; ac_datarootdir_seen=
6609 ac_sed_dataroot='
6610 /datarootdir/ {
6611   p
6612   q
6613 }
6614 /@datadir@/p
6615 /@docdir@/p
6616 /@infodir@/p
6617 /@localedir@/p
6618 /@mandir@/p'
6619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6620 *datarootdir*) ac_datarootdir_seen=yes;;
6621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6624 _ACEOF
6625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626   ac_datarootdir_hack='
6627   s&@datadir@&$datadir&g
6628   s&@docdir@&$docdir&g
6629   s&@infodir@&$infodir&g
6630   s&@localedir@&$localedir&g
6631   s&@mandir@&$mandir&g
6632   s&\\\${datarootdir}&$datarootdir&g' ;;
6633 esac
6634 _ACEOF
6635
6636 # Neutralize VPATH when `$srcdir' = `.'.
6637 # Shell code in configure.ac might set extrasub.
6638 # FIXME: do we really want to maintain this feature?
6639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640 ac_sed_extra="$ac_vpsub
6641 $extrasub
6642 _ACEOF
6643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6644 :t
6645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6646 s|@configure_input@|$ac_sed_conf_input|;t t
6647 s&@top_builddir@&$ac_top_builddir_sub&;t t
6648 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6649 s&@srcdir@&$ac_srcdir&;t t
6650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6651 s&@top_srcdir@&$ac_top_srcdir&;t t
6652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6653 s&@builddir@&$ac_builddir&;t t
6654 s&@abs_builddir@&$ac_abs_builddir&;t t
6655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6656 s&@INSTALL@&$ac_INSTALL&;t t
6657 $ac_datarootdir_hack
6658 "
6659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6660   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6661
6662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6663   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6664   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6666 which seems to be undefined.  Please make sure it is defined" >&5
6667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6668 which seems to be undefined.  Please make sure it is defined" >&2;}
6669
6670   rm -f "$tmp/stdin"
6671   case $ac_file in
6672   -) cat "$tmp/out" && rm -f "$tmp/out";;
6673   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6674   esac \
6675   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6676  ;;
6677   :H)
6678   #
6679   # CONFIG_HEADER
6680   #
6681   if test x"$ac_file" != x-; then
6682     {
6683       $as_echo "/* $configure_input  */" \
6684       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6685     } >"$tmp/config.h" \
6686       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6687     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6688       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6690     else
6691       rm -f "$ac_file"
6692       mv "$tmp/config.h" "$ac_file" \
6693         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6694     fi
6695   else
6696     $as_echo "/* $configure_input  */" \
6697       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6698       || as_fn_error $? "could not create -" "$LINENO" 5
6699   fi
6700  ;;
6701
6702
6703   esac
6704
6705 done # for ac_tag
6706
6707
6708 as_fn_exit 0
6709 _ACEOF
6710 ac_clean_files=$ac_clean_files_save
6711
6712 test $ac_write_fail = 0 ||
6713   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6714
6715
6716 # configure is writing to config.log, and then calls config.status.
6717 # config.status does its own redirection, appending to config.log.
6718 # Unfortunately, on DOS this fails, as config.log is still kept open
6719 # by configure, so config.status won't be able to write to it; its
6720 # output is simply discarded.  So we exec the FD to /dev/null,
6721 # effectively closing config.log, so it can be properly (re)opened and
6722 # appended to by config.status.  When coming back to configure, we
6723 # need to make the FD available again.
6724 if test "$no_create" != yes; then
6725   ac_cs_success=:
6726   ac_config_status_args=
6727   test "$silent" = yes &&
6728     ac_config_status_args="$ac_config_status_args --quiet"
6729   exec 5>/dev/null
6730   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6731   exec 5>>config.log
6732   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6733   # would make configure fail if this is the last instruction.
6734   $ac_cs_success || as_fn_exit 1
6735 fi
6736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6739 fi
6740