Avoid trying to send smtp repoonse for non-smtp input, on datafile close error
[exim.git] / test / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184   if (eval "$as_required") 2>/dev/null
185 then :
186   as_have_required=yes
187 else $as_nop
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   case $as_dir in #(((
200     '') as_dir=./ ;;
201     */) ;;
202     *) as_dir=$as_dir/ ;;
203   esac
204   as_found=:
205   case $as_dir in #(
206          /*)
207            for as_base in sh bash ksh sh5; do
208              # Try only shells that exist, to save several forks.
209              as_shell=$as_dir$as_base
210              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213   CONFIG_SHELL=$as_shell as_have_required=yes
214                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216   break 2
217 fi
218 fi
219            done;;
220        esac
221   as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231   CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236       if test "x$CONFIG_SHELL" != x
237 then :
238   export CONFIG_SHELL
239              # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247   *v*x* | *x*v* ) as_opts=-vx ;;
248   *v* ) as_opts=-v ;;
249   *x* ) as_opts=-x ;;
250   * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259     if test x$as_have_required = xno
260 then :
261   printf "%s\n" "$0: This script requires a shell more modern than all"
262   printf "%s\n" "$0: the shells that I found on your system."
263   if test ${ZSH_VERSION+y} ; then
264     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     printf "%s\n" "$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
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300   return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308   set +e
309   as_fn_set_status $1
310   exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317   return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327   case $as_dir in #(
328   -*) as_dir=./$as_dir;;
329   esac
330   test -d "$as_dir" || eval $as_mkdir_p || {
331     as_dirs=
332     while :; do
333       case $as_dir in #(
334       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335       *) as_qdir=$as_dir;;
336       esac
337       as_dirs="'$as_qdir' $as_dirs"
338       as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340          X"$as_dir" : 'X\(//\)[^/]' \| \
341          X"$as_dir" : 'X\(//\)$' \| \
342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345             s//\1/
346             q
347           }
348           /^X\(\/\/\)[^/].*/{
349             s//\1/
350             q
351           }
352           /^X\(\/\/\)$/{
353             s//\1/
354             q
355           }
356           /^X\(\/\).*/{
357             s//\1/
358             q
359           }
360           s/.*/./; q'`
361       test -d "$as_dir" && break
362     done
363     test -z "$as_dirs" || eval "mkdir $as_dirs"
364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374   test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384   eval 'as_fn_append ()
385   {
386     eval $1+=\$2
387   }'
388 else $as_nop
389   as_fn_append ()
390   {
391     eval $1=\$$1\$2
392   }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else $as_nop
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418   return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429   as_status=$1; test $as_status -eq 0 && as_status=1
430   if test "$4"; then
431     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433   fi
434   printf "%s\n" "$as_me: error: $2" >&2
435   as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439    test "X`expr 00001 : '.*\(...\)'`" = X001; then
440   as_expr=expr
441 else
442   as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446   as_basename=basename
447 else
448   as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452   as_dirname=dirname
453 else
454   as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459          X"$0" : 'X\(//\)$' \| \
460          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462     sed '/^.*\/\([^/][^/]*\)\/*$/{
463             s//\1/
464             q
465           }
466           /^X\/\(\/\/\)$/{
467             s//\1/
468             q
469           }
470           /^X\/\(\/\).*/{
471             s//\1/
472             q
473           }
474           s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484   as_lineno_1=$LINENO as_lineno_1a=$LINENO
485   as_lineno_2=$LINENO as_lineno_2a=$LINENO
486   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
489   sed -n '
490     p
491     /[$]LINENO/=
492   ' <$as_myself |
493     sed '
494       s/[$]LINENO.*/&-/
495       t lineno
496       b
497       :lineno
498       N
499       :loop
500       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501       t loop
502       s/-\n.*//
503     ' >$as_me.lineno &&
504   chmod +x "$as_me.lineno" ||
505     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508   # already done that, so ensure we don't try to do so again and fall
509   # in an infinite loop.  This has already happened in practice.
510   _as_can_reexec=no; export _as_can_reexec
511   # Don't try to exec as it changes $[0], causing all sort of problems
512   # (the dirname of $[0] is not the place where we might find the
513   # original and so on.  Autoconf is especially sensitive to this).
514   . "./$as_me.lineno"
515   # Exit status is that of the last command.
516   exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526   case `echo 'xy\c'` in
527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
528   xy)  ECHO_C='\c';;
529   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
530        ECHO_T=' ';;
531   esac;;
532 *)
533   ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n.  New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545   rm -f conf$$.dir/conf$$.file
546 else
547   rm -f conf$$.dir
548   mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551   if ln -s conf$$.file conf$$ 2>/dev/null; then
552     as_ln_s='ln -s'
553     # ... but there are two gotchas:
554     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556     # In both cases, we have to default to `cp -pR'.
557     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558       as_ln_s='cp -pR'
559   elif ln conf$$.file conf$$ 2>/dev/null; then
560     as_ln_s=ln
561   else
562     as_ln_s='cp -pR'
563   fi
564 else
565   as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571   as_mkdir_p='mkdir -p "$as_dir"'
572 else
573   test -d ./-p && rmdir ./-p
574   as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME=''
609 PACKAGE_TARNAME=''
610 PACKAGE_VERSION=''
611 PACKAGE_STRING=''
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="listtests"
616 # Factoring default headers for most tests.
617 ac_includes_default="\
618 #include <stddef.h>
619 #ifdef HAVE_STDIO_H
620 # include <stdio.h>
621 #endif
622 #ifdef HAVE_STDLIB_H
623 # include <stdlib.h>
624 #endif
625 #ifdef HAVE_STRING_H
626 # include <string.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
639 #endif
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_c_list=
648 ac_func_c_list=
649 ac_subst_vars='LTLIBOBJS
650 LIBOBJS
651 LOADED_OPT
652 LOADED
653 B64_GNUTLS
654 CLIENT_ANYTLS
655 CLIENT_GNUTLS
656 CLIENT_OPENSSL
657 BIND_8_COMPAT
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 target_alias
666 host_alias
667 build_alias
668 LIBS
669 ECHO_T
670 ECHO_N
671 ECHO_C
672 DEFS
673 mandir
674 localedir
675 libdir
676 psdir
677 pdfdir
678 dvidir
679 htmldir
680 infodir
681 docdir
682 oldincludedir
683 includedir
684 runstatedir
685 localstatedir
686 sharedstatedir
687 sysconfdir
688 datadir
689 datarootdir
690 libexecdir
691 sbindir
692 bindir
693 program_transform_name
694 prefix
695 exec_prefix
696 PACKAGE_URL
697 PACKAGE_BUGREPORT
698 PACKAGE_STRING
699 PACKAGE_VERSION
700 PACKAGE_TARNAME
701 PACKAGE_NAME
702 PATH_SEPARATOR
703 SHELL'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 '
708       ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS'
716
717
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 ac_unrecognized_opts=
722 ac_unrecognized_sep=
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
739
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 runstatedir='${localstatedir}/run'
755 includedir='${prefix}/include'
756 oldincludedir='/usr/include'
757 docdir='${datarootdir}/doc/${PACKAGE}'
758 infodir='${datarootdir}/info'
759 htmldir='${docdir}'
760 dvidir='${docdir}'
761 pdfdir='${docdir}'
762 psdir='${docdir}'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
766
767 ac_prev=
768 ac_dashdash=
769 for ac_option
770 do
771   # If the previous option needs an argument, assign it.
772   if test -n "$ac_prev"; then
773     eval $ac_prev=\$ac_option
774     ac_prev=
775     continue
776   fi
777
778   case $ac_option in
779   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780   *=)   ac_optarg= ;;
781   *)    ac_optarg=yes ;;
782   esac
783
784   case $ac_dashdash$ac_option in
785   --)
786     ac_dashdash=yes ;;
787
788   -bindir | --bindir | --bindi | --bind | --bin | --bi)
789     ac_prev=bindir ;;
790   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791     bindir=$ac_optarg ;;
792
793   -build | --build | --buil | --bui | --bu)
794     ac_prev=build_alias ;;
795   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796     build_alias=$ac_optarg ;;
797
798   -cache-file | --cache-file | --cache-fil | --cache-fi \
799   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800     ac_prev=cache_file ;;
801   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803     cache_file=$ac_optarg ;;
804
805   --config-cache | -C)
806     cache_file=config.cache ;;
807
808   -datadir | --datadir | --datadi | --datad)
809     ac_prev=datadir ;;
810   -datadir=* | --datadir=* | --datadi=* | --datad=*)
811     datadir=$ac_optarg ;;
812
813   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814   | --dataroo | --dataro | --datar)
815     ac_prev=datarootdir ;;
816   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818     datarootdir=$ac_optarg ;;
819
820   -disable-* | --disable-*)
821     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822     # Reject names that are not valid shell variable names.
823     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824       as_fn_error $? "invalid feature name: \`$ac_useropt'"
825     ac_useropt_orig=$ac_useropt
826     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
827     case $ac_user_opts in
828       *"
829 "enable_$ac_useropt"
830 "*) ;;
831       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832          ac_unrecognized_sep=', ';;
833     esac
834     eval enable_$ac_useropt=no ;;
835
836   -docdir | --docdir | --docdi | --doc | --do)
837     ac_prev=docdir ;;
838   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839     docdir=$ac_optarg ;;
840
841   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842     ac_prev=dvidir ;;
843   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844     dvidir=$ac_optarg ;;
845
846   -enable-* | --enable-*)
847     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848     # Reject names that are not valid shell variable names.
849     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850       as_fn_error $? "invalid feature name: \`$ac_useropt'"
851     ac_useropt_orig=$ac_useropt
852     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
853     case $ac_user_opts in
854       *"
855 "enable_$ac_useropt"
856 "*) ;;
857       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858          ac_unrecognized_sep=', ';;
859     esac
860     eval enable_$ac_useropt=\$ac_optarg ;;
861
862   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864   | --exec | --exe | --ex)
865     ac_prev=exec_prefix ;;
866   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868   | --exec=* | --exe=* | --ex=*)
869     exec_prefix=$ac_optarg ;;
870
871   -gas | --gas | --ga | --g)
872     # Obsolete; use --with-gas.
873     with_gas=yes ;;
874
875   -help | --help | --hel | --he | -h)
876     ac_init_help=long ;;
877   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878     ac_init_help=recursive ;;
879   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880     ac_init_help=short ;;
881
882   -host | --host | --hos | --ho)
883     ac_prev=host_alias ;;
884   -host=* | --host=* | --hos=* | --ho=*)
885     host_alias=$ac_optarg ;;
886
887   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888     ac_prev=htmldir ;;
889   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890   | --ht=*)
891     htmldir=$ac_optarg ;;
892
893   -includedir | --includedir | --includedi | --included | --include \
894   | --includ | --inclu | --incl | --inc)
895     ac_prev=includedir ;;
896   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897   | --includ=* | --inclu=* | --incl=* | --inc=*)
898     includedir=$ac_optarg ;;
899
900   -infodir | --infodir | --infodi | --infod | --info | --inf)
901     ac_prev=infodir ;;
902   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903     infodir=$ac_optarg ;;
904
905   -libdir | --libdir | --libdi | --libd)
906     ac_prev=libdir ;;
907   -libdir=* | --libdir=* | --libdi=* | --libd=*)
908     libdir=$ac_optarg ;;
909
910   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911   | --libexe | --libex | --libe)
912     ac_prev=libexecdir ;;
913   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914   | --libexe=* | --libex=* | --libe=*)
915     libexecdir=$ac_optarg ;;
916
917   -localedir | --localedir | --localedi | --localed | --locale)
918     ac_prev=localedir ;;
919   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920     localedir=$ac_optarg ;;
921
922   -localstatedir | --localstatedir | --localstatedi | --localstated \
923   | --localstate | --localstat | --localsta | --localst | --locals)
924     ac_prev=localstatedir ;;
925   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
926   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
927     localstatedir=$ac_optarg ;;
928
929   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930     ac_prev=mandir ;;
931   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932     mandir=$ac_optarg ;;
933
934   -nfp | --nfp | --nf)
935     # Obsolete; use --without-fp.
936     with_fp=no ;;
937
938   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939   | --no-cr | --no-c | -n)
940     no_create=yes ;;
941
942   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944     no_recursion=yes ;;
945
946   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948   | --oldin | --oldi | --old | --ol | --o)
949     ac_prev=oldincludedir ;;
950   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953     oldincludedir=$ac_optarg ;;
954
955   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956     ac_prev=prefix ;;
957   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958     prefix=$ac_optarg ;;
959
960   -program-prefix | --program-prefix | --program-prefi | --program-pref \
961   | --program-pre | --program-pr | --program-p)
962     ac_prev=program_prefix ;;
963   -program-prefix=* | --program-prefix=* | --program-prefi=* \
964   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965     program_prefix=$ac_optarg ;;
966
967   -program-suffix | --program-suffix | --program-suffi | --program-suff \
968   | --program-suf | --program-su | --program-s)
969     ac_prev=program_suffix ;;
970   -program-suffix=* | --program-suffix=* | --program-suffi=* \
971   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972     program_suffix=$ac_optarg ;;
973
974   -program-transform-name | --program-transform-name \
975   | --program-transform-nam | --program-transform-na \
976   | --program-transform-n | --program-transform- \
977   | --program-transform | --program-transfor \
978   | --program-transfo | --program-transf \
979   | --program-trans | --program-tran \
980   | --progr-tra | --program-tr | --program-t)
981     ac_prev=program_transform_name ;;
982   -program-transform-name=* | --program-transform-name=* \
983   | --program-transform-nam=* | --program-transform-na=* \
984   | --program-transform-n=* | --program-transform-=* \
985   | --program-transform=* | --program-transfor=* \
986   | --program-transfo=* | --program-transf=* \
987   | --program-trans=* | --program-tran=* \
988   | --progr-tra=* | --program-tr=* | --program-t=*)
989     program_transform_name=$ac_optarg ;;
990
991   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992     ac_prev=pdfdir ;;
993   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994     pdfdir=$ac_optarg ;;
995
996   -psdir | --psdir | --psdi | --psd | --ps)
997     ac_prev=psdir ;;
998   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999     psdir=$ac_optarg ;;
1000
1001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002   | -silent | --silent | --silen | --sile | --sil)
1003     silent=yes ;;
1004
1005   -runstatedir | --runstatedir | --runstatedi | --runstated \
1006   | --runstate | --runstat | --runsta | --runst | --runs \
1007   | --run | --ru | --r)
1008     ac_prev=runstatedir ;;
1009   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1010   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1011   | --run=* | --ru=* | --r=*)
1012     runstatedir=$ac_optarg ;;
1013
1014   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015     ac_prev=sbindir ;;
1016   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017   | --sbi=* | --sb=*)
1018     sbindir=$ac_optarg ;;
1019
1020   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022   | --sharedst | --shareds | --shared | --share | --shar \
1023   | --sha | --sh)
1024     ac_prev=sharedstatedir ;;
1025   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028   | --sha=* | --sh=*)
1029     sharedstatedir=$ac_optarg ;;
1030
1031   -site | --site | --sit)
1032     ac_prev=site ;;
1033   -site=* | --site=* | --sit=*)
1034     site=$ac_optarg ;;
1035
1036   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037     ac_prev=srcdir ;;
1038   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039     srcdir=$ac_optarg ;;
1040
1041   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042   | --syscon | --sysco | --sysc | --sys | --sy)
1043     ac_prev=sysconfdir ;;
1044   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046     sysconfdir=$ac_optarg ;;
1047
1048   -target | --target | --targe | --targ | --tar | --ta | --t)
1049     ac_prev=target_alias ;;
1050   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051     target_alias=$ac_optarg ;;
1052
1053   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054     verbose=yes ;;
1055
1056   -version | --version | --versio | --versi | --vers | -V)
1057     ac_init_version=: ;;
1058
1059   -with-* | --with-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error $? "invalid package name: \`$ac_useropt'"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "with_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval with_$ac_useropt=\$ac_optarg ;;
1074
1075   -without-* | --without-*)
1076     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079       as_fn_error $? "invalid package name: \`$ac_useropt'"
1080     ac_useropt_orig=$ac_useropt
1081     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1082     case $ac_user_opts in
1083       *"
1084 "with_$ac_useropt"
1085 "*) ;;
1086       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1087          ac_unrecognized_sep=', ';;
1088     esac
1089     eval with_$ac_useropt=no ;;
1090
1091   --x)
1092     # Obsolete; use --with-x.
1093     with_x=yes ;;
1094
1095   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096   | --x-incl | --x-inc | --x-in | --x-i)
1097     ac_prev=x_includes ;;
1098   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100     x_includes=$ac_optarg ;;
1101
1102   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104     ac_prev=x_libraries ;;
1105   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107     x_libraries=$ac_optarg ;;
1108
1109   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1110 Try \`$0 --help' for more information"
1111     ;;
1112
1113   *=*)
1114     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115     # Reject names that are not valid shell variable names.
1116     case $ac_envvar in #(
1117       '' | [0-9]* | *[!_$as_cr_alnum]* )
1118       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1119     esac
1120     eval $ac_envvar=\$ac_optarg
1121     export $ac_envvar ;;
1122
1123   *)
1124     # FIXME: should be removed in autoconf 3.0.
1125     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1126     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1128     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1129     ;;
1130
1131   esac
1132 done
1133
1134 if test -n "$ac_prev"; then
1135   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1136   as_fn_error $? "missing argument to $ac_option"
1137 fi
1138
1139 if test -n "$ac_unrecognized_opts"; then
1140   case $enable_option_checking in
1141     no) ;;
1142     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1143     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144   esac
1145 fi
1146
1147 # Check all directory arguments for consistency.
1148 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149                 datadir sysconfdir sharedstatedir localstatedir includedir \
1150                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151                 libdir localedir mandir runstatedir
1152 do
1153   eval ac_val=\$$ac_var
1154   # Remove trailing slashes.
1155   case $ac_val in
1156     */ )
1157       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158       eval $ac_var=\$ac_val;;
1159   esac
1160   # Be sure to have absolute directory names.
1161   case $ac_val in
1162     [\\/$]* | ?:[\\/]* )  continue;;
1163     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164   esac
1165   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1166 done
1167
1168 # There might be people who depend on the old broken behavior: `$host'
1169 # used to hold the argument of --host etc.
1170 # FIXME: To remove some day.
1171 build=$build_alias
1172 host=$host_alias
1173 target=$target_alias
1174
1175 # FIXME: To remove some day.
1176 if test "x$host_alias" != x; then
1177   if test "x$build_alias" = x; then
1178     cross_compiling=maybe
1179   elif test "x$build_alias" != "x$host_alias"; then
1180     cross_compiling=yes
1181   fi
1182 fi
1183
1184 ac_tool_prefix=
1185 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186
1187 test "$silent" = yes && exec 6>/dev/null
1188
1189
1190 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191 ac_ls_di=`ls -di .` &&
1192 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1193   as_fn_error $? "working directory cannot be determined"
1194 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1195   as_fn_error $? "pwd does not report name of working directory"
1196
1197
1198 # Find the source files, if location was not specified.
1199 if test -z "$srcdir"; then
1200   ac_srcdir_defaulted=yes
1201   # Try the directory containing this script, then the parent directory.
1202   ac_confdir=`$as_dirname -- "$as_myself" ||
1203 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204          X"$as_myself" : 'X\(//\)[^/]' \| \
1205          X"$as_myself" : 'X\(//\)$' \| \
1206          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207 printf "%s\n" X"$as_myself" |
1208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209             s//\1/
1210             q
1211           }
1212           /^X\(\/\/\)[^/].*/{
1213             s//\1/
1214             q
1215           }
1216           /^X\(\/\/\)$/{
1217             s//\1/
1218             q
1219           }
1220           /^X\(\/\).*/{
1221             s//\1/
1222             q
1223           }
1224           s/.*/./; q'`
1225   srcdir=$ac_confdir
1226   if test ! -r "$srcdir/$ac_unique_file"; then
1227     srcdir=..
1228   fi
1229 else
1230   ac_srcdir_defaulted=no
1231 fi
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1234   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1235 fi
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 ac_abs_confdir=`(
1238         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1239         pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242   srcdir=.
1243 fi
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
1250 for ac_var in $ac_precious_vars; do
1251   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252   eval ac_env_${ac_var}_value=\$${ac_var}
1253   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 done
1256
1257 #
1258 # Report the --help message.
1259 #
1260 if test "$ac_init_help" = "long"; then
1261   # Omit some internal or obsolete options to make the list less imposing.
1262   # This message is too long to be a string in the A/UX 3.1 sh.
1263   cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1265
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1267
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE.  See below for descriptions of some of the useful variables.
1270
1271 Defaults for the options are specified in brackets.
1272
1273 Configuration:
1274   -h, --help              display this help and exit
1275       --help=short        display options specific to this package
1276       --help=recursive    display the short help of all the included packages
1277   -V, --version           display version information and exit
1278   -q, --quiet, --silent   do not print \`checking ...' messages
1279       --cache-file=FILE   cache test results in FILE [disabled]
1280   -C, --config-cache      alias for \`--cache-file=config.cache'
1281   -n, --no-create         do not create output files
1282       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1283
1284 Installation directories:
1285   --prefix=PREFIX         install architecture-independent files in PREFIX
1286                           [$ac_default_prefix]
1287   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1288                           [PREFIX]
1289
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1294
1295 For better control, use the options below.
1296
1297 Fine tuning of the installation directories:
1298   --bindir=DIR            user executables [EPREFIX/bin]
1299   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1300   --libexecdir=DIR        program executables [EPREFIX/libexec]
1301   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1302   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1303   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1304   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1305   --libdir=DIR            object code libraries [EPREFIX/lib]
1306   --includedir=DIR        C header files [PREFIX/include]
1307   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1308   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1309   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1310   --infodir=DIR           info documentation [DATAROOTDIR/info]
1311   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1312   --mandir=DIR            man documentation [DATAROOTDIR/man]
1313   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1314   --htmldir=DIR           html documentation [DOCDIR]
1315   --dvidir=DIR            dvi documentation [DOCDIR]
1316   --pdfdir=DIR            pdf documentation [DOCDIR]
1317   --psdir=DIR             ps documentation [DOCDIR]
1318 _ACEOF
1319
1320   cat <<\_ACEOF
1321 _ACEOF
1322 fi
1323
1324 if test -n "$ac_init_help"; then
1325
1326   cat <<\_ACEOF
1327
1328 Some influential environment variables:
1329   CC          C compiler command
1330   CFLAGS      C compiler flags
1331   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1332               nonstandard directory <lib dir>
1333   LIBS        libraries to pass to the linker, e.g. -l<library>
1334   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1335               you have headers in a nonstandard directory <include dir>
1336
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1339
1340 Report bugs to the package provider.
1341 _ACEOF
1342 ac_status=$?
1343 fi
1344
1345 if test "$ac_init_help" = "recursive"; then
1346   # If there are subdirs, report their specific --help.
1347   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348     test -d "$ac_dir" ||
1349       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350       continue
1351     ac_builddir=.
1352
1353 case "$ac_dir" in
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *)
1356   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1357   # A ".." for each directory in $ac_dir_suffix.
1358   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359   case $ac_top_builddir_sub in
1360   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362   esac ;;
1363 esac
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1368
1369 case $srcdir in
1370   .)  # We are building in place.
1371     ac_srcdir=.
1372     ac_top_srcdir=$ac_top_builddir_sub
1373     ac_abs_top_srcdir=$ac_pwd ;;
1374   [\\/]* | ?:[\\/]* )  # Absolute name.
1375     ac_srcdir=$srcdir$ac_dir_suffix;
1376     ac_top_srcdir=$srcdir
1377     ac_abs_top_srcdir=$srcdir ;;
1378   *) # Relative name.
1379     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380     ac_top_srcdir=$ac_top_build_prefix$srcdir
1381     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382 esac
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385     cd "$ac_dir" || { ac_status=$?; continue; }
1386     # Check for configure.gnu first; this name is used for a wrapper for
1387     # Metaconfig's "Configure" on case-insensitive file systems.
1388     if test -f "$ac_srcdir/configure.gnu"; then
1389       echo &&
1390       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391     elif test -f "$ac_srcdir/configure"; then
1392       echo &&
1393       $SHELL "$ac_srcdir/configure" --help=recursive
1394     else
1395       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396     fi || ac_status=$?
1397     cd "$ac_pwd" || { ac_status=$?; break; }
1398   done
1399 fi
1400
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403   cat <<\_ACEOF
1404 configure
1405 generated by GNU Autoconf 2.71
1406
1407 Copyright (C) 2021 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411   exit
1412 fi
1413
1414 ## ------------------------ ##
1415 ## Autoconf initialization. ##
1416 ## ------------------------ ##
1417
1418 # ac_fn_c_try_compile LINENO
1419 # --------------------------
1420 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1421 ac_fn_c_try_compile ()
1422 {
1423   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1424   rm -f conftest.$ac_objext conftest.beam
1425   if { { ac_try="$ac_compile"
1426 case "(($ac_try" in
1427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1428   *) ac_try_echo=$ac_try;;
1429 esac
1430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1431 printf "%s\n" "$ac_try_echo"; } >&5
1432   (eval "$ac_compile") 2>conftest.err
1433   ac_status=$?
1434   if test -s conftest.err; then
1435     grep -v '^ *+' conftest.err >conftest.er1
1436     cat conftest.er1 >&5
1437     mv -f conftest.er1 conftest.err
1438   fi
1439   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1440   test $ac_status = 0; } && {
1441          test -z "$ac_c_werror_flag" ||
1442          test ! -s conftest.err
1443        } && test -s conftest.$ac_objext
1444 then :
1445   ac_retval=0
1446 else $as_nop
1447   printf "%s\n" "$as_me: failed program was:" >&5
1448 sed 's/^/| /' conftest.$ac_ext >&5
1449
1450         ac_retval=1
1451 fi
1452   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1453   as_fn_set_status $ac_retval
1454
1455 } # ac_fn_c_try_compile
1456
1457 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1458 # -------------------------------------------------------
1459 # Tests whether HEADER exists and can be compiled using the include files in
1460 # INCLUDES, setting the cache variable VAR accordingly.
1461 ac_fn_c_check_header_compile ()
1462 {
1463   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1465 printf %s "checking for $2... " >&6; }
1466 if eval test \${$3+y}
1467 then :
1468   printf %s "(cached) " >&6
1469 else $as_nop
1470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1471 /* end confdefs.h.  */
1472 $4
1473 #include <$2>
1474 _ACEOF
1475 if ac_fn_c_try_compile "$LINENO"
1476 then :
1477   eval "$3=yes"
1478 else $as_nop
1479   eval "$3=no"
1480 fi
1481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1482 fi
1483 eval ac_res=\$$3
1484                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1485 printf "%s\n" "$ac_res" >&6; }
1486   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1487
1488 } # ac_fn_c_check_header_compile
1489
1490 # ac_fn_c_try_link LINENO
1491 # -----------------------
1492 # Try to link conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_link ()
1494 {
1495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1497   if { { ac_try="$ac_link"
1498 case "(($ac_try" in
1499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500   *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 printf "%s\n" "$ac_try_echo"; } >&5
1504   (eval "$ac_link") 2>conftest.err
1505   ac_status=$?
1506   if test -s conftest.err; then
1507     grep -v '^ *+' conftest.err >conftest.er1
1508     cat conftest.er1 >&5
1509     mv -f conftest.er1 conftest.err
1510   fi
1511   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512   test $ac_status = 0; } && {
1513          test -z "$ac_c_werror_flag" ||
1514          test ! -s conftest.err
1515        } && test -s conftest$ac_exeext && {
1516          test "$cross_compiling" = yes ||
1517          test -x conftest$ac_exeext
1518        }
1519 then :
1520   ac_retval=0
1521 else $as_nop
1522   printf "%s\n" "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1524
1525         ac_retval=1
1526 fi
1527   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1528   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1529   # interfere with the next link command; also delete a directory that is
1530   # left behind by Apple's compiler.  We do this before executing the actions.
1531   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533   as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_link
1536
1537 # ac_fn_c_check_func LINENO FUNC VAR
1538 # ----------------------------------
1539 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1540 ac_fn_c_check_func ()
1541 {
1542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1544 printf %s "checking for $2... " >&6; }
1545 if eval test \${$3+y}
1546 then :
1547   printf %s "(cached) " >&6
1548 else $as_nop
1549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h.  */
1551 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1553 #define $2 innocuous_$2
1554
1555 /* System header to define __stub macros and hopefully few prototypes,
1556    which can conflict with char $2 (); below.  */
1557
1558 #include <limits.h>
1559 #undef $2
1560
1561 /* Override any GCC internal prototype to avoid an error.
1562    Use char because int might match the return type of a GCC
1563    builtin and then its argument prototype would still apply.  */
1564 #ifdef __cplusplus
1565 extern "C"
1566 #endif
1567 char $2 ();
1568 /* The GNU C library defines this for functions which it implements
1569     to always fail with ENOSYS.  Some functions are actually named
1570     something starting with __ and the normal name is an alias.  */
1571 #if defined __stub_$2 || defined __stub___$2
1572 choke me
1573 #endif
1574
1575 int
1576 main (void)
1577 {
1578 return $2 ();
1579   ;
1580   return 0;
1581 }
1582 _ACEOF
1583 if ac_fn_c_try_link "$LINENO"
1584 then :
1585   eval "$3=yes"
1586 else $as_nop
1587   eval "$3=no"
1588 fi
1589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1590     conftest$ac_exeext conftest.$ac_ext
1591 fi
1592 eval ac_res=\$$3
1593                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 printf "%s\n" "$ac_res" >&6; }
1595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597 } # ac_fn_c_check_func
1598 ac_configure_args_raw=
1599 for ac_arg
1600 do
1601   case $ac_arg in
1602   *\'*)
1603     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1604   esac
1605   as_fn_append ac_configure_args_raw " '$ac_arg'"
1606 done
1607
1608 case $ac_configure_args_raw in
1609   *$as_nl*)
1610     ac_safe_unquote= ;;
1611   *)
1612     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1613     ac_unsafe_a="$ac_unsafe_z#~"
1614     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1615     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1616 esac
1617
1618 cat >config.log <<_ACEOF
1619 This file contains any messages produced by compilers while
1620 running configure, to aid debugging if configure makes a mistake.
1621
1622 It was created by $as_me, which was
1623 generated by GNU Autoconf 2.71.  Invocation command line was
1624
1625   $ $0$ac_configure_args_raw
1626
1627 _ACEOF
1628 exec 5>>config.log
1629 {
1630 cat <<_ASUNAME
1631 ## --------- ##
1632 ## Platform. ##
1633 ## --------- ##
1634
1635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1640
1641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1642 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1643
1644 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1645 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1647 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1648 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1649 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1650 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1651
1652 _ASUNAME
1653
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   case $as_dir in #(((
1659     '') as_dir=./ ;;
1660     */) ;;
1661     *) as_dir=$as_dir/ ;;
1662   esac
1663     printf "%s\n" "PATH: $as_dir"
1664   done
1665 IFS=$as_save_IFS
1666
1667 } >&5
1668
1669 cat >&5 <<_ACEOF
1670
1671
1672 ## ----------- ##
1673 ## Core tests. ##
1674 ## ----------- ##
1675
1676 _ACEOF
1677
1678
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1684 ac_configure_args=
1685 ac_configure_args0=
1686 ac_configure_args1=
1687 ac_must_keep_next=false
1688 for ac_pass in 1 2
1689 do
1690   for ac_arg
1691   do
1692     case $ac_arg in
1693     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695     | -silent | --silent | --silen | --sile | --sil)
1696       continue ;;
1697     *\'*)
1698       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1699     esac
1700     case $ac_pass in
1701     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1702     2)
1703       as_fn_append ac_configure_args1 " '$ac_arg'"
1704       if test $ac_must_keep_next = true; then
1705         ac_must_keep_next=false # Got value, back to normal.
1706       else
1707         case $ac_arg in
1708           *=* | --config-cache | -C | -disable-* | --disable-* \
1709           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711           | -with-* | --with-* | -without-* | --without-* | --x)
1712             case "$ac_configure_args0 " in
1713               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1714             esac
1715             ;;
1716           -* ) ac_must_keep_next=true ;;
1717         esac
1718       fi
1719       as_fn_append ac_configure_args " '$ac_arg'"
1720       ;;
1721     esac
1722   done
1723 done
1724 { ac_configure_args0=; unset ac_configure_args0;}
1725 { ac_configure_args1=; unset ac_configure_args1;}
1726
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log.  We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733   # Sanitize IFS.
1734   IFS=" ""      $as_nl"
1735   # Save into config.log some information that might help in debugging.
1736   {
1737     echo
1738
1739     printf "%s\n" "## ---------------- ##
1740 ## Cache variables. ##
1741 ## ---------------- ##"
1742     echo
1743     # The following way of writing the cache mishandles newlines in values,
1744 (
1745   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1746     eval ac_val=\$$ac_var
1747     case $ac_val in #(
1748     *${as_nl}*)
1749       case $ac_var in #(
1750       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1751 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1752       esac
1753       case $ac_var in #(
1754       _ | IFS | as_nl) ;; #(
1755       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1756       *) { eval $ac_var=; unset $ac_var;} ;;
1757       esac ;;
1758     esac
1759   done
1760   (set) 2>&1 |
1761     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762     *${as_nl}ac_space=\ *)
1763       sed -n \
1764         "s/'\''/'\''\\\\'\'''\''/g;
1765           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766       ;; #(
1767     *)
1768       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1769       ;;
1770     esac |
1771     sort
1772 )
1773     echo
1774
1775     printf "%s\n" "## ----------------- ##
1776 ## Output variables. ##
1777 ## ----------------- ##"
1778     echo
1779     for ac_var in $ac_subst_vars
1780     do
1781       eval ac_val=\$$ac_var
1782       case $ac_val in
1783       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784       esac
1785       printf "%s\n" "$ac_var='\''$ac_val'\''"
1786     done | sort
1787     echo
1788
1789     if test -n "$ac_subst_files"; then
1790       printf "%s\n" "## ------------------- ##
1791 ## File substitutions. ##
1792 ## ------------------- ##"
1793       echo
1794       for ac_var in $ac_subst_files
1795       do
1796         eval ac_val=\$$ac_var
1797         case $ac_val in
1798         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799         esac
1800         printf "%s\n" "$ac_var='\''$ac_val'\''"
1801       done | sort
1802       echo
1803     fi
1804
1805     if test -s confdefs.h; then
1806       printf "%s\n" "## ----------- ##
1807 ## confdefs.h. ##
1808 ## ----------- ##"
1809       echo
1810       cat confdefs.h
1811       echo
1812     fi
1813     test "$ac_signal" != 0 &&
1814       printf "%s\n" "$as_me: caught signal $ac_signal"
1815     printf "%s\n" "$as_me: exit $exit_status"
1816   } >&5
1817   rm -f core *.core core.conftest.* &&
1818     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819     exit $exit_status
1820 ' 0
1821 for ac_signal in 1 2 13 15; do
1822   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1823 done
1824 ac_signal=0
1825
1826 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1827 rm -f -r conftest* confdefs.h
1828
1829 printf "%s\n" "/* confdefs.h */" > confdefs.h
1830
1831 # Predefined preprocessor variables.
1832
1833 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1834
1835 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1836
1837 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1838
1839 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1840
1841 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1842
1843 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1844
1845
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1848 if test -n "$CONFIG_SITE"; then
1849   ac_site_files="$CONFIG_SITE"
1850 elif test "x$prefix" != xNONE; then
1851   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1852 else
1853   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1854 fi
1855
1856 for ac_site_file in $ac_site_files
1857 do
1858   case $ac_site_file in #(
1859   */*) :
1860      ;; #(
1861   *) :
1862     ac_site_file=./$ac_site_file ;;
1863 esac
1864   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1865     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1866 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1867     sed 's/^/| /' "$ac_site_file" >&5
1868     . "$ac_site_file" \
1869       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1870 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1871 as_fn_error $? "failed to load site script $ac_site_file
1872 See \`config.log' for more details" "$LINENO" 5; }
1873   fi
1874 done
1875
1876 if test -r "$cache_file"; then
1877   # Some versions of bash will fail to source /dev/null (special files
1878   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1879   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1880     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1881 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1882     case $cache_file in
1883       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884       *)                      . "./$cache_file";;
1885     esac
1886   fi
1887 else
1888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1889 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1890   >$cache_file
1891 fi
1892
1893 # Test code for whether the C compiler supports C89 (global declarations)
1894 ac_c_conftest_c89_globals='
1895 /* Does the compiler advertise C89 conformance?
1896    Do not test the value of __STDC__, because some compilers set it to 0
1897    while being otherwise adequately conformant. */
1898 #if !defined __STDC__
1899 # error "Compiler does not advertise C89 conformance"
1900 #endif
1901
1902 #include <stddef.h>
1903 #include <stdarg.h>
1904 struct stat;
1905 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
1906 struct buf { int x; };
1907 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1908 static char *e (p, i)
1909      char **p;
1910      int i;
1911 {
1912   return p[i];
1913 }
1914 static char *f (char * (*g) (char **, int), char **p, ...)
1915 {
1916   char *s;
1917   va_list v;
1918   va_start (v,p);
1919   s = g (p, va_arg (v,int));
1920   va_end (v);
1921   return s;
1922 }
1923
1924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1925    function prototypes and stuff, but not \xHH hex character constants.
1926    These do not provoke an error unfortunately, instead are silently treated
1927    as an "x".  The following induces an error, until -std is added to get
1928    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
1929    array size at least.  It is necessary to write \x00 == 0 to get something
1930    that is true only with -std.  */
1931 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1932
1933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1934    inside strings and character constants.  */
1935 #define FOO(x) '\''x'\''
1936 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1937
1938 int test (int i, double x);
1939 struct s1 {int (*f) (int a);};
1940 struct s2 {int (*f) (double a);};
1941 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1942                int, int);'
1943
1944 # Test code for whether the C compiler supports C89 (body of main).
1945 ac_c_conftest_c89_main='
1946 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1947 '
1948
1949 # Test code for whether the C compiler supports C99 (global declarations)
1950 ac_c_conftest_c99_globals='
1951 // Does the compiler advertise C99 conformance?
1952 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1953 # error "Compiler does not advertise C99 conformance"
1954 #endif
1955
1956 #include <stdbool.h>
1957 extern int puts (const char *);
1958 extern int printf (const char *, ...);
1959 extern int dprintf (int, const char *, ...);
1960 extern void *malloc (size_t);
1961
1962 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
1963 // dprintf is used instead of fprintf to avoid needing to declare
1964 // FILE and stderr.
1965 #define debug(...) dprintf (2, __VA_ARGS__)
1966 #define showlist(...) puts (#__VA_ARGS__)
1967 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1968 static void
1969 test_varargs_macros (void)
1970 {
1971   int x = 1234;
1972   int y = 5678;
1973   debug ("Flag");
1974   debug ("X = %d\n", x);
1975   showlist (The first, second, and third items.);
1976   report (x>y, "x is %d but y is %d", x, y);
1977 }
1978
1979 // Check long long types.
1980 #define BIG64 18446744073709551615ull
1981 #define BIG32 4294967295ul
1982 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1983 #if !BIG_OK
1984   #error "your preprocessor is broken"
1985 #endif
1986 #if BIG_OK
1987 #else
1988   #error "your preprocessor is broken"
1989 #endif
1990 static long long int bignum = -9223372036854775807LL;
1991 static unsigned long long int ubignum = BIG64;
1992
1993 struct incomplete_array
1994 {
1995   int datasize;
1996   double data[];
1997 };
1998
1999 struct named_init {
2000   int number;
2001   const wchar_t *name;
2002   double average;
2003 };
2004
2005 typedef const char *ccp;
2006
2007 static inline int
2008 test_restrict (ccp restrict text)
2009 {
2010   // See if C++-style comments work.
2011   // Iterate through items via the restricted pointer.
2012   // Also check for declarations in for loops.
2013   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2014     continue;
2015   return 0;
2016 }
2017
2018 // Check varargs and va_copy.
2019 static bool
2020 test_varargs (const char *format, ...)
2021 {
2022   va_list args;
2023   va_start (args, format);
2024   va_list args_copy;
2025   va_copy (args_copy, args);
2026
2027   const char *str = "";
2028   int number = 0;
2029   float fnumber = 0;
2030
2031   while (*format)
2032     {
2033       switch (*format++)
2034         {
2035         case '\''s'\'': // string
2036           str = va_arg (args_copy, const char *);
2037           break;
2038         case '\''d'\'': // int
2039           number = va_arg (args_copy, int);
2040           break;
2041         case '\''f'\'': // float
2042           fnumber = va_arg (args_copy, double);
2043           break;
2044         default:
2045           break;
2046         }
2047     }
2048   va_end (args_copy);
2049   va_end (args);
2050
2051   return *str && number && fnumber;
2052 }
2053 '
2054
2055 # Test code for whether the C compiler supports C99 (body of main).
2056 ac_c_conftest_c99_main='
2057   // Check bool.
2058   _Bool success = false;
2059   success |= (argc != 0);
2060
2061   // Check restrict.
2062   if (test_restrict ("String literal") == 0)
2063     success = true;
2064   char *restrict newvar = "Another string";
2065
2066   // Check varargs.
2067   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2068   test_varargs_macros ();
2069
2070   // Check flexible array members.
2071   struct incomplete_array *ia =
2072     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2073   ia->datasize = 10;
2074   for (int i = 0; i < ia->datasize; ++i)
2075     ia->data[i] = i * 1.234;
2076
2077   // Check named initializers.
2078   struct named_init ni = {
2079     .number = 34,
2080     .name = L"Test wide string",
2081     .average = 543.34343,
2082   };
2083
2084   ni.number = 58;
2085
2086   int dynamic_array[ni.number];
2087   dynamic_array[0] = argv[0][0];
2088   dynamic_array[ni.number - 1] = 543;
2089
2090   // work around unused variable warnings
2091   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2092          || dynamic_array[ni.number - 1] != 543);
2093 '
2094
2095 # Test code for whether the C compiler supports C11 (global declarations)
2096 ac_c_conftest_c11_globals='
2097 // Does the compiler advertise C11 conformance?
2098 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2099 # error "Compiler does not advertise C11 conformance"
2100 #endif
2101
2102 // Check _Alignas.
2103 char _Alignas (double) aligned_as_double;
2104 char _Alignas (0) no_special_alignment;
2105 extern char aligned_as_int;
2106 char _Alignas (0) _Alignas (int) aligned_as_int;
2107
2108 // Check _Alignof.
2109 enum
2110 {
2111   int_alignment = _Alignof (int),
2112   int_array_alignment = _Alignof (int[100]),
2113   char_alignment = _Alignof (char)
2114 };
2115 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2116
2117 // Check _Noreturn.
2118 int _Noreturn does_not_return (void) { for (;;) continue; }
2119
2120 // Check _Static_assert.
2121 struct test_static_assert
2122 {
2123   int x;
2124   _Static_assert (sizeof (int) <= sizeof (long int),
2125                   "_Static_assert does not work in struct");
2126   long int y;
2127 };
2128
2129 // Check UTF-8 literals.
2130 #define u8 syntax error!
2131 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2132
2133 // Check duplicate typedefs.
2134 typedef long *long_ptr;
2135 typedef long int *long_ptr;
2136 typedef long_ptr long_ptr;
2137
2138 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2139 struct anonymous
2140 {
2141   union {
2142     struct { int i; int j; };
2143     struct { int k; long int l; } w;
2144   };
2145   int m;
2146 } v1;
2147 '
2148
2149 # Test code for whether the C compiler supports C11 (body of main).
2150 ac_c_conftest_c11_main='
2151   _Static_assert ((offsetof (struct anonymous, i)
2152                    == offsetof (struct anonymous, w.k)),
2153                   "Anonymous union alignment botch");
2154   v1.i = 2;
2155   v1.w.k = 5;
2156   ok |= v1.i != 5;
2157 '
2158
2159 # Test code for whether the C compiler supports C11 (complete).
2160 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2161 ${ac_c_conftest_c99_globals}
2162 ${ac_c_conftest_c11_globals}
2163
2164 int
2165 main (int argc, char **argv)
2166 {
2167   int ok = 0;
2168   ${ac_c_conftest_c89_main}
2169   ${ac_c_conftest_c99_main}
2170   ${ac_c_conftest_c11_main}
2171   return ok;
2172 }
2173 "
2174
2175 # Test code for whether the C compiler supports C99 (complete).
2176 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2177 ${ac_c_conftest_c99_globals}
2178
2179 int
2180 main (int argc, char **argv)
2181 {
2182   int ok = 0;
2183   ${ac_c_conftest_c89_main}
2184   ${ac_c_conftest_c99_main}
2185   return ok;
2186 }
2187 "
2188
2189 # Test code for whether the C compiler supports C89 (complete).
2190 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2191
2192 int
2193 main (int argc, char **argv)
2194 {
2195   int ok = 0;
2196   ${ac_c_conftest_c89_main}
2197   return ok;
2198 }
2199 "
2200
2201 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2202 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2203 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2204 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2205 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2206 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2207 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2208 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2209 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2210 as_fn_append ac_func_c_list " getaddrinfo HAVE_GETADDRINFO"
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216   eval ac_new_set=\$ac_env_${ac_var}_set
2217   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218   eval ac_new_val=\$ac_env_${ac_var}_value
2219   case $ac_old_set,$ac_new_set in
2220     set,)
2221       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223       ac_cache_corrupted=: ;;
2224     ,set)
2225       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227       ac_cache_corrupted=: ;;
2228     ,);;
2229     *)
2230       if test "x$ac_old_val" != "x$ac_new_val"; then
2231         # differences in whitespace do not lead to failure.
2232         ac_old_val_w=`echo x $ac_old_val`
2233         ac_new_val_w=`echo x $ac_new_val`
2234         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237           ac_cache_corrupted=:
2238         else
2239           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241           eval $ac_var=\$ac_old_val
2242         fi
2243         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2244 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2245         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2246 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2247       fi;;
2248   esac
2249   # Pass precious variables to config.status.
2250   if test "$ac_new_set" = set; then
2251     case $ac_new_val in
2252     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253     *) ac_arg=$ac_var=$ac_new_val ;;
2254     esac
2255     case " $ac_configure_args " in
2256       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2257       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258     esac
2259   fi
2260 done
2261 if $ac_cache_corrupted; then
2262   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2266   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2267             and start over" "$LINENO" 5
2268 fi
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2272
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295 ac_ext=c
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300 if test -n "$ac_tool_prefix"; then
2301   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2302 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2304 printf %s "checking for $ac_word... " >&6; }
2305 if test ${ac_cv_prog_CC+y}
2306 then :
2307   printf %s "(cached) " >&6
2308 else $as_nop
2309   if test -n "$CC"; then
2310   ac_cv_prog_CC="$CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   case $as_dir in #(((
2317     '') as_dir=./ ;;
2318     */) ;;
2319     *) as_dir=$as_dir/ ;;
2320   esac
2321     for ac_exec_ext in '' $ac_executable_extensions; do
2322   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2323     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2324     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328   done
2329 IFS=$as_save_IFS
2330
2331 fi
2332 fi
2333 CC=$ac_cv_prog_CC
2334 if test -n "$CC"; then
2335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2336 printf "%s\n" "$CC" >&6; }
2337 else
2338   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339 printf "%s\n" "no" >&6; }
2340 fi
2341
2342
2343 fi
2344 if test -z "$ac_cv_prog_CC"; then
2345   ac_ct_CC=$CC
2346   # Extract the first word of "gcc", so it can be a program name with args.
2347 set dummy gcc; ac_word=$2
2348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2349 printf %s "checking for $ac_word... " >&6; }
2350 if test ${ac_cv_prog_ac_ct_CC+y}
2351 then :
2352   printf %s "(cached) " >&6
2353 else $as_nop
2354   if test -n "$ac_ct_CC"; then
2355   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   case $as_dir in #(((
2362     '') as_dir=./ ;;
2363     */) ;;
2364     *) as_dir=$as_dir/ ;;
2365   esac
2366     for ac_exec_ext in '' $ac_executable_extensions; do
2367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2368     ac_cv_prog_ac_ct_CC="gcc"
2369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2370     break 2
2371   fi
2372 done
2373   done
2374 IFS=$as_save_IFS
2375
2376 fi
2377 fi
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2381 printf "%s\n" "$ac_ct_CC" >&6; }
2382 else
2383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384 printf "%s\n" "no" >&6; }
2385 fi
2386
2387   if test "x$ac_ct_CC" = x; then
2388     CC=""
2389   else
2390     case $cross_compiling:$ac_tool_warned in
2391 yes:)
2392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2393 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396     CC=$ac_ct_CC
2397   fi
2398 else
2399   CC="$ac_cv_prog_CC"
2400 fi
2401
2402 if test -z "$CC"; then
2403           if test -n "$ac_tool_prefix"; then
2404     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}cc; ac_word=$2
2406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 printf %s "checking for $ac_word... " >&6; }
2408 if test ${ac_cv_prog_CC+y}
2409 then :
2410   printf %s "(cached) " >&6
2411 else $as_nop
2412   if test -n "$CC"; then
2413   ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   case $as_dir in #(((
2420     '') as_dir=./ ;;
2421     */) ;;
2422     *) as_dir=$as_dir/ ;;
2423   esac
2424     for ac_exec_ext in '' $ac_executable_extensions; do
2425   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_CC="${ac_tool_prefix}cc"
2427     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431   done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 CC=$ac_cv_prog_CC
2437 if test -n "$CC"; then
2438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2439 printf "%s\n" "$CC" >&6; }
2440 else
2441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 printf "%s\n" "no" >&6; }
2443 fi
2444
2445
2446   fi
2447 fi
2448 if test -z "$CC"; then
2449   # Extract the first word of "cc", so it can be a program name with args.
2450 set dummy cc; ac_word=$2
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 printf %s "checking for $ac_word... " >&6; }
2453 if test ${ac_cv_prog_CC+y}
2454 then :
2455   printf %s "(cached) " >&6
2456 else $as_nop
2457   if test -n "$CC"; then
2458   ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460   ac_prog_rejected=no
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   case $as_dir in #(((
2466     '') as_dir=./ ;;
2467     */) ;;
2468     *) as_dir=$as_dir/ ;;
2469   esac
2470     for ac_exec_ext in '' $ac_executable_extensions; do
2471   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2472     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473        ac_prog_rejected=yes
2474        continue
2475      fi
2476     ac_cv_prog_CC="cc"
2477     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481   done
2482 IFS=$as_save_IFS
2483
2484 if test $ac_prog_rejected = yes; then
2485   # We found a bogon in the path, so make sure we never use it.
2486   set dummy $ac_cv_prog_CC
2487   shift
2488   if test $# != 0; then
2489     # We chose a different compiler from the bogus one.
2490     # However, it has the same basename, so the bogon will be chosen
2491     # first if we set CC to just the basename; use the full file name.
2492     shift
2493     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2494   fi
2495 fi
2496 fi
2497 fi
2498 CC=$ac_cv_prog_CC
2499 if test -n "$CC"; then
2500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 printf "%s\n" "$CC" >&6; }
2502 else
2503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 printf "%s\n" "no" >&6; }
2505 fi
2506
2507
2508 fi
2509 if test -z "$CC"; then
2510   if test -n "$ac_tool_prefix"; then
2511   for ac_prog in cl.exe
2512   do
2513     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 printf %s "checking for $ac_word... " >&6; }
2517 if test ${ac_cv_prog_CC+y}
2518 then :
2519   printf %s "(cached) " >&6
2520 else $as_nop
2521   if test -n "$CC"; then
2522   ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   case $as_dir in #(((
2529     '') as_dir=./ ;;
2530     */) ;;
2531     *) as_dir=$as_dir/ ;;
2532   esac
2533     for ac_exec_ext in '' $ac_executable_extensions; do
2534   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2535     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540   done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548 printf "%s\n" "$CC" >&6; }
2549 else
2550   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 printf "%s\n" "no" >&6; }
2552 fi
2553
2554
2555     test -n "$CC" && break
2556   done
2557 fi
2558 if test -z "$CC"; then
2559   ac_ct_CC=$CC
2560   for ac_prog in cl.exe
2561 do
2562   # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 printf %s "checking for $ac_word... " >&6; }
2566 if test ${ac_cv_prog_ac_ct_CC+y}
2567 then :
2568   printf %s "(cached) " >&6
2569 else $as_nop
2570   if test -n "$ac_ct_CC"; then
2571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   case $as_dir in #(((
2578     '') as_dir=./ ;;
2579     */) ;;
2580     *) as_dir=$as_dir/ ;;
2581   esac
2582     for ac_exec_ext in '' $ac_executable_extensions; do
2583   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_ac_ct_CC="$ac_prog"
2585     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589   done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2595 if test -n "$ac_ct_CC"; then
2596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2597 printf "%s\n" "$ac_ct_CC" >&6; }
2598 else
2599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 printf "%s\n" "no" >&6; }
2601 fi
2602
2603
2604   test -n "$ac_ct_CC" && break
2605 done
2606
2607   if test "x$ac_ct_CC" = x; then
2608     CC=""
2609   else
2610     case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616     CC=$ac_ct_CC
2617   fi
2618 fi
2619
2620 fi
2621 if test -z "$CC"; then
2622   if test -n "$ac_tool_prefix"; then
2623   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}clang; ac_word=$2
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 printf %s "checking for $ac_word... " >&6; }
2627 if test ${ac_cv_prog_CC+y}
2628 then :
2629   printf %s "(cached) " >&6
2630 else $as_nop
2631   if test -n "$CC"; then
2632   ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   case $as_dir in #(((
2639     '') as_dir=./ ;;
2640     */) ;;
2641     *) as_dir=$as_dir/ ;;
2642   esac
2643     for ac_exec_ext in '' $ac_executable_extensions; do
2644   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2645     ac_cv_prog_CC="${ac_tool_prefix}clang"
2646     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658 printf "%s\n" "$CC" >&6; }
2659 else
2660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 printf "%s\n" "no" >&6; }
2662 fi
2663
2664
2665 fi
2666 if test -z "$ac_cv_prog_CC"; then
2667   ac_ct_CC=$CC
2668   # Extract the first word of "clang", so it can be a program name with args.
2669 set dummy clang; ac_word=$2
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 printf %s "checking for $ac_word... " >&6; }
2672 if test ${ac_cv_prog_ac_ct_CC+y}
2673 then :
2674   printf %s "(cached) " >&6
2675 else $as_nop
2676   if test -n "$ac_ct_CC"; then
2677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   case $as_dir in #(((
2684     '') as_dir=./ ;;
2685     */) ;;
2686     *) as_dir=$as_dir/ ;;
2687   esac
2688     for ac_exec_ext in '' $ac_executable_extensions; do
2689   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2690     ac_cv_prog_ac_ct_CC="clang"
2691     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695   done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703 printf "%s\n" "$ac_ct_CC" >&6; }
2704 else
2705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 printf "%s\n" "no" >&6; }
2707 fi
2708
2709   if test "x$ac_ct_CC" = x; then
2710     CC=""
2711   else
2712     case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716 ac_tool_warned=yes ;;
2717 esac
2718     CC=$ac_ct_CC
2719   fi
2720 else
2721   CC="$ac_cv_prog_CC"
2722 fi
2723
2724 fi
2725
2726
2727 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2728 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2729 as_fn_error $? "no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details" "$LINENO" 5; }
2731
2732 # Provide some information about the compiler.
2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2734 set X $ac_compile
2735 ac_compiler=$2
2736 for ac_option in --version -v -V -qversion -version; do
2737   { { ac_try="$ac_compiler $ac_option >&5"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 printf "%s\n" "$ac_try_echo"; } >&5
2744   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2745   ac_status=$?
2746   if test -s conftest.err; then
2747     sed '10a\
2748 ... rest of stderr output deleted ...
2749          10q' conftest.err >conftest.er1
2750     cat conftest.er1 >&5
2751   fi
2752   rm -f conftest.er1 conftest.err
2753   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2754   test $ac_status = 0; }
2755 done
2756
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h.  */
2759
2760 int
2761 main (void)
2762 {
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 ac_clean_files_save=$ac_clean_files
2769 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2770 # Try to create an executable without -o first, disregard a.out.
2771 # It will help us diagnose broken compilers, and finding out an intuition
2772 # of exeext.
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2774 printf %s "checking whether the C compiler works... " >&6; }
2775 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2776
2777 # The possible output files:
2778 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2779
2780 ac_rmfiles=
2781 for ac_file in $ac_files
2782 do
2783   case $ac_file in
2784     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2785     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2786   esac
2787 done
2788 rm -f $ac_rmfiles
2789
2790 if { { ac_try="$ac_link_default"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 printf "%s\n" "$ac_try_echo"; } >&5
2797   (eval "$ac_link_default") 2>&5
2798   ac_status=$?
2799   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800   test $ac_status = 0; }
2801 then :
2802   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2803 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2804 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2805 # so that the user can short-circuit this test for compilers unknown to
2806 # Autoconf.
2807 for ac_file in $ac_files ''
2808 do
2809   test -f "$ac_file" || continue
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2812         ;;
2813     [ab].out )
2814         # We found the default executable, but exeext='' is most
2815         # certainly right.
2816         break;;
2817     *.* )
2818         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2819         then :; else
2820            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821         fi
2822         # We set ac_cv_exeext here because the later test for it is not
2823         # safe: cross compilers may not add the suffix if given an `-o'
2824         # argument, so we may need to know it at that point already.
2825         # Even if this section looks crufty: it has the advantage of
2826         # actually working.
2827         break;;
2828     * )
2829         break;;
2830   esac
2831 done
2832 test "$ac_cv_exeext" = no && ac_cv_exeext=
2833
2834 else $as_nop
2835   ac_file=''
2836 fi
2837 if test -z "$ac_file"
2838 then :
2839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 printf "%s\n" "no" >&6; }
2841 printf "%s\n" "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2846 as_fn_error 77 "C compiler cannot create executables
2847 See \`config.log' for more details" "$LINENO" 5; }
2848 else $as_nop
2849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 printf "%s\n" "yes" >&6; }
2851 fi
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2853 printf %s "checking for C compiler default output file name... " >&6; }
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2855 printf "%s\n" "$ac_file" >&6; }
2856 ac_exeext=$ac_cv_exeext
2857
2858 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2859 ac_clean_files=$ac_clean_files_save
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2861 printf %s "checking for suffix of executables... " >&6; }
2862 if { { ac_try="$ac_link"
2863 case "(($ac_try" in
2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865   *) ac_try_echo=$ac_try;;
2866 esac
2867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868 printf "%s\n" "$ac_try_echo"; } >&5
2869   (eval "$ac_link") 2>&5
2870   ac_status=$?
2871   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872   test $ac_status = 0; }
2873 then :
2874   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2875 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2876 # work properly (i.e., refer to `conftest.exe'), while it won't with
2877 # `rm'.
2878 for ac_file in conftest.exe conftest conftest.*; do
2879   test -f "$ac_file" || continue
2880   case $ac_file in
2881     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2883           break;;
2884     * ) break;;
2885   esac
2886 done
2887 else $as_nop
2888   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2891 See \`config.log' for more details" "$LINENO" 5; }
2892 fi
2893 rm -f conftest conftest$ac_cv_exeext
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2895 printf "%s\n" "$ac_cv_exeext" >&6; }
2896
2897 rm -f conftest.$ac_ext
2898 EXEEXT=$ac_cv_exeext
2899 ac_exeext=$EXEEXT
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h.  */
2902 #include <stdio.h>
2903 int
2904 main (void)
2905 {
2906 FILE *f = fopen ("conftest.out", "w");
2907  return ferror (f) || fclose (f) != 0;
2908
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 ac_clean_files="$ac_clean_files conftest.out"
2914 # Check that the compiler produces executables we can run.  If not, either
2915 # the compiler is broken, or we cross compile.
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2917 printf %s "checking whether we are cross compiling... " >&6; }
2918 if test "$cross_compiling" != yes; then
2919   { { ac_try="$ac_link"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 printf "%s\n" "$ac_try_echo"; } >&5
2926   (eval "$ac_link") 2>&5
2927   ac_status=$?
2928   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929   test $ac_status = 0; }
2930   if { ac_try='./conftest$ac_cv_exeext'
2931   { { case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 printf "%s\n" "$ac_try_echo"; } >&5
2937   (eval "$ac_try") 2>&5
2938   ac_status=$?
2939   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940   test $ac_status = 0; }; }; then
2941     cross_compiling=no
2942   else
2943     if test "$cross_compiling" = maybe; then
2944         cross_compiling=yes
2945     else
2946         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error 77 "cannot run C compiled programs.
2949 If you meant to cross compile, use \`--host'.
2950 See \`config.log' for more details" "$LINENO" 5; }
2951     fi
2952   fi
2953 fi
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2955 printf "%s\n" "$cross_compiling" >&6; }
2956
2957 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2958 ac_clean_files=$ac_clean_files_save
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2960 printf %s "checking for suffix of object files... " >&6; }
2961 if test ${ac_cv_objext+y}
2962 then :
2963   printf %s "(cached) " >&6
2964 else $as_nop
2965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h.  */
2967
2968 int
2969 main (void)
2970 {
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.o conftest.obj
2977 if { { ac_try="$ac_compile"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 printf "%s\n" "$ac_try_echo"; } >&5
2984   (eval "$ac_compile") 2>&5
2985   ac_status=$?
2986   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987   test $ac_status = 0; }
2988 then :
2989   for ac_file in conftest.o conftest.obj conftest.*; do
2990   test -f "$ac_file" || continue;
2991   case $ac_file in
2992     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2993     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994        break;;
2995   esac
2996 done
2997 else $as_nop
2998   printf "%s\n" "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error $? "cannot compute suffix of object files: cannot compile
3004 See \`config.log' for more details" "$LINENO" 5; }
3005 fi
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 fi
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3009 printf "%s\n" "$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3011 ac_objext=$OBJEXT
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3013 printf %s "checking whether the compiler supports GNU C... " >&6; }
3014 if test ${ac_cv_c_compiler_gnu+y}
3015 then :
3016   printf %s "(cached) " >&6
3017 else $as_nop
3018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h.  */
3020
3021 int
3022 main (void)
3023 {
3024 #ifndef __GNUC__
3025        choke me
3026 #endif
3027
3028   ;
3029   return 0;
3030 }
3031 _ACEOF
3032 if ac_fn_c_try_compile "$LINENO"
3033 then :
3034   ac_compiler_gnu=yes
3035 else $as_nop
3036   ac_compiler_gnu=no
3037 fi
3038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040
3041 fi
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3043 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045
3046 if test $ac_compiler_gnu = yes; then
3047   GCC=yes
3048 else
3049   GCC=
3050 fi
3051 ac_test_CFLAGS=${CFLAGS+y}
3052 ac_save_CFLAGS=$CFLAGS
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3054 printf %s "checking whether $CC accepts -g... " >&6; }
3055 if test ${ac_cv_prog_cc_g+y}
3056 then :
3057   printf %s "(cached) " >&6
3058 else $as_nop
3059   ac_save_c_werror_flag=$ac_c_werror_flag
3060    ac_c_werror_flag=yes
3061    ac_cv_prog_cc_g=no
3062    CFLAGS="-g"
3063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h.  */
3065
3066 int
3067 main (void)
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 if ac_fn_c_try_compile "$LINENO"
3075 then :
3076   ac_cv_prog_cc_g=yes
3077 else $as_nop
3078   CFLAGS=""
3079       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h.  */
3081
3082 int
3083 main (void)
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 if ac_fn_c_try_compile "$LINENO"
3091 then :
3092
3093 else $as_nop
3094   ac_c_werror_flag=$ac_save_c_werror_flag
3095          CFLAGS="-g"
3096          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h.  */
3098
3099 int
3100 main (void)
3101 {
3102
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 if ac_fn_c_try_compile "$LINENO"
3108 then :
3109   ac_cv_prog_cc_g=yes
3110 fi
3111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3112 fi
3113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3114 fi
3115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3116    ac_c_werror_flag=$ac_save_c_werror_flag
3117 fi
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3119 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3120 if test $ac_test_CFLAGS; then
3121   CFLAGS=$ac_save_CFLAGS
3122 elif test $ac_cv_prog_cc_g = yes; then
3123   if test "$GCC" = yes; then
3124     CFLAGS="-g -O2"
3125   else
3126     CFLAGS="-g"
3127   fi
3128 else
3129   if test "$GCC" = yes; then
3130     CFLAGS="-O2"
3131   else
3132     CFLAGS=
3133   fi
3134 fi
3135 ac_prog_cc_stdc=no
3136 if test x$ac_prog_cc_stdc = xno
3137 then :
3138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3139 printf %s "checking for $CC option to enable C11 features... " >&6; }
3140 if test ${ac_cv_prog_cc_c11+y}
3141 then :
3142   printf %s "(cached) " >&6
3143 else $as_nop
3144   ac_cv_prog_cc_c11=no
3145 ac_save_CC=$CC
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h.  */
3148 $ac_c_conftest_c11_program
3149 _ACEOF
3150 for ac_arg in '' -std=gnu11
3151 do
3152   CC="$ac_save_CC $ac_arg"
3153   if ac_fn_c_try_compile "$LINENO"
3154 then :
3155   ac_cv_prog_cc_c11=$ac_arg
3156 fi
3157 rm -f core conftest.err conftest.$ac_objext conftest.beam
3158   test "x$ac_cv_prog_cc_c11" != "xno" && break
3159 done
3160 rm -f conftest.$ac_ext
3161 CC=$ac_save_CC
3162 fi
3163
3164 if test "x$ac_cv_prog_cc_c11" = xno
3165 then :
3166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3167 printf "%s\n" "unsupported" >&6; }
3168 else $as_nop
3169   if test "x$ac_cv_prog_cc_c11" = x
3170 then :
3171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3172 printf "%s\n" "none needed" >&6; }
3173 else $as_nop
3174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3175 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3176      CC="$CC $ac_cv_prog_cc_c11"
3177 fi
3178   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3179   ac_prog_cc_stdc=c11
3180 fi
3181 fi
3182 if test x$ac_prog_cc_stdc = xno
3183 then :
3184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3185 printf %s "checking for $CC option to enable C99 features... " >&6; }
3186 if test ${ac_cv_prog_cc_c99+y}
3187 then :
3188   printf %s "(cached) " >&6
3189 else $as_nop
3190   ac_cv_prog_cc_c99=no
3191 ac_save_CC=$CC
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h.  */
3194 $ac_c_conftest_c99_program
3195 _ACEOF
3196 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3197 do
3198   CC="$ac_save_CC $ac_arg"
3199   if ac_fn_c_try_compile "$LINENO"
3200 then :
3201   ac_cv_prog_cc_c99=$ac_arg
3202 fi
3203 rm -f core conftest.err conftest.$ac_objext conftest.beam
3204   test "x$ac_cv_prog_cc_c99" != "xno" && break
3205 done
3206 rm -f conftest.$ac_ext
3207 CC=$ac_save_CC
3208 fi
3209
3210 if test "x$ac_cv_prog_cc_c99" = xno
3211 then :
3212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3213 printf "%s\n" "unsupported" >&6; }
3214 else $as_nop
3215   if test "x$ac_cv_prog_cc_c99" = x
3216 then :
3217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3218 printf "%s\n" "none needed" >&6; }
3219 else $as_nop
3220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3221 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3222      CC="$CC $ac_cv_prog_cc_c99"
3223 fi
3224   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3225   ac_prog_cc_stdc=c99
3226 fi
3227 fi
3228 if test x$ac_prog_cc_stdc = xno
3229 then :
3230   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3231 printf %s "checking for $CC option to enable C89 features... " >&6; }
3232 if test ${ac_cv_prog_cc_c89+y}
3233 then :
3234   printf %s "(cached) " >&6
3235 else $as_nop
3236   ac_cv_prog_cc_c89=no
3237 ac_save_CC=$CC
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h.  */
3240 $ac_c_conftest_c89_program
3241 _ACEOF
3242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 do
3244   CC="$ac_save_CC $ac_arg"
3245   if ac_fn_c_try_compile "$LINENO"
3246 then :
3247   ac_cv_prog_cc_c89=$ac_arg
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext conftest.beam
3250   test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 done
3252 rm -f conftest.$ac_ext
3253 CC=$ac_save_CC
3254 fi
3255
3256 if test "x$ac_cv_prog_cc_c89" = xno
3257 then :
3258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3259 printf "%s\n" "unsupported" >&6; }
3260 else $as_nop
3261   if test "x$ac_cv_prog_cc_c89" = x
3262 then :
3263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3264 printf "%s\n" "none needed" >&6; }
3265 else $as_nop
3266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3267 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3268      CC="$CC $ac_cv_prog_cc_c89"
3269 fi
3270   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3271   ac_prog_cc_stdc=c89
3272 fi
3273 fi
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281
3282
3283
3284 ac_header= ac_cache=
3285 for ac_item in $ac_header_c_list
3286 do
3287   if test $ac_cache; then
3288     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3289     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3290       printf "%s\n" "#define $ac_item 1" >> confdefs.h
3291     fi
3292     ac_header= ac_cache=
3293   elif test $ac_header; then
3294     ac_cache=$ac_item
3295   else
3296     ac_header=$ac_item
3297   fi
3298 done
3299
3300
3301
3302
3303
3304
3305
3306
3307 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3308 then :
3309
3310 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3311
3312 fi
3313 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
3314 if test "x$ac_cv_header_sys_socket_h" = xyes
3315 then :
3316   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
3317
3318 fi
3319
3320        for ac_header in openssl/crypto.h
3321 do :
3322   ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
3323 if test "x$ac_cv_header_openssl_crypto_h" = xyes
3324 then :
3325   printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
3326  CLIENT_OPENSSL=bin/client-ssl
3327 fi
3328
3329 done
3330        for ac_header in openssl/crypto.h
3331 do :
3332   ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
3333 if test "x$ac_cv_header_openssl_crypto_h" = xyes
3334 then :
3335   printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
3336  CLIENT_ANYTLS=bin/client-anytls
3337 fi
3338
3339 done
3340        for ac_header in gnutls/gnutls.h
3341 do :
3342   ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
3343 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
3344 then :
3345   printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
3346  CLIENT_GNUTLS=bin/client-gnutls
3347 fi
3348
3349 done
3350        for ac_header in gnutls/gnutls.h
3351 do :
3352   ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
3353 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
3354 then :
3355   printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
3356  CLIENT_ANYTLS=bin/client-anytls
3357 fi
3358
3359 done
3360        for ac_header in gnutls/gnutls.h
3361 do :
3362   ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
3363 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
3364 then :
3365   printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
3366  B64_GNUTLS=bin/ed25519_privkey_pem_to_pubkey_raw_b64
3367 fi
3368
3369 done
3370
3371
3372
3373 host_os=`uname -s`
3374
3375 case $CC-$host_os in
3376   gcc-*linux* | gcc-*Linux* | gcc-*LINUX* | gcc-FreeBSD | gcc-*SunOS* | cc-*SunOS* )
3377     LOADED=bin/loaded
3378     LOADED_OPT="-shared -fPIC"
3379     echo "Using gcc on $host_os: will compile dynamically loaded module"
3380     ;;
3381   *)
3382     LOADED=
3383     echo "Will not compile dynamically loaded module: not known OS/CC combination"
3384     ;;
3385 esac
3386
3387
3388 case $host_os in
3389   Darwin)
3390     BIND_8_COMPAT=-DBIND_8_COMPAT
3391     ;;
3392 esac
3393
3394
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
3396 printf %s "checking for library containing inet_addr... " >&6; }
3397 if test ${ac_cv_search_inet_addr+y}
3398 then :
3399   printf %s "(cached) " >&6
3400 else $as_nop
3401   ac_func_search_save_LIBS=$LIBS
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h.  */
3404
3405 /* Override any GCC internal prototype to avoid an error.
3406    Use char because int might match the return type of a GCC
3407    builtin and then its argument prototype would still apply.  */
3408 char inet_addr ();
3409 int
3410 main (void)
3411 {
3412 return inet_addr ();
3413   ;
3414   return 0;
3415 }
3416 _ACEOF
3417 for ac_lib in '' nsl
3418 do
3419   if test -z "$ac_lib"; then
3420     ac_res="none required"
3421   else
3422     ac_res=-l$ac_lib
3423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3424   fi
3425   if ac_fn_c_try_link "$LINENO"
3426 then :
3427   ac_cv_search_inet_addr=$ac_res
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3430     conftest$ac_exeext
3431   if test ${ac_cv_search_inet_addr+y}
3432 then :
3433   break
3434 fi
3435 done
3436 if test ${ac_cv_search_inet_addr+y}
3437 then :
3438
3439 else $as_nop
3440   ac_cv_search_inet_addr=no
3441 fi
3442 rm conftest.$ac_ext
3443 LIBS=$ac_func_search_save_LIBS
3444 fi
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
3446 printf "%s\n" "$ac_cv_search_inet_addr" >&6; }
3447 ac_res=$ac_cv_search_inet_addr
3448 if test "$ac_res" != no
3449 then :
3450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3451
3452 fi
3453
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
3455 printf %s "checking for library containing connect... " >&6; }
3456 if test ${ac_cv_search_connect+y}
3457 then :
3458   printf %s "(cached) " >&6
3459 else $as_nop
3460   ac_func_search_save_LIBS=$LIBS
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463
3464 /* Override any GCC internal prototype to avoid an error.
3465    Use char because int might match the return type of a GCC
3466    builtin and then its argument prototype would still apply.  */
3467 char connect ();
3468 int
3469 main (void)
3470 {
3471 return connect ();
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 for ac_lib in '' socket
3477 do
3478   if test -z "$ac_lib"; then
3479     ac_res="none required"
3480   else
3481     ac_res=-l$ac_lib
3482     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3483   fi
3484   if ac_fn_c_try_link "$LINENO"
3485 then :
3486   ac_cv_search_connect=$ac_res
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3489     conftest$ac_exeext
3490   if test ${ac_cv_search_connect+y}
3491 then :
3492   break
3493 fi
3494 done
3495 if test ${ac_cv_search_connect+y}
3496 then :
3497
3498 else $as_nop
3499   ac_cv_search_connect=no
3500 fi
3501 rm conftest.$ac_ext
3502 LIBS=$ac_func_search_save_LIBS
3503 fi
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
3505 printf "%s\n" "$ac_cv_search_connect" >&6; }
3506 ac_res=$ac_cv_search_connect
3507 if test "$ac_res" != no
3508 then :
3509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3510
3511 fi
3512
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
3514 printf %s "checking for library containing inet_pton... " >&6; }
3515 if test ${ac_cv_search_inet_pton+y}
3516 then :
3517   printf %s "(cached) " >&6
3518 else $as_nop
3519   ac_func_search_save_LIBS=$LIBS
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522
3523 /* Override any GCC internal prototype to avoid an error.
3524    Use char because int might match the return type of a GCC
3525    builtin and then its argument prototype would still apply.  */
3526 char inet_pton ();
3527 int
3528 main (void)
3529 {
3530 return inet_pton ();
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 for ac_lib in '' nsl socket resolv
3536 do
3537   if test -z "$ac_lib"; then
3538     ac_res="none required"
3539   else
3540     ac_res=-l$ac_lib
3541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3542   fi
3543   if ac_fn_c_try_link "$LINENO"
3544 then :
3545   ac_cv_search_inet_pton=$ac_res
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3548     conftest$ac_exeext
3549   if test ${ac_cv_search_inet_pton+y}
3550 then :
3551   break
3552 fi
3553 done
3554 if test ${ac_cv_search_inet_pton+y}
3555 then :
3556
3557 else $as_nop
3558   ac_cv_search_inet_pton=no
3559 fi
3560 rm conftest.$ac_ext
3561 LIBS=$ac_func_search_save_LIBS
3562 fi
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
3564 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
3565 ac_res=$ac_cv_search_inet_pton
3566 if test "$ac_res" != no
3567 then :
3568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3569
3570 fi
3571
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
3573 printf %s "checking for library containing inet_ntop... " >&6; }
3574 if test ${ac_cv_search_inet_ntop+y}
3575 then :
3576   printf %s "(cached) " >&6
3577 else $as_nop
3578   ac_func_search_save_LIBS=$LIBS
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 /* Override any GCC internal prototype to avoid an error.
3583    Use char because int might match the return type of a GCC
3584    builtin and then its argument prototype would still apply.  */
3585 char inet_ntop ();
3586 int
3587 main (void)
3588 {
3589 return inet_ntop ();
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 for ac_lib in '' nsl socket resolv
3595 do
3596   if test -z "$ac_lib"; then
3597     ac_res="none required"
3598   else
3599     ac_res=-l$ac_lib
3600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3601   fi
3602   if ac_fn_c_try_link "$LINENO"
3603 then :
3604   ac_cv_search_inet_ntop=$ac_res
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3607     conftest$ac_exeext
3608   if test ${ac_cv_search_inet_ntop+y}
3609 then :
3610   break
3611 fi
3612 done
3613 if test ${ac_cv_search_inet_ntop+y}
3614 then :
3615
3616 else $as_nop
3617   ac_cv_search_inet_ntop=no
3618 fi
3619 rm conftest.$ac_ext
3620 LIBS=$ac_func_search_save_LIBS
3621 fi
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
3623 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
3624 ac_res=$ac_cv_search_inet_ntop
3625 if test "$ac_res" != no
3626 then :
3627   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3628
3629 fi
3630
3631
3632 ac_func=
3633 for ac_item in $ac_func_c_list
3634 do
3635   if test $ac_func; then
3636     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
3637     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
3638       echo "#define $ac_item 1" >> confdefs.h
3639     fi
3640     ac_func=
3641   else
3642     ac_func=$ac_item
3643   fi
3644 done
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658 ac_config_files="$ac_config_files Makefile"
3659
3660 cat >confcache <<\_ACEOF
3661 # This file is a shell script that caches the results of configure
3662 # tests run on this system so they can be shared between configure
3663 # scripts and configure runs, see configure's option --config-cache.
3664 # It is not useful on other systems.  If it contains results you don't
3665 # want to keep, you may remove or edit it.
3666 #
3667 # config.status only pays attention to the cache file if you give it
3668 # the --recheck option to rerun configure.
3669 #
3670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3672 # following values.
3673
3674 _ACEOF
3675
3676 # The following way of writing the cache mishandles newlines in values,
3677 # but we know of no workaround that is simple, portable, and efficient.
3678 # So, we kill variables containing newlines.
3679 # Ultrix sh set writes to stderr and can't be redirected directly,
3680 # and sets the high bit in the cache file unless we assign to the vars.
3681 (
3682   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3683     eval ac_val=\$$ac_var
3684     case $ac_val in #(
3685     *${as_nl}*)
3686       case $ac_var in #(
3687       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3688 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3689       esac
3690       case $ac_var in #(
3691       _ | IFS | as_nl) ;; #(
3692       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3693       *) { eval $ac_var=; unset $ac_var;} ;;
3694       esac ;;
3695     esac
3696   done
3697
3698   (set) 2>&1 |
3699     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3700     *${as_nl}ac_space=\ *)
3701       # `set' does not quote correctly, so add quotes: double-quote
3702       # substitution turns \\\\ into \\, and sed turns \\ into \.
3703       sed -n \
3704         "s/'/'\\\\''/g;
3705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3706       ;; #(
3707     *)
3708       # `set' quotes correctly as required by POSIX, so do not add quotes.
3709       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3710       ;;
3711     esac |
3712     sort
3713 ) |
3714   sed '
3715      /^ac_cv_env_/b end
3716      t clear
3717      :clear
3718      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3719      t end
3720      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3721      :end' >>confcache
3722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3723   if test -w "$cache_file"; then
3724     if test "x$cache_file" != "x/dev/null"; then
3725       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3726 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3727       if test ! -f "$cache_file" || test -h "$cache_file"; then
3728         cat confcache >"$cache_file"
3729       else
3730         case $cache_file in #(
3731         */* | ?:*)
3732           mv -f confcache "$cache_file"$$ &&
3733           mv -f "$cache_file"$$ "$cache_file" ;; #(
3734         *)
3735           mv -f confcache "$cache_file" ;;
3736         esac
3737       fi
3738     fi
3739   else
3740     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3741 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3742   fi
3743 fi
3744 rm -f confcache
3745
3746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3747 # Let make expand exec_prefix.
3748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3749
3750 # Transform confdefs.h into DEFS.
3751 # Protect against shell expansion while executing Makefile rules.
3752 # Protect against Makefile macro expansion.
3753 #
3754 # If the first sed substitution is executed (which looks for macros that
3755 # take arguments), then branch to the quote section.  Otherwise,
3756 # look for a macro that doesn't take arguments.
3757 ac_script='
3758 :mline
3759 /\\$/{
3760  N
3761  s,\\\n,,
3762  b mline
3763 }
3764 t clear
3765 :clear
3766 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3767 t quote
3768 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3769 t quote
3770 b any
3771 :quote
3772 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3773 s/\[/\\&/g
3774 s/\]/\\&/g
3775 s/\$/$$/g
3776 H
3777 :any
3778 ${
3779         g
3780         s/^\n//
3781         s/\n/ /g
3782         p
3783 }
3784 '
3785 DEFS=`sed -n "$ac_script" confdefs.h`
3786
3787
3788 ac_libobjs=
3789 ac_ltlibobjs=
3790 U=
3791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3792   # 1. Remove the extension, and $U if already installed.
3793   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3794   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3795   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3796   #    will be set to the directory where LIBOBJS objects are built.
3797   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3798   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3799 done
3800 LIBOBJS=$ac_libobjs
3801
3802 LTLIBOBJS=$ac_ltlibobjs
3803
3804
3805
3806 : "${CONFIG_STATUS=./config.status}"
3807 ac_write_fail=0
3808 ac_clean_files_save=$ac_clean_files
3809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3811 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3812 as_write_fail=0
3813 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3814 #! $SHELL
3815 # Generated by $as_me.
3816 # Run this file to recreate the current configuration.
3817 # Compiler output produced by configure, useful for debugging
3818 # configure, is in config.log if it exists.
3819
3820 debug=false
3821 ac_cs_recheck=false
3822 ac_cs_silent=false
3823
3824 SHELL=\${CONFIG_SHELL-$SHELL}
3825 export SHELL
3826 _ASEOF
3827 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3828 ## -------------------- ##
3829 ## M4sh Initialization. ##
3830 ## -------------------- ##
3831
3832 # Be more Bourne compatible
3833 DUALCASE=1; export DUALCASE # for MKS sh
3834 as_nop=:
3835 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3836 then :
3837   emulate sh
3838   NULLCMD=:
3839   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3840   # is contrary to our usage.  Disable this feature.
3841   alias -g '${1+"$@"}'='"$@"'
3842   setopt NO_GLOB_SUBST
3843 else $as_nop
3844   case `(set -o) 2>/dev/null` in #(
3845   *posix*) :
3846     set -o posix ;; #(
3847   *) :
3848      ;;
3849 esac
3850 fi
3851
3852
3853
3854 # Reset variables that may have inherited troublesome values from
3855 # the environment.
3856
3857 # IFS needs to be set, to space, tab, and newline, in precisely that order.
3858 # (If _AS_PATH_WALK were called with IFS unset, it would have the
3859 # side effect of setting IFS to empty, thus disabling word splitting.)
3860 # Quoting is to prevent editors from complaining about space-tab.
3861 as_nl='
3862 '
3863 export as_nl
3864 IFS=" ""        $as_nl"
3865
3866 PS1='$ '
3867 PS2='> '
3868 PS4='+ '
3869
3870 # Ensure predictable behavior from utilities with locale-dependent output.
3871 LC_ALL=C
3872 export LC_ALL
3873 LANGUAGE=C
3874 export LANGUAGE
3875
3876 # We cannot yet rely on "unset" to work, but we need these variables
3877 # to be unset--not just set to an empty or harmless value--now, to
3878 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
3879 # also avoids known problems related to "unset" and subshell syntax
3880 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3881 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3882 do eval test \${$as_var+y} \
3883   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3884 done
3885
3886 # Ensure that fds 0, 1, and 2 are open.
3887 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3888 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3889 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
3890
3891 # The user is always right.
3892 if ${PATH_SEPARATOR+false} :; then
3893   PATH_SEPARATOR=:
3894   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3895     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3896       PATH_SEPARATOR=';'
3897   }
3898 fi
3899
3900
3901 # Find who we are.  Look in the path if we contain no directory separator.
3902 as_myself=
3903 case $0 in #((
3904   *[\\/]* ) as_myself=$0 ;;
3905   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908   IFS=$as_save_IFS
3909   case $as_dir in #(((
3910     '') as_dir=./ ;;
3911     */) ;;
3912     *) as_dir=$as_dir/ ;;
3913   esac
3914     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3915   done
3916 IFS=$as_save_IFS
3917
3918      ;;
3919 esac
3920 # We did not find ourselves, most probably we were run as `sh COMMAND'
3921 # in which case we are not to be found in the path.
3922 if test "x$as_myself" = x; then
3923   as_myself=$0
3924 fi
3925 if test ! -f "$as_myself"; then
3926   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3927   exit 1
3928 fi
3929
3930
3931
3932 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3933 # ----------------------------------------
3934 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3935 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3936 # script with STATUS, using 1 if that was 0.
3937 as_fn_error ()
3938 {
3939   as_status=$1; test $as_status -eq 0 && as_status=1
3940   if test "$4"; then
3941     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3942     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3943   fi
3944   printf "%s\n" "$as_me: error: $2" >&2
3945   as_fn_exit $as_status
3946 } # as_fn_error
3947
3948
3949
3950 # as_fn_set_status STATUS
3951 # -----------------------
3952 # Set $? to STATUS, without forking.
3953 as_fn_set_status ()
3954 {
3955   return $1
3956 } # as_fn_set_status
3957
3958 # as_fn_exit STATUS
3959 # -----------------
3960 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3961 as_fn_exit ()
3962 {
3963   set +e
3964   as_fn_set_status $1
3965   exit $1
3966 } # as_fn_exit
3967
3968 # as_fn_unset VAR
3969 # ---------------
3970 # Portably unset VAR.
3971 as_fn_unset ()
3972 {
3973   { eval $1=; unset $1;}
3974 }
3975 as_unset=as_fn_unset
3976
3977 # as_fn_append VAR VALUE
3978 # ----------------------
3979 # Append the text in VALUE to the end of the definition contained in VAR. Take
3980 # advantage of any shell optimizations that allow amortized linear growth over
3981 # repeated appends, instead of the typical quadratic growth present in naive
3982 # implementations.
3983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3984 then :
3985   eval 'as_fn_append ()
3986   {
3987     eval $1+=\$2
3988   }'
3989 else $as_nop
3990   as_fn_append ()
3991   {
3992     eval $1=\$$1\$2
3993   }
3994 fi # as_fn_append
3995
3996 # as_fn_arith ARG...
3997 # ------------------
3998 # Perform arithmetic evaluation on the ARGs, and store the result in the
3999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4000 # must be portable across $(()) and expr.
4001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4002 then :
4003   eval 'as_fn_arith ()
4004   {
4005     as_val=$(( $* ))
4006   }'
4007 else $as_nop
4008   as_fn_arith ()
4009   {
4010     as_val=`expr "$@" || test $? -eq 1`
4011   }
4012 fi # as_fn_arith
4013
4014
4015 if expr a : '\(a\)' >/dev/null 2>&1 &&
4016    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4017   as_expr=expr
4018 else
4019   as_expr=false
4020 fi
4021
4022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4023   as_basename=basename
4024 else
4025   as_basename=false
4026 fi
4027
4028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4029   as_dirname=dirname
4030 else
4031   as_dirname=false
4032 fi
4033
4034 as_me=`$as_basename -- "$0" ||
4035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4036          X"$0" : 'X\(//\)$' \| \
4037          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4038 printf "%s\n" X/"$0" |
4039     sed '/^.*\/\([^/][^/]*\)\/*$/{
4040             s//\1/
4041             q
4042           }
4043           /^X\/\(\/\/\)$/{
4044             s//\1/
4045             q
4046           }
4047           /^X\/\(\/\).*/{
4048             s//\1/
4049             q
4050           }
4051           s/.*/./; q'`
4052
4053 # Avoid depending upon Character Ranges.
4054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4057 as_cr_digits='0123456789'
4058 as_cr_alnum=$as_cr_Letters$as_cr_digits
4059
4060
4061 # Determine whether it's possible to make 'echo' print without a newline.
4062 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4063 # for compatibility with existing Makefiles.
4064 ECHO_C= ECHO_N= ECHO_T=
4065 case `echo -n x` in #(((((
4066 -n*)
4067   case `echo 'xy\c'` in
4068   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4069   xy)  ECHO_C='\c';;
4070   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4071        ECHO_T=' ';;
4072   esac;;
4073 *)
4074   ECHO_N='-n';;
4075 esac
4076
4077 # For backward compatibility with old third-party macros, we provide
4078 # the shell variables $as_echo and $as_echo_n.  New code should use
4079 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4080 as_echo='printf %s\n'
4081 as_echo_n='printf %s'
4082
4083 rm -f conf$$ conf$$.exe conf$$.file
4084 if test -d conf$$.dir; then
4085   rm -f conf$$.dir/conf$$.file
4086 else
4087   rm -f conf$$.dir
4088   mkdir conf$$.dir 2>/dev/null
4089 fi
4090 if (echo >conf$$.file) 2>/dev/null; then
4091   if ln -s conf$$.file conf$$ 2>/dev/null; then
4092     as_ln_s='ln -s'
4093     # ... but there are two gotchas:
4094     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4095     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4096     # In both cases, we have to default to `cp -pR'.
4097     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4098       as_ln_s='cp -pR'
4099   elif ln conf$$.file conf$$ 2>/dev/null; then
4100     as_ln_s=ln
4101   else
4102     as_ln_s='cp -pR'
4103   fi
4104 else
4105   as_ln_s='cp -pR'
4106 fi
4107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4108 rmdir conf$$.dir 2>/dev/null
4109
4110
4111 # as_fn_mkdir_p
4112 # -------------
4113 # Create "$as_dir" as a directory, including parents if necessary.
4114 as_fn_mkdir_p ()
4115 {
4116
4117   case $as_dir in #(
4118   -*) as_dir=./$as_dir;;
4119   esac
4120   test -d "$as_dir" || eval $as_mkdir_p || {
4121     as_dirs=
4122     while :; do
4123       case $as_dir in #(
4124       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4125       *) as_qdir=$as_dir;;
4126       esac
4127       as_dirs="'$as_qdir' $as_dirs"
4128       as_dir=`$as_dirname -- "$as_dir" ||
4129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4130          X"$as_dir" : 'X\(//\)[^/]' \| \
4131          X"$as_dir" : 'X\(//\)$' \| \
4132          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4133 printf "%s\n" X"$as_dir" |
4134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4135             s//\1/
4136             q
4137           }
4138           /^X\(\/\/\)[^/].*/{
4139             s//\1/
4140             q
4141           }
4142           /^X\(\/\/\)$/{
4143             s//\1/
4144             q
4145           }
4146           /^X\(\/\).*/{
4147             s//\1/
4148             q
4149           }
4150           s/.*/./; q'`
4151       test -d "$as_dir" && break
4152     done
4153     test -z "$as_dirs" || eval "mkdir $as_dirs"
4154   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4155
4156
4157 } # as_fn_mkdir_p
4158 if mkdir -p . 2>/dev/null; then
4159   as_mkdir_p='mkdir -p "$as_dir"'
4160 else
4161   test -d ./-p && rmdir ./-p
4162   as_mkdir_p=false
4163 fi
4164
4165
4166 # as_fn_executable_p FILE
4167 # -----------------------
4168 # Test if FILE is an executable regular file.
4169 as_fn_executable_p ()
4170 {
4171   test -f "$1" && test -x "$1"
4172 } # as_fn_executable_p
4173 as_test_x='test -x'
4174 as_executable_p=as_fn_executable_p
4175
4176 # Sed expression to map a string onto a valid CPP name.
4177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4178
4179 # Sed expression to map a string onto a valid variable name.
4180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4181
4182
4183 exec 6>&1
4184 ## ----------------------------------- ##
4185 ## Main body of $CONFIG_STATUS script. ##
4186 ## ----------------------------------- ##
4187 _ASEOF
4188 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4189
4190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4191 # Save the log message, to keep $0 and so on meaningful, and to
4192 # report actual input values of CONFIG_FILES etc. instead of their
4193 # values after options handling.
4194 ac_log="
4195 This file was extended by $as_me, which was
4196 generated by GNU Autoconf 2.71.  Invocation command line was
4197
4198   CONFIG_FILES    = $CONFIG_FILES
4199   CONFIG_HEADERS  = $CONFIG_HEADERS
4200   CONFIG_LINKS    = $CONFIG_LINKS
4201   CONFIG_COMMANDS = $CONFIG_COMMANDS
4202   $ $0 $@
4203
4204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4205 "
4206
4207 _ACEOF
4208
4209 case $ac_config_files in *"
4210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4211 esac
4212
4213
4214
4215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4216 # Files that config.status was made for.
4217 config_files="$ac_config_files"
4218
4219 _ACEOF
4220
4221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4222 ac_cs_usage="\
4223 \`$as_me' instantiates files and other configuration actions
4224 from templates according to the current configuration.  Unless the files
4225 and actions are specified as TAGs, all are instantiated by default.
4226
4227 Usage: $0 [OPTION]... [TAG]...
4228
4229   -h, --help       print this help, then exit
4230   -V, --version    print version number and configuration settings, then exit
4231       --config     print configuration, then exit
4232   -q, --quiet, --silent
4233                    do not print progress messages
4234   -d, --debug      don't remove temporary files
4235       --recheck    update $as_me by reconfiguring in the same conditions
4236       --file=FILE[:TEMPLATE]
4237                    instantiate the configuration file FILE
4238
4239 Configuration files:
4240 $config_files
4241
4242 Report bugs to the package provider."
4243
4244 _ACEOF
4245 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4246 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4248 ac_cs_config='$ac_cs_config_escaped'
4249 ac_cs_version="\\
4250 config.status
4251 configured by $0, generated by GNU Autoconf 2.71,
4252   with options \\"\$ac_cs_config\\"
4253
4254 Copyright (C) 2021 Free Software Foundation, Inc.
4255 This config.status script is free software; the Free Software Foundation
4256 gives unlimited permission to copy, distribute and modify it."
4257
4258 ac_pwd='$ac_pwd'
4259 srcdir='$srcdir'
4260 test -n "\$AWK" || AWK=awk
4261 _ACEOF
4262
4263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4264 # The default lists apply if the user does not specify any file.
4265 ac_need_defaults=:
4266 while test $# != 0
4267 do
4268   case $1 in
4269   --*=?*)
4270     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4271     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4272     ac_shift=:
4273     ;;
4274   --*=)
4275     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4276     ac_optarg=
4277     ac_shift=:
4278     ;;
4279   *)
4280     ac_option=$1
4281     ac_optarg=$2
4282     ac_shift=shift
4283     ;;
4284   esac
4285
4286   case $ac_option in
4287   # Handling of the options.
4288   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4289     ac_cs_recheck=: ;;
4290   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4291     printf "%s\n" "$ac_cs_version"; exit ;;
4292   --config | --confi | --conf | --con | --co | --c )
4293     printf "%s\n" "$ac_cs_config"; exit ;;
4294   --debug | --debu | --deb | --de | --d | -d )
4295     debug=: ;;
4296   --file | --fil | --fi | --f )
4297     $ac_shift
4298     case $ac_optarg in
4299     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4300     '') as_fn_error $? "missing file argument" ;;
4301     esac
4302     as_fn_append CONFIG_FILES " '$ac_optarg'"
4303     ac_need_defaults=false;;
4304   --he | --h |  --help | --hel | -h )
4305     printf "%s\n" "$ac_cs_usage"; exit ;;
4306   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4307   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4308     ac_cs_silent=: ;;
4309
4310   # This is an error.
4311   -*) as_fn_error $? "unrecognized option: \`$1'
4312 Try \`$0 --help' for more information." ;;
4313
4314   *) as_fn_append ac_config_targets " $1"
4315      ac_need_defaults=false ;;
4316
4317   esac
4318   shift
4319 done
4320
4321 ac_configure_extra_args=
4322
4323 if $ac_cs_silent; then
4324   exec 6>/dev/null
4325   ac_configure_extra_args="$ac_configure_extra_args --silent"
4326 fi
4327
4328 _ACEOF
4329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4330 if \$ac_cs_recheck; then
4331   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4332   shift
4333   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4334   CONFIG_SHELL='$SHELL'
4335   export CONFIG_SHELL
4336   exec "\$@"
4337 fi
4338
4339 _ACEOF
4340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4341 exec 5>>config.log
4342 {
4343   echo
4344   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4345 ## Running $as_me. ##
4346 _ASBOX
4347   printf "%s\n" "$ac_log"
4348 } >&5
4349
4350 _ACEOF
4351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4352 _ACEOF
4353
4354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4355
4356 # Handling of arguments.
4357 for ac_config_target in $ac_config_targets
4358 do
4359   case $ac_config_target in
4360     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4361
4362   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4363   esac
4364 done
4365
4366
4367 # If the user did not use the arguments to specify the items to instantiate,
4368 # then the envvar interface is used.  Set only those that are not.
4369 # We use the long form for the default assignment because of an extremely
4370 # bizarre bug on SunOS 4.1.3.
4371 if $ac_need_defaults; then
4372   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
4373 fi
4374
4375 # Have a temporary directory for convenience.  Make it in the build tree
4376 # simply because there is no reason against having it here, and in addition,
4377 # creating and moving files from /tmp can sometimes cause problems.
4378 # Hook for its removal unless debugging.
4379 # Note that there is a small window in which the directory will not be cleaned:
4380 # after its creation but before its name has been assigned to `$tmp'.
4381 $debug ||
4382 {
4383   tmp= ac_tmp=
4384   trap 'exit_status=$?
4385   : "${ac_tmp:=$tmp}"
4386   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4387 ' 0
4388   trap 'as_fn_exit 1' 1 2 13 15
4389 }
4390 # Create a (secure) tmp directory for tmp files.
4391
4392 {
4393   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4394   test -d "$tmp"
4395 }  ||
4396 {
4397   tmp=./conf$$-$RANDOM
4398   (umask 077 && mkdir "$tmp")
4399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4400 ac_tmp=$tmp
4401
4402 # Set up the scripts for CONFIG_FILES section.
4403 # No need to generate them if there are no CONFIG_FILES.
4404 # This happens for instance with `./config.status config.h'.
4405 if test -n "$CONFIG_FILES"; then
4406
4407
4408 ac_cr=`echo X | tr X '\015'`
4409 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4410 # But we know of no other shell where ac_cr would be empty at this
4411 # point, so we can use a bashism as a fallback.
4412 if test "x$ac_cr" = x; then
4413   eval ac_cr=\$\'\\r\'
4414 fi
4415 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4417   ac_cs_awk_cr='\\r'
4418 else
4419   ac_cs_awk_cr=$ac_cr
4420 fi
4421
4422 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4423 _ACEOF
4424
4425
4426 {
4427   echo "cat >conf$$subs.awk <<_ACEOF" &&
4428   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4429   echo "_ACEOF"
4430 } >conf$$subs.sh ||
4431   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4433 ac_delim='%!_!# '
4434 for ac_last_try in false false false false false :; do
4435   . ./conf$$subs.sh ||
4436     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4437
4438   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4439   if test $ac_delim_n = $ac_delim_num; then
4440     break
4441   elif $ac_last_try; then
4442     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4443   else
4444     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4445   fi
4446 done
4447 rm -f conf$$subs.sh
4448
4449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4450 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4451 _ACEOF
4452 sed -n '
4453 h
4454 s/^/S["/; s/!.*/"]=/
4455 p
4456 g
4457 s/^[^!]*!//
4458 :repl
4459 t repl
4460 s/'"$ac_delim"'$//
4461 t delim
4462 :nl
4463 h
4464 s/\(.\{148\}\)..*/\1/
4465 t more1
4466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4467 p
4468 n
4469 b repl
4470 :more1
4471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4472 p
4473 g
4474 s/.\{148\}//
4475 t nl
4476 :delim
4477 h
4478 s/\(.\{148\}\)..*/\1/
4479 t more2
4480 s/["\\]/\\&/g; s/^/"/; s/$/"/
4481 p
4482 b
4483 :more2
4484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4485 p
4486 g
4487 s/.\{148\}//
4488 t delim
4489 ' <conf$$subs.awk | sed '
4490 /^[^""]/{
4491   N
4492   s/\n//
4493 }
4494 ' >>$CONFIG_STATUS || ac_write_fail=1
4495 rm -f conf$$subs.awk
4496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4497 _ACAWK
4498 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4499   for (key in S) S_is_set[key] = 1
4500   FS = "\a"
4501
4502 }
4503 {
4504   line = $ 0
4505   nfields = split(line, field, "@")
4506   substed = 0
4507   len = length(field[1])
4508   for (i = 2; i < nfields; i++) {
4509     key = field[i]
4510     keylen = length(key)
4511     if (S_is_set[key]) {
4512       value = S[key]
4513       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4514       len += length(value) + length(field[++i])
4515       substed = 1
4516     } else
4517       len += 1 + keylen
4518   }
4519
4520   print line
4521 }
4522
4523 _ACAWK
4524 _ACEOF
4525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4527   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4528 else
4529   cat
4530 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4531   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4532 _ACEOF
4533
4534 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4535 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4536 # trailing colons and then remove the whole line if VPATH becomes empty
4537 # (actually we leave an empty line to preserve line numbers).
4538 if test "x$srcdir" = x.; then
4539   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
4540 h
4541 s///
4542 s/^/:/
4543 s/[      ]*$/:/
4544 s/:\$(srcdir):/:/g
4545 s/:\${srcdir}:/:/g
4546 s/:@srcdir@:/:/g
4547 s/^:*//
4548 s/:*$//
4549 x
4550 s/\(=[   ]*\).*/\1/
4551 G
4552 s/\n//
4553 s/^[^=]*=[       ]*$//
4554 }'
4555 fi
4556
4557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4558 fi # test -n "$CONFIG_FILES"
4559
4560
4561 eval set X "  :F $CONFIG_FILES      "
4562 shift
4563 for ac_tag
4564 do
4565   case $ac_tag in
4566   :[FHLC]) ac_mode=$ac_tag; continue;;
4567   esac
4568   case $ac_mode$ac_tag in
4569   :[FHL]*:*);;
4570   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4571   :[FH]-) ac_tag=-:-;;
4572   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4573   esac
4574   ac_save_IFS=$IFS
4575   IFS=:
4576   set x $ac_tag
4577   IFS=$ac_save_IFS
4578   shift
4579   ac_file=$1
4580   shift
4581
4582   case $ac_mode in
4583   :L) ac_source=$1;;
4584   :[FH])
4585     ac_file_inputs=
4586     for ac_f
4587     do
4588       case $ac_f in
4589       -) ac_f="$ac_tmp/stdin";;
4590       *) # Look for the file first in the build tree, then in the source tree
4591          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4592          # because $ac_f cannot contain `:'.
4593          test -f "$ac_f" ||
4594            case $ac_f in
4595            [\\/$]*) false;;
4596            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4597            esac ||
4598            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4599       esac
4600       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4601       as_fn_append ac_file_inputs " '$ac_f'"
4602     done
4603
4604     # Let's still pretend it is `configure' which instantiates (i.e., don't
4605     # use $as_me), people would be surprised to read:
4606     #    /* config.h.  Generated by config.status.  */
4607     configure_input='Generated from '`
4608           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4609         `' by configure.'
4610     if test x"$ac_file" != x-; then
4611       configure_input="$ac_file.  $configure_input"
4612       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4613 printf "%s\n" "$as_me: creating $ac_file" >&6;}
4614     fi
4615     # Neutralize special characters interpreted by sed in replacement strings.
4616     case $configure_input in #(
4617     *\&* | *\|* | *\\* )
4618        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4619        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4620     *) ac_sed_conf_input=$configure_input;;
4621     esac
4622
4623     case $ac_tag in
4624     *:-:* | *:-) cat >"$ac_tmp/stdin" \
4625       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4626     esac
4627     ;;
4628   esac
4629
4630   ac_dir=`$as_dirname -- "$ac_file" ||
4631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4632          X"$ac_file" : 'X\(//\)[^/]' \| \
4633          X"$ac_file" : 'X\(//\)$' \| \
4634          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4635 printf "%s\n" X"$ac_file" |
4636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4637             s//\1/
4638             q
4639           }
4640           /^X\(\/\/\)[^/].*/{
4641             s//\1/
4642             q
4643           }
4644           /^X\(\/\/\)$/{
4645             s//\1/
4646             q
4647           }
4648           /^X\(\/\).*/{
4649             s//\1/
4650             q
4651           }
4652           s/.*/./; q'`
4653   as_dir="$ac_dir"; as_fn_mkdir_p
4654   ac_builddir=.
4655
4656 case "$ac_dir" in
4657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4658 *)
4659   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4660   # A ".." for each directory in $ac_dir_suffix.
4661   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4662   case $ac_top_builddir_sub in
4663   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4664   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4665   esac ;;
4666 esac
4667 ac_abs_top_builddir=$ac_pwd
4668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4669 # for backward compatibility:
4670 ac_top_builddir=$ac_top_build_prefix
4671
4672 case $srcdir in
4673   .)  # We are building in place.
4674     ac_srcdir=.
4675     ac_top_srcdir=$ac_top_builddir_sub
4676     ac_abs_top_srcdir=$ac_pwd ;;
4677   [\\/]* | ?:[\\/]* )  # Absolute name.
4678     ac_srcdir=$srcdir$ac_dir_suffix;
4679     ac_top_srcdir=$srcdir
4680     ac_abs_top_srcdir=$srcdir ;;
4681   *) # Relative name.
4682     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4683     ac_top_srcdir=$ac_top_build_prefix$srcdir
4684     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4685 esac
4686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4687
4688
4689   case $ac_mode in
4690   :F)
4691   #
4692   # CONFIG_FILE
4693   #
4694
4695 _ACEOF
4696
4697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4698 # If the template does not know about datarootdir, expand it.
4699 # FIXME: This hack should be removed a few years after 2.60.
4700 ac_datarootdir_hack=; ac_datarootdir_seen=
4701 ac_sed_dataroot='
4702 /datarootdir/ {
4703   p
4704   q
4705 }
4706 /@datadir@/p
4707 /@docdir@/p
4708 /@infodir@/p
4709 /@localedir@/p
4710 /@mandir@/p'
4711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4712 *datarootdir*) ac_datarootdir_seen=yes;;
4713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4715 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4716 _ACEOF
4717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4718   ac_datarootdir_hack='
4719   s&@datadir@&$datadir&g
4720   s&@docdir@&$docdir&g
4721   s&@infodir@&$infodir&g
4722   s&@localedir@&$localedir&g
4723   s&@mandir@&$mandir&g
4724   s&\\\${datarootdir}&$datarootdir&g' ;;
4725 esac
4726 _ACEOF
4727
4728 # Neutralize VPATH when `$srcdir' = `.'.
4729 # Shell code in configure.ac might set extrasub.
4730 # FIXME: do we really want to maintain this feature?
4731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4732 ac_sed_extra="$ac_vpsub
4733 $extrasub
4734 _ACEOF
4735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4736 :t
4737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4738 s|@configure_input@|$ac_sed_conf_input|;t t
4739 s&@top_builddir@&$ac_top_builddir_sub&;t t
4740 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4741 s&@srcdir@&$ac_srcdir&;t t
4742 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4743 s&@top_srcdir@&$ac_top_srcdir&;t t
4744 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4745 s&@builddir@&$ac_builddir&;t t
4746 s&@abs_builddir@&$ac_abs_builddir&;t t
4747 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4748 $ac_datarootdir_hack
4749 "
4750 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4751   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4752
4753 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4754   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4755   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
4756       "$ac_tmp/out"`; test -z "$ac_out"; } &&
4757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4758 which seems to be undefined.  Please make sure it is defined" >&5
4759 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4760 which seems to be undefined.  Please make sure it is defined" >&2;}
4761
4762   rm -f "$ac_tmp/stdin"
4763   case $ac_file in
4764   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4765   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4766   esac \
4767   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4768  ;;
4769
4770
4771
4772   esac
4773
4774 done # for ac_tag
4775
4776
4777 as_fn_exit 0
4778 _ACEOF
4779 ac_clean_files=$ac_clean_files_save
4780
4781 test $ac_write_fail = 0 ||
4782   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4783
4784
4785 # configure is writing to config.log, and then calls config.status.
4786 # config.status does its own redirection, appending to config.log.
4787 # Unfortunately, on DOS this fails, as config.log is still kept open
4788 # by configure, so config.status won't be able to write to it; its
4789 # output is simply discarded.  So we exec the FD to /dev/null,
4790 # effectively closing config.log, so it can be properly (re)opened and
4791 # appended to by config.status.  When coming back to configure, we
4792 # need to make the FD available again.
4793 if test "$no_create" != yes; then
4794   ac_cs_success=:
4795   ac_config_status_args=
4796   test "$silent" = yes &&
4797     ac_config_status_args="$ac_config_status_args --quiet"
4798   exec 5>/dev/null
4799   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4800   exec 5>>config.log
4801   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4802   # would make configure fail if this is the last instruction.
4803   $ac_cs_success || as_fn_exit 1
4804 fi
4805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4807 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4808 fi
4809
4810