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