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