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