upgrade to 466 version
[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={auto,gnu,pcre,posix,regcmp,re_comp,regcomp,regcomp-local,none}  Select a regular expression library  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 # Checks for identifiers.
4615 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4616 if test "x$ac_cv_type_off_t" = xyes; then :
4617
4618 else
4619
4620 cat >>confdefs.h <<_ACEOF
4621 #define off_t long int
4622 _ACEOF
4623
4624 fi
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4627 $as_echo_n "checking for void... " >&6; }
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630
4631 int
4632 main ()
4633 {
4634 void *foo = 0;
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
4642
4643 else
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4649 $as_echo_n "checking for const... " >&6; }
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h.  */
4652
4653 int
4654 main ()
4655 {
4656 const int foo = 0;
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4663 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
4664
4665 else
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4671 $as_echo_n "checking for time_t... " >&6; }
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h.  */
4674 #include <time.h>
4675 int
4676 main ()
4677 {
4678 time_t t = 0;
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
4686
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4693 $as_echo_n "checking for st_ino in struct stat... " >&6; }
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h.  */
4696 #include <sys/types.h>
4697 #include <sys/stat.h>
4698 int
4699 main ()
4700 {
4701 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4709
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715
4716 # Checks for library functions.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4718 $as_echo_n "checking return type of signal handlers... " >&6; }
4719 if ${ac_cv_type_signal+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <sys/types.h>
4725 #include <signal.h>
4726
4727 int
4728 main ()
4729 {
4730 return *(signal (0, 0)) (0) == 1;
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736   ac_cv_type_signal=int
4737 else
4738   ac_cv_type_signal=void
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4743 $as_echo "$ac_cv_type_signal" >&6; }
4744
4745 cat >>confdefs.h <<_ACEOF
4746 #define RETSIGTYPE $ac_cv_type_signal
4747 _ACEOF
4748
4749
4750 for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4751 do :
4752   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4755   cat >>confdefs.h <<_ACEOF
4756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757 _ACEOF
4758
4759 fi
4760 done
4761
4762
4763 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4765 $as_echo_n "checking for memcpy... " >&6; }
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768
4769 #if HAVE_STRING_H
4770 #include <string.h>
4771 #endif
4772 int
4773 main ()
4774 {
4775 memcpy(0,0,0);
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_link "$LINENO"; then :
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782 $as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4783
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext \
4789     conftest$ac_exeext conftest.$ac_ext
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4792 $as_echo_n "checking for strchr... " >&6; }
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795
4796 #if HAVE_STRING_H
4797 #include <string.h>
4798 #endif
4799 int
4800 main ()
4801 {
4802 strchr("x",'x');
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_link "$LINENO"; then :
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4810
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext \
4816     conftest$ac_exeext conftest.$ac_ext
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4819 $as_echo_n "checking for strstr... " >&6; }
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822
4823 #if HAVE_STRING_H
4824 #include <string.h>
4825 #endif
4826 int
4827 main ()
4828 {
4829 strstr("x","x");
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 if ac_fn_c_try_link "$LINENO"; then :
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4837
4838 else
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext \
4843     conftest$ac_exeext conftest.$ac_ext
4844
4845 # Some systems have termios.h but not the corresponding functions.
4846 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4847 if test "x$ac_cv_func_tcgetattr" = xyes; then :
4848   $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4849
4850 fi
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4854 $as_echo_n "checking for fileno... " >&6; }
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h.  */
4857
4858 #if HAVE_STDIO_H
4859 #include <stdio.h>
4860 #endif
4861 int
4862 main ()
4863 {
4864 static int x; x = fileno(stdin);
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_link "$LINENO"; then :
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
4872
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext \
4878     conftest$ac_exeext conftest.$ac_ext
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4881 $as_echo_n "checking for strerror... " >&6; }
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884
4885 #if HAVE_STDIO_H
4886 #include <stdio.h>
4887 #endif
4888 #if HAVE_STRING_H
4889 #include <string.h>
4890 #endif
4891 #if HAVE_ERRNO_H
4892 #include <errno.h>
4893 #endif
4894 int
4895 main ()
4896 {
4897 static char *x; x = strerror(0);
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_link "$LINENO"; then :
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
4905
4906 else
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext \
4911     conftest$ac_exeext conftest.$ac_ext
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4914 $as_echo_n "checking for sys_errlist... " >&6; }
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h.  */
4917
4918 int
4919 main ()
4920 {
4921 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_link "$LINENO"; then :
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
4929
4930 else
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext \
4935     conftest$ac_exeext conftest.$ac_ext
4936
4937 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4938 "
4939 if test "x$ac_cv_type_sigset_t" = xyes; then :
4940
4941 cat >>confdefs.h <<_ACEOF
4942 #define HAVE_SIGSET_T 1
4943 _ACEOF
4944
4945
4946 fi
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
4950 $as_echo_n "checking for sigemptyset... " >&6; }
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h.  */
4953
4954 #include <signal.h>
4955
4956 int
4957 main ()
4958 {
4959 sigset_t s; sigemptyset(&s);
4960   ;
4961   return 0;
4962 }
4963 _ACEOF
4964 if ac_fn_c_try_link "$LINENO"; then :
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
4967
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext \
4973     conftest$ac_exeext conftest.$ac_ext
4974
4975 have_errno=no
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4977 $as_echo_n "checking for errno... " >&6; }
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h.  */
4980
4981 #if HAVE_ERRNO_H
4982 #include <errno.h>
4983 #endif
4984 int
4985 main ()
4986 {
4987 static int x; x = errno;
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_link "$LINENO"; then :
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4994 $as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4995  have_errno=yes
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext \
4998     conftest$ac_exeext conftest.$ac_ext
4999 if test $have_errno = no; then
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002
5003 #if HAVE_ERRNO_H
5004 #include <errno.h>
5005 #endif
5006 int
5007 main ()
5008 {
5009 extern int errno; static int x; x = errno;
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_c_try_link "$LINENO"; then :
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5016 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5017  $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5018
5019 else
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext \
5024     conftest$ac_exeext conftest.$ac_ext
5025 fi
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5028 $as_echo_n "checking for locale... " >&6; }
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h.  */
5031 #include <locale.h>
5032 #include <ctype.h>
5033 #include <langinfo.h>
5034 int
5035 main ()
5036 {
5037 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5038   ;
5039   return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_link "$LINENO"; then :
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044 $as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
5045
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext \
5051     conftest$ac_exeext conftest.$ac_ext
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5054 $as_echo_n "checking for ctype functions... " >&6; }
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h.  */
5057
5058 #if HAVE_CTYPE_H
5059 #include <ctype.h>
5060 #endif
5061 int
5062 main ()
5063 {
5064 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_c_try_link "$LINENO"; then :
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5072
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext \
5078     conftest$ac_exeext conftest.$ac_ext
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5081 $as_echo_n "checking for wctype functions... " >&6; }
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h.  */
5084 #include <wctype.h>
5085 int
5086 main ()
5087 {
5088 iswlower(0); iswupper(0); towlower(0); towupper(0);
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_link "$LINENO"; then :
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5096
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext \
5102     conftest$ac_exeext conftest.$ac_ext
5103
5104 # Checks for external variable ospeed in the termcap library.
5105 have_ospeed=no
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5107 $as_echo_n "checking termcap for ospeed... " >&6; }
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h.  */
5110
5111 #include <sys/types.h>
5112 #if HAVE_TERMIOS_H
5113 #include <termios.h>
5114 #endif
5115 #if HAVE_TERMCAP_H
5116 #include <termcap.h>
5117 #endif
5118 int
5119 main ()
5120 {
5121 ospeed = 0;
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_link "$LINENO"; then :
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5128 $as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5129  have_ospeed=yes
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext \
5132     conftest$ac_exeext conftest.$ac_ext
5133 if test $have_ospeed = no; then
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h.  */
5136
5137 int
5138 main ()
5139 {
5140 extern short ospeed; ospeed = 0;
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_link "$LINENO"; then :
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5147 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5148  $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5149
5150 else
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext \
5155     conftest$ac_exeext conftest.$ac_ext
5156 fi
5157
5158 # Compile in secure mode?
5159
5160 # Check whether --with-secure was given.
5161 if test "${with_secure+set}" = set; then :
5162   withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5163
5164 else
5165   $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5166
5167 fi
5168
5169
5170 # Should we use floating point?
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5172 $as_echo_n "checking for floating point... " >&6; }
5173
5174 # Check whether --with-no-float was given.
5175 if test "${with_no_float+set}" = set; then :
5176   withval=$with_no_float; WANT_NO_FLOAT=1
5177 else
5178   WANT_NO_FLOAT=0
5179 fi
5180
5181 if test $WANT_NO_FLOAT = 0; then
5182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h.  */
5184
5185 int
5186 main ()
5187 {
5188 double f1 = 12.5; double f2 = f1*f1/2.5;
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_link "$LINENO"; then :
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5196
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext \
5202     conftest$ac_exeext conftest.$ac_ext
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5205 $as_echo "disabled by user" >&6; }
5206 fi
5207
5208 # Checks for regular expression functions.
5209 have_regex=no
5210 have_posix_regex=unknown
5211 supported_regex=""
5212
5213 # Select a regular expression library.
5214 WANT_REGEX=auto
5215
5216 # Check whether --with-regex was given.
5217 if test "${with_regex+set}" = set; then :
5218   withval=$with_regex; WANT_REGEX="$withval"
5219 fi
5220
5221
5222 if test $have_regex = no; then
5223 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5224 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5225 # So we run a test program.  If we're cross-compiling, do it the old way.
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX regcomp" >&5
5227 $as_echo_n "checking for POSIX regcomp... " >&6; }
5228 if test "$cross_compiling" = yes; then :
5229   have_posix_regex=unknown
5230 else
5231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h.  */
5233
5234 #include <sys/types.h>
5235 #include <regex.h>
5236 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5237 if (regcomp(&r, "abc", 0)) exit(1);
5238 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5239 #ifndef __WATCOMC__
5240 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5241 #else
5242 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5243 #endif
5244 exit(0); }
5245 _ACEOF
5246 if ac_fn_c_try_run "$LINENO"; then :
5247   have_posix_regex=yes
5248 else
5249   have_posix_regex=no
5250 fi
5251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5252   conftest.$ac_objext conftest.beam conftest.$ac_ext
5253 fi
5254
5255 if test $have_posix_regex = yes; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257 $as_echo "yes" >&6; }
5258   $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5259  supported_regex="$supported_regex posix"
5260   have_regex=yes
5261 elif test $have_posix_regex = unknown; then
5262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264
5265 #include <sys/types.h>
5266 #include <regex.h>
5267 int
5268 main ()
5269 {
5270 regex_t *r; regfree(r);
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_link "$LINENO"; then :
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277 $as_echo "yes" >&6; }
5278   $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5279  have_regex=yes; supported_regex="$supported_regex posix"
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext \
5282     conftest$ac_exeext conftest.$ac_ext
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287 fi
5288 fi
5289
5290 if test $have_regex = no; then
5291 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5293 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5294 if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lpcre  $LIBS"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 /* Override any GCC internal prototype to avoid an error.
5303    Use char because int might match the return type of a GCC
5304    builtin and then its argument prototype would still apply.  */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char pcre_compile ();
5309 int
5310 main ()
5311 {
5312 return pcre_compile ();
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_link "$LINENO"; then :
5318   ac_cv_lib_pcre_pcre_compile=yes
5319 else
5320   ac_cv_lib_pcre_pcre_compile=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext \
5323     conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5327 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5328 if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
5329   $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5330  LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"
5331 fi
5332
5333 fi
5334 fi
5335
5336 if test $have_regex = no; then
5337 if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_compile_pattern in -lc" >&5
5339 $as_echo_n "checking for re_compile_pattern in -lc... " >&6; }
5340 if ${ac_cv_lib_c_re_compile_pattern+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   ac_check_lib_save_LIBS=$LIBS
5344 LIBS="-lc  $LIBS"
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h.  */
5347
5348 /* Override any GCC internal prototype to avoid an error.
5349    Use char because int might match the return type of a GCC
5350    builtin and then its argument prototype would still apply.  */
5351 #ifdef __cplusplus
5352 extern "C"
5353 #endif
5354 char re_compile_pattern ();
5355 int
5356 main ()
5357 {
5358 return re_compile_pattern ();
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"; then :
5364   ac_cv_lib_c_re_compile_pattern=yes
5365 else
5366   ac_cv_lib_c_re_compile_pattern=no
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext \
5369     conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_re_compile_pattern" >&5
5373 $as_echo "$ac_cv_lib_c_re_compile_pattern" >&6; }
5374 if test "x$ac_cv_lib_c_re_compile_pattern" = xyes; then :
5375   $as_echo "#define HAVE_GNU_REGEX 1" >>confdefs.h
5376  have_regex=yes; supported_regex="$supported_regex gnu"
5377 fi
5378
5379 fi
5380 fi
5381
5382 if test $have_regex = no; then
5383 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5384 ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5385 if test "x$ac_cv_func_regcmp" = xyes; then :
5386   $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5387  have_regex=yes; supported_regex="$supported_regex regcmp"
5388 fi
5389
5390 fi
5391 fi
5392
5393 if test $have_regex = no; then
5394 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 regcomp" >&5
5396 $as_echo_n "checking for V8 regcomp... " >&6; }
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h.  */
5399
5400 #include "regexp.h"
5401 int
5402 main ()
5403 {
5404 regcomp("");
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 if ac_fn_c_try_link "$LINENO"; then :
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411 $as_echo "yes" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5412  have_regex=yes; supported_regex="$supported_regex regcomp"
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext \
5418     conftest$ac_exeext conftest.$ac_ext
5419 fi
5420 fi
5421
5422 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5423 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5425 $as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5426
5427 supported_regex="$supported_regex regcomp-local"
5428 $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
5429  REGEX_O='regexp.$(O)'  have_regex=yes
5430 fi
5431 fi
5432
5433 if test $have_regex = no; then
5434 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_comp" >&5
5436 $as_echo_n "checking for re_comp... " >&6; }
5437 ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5438 if test "x$ac_cv_func_re_comp" = xyes; then :
5439   $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5440  have_regex=yes; supported_regex="$supported_regex re_comp"
5441 fi
5442
5443 fi
5444 fi
5445
5446 if test $have_regex = no; then
5447 if test $WANT_REGEX = auto -o $WANT_REGEX = none; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using no regex" >&5
5449 $as_echo "using no regex" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find regular expression library" >&5
5452 $as_echo "$as_me: WARNING: cannot find regular expression library" >&2;}
5453 fi
5454 $as_echo "#define NO_REGEX 1" >>confdefs.h
5455  supported_regex="$supported_regex none"
5456 fi
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: regular expression library: $supported_regex" >&5
5459 $as_echo "regular expression library: $supported_regex" >&6; }
5460
5461
5462 # Check whether --with-editor was given.
5463 if test "${with_editor+set}" = set; then :
5464   withval=$with_editor; cat >>confdefs.h <<_ACEOF
5465 #define EDIT_PGM "$withval"
5466 _ACEOF
5467
5468 else
5469   $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
5470
5471 fi
5472
5473
5474
5475
5476 ac_config_files="$ac_config_files Makefile"
5477
5478 cat >confcache <<\_ACEOF
5479 # This file is a shell script that caches the results of configure
5480 # tests run on this system so they can be shared between configure
5481 # scripts and configure runs, see configure's option --config-cache.
5482 # It is not useful on other systems.  If it contains results you don't
5483 # want to keep, you may remove or edit it.
5484 #
5485 # config.status only pays attention to the cache file if you give it
5486 # the --recheck option to rerun configure.
5487 #
5488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5490 # following values.
5491
5492 _ACEOF
5493
5494 # The following way of writing the cache mishandles newlines in values,
5495 # but we know of no workaround that is simple, portable, and efficient.
5496 # So, we kill variables containing newlines.
5497 # Ultrix sh set writes to stderr and can't be redirected directly,
5498 # and sets the high bit in the cache file unless we assign to the vars.
5499 (
5500   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5501     eval ac_val=\$$ac_var
5502     case $ac_val in #(
5503     *${as_nl}*)
5504       case $ac_var in #(
5505       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5507       esac
5508       case $ac_var in #(
5509       _ | IFS | as_nl) ;; #(
5510       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5511       *) { eval $ac_var=; unset $ac_var;} ;;
5512       esac ;;
5513     esac
5514   done
5515
5516   (set) 2>&1 |
5517     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5518     *${as_nl}ac_space=\ *)
5519       # `set' does not quote correctly, so add quotes: double-quote
5520       # substitution turns \\\\ into \\, and sed turns \\ into \.
5521       sed -n \
5522         "s/'/'\\\\''/g;
5523           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5524       ;; #(
5525     *)
5526       # `set' quotes correctly as required by POSIX, so do not add quotes.
5527       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5528       ;;
5529     esac |
5530     sort
5531 ) |
5532   sed '
5533      /^ac_cv_env_/b end
5534      t clear
5535      :clear
5536      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5537      t end
5538      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5539      :end' >>confcache
5540 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5541   if test -w "$cache_file"; then
5542     if test "x$cache_file" != "x/dev/null"; then
5543       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5544 $as_echo "$as_me: updating cache $cache_file" >&6;}
5545       if test ! -f "$cache_file" || test -h "$cache_file"; then
5546         cat confcache >"$cache_file"
5547       else
5548         case $cache_file in #(
5549         */* | ?:*)
5550           mv -f confcache "$cache_file"$$ &&
5551           mv -f "$cache_file"$$ "$cache_file" ;; #(
5552         *)
5553           mv -f confcache "$cache_file" ;;
5554         esac
5555       fi
5556     fi
5557   else
5558     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5559 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5560   fi
5561 fi
5562 rm -f confcache
5563
5564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5565 # Let make expand exec_prefix.
5566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5567
5568 DEFS=-DHAVE_CONFIG_H
5569
5570 ac_libobjs=
5571 ac_ltlibobjs=
5572 U=
5573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5574   # 1. Remove the extension, and $U if already installed.
5575   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5576   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5577   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5578   #    will be set to the directory where LIBOBJS objects are built.
5579   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5580   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5581 done
5582 LIBOBJS=$ac_libobjs
5583
5584 LTLIBOBJS=$ac_ltlibobjs
5585
5586
5587
5588 : "${CONFIG_STATUS=./config.status}"
5589 ac_write_fail=0
5590 ac_clean_files_save=$ac_clean_files
5591 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5593 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5594 as_write_fail=0
5595 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5596 #! $SHELL
5597 # Generated by $as_me.
5598 # Run this file to recreate the current configuration.
5599 # Compiler output produced by configure, useful for debugging
5600 # configure, is in config.log if it exists.
5601
5602 debug=false
5603 ac_cs_recheck=false
5604 ac_cs_silent=false
5605
5606 SHELL=\${CONFIG_SHELL-$SHELL}
5607 export SHELL
5608 _ASEOF
5609 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5610 ## -------------------- ##
5611 ## M4sh Initialization. ##
5612 ## -------------------- ##
5613
5614 # Be more Bourne compatible
5615 DUALCASE=1; export DUALCASE # for MKS sh
5616 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5617   emulate sh
5618   NULLCMD=:
5619   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5620   # is contrary to our usage.  Disable this feature.
5621   alias -g '${1+"$@"}'='"$@"'
5622   setopt NO_GLOB_SUBST
5623 else
5624   case `(set -o) 2>/dev/null` in #(
5625   *posix*) :
5626     set -o posix ;; #(
5627   *) :
5628      ;;
5629 esac
5630 fi
5631
5632
5633 as_nl='
5634 '
5635 export as_nl
5636 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5637 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5640 # Prefer a ksh shell builtin over an external printf program on Solaris,
5641 # but without wasting forks for bash or zsh.
5642 if test -z "$BASH_VERSION$ZSH_VERSION" \
5643     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5644   as_echo='print -r --'
5645   as_echo_n='print -rn --'
5646 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5647   as_echo='printf %s\n'
5648   as_echo_n='printf %s'
5649 else
5650   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5651     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5652     as_echo_n='/usr/ucb/echo -n'
5653   else
5654     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5655     as_echo_n_body='eval
5656       arg=$1;
5657       case $arg in #(
5658       *"$as_nl"*)
5659         expr "X$arg" : "X\\(.*\\)$as_nl";
5660         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5661       esac;
5662       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5663     '
5664     export as_echo_n_body
5665     as_echo_n='sh -c $as_echo_n_body as_echo'
5666   fi
5667   export as_echo_body
5668   as_echo='sh -c $as_echo_body as_echo'
5669 fi
5670
5671 # The user is always right.
5672 if test "${PATH_SEPARATOR+set}" != set; then
5673   PATH_SEPARATOR=:
5674   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5675     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5676       PATH_SEPARATOR=';'
5677   }
5678 fi
5679
5680
5681 # IFS
5682 # We need space, tab and new line, in precisely that order.  Quoting is
5683 # there to prevent editors from complaining about space-tab.
5684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5685 # splitting by setting IFS to empty value.)
5686 IFS=" ""        $as_nl"
5687
5688 # Find who we are.  Look in the path if we contain no directory separator.
5689 as_myself=
5690 case $0 in #((
5691   *[\\/]* ) as_myself=$0 ;;
5692   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5698   done
5699 IFS=$as_save_IFS
5700
5701      ;;
5702 esac
5703 # We did not find ourselves, most probably we were run as `sh COMMAND'
5704 # in which case we are not to be found in the path.
5705 if test "x$as_myself" = x; then
5706   as_myself=$0
5707 fi
5708 if test ! -f "$as_myself"; then
5709   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5710   exit 1
5711 fi
5712
5713 # Unset variables that we do not need and which cause bugs (e.g. in
5714 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5715 # suppresses any "Segmentation fault" message there.  '((' could
5716 # trigger a bug in pdksh 5.2.14.
5717 for as_var in BASH_ENV ENV MAIL MAILPATH
5718 do eval test x\${$as_var+set} = xset \
5719   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5720 done
5721 PS1='$ '
5722 PS2='> '
5723 PS4='+ '
5724
5725 # NLS nuisances.
5726 LC_ALL=C
5727 export LC_ALL
5728 LANGUAGE=C
5729 export LANGUAGE
5730
5731 # CDPATH.
5732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5733
5734
5735 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5736 # ----------------------------------------
5737 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5738 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5739 # script with STATUS, using 1 if that was 0.
5740 as_fn_error ()
5741 {
5742   as_status=$1; test $as_status -eq 0 && as_status=1
5743   if test "$4"; then
5744     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5745     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5746   fi
5747   $as_echo "$as_me: error: $2" >&2
5748   as_fn_exit $as_status
5749 } # as_fn_error
5750
5751
5752 # as_fn_set_status STATUS
5753 # -----------------------
5754 # Set $? to STATUS, without forking.
5755 as_fn_set_status ()
5756 {
5757   return $1
5758 } # as_fn_set_status
5759
5760 # as_fn_exit STATUS
5761 # -----------------
5762 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5763 as_fn_exit ()
5764 {
5765   set +e
5766   as_fn_set_status $1
5767   exit $1
5768 } # as_fn_exit
5769
5770 # as_fn_unset VAR
5771 # ---------------
5772 # Portably unset VAR.
5773 as_fn_unset ()
5774 {
5775   { eval $1=; unset $1;}
5776 }
5777 as_unset=as_fn_unset
5778 # as_fn_append VAR VALUE
5779 # ----------------------
5780 # Append the text in VALUE to the end of the definition contained in VAR. Take
5781 # advantage of any shell optimizations that allow amortized linear growth over
5782 # repeated appends, instead of the typical quadratic growth present in naive
5783 # implementations.
5784 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5785   eval 'as_fn_append ()
5786   {
5787     eval $1+=\$2
5788   }'
5789 else
5790   as_fn_append ()
5791   {
5792     eval $1=\$$1\$2
5793   }
5794 fi # as_fn_append
5795
5796 # as_fn_arith ARG...
5797 # ------------------
5798 # Perform arithmetic evaluation on the ARGs, and store the result in the
5799 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5800 # must be portable across $(()) and expr.
5801 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5802   eval 'as_fn_arith ()
5803   {
5804     as_val=$(( $* ))
5805   }'
5806 else
5807   as_fn_arith ()
5808   {
5809     as_val=`expr "$@" || test $? -eq 1`
5810   }
5811 fi # as_fn_arith
5812
5813
5814 if expr a : '\(a\)' >/dev/null 2>&1 &&
5815    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5816   as_expr=expr
5817 else
5818   as_expr=false
5819 fi
5820
5821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5822   as_basename=basename
5823 else
5824   as_basename=false
5825 fi
5826
5827 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5828   as_dirname=dirname
5829 else
5830   as_dirname=false
5831 fi
5832
5833 as_me=`$as_basename -- "$0" ||
5834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5835          X"$0" : 'X\(//\)$' \| \
5836          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5837 $as_echo X/"$0" |
5838     sed '/^.*\/\([^/][^/]*\)\/*$/{
5839             s//\1/
5840             q
5841           }
5842           /^X\/\(\/\/\)$/{
5843             s//\1/
5844             q
5845           }
5846           /^X\/\(\/\).*/{
5847             s//\1/
5848             q
5849           }
5850           s/.*/./; q'`
5851
5852 # Avoid depending upon Character Ranges.
5853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5856 as_cr_digits='0123456789'
5857 as_cr_alnum=$as_cr_Letters$as_cr_digits
5858
5859 ECHO_C= ECHO_N= ECHO_T=
5860 case `echo -n x` in #(((((
5861 -n*)
5862   case `echo 'xy\c'` in
5863   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5864   xy)  ECHO_C='\c';;
5865   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5866        ECHO_T=' ';;
5867   esac;;
5868 *)
5869   ECHO_N='-n';;
5870 esac
5871
5872 rm -f conf$$ conf$$.exe conf$$.file
5873 if test -d conf$$.dir; then
5874   rm -f conf$$.dir/conf$$.file
5875 else
5876   rm -f conf$$.dir
5877   mkdir conf$$.dir 2>/dev/null
5878 fi
5879 if (echo >conf$$.file) 2>/dev/null; then
5880   if ln -s conf$$.file conf$$ 2>/dev/null; then
5881     as_ln_s='ln -s'
5882     # ... but there are two gotchas:
5883     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5884     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5885     # In both cases, we have to default to `cp -pR'.
5886     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5887       as_ln_s='cp -pR'
5888   elif ln conf$$.file conf$$ 2>/dev/null; then
5889     as_ln_s=ln
5890   else
5891     as_ln_s='cp -pR'
5892   fi
5893 else
5894   as_ln_s='cp -pR'
5895 fi
5896 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5897 rmdir conf$$.dir 2>/dev/null
5898
5899
5900 # as_fn_mkdir_p
5901 # -------------
5902 # Create "$as_dir" as a directory, including parents if necessary.
5903 as_fn_mkdir_p ()
5904 {
5905
5906   case $as_dir in #(
5907   -*) as_dir=./$as_dir;;
5908   esac
5909   test -d "$as_dir" || eval $as_mkdir_p || {
5910     as_dirs=
5911     while :; do
5912       case $as_dir in #(
5913       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5914       *) as_qdir=$as_dir;;
5915       esac
5916       as_dirs="'$as_qdir' $as_dirs"
5917       as_dir=`$as_dirname -- "$as_dir" ||
5918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5919          X"$as_dir" : 'X\(//\)[^/]' \| \
5920          X"$as_dir" : 'X\(//\)$' \| \
5921          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5922 $as_echo X"$as_dir" |
5923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5924             s//\1/
5925             q
5926           }
5927           /^X\(\/\/\)[^/].*/{
5928             s//\1/
5929             q
5930           }
5931           /^X\(\/\/\)$/{
5932             s//\1/
5933             q
5934           }
5935           /^X\(\/\).*/{
5936             s//\1/
5937             q
5938           }
5939           s/.*/./; q'`
5940       test -d "$as_dir" && break
5941     done
5942     test -z "$as_dirs" || eval "mkdir $as_dirs"
5943   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5944
5945
5946 } # as_fn_mkdir_p
5947 if mkdir -p . 2>/dev/null; then
5948   as_mkdir_p='mkdir -p "$as_dir"'
5949 else
5950   test -d ./-p && rmdir ./-p
5951   as_mkdir_p=false
5952 fi
5953
5954
5955 # as_fn_executable_p FILE
5956 # -----------------------
5957 # Test if FILE is an executable regular file.
5958 as_fn_executable_p ()
5959 {
5960   test -f "$1" && test -x "$1"
5961 } # as_fn_executable_p
5962 as_test_x='test -x'
5963 as_executable_p=as_fn_executable_p
5964
5965 # Sed expression to map a string onto a valid CPP name.
5966 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5967
5968 # Sed expression to map a string onto a valid variable name.
5969 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5970
5971
5972 exec 6>&1
5973 ## ----------------------------------- ##
5974 ## Main body of $CONFIG_STATUS script. ##
5975 ## ----------------------------------- ##
5976 _ASEOF
5977 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5978
5979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5980 # Save the log message, to keep $0 and so on meaningful, and to
5981 # report actual input values of CONFIG_FILES etc. instead of their
5982 # values after options handling.
5983 ac_log="
5984 This file was extended by less $as_me 1, which was
5985 generated by GNU Autoconf 2.69.  Invocation command line was
5986
5987   CONFIG_FILES    = $CONFIG_FILES
5988   CONFIG_HEADERS  = $CONFIG_HEADERS
5989   CONFIG_LINKS    = $CONFIG_LINKS
5990   CONFIG_COMMANDS = $CONFIG_COMMANDS
5991   $ $0 $@
5992
5993 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5994 "
5995
5996 _ACEOF
5997
5998 case $ac_config_files in *"
5999 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6000 esac
6001
6002 case $ac_config_headers in *"
6003 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6004 esac
6005
6006
6007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008 # Files that config.status was made for.
6009 config_files="$ac_config_files"
6010 config_headers="$ac_config_headers"
6011
6012 _ACEOF
6013
6014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6015 ac_cs_usage="\
6016 \`$as_me' instantiates files and other configuration actions
6017 from templates according to the current configuration.  Unless the files
6018 and actions are specified as TAGs, all are instantiated by default.
6019
6020 Usage: $0 [OPTION]... [TAG]...
6021
6022   -h, --help       print this help, then exit
6023   -V, --version    print version number and configuration settings, then exit
6024       --config     print configuration, then exit
6025   -q, --quiet, --silent
6026                    do not print progress messages
6027   -d, --debug      don't remove temporary files
6028       --recheck    update $as_me by reconfiguring in the same conditions
6029       --file=FILE[:TEMPLATE]
6030                    instantiate the configuration file FILE
6031       --header=FILE[:TEMPLATE]
6032                    instantiate the configuration header FILE
6033
6034 Configuration files:
6035 $config_files
6036
6037 Configuration headers:
6038 $config_headers
6039
6040 Report bugs to the package provider."
6041
6042 _ACEOF
6043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6044 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6045 ac_cs_version="\\
6046 less config.status 1
6047 configured by $0, generated by GNU Autoconf 2.69,
6048   with options \\"\$ac_cs_config\\"
6049
6050 Copyright (C) 2012 Free Software Foundation, Inc.
6051 This config.status script is free software; the Free Software Foundation
6052 gives unlimited permission to copy, distribute and modify it."
6053
6054 ac_pwd='$ac_pwd'
6055 srcdir='$srcdir'
6056 INSTALL='$INSTALL'
6057 test -n "\$AWK" || AWK=awk
6058 _ACEOF
6059
6060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6061 # The default lists apply if the user does not specify any file.
6062 ac_need_defaults=:
6063 while test $# != 0
6064 do
6065   case $1 in
6066   --*=?*)
6067     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6068     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6069     ac_shift=:
6070     ;;
6071   --*=)
6072     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6073     ac_optarg=
6074     ac_shift=:
6075     ;;
6076   *)
6077     ac_option=$1
6078     ac_optarg=$2
6079     ac_shift=shift
6080     ;;
6081   esac
6082
6083   case $ac_option in
6084   # Handling of the options.
6085   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6086     ac_cs_recheck=: ;;
6087   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6088     $as_echo "$ac_cs_version"; exit ;;
6089   --config | --confi | --conf | --con | --co | --c )
6090     $as_echo "$ac_cs_config"; exit ;;
6091   --debug | --debu | --deb | --de | --d | -d )
6092     debug=: ;;
6093   --file | --fil | --fi | --f )
6094     $ac_shift
6095     case $ac_optarg in
6096     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6097     '') as_fn_error $? "missing file argument" ;;
6098     esac
6099     as_fn_append CONFIG_FILES " '$ac_optarg'"
6100     ac_need_defaults=false;;
6101   --header | --heade | --head | --hea )
6102     $ac_shift
6103     case $ac_optarg in
6104     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6105     esac
6106     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6107     ac_need_defaults=false;;
6108   --he | --h)
6109     # Conflict between --help and --header
6110     as_fn_error $? "ambiguous option: \`$1'
6111 Try \`$0 --help' for more information.";;
6112   --help | --hel | -h )
6113     $as_echo "$ac_cs_usage"; exit ;;
6114   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6115   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6116     ac_cs_silent=: ;;
6117
6118   # This is an error.
6119   -*) as_fn_error $? "unrecognized option: \`$1'
6120 Try \`$0 --help' for more information." ;;
6121
6122   *) as_fn_append ac_config_targets " $1"
6123      ac_need_defaults=false ;;
6124
6125   esac
6126   shift
6127 done
6128
6129 ac_configure_extra_args=
6130
6131 if $ac_cs_silent; then
6132   exec 6>/dev/null
6133   ac_configure_extra_args="$ac_configure_extra_args --silent"
6134 fi
6135
6136 _ACEOF
6137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6138 if \$ac_cs_recheck; then
6139   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6140   shift
6141   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6142   CONFIG_SHELL='$SHELL'
6143   export CONFIG_SHELL
6144   exec "\$@"
6145 fi
6146
6147 _ACEOF
6148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6149 exec 5>>config.log
6150 {
6151   echo
6152   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6153 ## Running $as_me. ##
6154 _ASBOX
6155   $as_echo "$ac_log"
6156 } >&5
6157
6158 _ACEOF
6159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6160 _ACEOF
6161
6162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6163
6164 # Handling of arguments.
6165 for ac_config_target in $ac_config_targets
6166 do
6167   case $ac_config_target in
6168     "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6169     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6170
6171   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6172   esac
6173 done
6174
6175
6176 # If the user did not use the arguments to specify the items to instantiate,
6177 # then the envvar interface is used.  Set only those that are not.
6178 # We use the long form for the default assignment because of an extremely
6179 # bizarre bug on SunOS 4.1.3.
6180 if $ac_need_defaults; then
6181   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6182   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6183 fi
6184
6185 # Have a temporary directory for convenience.  Make it in the build tree
6186 # simply because there is no reason against having it here, and in addition,
6187 # creating and moving files from /tmp can sometimes cause problems.
6188 # Hook for its removal unless debugging.
6189 # Note that there is a small window in which the directory will not be cleaned:
6190 # after its creation but before its name has been assigned to `$tmp'.
6191 $debug ||
6192 {
6193   tmp= ac_tmp=
6194   trap 'exit_status=$?
6195   : "${ac_tmp:=$tmp}"
6196   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6197 ' 0
6198   trap 'as_fn_exit 1' 1 2 13 15
6199 }
6200 # Create a (secure) tmp directory for tmp files.
6201
6202 {
6203   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6204   test -d "$tmp"
6205 }  ||
6206 {
6207   tmp=./conf$$-$RANDOM
6208   (umask 077 && mkdir "$tmp")
6209 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6210 ac_tmp=$tmp
6211
6212 # Set up the scripts for CONFIG_FILES section.
6213 # No need to generate them if there are no CONFIG_FILES.
6214 # This happens for instance with `./config.status config.h'.
6215 if test -n "$CONFIG_FILES"; then
6216
6217
6218 ac_cr=`echo X | tr X '\015'`
6219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6220 # But we know of no other shell where ac_cr would be empty at this
6221 # point, so we can use a bashism as a fallback.
6222 if test "x$ac_cr" = x; then
6223   eval ac_cr=\$\'\\r\'
6224 fi
6225 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6227   ac_cs_awk_cr='\\r'
6228 else
6229   ac_cs_awk_cr=$ac_cr
6230 fi
6231
6232 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6233 _ACEOF
6234
6235
6236 {
6237   echo "cat >conf$$subs.awk <<_ACEOF" &&
6238   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6239   echo "_ACEOF"
6240 } >conf$$subs.sh ||
6241   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6243 ac_delim='%!_!# '
6244 for ac_last_try in false false false false false :; do
6245   . ./conf$$subs.sh ||
6246     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6247
6248   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6249   if test $ac_delim_n = $ac_delim_num; then
6250     break
6251   elif $ac_last_try; then
6252     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6253   else
6254     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6255   fi
6256 done
6257 rm -f conf$$subs.sh
6258
6259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6260 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6261 _ACEOF
6262 sed -n '
6263 h
6264 s/^/S["/; s/!.*/"]=/
6265 p
6266 g
6267 s/^[^!]*!//
6268 :repl
6269 t repl
6270 s/'"$ac_delim"'$//
6271 t delim
6272 :nl
6273 h
6274 s/\(.\{148\}\)..*/\1/
6275 t more1
6276 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6277 p
6278 n
6279 b repl
6280 :more1
6281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6282 p
6283 g
6284 s/.\{148\}//
6285 t nl
6286 :delim
6287 h
6288 s/\(.\{148\}\)..*/\1/
6289 t more2
6290 s/["\\]/\\&/g; s/^/"/; s/$/"/
6291 p
6292 b
6293 :more2
6294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6295 p
6296 g
6297 s/.\{148\}//
6298 t delim
6299 ' <conf$$subs.awk | sed '
6300 /^[^""]/{
6301   N
6302   s/\n//
6303 }
6304 ' >>$CONFIG_STATUS || ac_write_fail=1
6305 rm -f conf$$subs.awk
6306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6307 _ACAWK
6308 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6309   for (key in S) S_is_set[key] = 1
6310   FS = "\a"
6311
6312 }
6313 {
6314   line = $ 0
6315   nfields = split(line, field, "@")
6316   substed = 0
6317   len = length(field[1])
6318   for (i = 2; i < nfields; i++) {
6319     key = field[i]
6320     keylen = length(key)
6321     if (S_is_set[key]) {
6322       value = S[key]
6323       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6324       len += length(value) + length(field[++i])
6325       substed = 1
6326     } else
6327       len += 1 + keylen
6328   }
6329
6330   print line
6331 }
6332
6333 _ACAWK
6334 _ACEOF
6335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6336 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6337   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6338 else
6339   cat
6340 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6341   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6342 _ACEOF
6343
6344 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6345 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6346 # trailing colons and then remove the whole line if VPATH becomes empty
6347 # (actually we leave an empty line to preserve line numbers).
6348 if test "x$srcdir" = x.; then
6349   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6350 h
6351 s///
6352 s/^/:/
6353 s/[      ]*$/:/
6354 s/:\$(srcdir):/:/g
6355 s/:\${srcdir}:/:/g
6356 s/:@srcdir@:/:/g
6357 s/^:*//
6358 s/:*$//
6359 x
6360 s/\(=[   ]*\).*/\1/
6361 G
6362 s/\n//
6363 s/^[^=]*=[       ]*$//
6364 }'
6365 fi
6366
6367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6368 fi # test -n "$CONFIG_FILES"
6369
6370 # Set up the scripts for CONFIG_HEADERS section.
6371 # No need to generate them if there are no CONFIG_HEADERS.
6372 # This happens for instance with `./config.status Makefile'.
6373 if test -n "$CONFIG_HEADERS"; then
6374 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6375 BEGIN {
6376 _ACEOF
6377
6378 # Transform confdefs.h into an awk script `defines.awk', embedded as
6379 # here-document in config.status, that substitutes the proper values into
6380 # config.h.in to produce config.h.
6381
6382 # Create a delimiter string that does not exist in confdefs.h, to ease
6383 # handling of long lines.
6384 ac_delim='%!_!# '
6385 for ac_last_try in false false :; do
6386   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6387   if test -z "$ac_tt"; then
6388     break
6389   elif $ac_last_try; then
6390     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6391   else
6392     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6393   fi
6394 done
6395
6396 # For the awk script, D is an array of macro values keyed by name,
6397 # likewise P contains macro parameters if any.  Preserve backslash
6398 # newline sequences.
6399
6400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6401 sed -n '
6402 s/.\{148\}/&'"$ac_delim"'/g
6403 t rset
6404 :rset
6405 s/^[     ]*#[    ]*define[       ][      ]*/ /
6406 t def
6407 d
6408 :def
6409 s/\\$//
6410 t bsnl
6411 s/["\\]/\\&/g
6412 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6413 D["\1"]=" \3"/p
6414 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6415 d
6416 :bsnl
6417 s/["\\]/\\&/g
6418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6419 D["\1"]=" \3\\\\\\n"\\/p
6420 t cont
6421 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6422 t cont
6423 d
6424 :cont
6425 n
6426 s/.\{148\}/&'"$ac_delim"'/g
6427 t clear
6428 :clear
6429 s/\\$//
6430 t bsnlc
6431 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6432 d
6433 :bsnlc
6434 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6435 b cont
6436 ' <confdefs.h | sed '
6437 s/'"$ac_delim"'/"\\\
6438 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6439
6440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6441   for (key in D) D_is_set[key] = 1
6442   FS = "\a"
6443 }
6444 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6445   line = \$ 0
6446   split(line, arg, " ")
6447   if (arg[1] == "#") {
6448     defundef = arg[2]
6449     mac1 = arg[3]
6450   } else {
6451     defundef = substr(arg[1], 2)
6452     mac1 = arg[2]
6453   }
6454   split(mac1, mac2, "(") #)
6455   macro = mac2[1]
6456   prefix = substr(line, 1, index(line, defundef) - 1)
6457   if (D_is_set[macro]) {
6458     # Preserve the white space surrounding the "#".
6459     print prefix "define", macro P[macro] D[macro]
6460     next
6461   } else {
6462     # Replace #undef with comments.  This is necessary, for example,
6463     # in the case of _POSIX_SOURCE, which is predefined and required
6464     # on some systems where configure will not decide to define it.
6465     if (defundef == "undef") {
6466       print "/*", prefix defundef, macro, "*/"
6467       next
6468     }
6469   }
6470 }
6471 { print }
6472 _ACAWK
6473 _ACEOF
6474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6475   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6476 fi # test -n "$CONFIG_HEADERS"
6477
6478
6479 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6480 shift
6481 for ac_tag
6482 do
6483   case $ac_tag in
6484   :[FHLC]) ac_mode=$ac_tag; continue;;
6485   esac
6486   case $ac_mode$ac_tag in
6487   :[FHL]*:*);;
6488   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6489   :[FH]-) ac_tag=-:-;;
6490   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6491   esac
6492   ac_save_IFS=$IFS
6493   IFS=:
6494   set x $ac_tag
6495   IFS=$ac_save_IFS
6496   shift
6497   ac_file=$1
6498   shift
6499
6500   case $ac_mode in
6501   :L) ac_source=$1;;
6502   :[FH])
6503     ac_file_inputs=
6504     for ac_f
6505     do
6506       case $ac_f in
6507       -) ac_f="$ac_tmp/stdin";;
6508       *) # Look for the file first in the build tree, then in the source tree
6509          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6510          # because $ac_f cannot contain `:'.
6511          test -f "$ac_f" ||
6512            case $ac_f in
6513            [\\/$]*) false;;
6514            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6515            esac ||
6516            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6517       esac
6518       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6519       as_fn_append ac_file_inputs " '$ac_f'"
6520     done
6521
6522     # Let's still pretend it is `configure' which instantiates (i.e., don't
6523     # use $as_me), people would be surprised to read:
6524     #    /* config.h.  Generated by config.status.  */
6525     configure_input='Generated from '`
6526           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6527         `' by configure.'
6528     if test x"$ac_file" != x-; then
6529       configure_input="$ac_file.  $configure_input"
6530       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6531 $as_echo "$as_me: creating $ac_file" >&6;}
6532     fi
6533     # Neutralize special characters interpreted by sed in replacement strings.
6534     case $configure_input in #(
6535     *\&* | *\|* | *\\* )
6536        ac_sed_conf_input=`$as_echo "$configure_input" |
6537        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6538     *) ac_sed_conf_input=$configure_input;;
6539     esac
6540
6541     case $ac_tag in
6542     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6543       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6544     esac
6545     ;;
6546   esac
6547
6548   ac_dir=`$as_dirname -- "$ac_file" ||
6549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6550          X"$ac_file" : 'X\(//\)[^/]' \| \
6551          X"$ac_file" : 'X\(//\)$' \| \
6552          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6553 $as_echo X"$ac_file" |
6554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6555             s//\1/
6556             q
6557           }
6558           /^X\(\/\/\)[^/].*/{
6559             s//\1/
6560             q
6561           }
6562           /^X\(\/\/\)$/{
6563             s//\1/
6564             q
6565           }
6566           /^X\(\/\).*/{
6567             s//\1/
6568             q
6569           }
6570           s/.*/./; q'`
6571   as_dir="$ac_dir"; as_fn_mkdir_p
6572   ac_builddir=.
6573
6574 case "$ac_dir" in
6575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6576 *)
6577   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6578   # A ".." for each directory in $ac_dir_suffix.
6579   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6580   case $ac_top_builddir_sub in
6581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6583   esac ;;
6584 esac
6585 ac_abs_top_builddir=$ac_pwd
6586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6587 # for backward compatibility:
6588 ac_top_builddir=$ac_top_build_prefix
6589
6590 case $srcdir in
6591   .)  # We are building in place.
6592     ac_srcdir=.
6593     ac_top_srcdir=$ac_top_builddir_sub
6594     ac_abs_top_srcdir=$ac_pwd ;;
6595   [\\/]* | ?:[\\/]* )  # Absolute name.
6596     ac_srcdir=$srcdir$ac_dir_suffix;
6597     ac_top_srcdir=$srcdir
6598     ac_abs_top_srcdir=$srcdir ;;
6599   *) # Relative name.
6600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6601     ac_top_srcdir=$ac_top_build_prefix$srcdir
6602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6603 esac
6604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6605
6606
6607   case $ac_mode in
6608   :F)
6609   #
6610   # CONFIG_FILE
6611   #
6612
6613   case $INSTALL in
6614   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6615   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6616   esac
6617 _ACEOF
6618
6619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6620 # If the template does not know about datarootdir, expand it.
6621 # FIXME: This hack should be removed a few years after 2.60.
6622 ac_datarootdir_hack=; ac_datarootdir_seen=
6623 ac_sed_dataroot='
6624 /datarootdir/ {
6625   p
6626   q
6627 }
6628 /@datadir@/p
6629 /@docdir@/p
6630 /@infodir@/p
6631 /@localedir@/p
6632 /@mandir@/p'
6633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6634 *datarootdir*) ac_datarootdir_seen=yes;;
6635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6638 _ACEOF
6639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640   ac_datarootdir_hack='
6641   s&@datadir@&$datadir&g
6642   s&@docdir@&$docdir&g
6643   s&@infodir@&$infodir&g
6644   s&@localedir@&$localedir&g
6645   s&@mandir@&$mandir&g
6646   s&\\\${datarootdir}&$datarootdir&g' ;;
6647 esac
6648 _ACEOF
6649
6650 # Neutralize VPATH when `$srcdir' = `.'.
6651 # Shell code in configure.ac might set extrasub.
6652 # FIXME: do we really want to maintain this feature?
6653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6654 ac_sed_extra="$ac_vpsub
6655 $extrasub
6656 _ACEOF
6657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6658 :t
6659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6660 s|@configure_input@|$ac_sed_conf_input|;t t
6661 s&@top_builddir@&$ac_top_builddir_sub&;t t
6662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6663 s&@srcdir@&$ac_srcdir&;t t
6664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6665 s&@top_srcdir@&$ac_top_srcdir&;t t
6666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6667 s&@builddir@&$ac_builddir&;t t
6668 s&@abs_builddir@&$ac_abs_builddir&;t t
6669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6670 s&@INSTALL@&$ac_INSTALL&;t t
6671 $ac_datarootdir_hack
6672 "
6673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6674   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6675
6676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6677   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6678   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6679       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6681 which seems to be undefined.  Please make sure it is defined" >&5
6682 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6683 which seems to be undefined.  Please make sure it is defined" >&2;}
6684
6685   rm -f "$ac_tmp/stdin"
6686   case $ac_file in
6687   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6688   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6689   esac \
6690   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6691  ;;
6692   :H)
6693   #
6694   # CONFIG_HEADER
6695   #
6696   if test x"$ac_file" != x-; then
6697     {
6698       $as_echo "/* $configure_input  */" \
6699       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6700     } >"$ac_tmp/config.h" \
6701       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6702     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6703       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6704 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6705     else
6706       rm -f "$ac_file"
6707       mv "$ac_tmp/config.h" "$ac_file" \
6708         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6709     fi
6710   else
6711     $as_echo "/* $configure_input  */" \
6712       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6713       || as_fn_error $? "could not create -" "$LINENO" 5
6714   fi
6715  ;;
6716
6717
6718   esac
6719
6720 done # for ac_tag
6721
6722
6723 as_fn_exit 0
6724 _ACEOF
6725 ac_clean_files=$ac_clean_files_save
6726
6727 test $ac_write_fail = 0 ||
6728   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6729
6730
6731 # configure is writing to config.log, and then calls config.status.
6732 # config.status does its own redirection, appending to config.log.
6733 # Unfortunately, on DOS this fails, as config.log is still kept open
6734 # by configure, so config.status won't be able to write to it; its
6735 # output is simply discarded.  So we exec the FD to /dev/null,
6736 # effectively closing config.log, so it can be properly (re)opened and
6737 # appended to by config.status.  When coming back to configure, we
6738 # need to make the FD available again.
6739 if test "$no_create" != yes; then
6740   ac_cs_success=:
6741   ac_config_status_args=
6742   test "$silent" = yes &&
6743     ac_config_status_args="$ac_config_status_args --quiet"
6744   exec 5>/dev/null
6745   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6746   exec 5>>config.log
6747   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6748   # would make configure fail if this is the last instruction.
6749   $ac_cs_success || as_fn_exit 1
6750 fi
6751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6754 fi
6755