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