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