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