]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - configure
Vendor import of Unbound 1.6.6.
[FreeBSD/FreeBSD.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.6.6.
4 #
5 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: unbound-bugs@nlnetlabs.nl about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='unbound'
592 PACKAGE_TARNAME='unbound'
593 PACKAGE_VERSION='1.6.6'
594 PACKAGE_STRING='unbound 1.6.6'
595 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='LTLIBOBJS
635 date
636 version
637 INSTALLTARGET
638 ALLTARGET
639 SOURCEFILE
640 SOURCEDETERMINE
641 IPSECMOD_HEADER
642 IPSECMOD_OBJ
643 DNSCRYPT_OBJ
644 DNSCRYPT_SRC
645 ENABLE_DNSCRYPT
646 ENABLE_DNSCRYPT_XCHACHA20
647 DNSTAP_OBJ
648 DNSTAP_SRC
649 opt_dnstap_socket_path
650 ENABLE_DNSTAP
651 PROTOC_C
652 UBSYMS
653 EXTRALINK
654 COMMON_OBJ_ALL_SYMBOLS
655 LIBOBJ_WITHOUT_CTIME
656 LIBOBJ_WITHOUT_CTIMEARC4
657 WIN_CHECKCONF_OBJ_LINK
658 WIN_CONTROL_OBJ_LINK
659 WIN_UBANCHOR_OBJ_LINK
660 WIN_HOST_OBJ_LINK
661 WIN_DAEMON_OBJ_LINK
662 WIN_DAEMON_OBJ
663 WIN_DAEMON_SRC
664 WINAPPS
665 WINDRES
666 CHECKLOCK_OBJ
667 USE_SYSTEMD_FALSE
668 USE_SYSTEMD_TRUE
669 SYSTEMD_DAEMON_LIBS
670 SYSTEMD_DAEMON_CFLAGS
671 SYSTEMD_LIBS
672 SYSTEMD_CFLAGS
673 PKG_CONFIG_LIBDIR
674 PKG_CONFIG_PATH
675 PKG_CONFIG
676 staticexe
677 PC_LIBEVENT_DEPENDENCY
678 UNBOUND_EVENT_UNINSTALL
679 UNBOUND_EVENT_INSTALL
680 SUBNET_HEADER
681 SUBNET_OBJ
682 SSLLIB
683 HAVE_SSL
684 CONFIG_DATE
685 NETBSD_LINTFLAGS
686 PYUNBOUND_UNINSTALL
687 PYUNBOUND_INSTALL
688 PYUNBOUND_TARGET
689 PYUNBOUND_OBJ
690 WITH_PYUNBOUND
691 PYTHONMOD_UNINSTALL
692 PYTHONMOD_INSTALL
693 PYTHONMOD_HEADER
694 PYTHONMOD_OBJ
695 WITH_PYTHONMODULE
696 swig
697 SWIG_LIB
698 SWIG
699 PC_PY_DEPENDENCY
700 PY_MAJOR_VERSION
701 PYTHON_SITE_PKG
702 PYTHON_LDFLAGS
703 PYTHON_CPPFLAGS
704 PYTHON
705 PYTHON_VERSION
706 PTHREAD_CFLAGS_ONLY
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 ax_pthread_config
711 RUNTIME_PATH
712 LIBOBJS
713 LT_SYS_LIBRARY_PATH
714 OTOOL64
715 OTOOL
716 LIPO
717 NMEDIT
718 DSYMUTIL
719 MANIFEST_TOOL
720 AWK
721 RANLIB
722 ac_ct_AR
723 DLLTOOL
724 OBJDUMP
725 LN_S
726 NM
727 ac_ct_DUMPBIN
728 DUMPBIN
729 LD
730 FGREP
731 SED
732 LIBTOOL
733 AR
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 libtool
743 STRIP
744 doxygen
745 YFLAGS
746 YACC
747 LEXLIB
748 LEX_OUTPUT_ROOT
749 LEX
750 debug_enabled
751 DEPFLAG
752 UNBOUND_USERNAME
753 UNBOUND_ROOTCERT_FILE
754 UNBOUND_ROOTKEY_FILE
755 UNBOUND_PIDFILE
756 UNBOUND_SHARE_DIR
757 UNBOUND_CHROOT_DIR
758 UNBOUND_RUN_DIR
759 ub_conf_dir
760 ub_conf_file
761 UNBOUND_LOCALSTATE_DIR
762 UNBOUND_SYSCONF_DIR
763 UNBOUND_SBIN_DIR
764 EGREP
765 GREP
766 CPP
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 LIBUNBOUND_AGE
775 LIBUNBOUND_REVISION
776 LIBUNBOUND_CURRENT
777 UNBOUND_VERSION_MICRO
778 UNBOUND_VERSION_MINOR
779 UNBOUND_VERSION_MAJOR
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 with_conf_file
822 with_run_dir
823 with_chroot_dir
824 with_share_dir
825 with_pidfile
826 with_rootkey_file
827 with_rootcert_file
828 with_username
829 enable_checking
830 enable_debug
831 enable_flto
832 enable_pie
833 enable_relro_now
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_aix_soname
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 enable_rpath
843 enable_largefile
844 enable_alloc_checks
845 enable_alloc_lite
846 enable_alloc_nonregional
847 with_pthreads
848 with_solaris_threads
849 with_pyunbound
850 with_pythonmodule
851 with_nss
852 with_nettle
853 with_ssl
854 enable_sha1
855 enable_sha2
856 enable_subnet
857 enable_gost
858 enable_ecdsa
859 enable_dsa
860 enable_ed25519
861 enable_event_api
862 enable_tfo_client
863 enable_tfo_server
864 with_libevent
865 with_libexpat
866 enable_static_exe
867 enable_systemd
868 enable_lock_checks
869 enable_allsymbols
870 enable_dnstap
871 with_dnstap_socket_path
872 with_protobuf_c
873 with_libfstrm
874 enable_dnscrypt
875 with_libsodium
876 enable_cachedb
877 enable_ipsecmod
878 with_libunbound_only
879 '
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 YACC
890 YFLAGS
891 LT_SYS_LIBRARY_PATH
892 PYTHON_VERSION
893 PKG_CONFIG
894 PKG_CONFIG_PATH
895 PKG_CONFIG_LIBDIR
896 SYSTEMD_CFLAGS
897 SYSTEMD_LIBS
898 SYSTEMD_DAEMON_CFLAGS
899 SYSTEMD_DAEMON_LIBS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 ac_unrecognized_opts=
906 ac_unrecognized_sep=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
960
961   case $ac_option in
962   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *=)   ac_optarg= ;;
964   *)    ac_optarg=yes ;;
965   esac
966
967   # Accept the important Cygnus configure options, so we can diagnose typos.
968
969   case $ac_dashdash$ac_option in
970   --)
971     ac_dashdash=yes ;;
972
973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
974     ac_prev=bindir ;;
975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976     bindir=$ac_optarg ;;
977
978   -build | --build | --buil | --bui | --bu)
979     ac_prev=build_alias ;;
980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981     build_alias=$ac_optarg ;;
982
983   -cache-file | --cache-file | --cache-fil | --cache-fi \
984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985     ac_prev=cache_file ;;
986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988     cache_file=$ac_optarg ;;
989
990   --config-cache | -C)
991     cache_file=config.cache ;;
992
993   -datadir | --datadir | --datadi | --datad)
994     ac_prev=datadir ;;
995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
996     datadir=$ac_optarg ;;
997
998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999   | --dataroo | --dataro | --datar)
1000     ac_prev=datarootdir ;;
1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003     datarootdir=$ac_optarg ;;
1004
1005   -disable-* | --disable-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid feature name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval enable_$ac_useropt=no ;;
1020
1021   -docdir | --docdir | --docdi | --doc | --do)
1022     ac_prev=docdir ;;
1023   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024     docdir=$ac_optarg ;;
1025
1026   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027     ac_prev=dvidir ;;
1028   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029     dvidir=$ac_optarg ;;
1030
1031   -enable-* | --enable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error $? "invalid feature name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049   | --exec | --exe | --ex)
1050     ac_prev=exec_prefix ;;
1051   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053   | --exec=* | --exe=* | --ex=*)
1054     exec_prefix=$ac_optarg ;;
1055
1056   -gas | --gas | --ga | --g)
1057     # Obsolete; use --with-gas.
1058     with_gas=yes ;;
1059
1060   -help | --help | --hel | --he | -h)
1061     ac_init_help=long ;;
1062   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063     ac_init_help=recursive ;;
1064   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065     ac_init_help=short ;;
1066
1067   -host | --host | --hos | --ho)
1068     ac_prev=host_alias ;;
1069   -host=* | --host=* | --hos=* | --ho=*)
1070     host_alias=$ac_optarg ;;
1071
1072   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073     ac_prev=htmldir ;;
1074   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075   | --ht=*)
1076     htmldir=$ac_optarg ;;
1077
1078   -includedir | --includedir | --includedi | --included | --include \
1079   | --includ | --inclu | --incl | --inc)
1080     ac_prev=includedir ;;
1081   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082   | --includ=* | --inclu=* | --incl=* | --inc=*)
1083     includedir=$ac_optarg ;;
1084
1085   -infodir | --infodir | --infodi | --infod | --info | --inf)
1086     ac_prev=infodir ;;
1087   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088     infodir=$ac_optarg ;;
1089
1090   -libdir | --libdir | --libdi | --libd)
1091     ac_prev=libdir ;;
1092   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093     libdir=$ac_optarg ;;
1094
1095   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096   | --libexe | --libex | --libe)
1097     ac_prev=libexecdir ;;
1098   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099   | --libexe=* | --libex=* | --libe=*)
1100     libexecdir=$ac_optarg ;;
1101
1102   -localedir | --localedir | --localedi | --localed | --locale)
1103     ac_prev=localedir ;;
1104   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105     localedir=$ac_optarg ;;
1106
1107   -localstatedir | --localstatedir | --localstatedi | --localstated \
1108   | --localstate | --localstat | --localsta | --localst | --locals)
1109     ac_prev=localstatedir ;;
1110   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112     localstatedir=$ac_optarg ;;
1113
1114   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115     ac_prev=mandir ;;
1116   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117     mandir=$ac_optarg ;;
1118
1119   -nfp | --nfp | --nf)
1120     # Obsolete; use --without-fp.
1121     with_fp=no ;;
1122
1123   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124   | --no-cr | --no-c | -n)
1125     no_create=yes ;;
1126
1127   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129     no_recursion=yes ;;
1130
1131   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133   | --oldin | --oldi | --old | --ol | --o)
1134     ac_prev=oldincludedir ;;
1135   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138     oldincludedir=$ac_optarg ;;
1139
1140   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141     ac_prev=prefix ;;
1142   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143     prefix=$ac_optarg ;;
1144
1145   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146   | --program-pre | --program-pr | --program-p)
1147     ac_prev=program_prefix ;;
1148   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150     program_prefix=$ac_optarg ;;
1151
1152   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153   | --program-suf | --program-su | --program-s)
1154     ac_prev=program_suffix ;;
1155   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157     program_suffix=$ac_optarg ;;
1158
1159   -program-transform-name | --program-transform-name \
1160   | --program-transform-nam | --program-transform-na \
1161   | --program-transform-n | --program-transform- \
1162   | --program-transform | --program-transfor \
1163   | --program-transfo | --program-transf \
1164   | --program-trans | --program-tran \
1165   | --progr-tra | --program-tr | --program-t)
1166     ac_prev=program_transform_name ;;
1167   -program-transform-name=* | --program-transform-name=* \
1168   | --program-transform-nam=* | --program-transform-na=* \
1169   | --program-transform-n=* | --program-transform-=* \
1170   | --program-transform=* | --program-transfor=* \
1171   | --program-transfo=* | --program-transf=* \
1172   | --program-trans=* | --program-tran=* \
1173   | --progr-tra=* | --program-tr=* | --program-t=*)
1174     program_transform_name=$ac_optarg ;;
1175
1176   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177     ac_prev=pdfdir ;;
1178   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179     pdfdir=$ac_optarg ;;
1180
1181   -psdir | --psdir | --psdi | --psd | --ps)
1182     ac_prev=psdir ;;
1183   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184     psdir=$ac_optarg ;;
1185
1186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187   | -silent | --silent | --silen | --sile | --sil)
1188     silent=yes ;;
1189
1190   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191     ac_prev=sbindir ;;
1192   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193   | --sbi=* | --sb=*)
1194     sbindir=$ac_optarg ;;
1195
1196   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198   | --sharedst | --shareds | --shared | --share | --shar \
1199   | --sha | --sh)
1200     ac_prev=sharedstatedir ;;
1201   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204   | --sha=* | --sh=*)
1205     sharedstatedir=$ac_optarg ;;
1206
1207   -site | --site | --sit)
1208     ac_prev=site ;;
1209   -site=* | --site=* | --sit=*)
1210     site=$ac_optarg ;;
1211
1212   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213     ac_prev=srcdir ;;
1214   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215     srcdir=$ac_optarg ;;
1216
1217   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218   | --syscon | --sysco | --sysc | --sys | --sy)
1219     ac_prev=sysconfdir ;;
1220   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222     sysconfdir=$ac_optarg ;;
1223
1224   -target | --target | --targe | --targ | --tar | --ta | --t)
1225     ac_prev=target_alias ;;
1226   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227     target_alias=$ac_optarg ;;
1228
1229   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230     verbose=yes ;;
1231
1232   -version | --version | --versio | --versi | --vers | -V)
1233     ac_init_version=: ;;
1234
1235   -with-* | --with-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error $? "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=\$ac_optarg ;;
1250
1251   -without-* | --without-*)
1252     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255       as_fn_error $? "invalid package name: $ac_useropt"
1256     ac_useropt_orig=$ac_useropt
1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258     case $ac_user_opts in
1259       *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263          ac_unrecognized_sep=', ';;
1264     esac
1265     eval with_$ac_useropt=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     case $ac_envvar in #(
1293       '' | [0-9]* | *[!_$as_cr_alnum]* )
1294       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295     esac
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   as_fn_error $? "missing argument to $ac_option"
1313 fi
1314
1315 if test -n "$ac_unrecognized_opts"; then
1316   case $enable_option_checking in
1317     no) ;;
1318     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320   esac
1321 fi
1322
1323 # Check all directory arguments for consistency.
1324 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325                 datadir sysconfdir sharedstatedir localstatedir includedir \
1326                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327                 libdir localedir mandir
1328 do
1329   eval ac_val=\$$ac_var
1330   # Remove trailing slashes.
1331   case $ac_val in
1332     */ )
1333       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334       eval $ac_var=\$ac_val;;
1335   esac
1336   # Be sure to have absolute directory names.
1337   case $ac_val in
1338     [\\/$]* | ?:[\\/]* )  continue;;
1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340   esac
1341   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1350
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353   if test "x$build_alias" = x; then
1354     cross_compiling=maybe
1355   elif test "x$build_alias" != "x$host_alias"; then
1356     cross_compiling=yes
1357   fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369   as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   as_fn_error $? "pwd does not report name of working directory"
1372
1373
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376   ac_srcdir_defaulted=yes
1377   # Try the directory containing this script, then the parent directory.
1378   ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380          X"$as_myself" : 'X\(//\)[^/]' \| \
1381          X"$as_myself" : 'X\(//\)$' \| \
1382          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\/\)[^/].*/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\).*/{
1397             s//\1/
1398             q
1399           }
1400           s/.*/./; q'`
1401   srcdir=$ac_confdir
1402   if test ! -r "$srcdir/$ac_unique_file"; then
1403     srcdir=..
1404   fi
1405 else
1406   ac_srcdir_defaulted=no
1407 fi
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 fi
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415         pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418   srcdir=.
1419 fi
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_env_${ac_var}_value=\$${ac_var}
1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437   # Omit some internal or obsolete options to make the list less imposing.
1438   # This message is too long to be a string in the A/UX 3.1 sh.
1439   cat <<_ACEOF
1440 \`configure' configures unbound 1.6.6 to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450   -h, --help              display this help and exit
1451       --help=short        display options specific to this package
1452       --help=recursive    display the short help of all the included packages
1453   -V, --version           display version information and exit
1454   -q, --quiet, --silent   do not print \`checking ...' messages
1455       --cache-file=FILE   cache test results in FILE [disabled]
1456   -C, --config-cache      alias for \`--cache-file=config.cache'
1457   -n, --no-create         do not create output files
1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461   --prefix=PREFIX         install architecture-independent files in PREFIX
1462                           [$ac_default_prefix]
1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                           [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474   --bindir=DIR            user executables [EPREFIX/bin]
1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480   --libdir=DIR            object code libraries [EPREFIX/lib]
1481   --includedir=DIR        C header files [PREFIX/include]
1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
1488   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1489   --htmldir=DIR           html documentation [DOCDIR]
1490   --dvidir=DIR            dvi documentation [DOCDIR]
1491   --pdfdir=DIR            pdf documentation [DOCDIR]
1492   --psdir=DIR             ps documentation [DOCDIR]
1493 _ACEOF
1494
1495   cat <<\_ACEOF
1496
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of unbound 1.6.6:";;
1506    esac
1507   cat <<\_ACEOF
1508
1509 Optional Features:
1510   --disable-option-checking  ignore unrecognized --enable/--with options
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --enable-checking       Enable warnings, asserts, makefile-dependencies
1514   --enable-debug          same as enable-checking
1515   --disable-flto          Disable link-time optimization (gcc specific option)
1516   --enable-pie            Enable Position-Independent Executable (eg. to fully
1517                           benefit from ASLR, small performance penalty)
1518   --enable-relro-now      Enable full relocation binding at load-time (RELRO
1519                           NOW, to protect GOT and .dtor areas)
1520   --enable-shared[=PKGS]  build shared libraries [default=yes]
1521   --enable-static[=PKGS]  build static libraries [default=yes]
1522   --enable-fast-install[=PKGS]
1523                           optimize for fast installation [default=yes]
1524   --disable-libtool-lock  avoid locking (might break parallel builds)
1525   --disable-rpath         disable hardcoded rpath (default=enabled)
1526   --disable-largefile     omit support for large files
1527   --enable-alloc-checks   enable to memory allocation statistics, for debug
1528                           purposes
1529   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1530                           purposes
1531   --enable-alloc-nonregional
1532                           enable nonregional allocs, slow but exposes regional
1533                           allocations to other memory purifiers, for debug
1534                           purposes
1535   --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1536                           support
1537   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1538   --enable-subnet         Enable client subnet
1539   --disable-gost          Disable GOST support
1540   --disable-ecdsa         Disable ECDSA support
1541   --disable-dsa           Disable DSA support
1542   --disable-ed25519       Disable ED25519 support
1543   --enable-event-api      Enable (experimental) pluggable event base
1544                           libunbound API installed to unbound-event.h
1545   --enable-tfo-client     Enable TCP Fast Open for client mode
1546   --enable-tfo-server     Enable TCP Fast Open for server mode
1547   --enable-static-exe     enable to compile executables statically against
1548                           (event) libs, for debug purposes
1549   --enable-systemd        compile with systemd support
1550   --enable-lock-checks    enable to check lock and unlock calls, for debug
1551                           purposes
1552   --enable-allsymbols     export all symbols from libunbound and link binaries
1553                           to it, smaller install size but libunbound export
1554                           table is polluted by internal symbols
1555   --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1556   --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1557   --enable-cachedb        enable cachedb module that can use external cache
1558                           storage
1559   --enable-ipsecmod       Enable ipsecmod module that facilitates
1560                           opportunistic IPsec
1561
1562 Optional Packages:
1563   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565   --with-conf-file=path   Pathname to the Unbound configuration file
1566   --with-run-dir=path     set default directory to chdir to (by default dir
1567                           part of cfg file)
1568   --with-chroot-dir=path  set default directory to chroot to (by default same
1569                           as run-dir)
1570   --with-share-dir=path   set default directory with shared data (by default
1571                           same as share/unbound)
1572   --with-pidfile=filename set default pathname to unbound pidfile (default
1573                           run-dir/unbound.pid)
1574   --with-rootkey-file=filename
1575                           set default pathname to root key file (default
1576                           run-dir/root.key). This file is read and written.
1577   --with-rootcert-file=filename
1578                           set default pathname to root update certificate file
1579                           (default run-dir/icannbundle.pem). This file need
1580                           not exist if you are content with the builtin.
1581   --with-username=user    set default user that unbound changes to (default
1582                           user is unbound)
1583   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1584                           both]
1585   --with-aix-soname=aix|svr4|both
1586                           shared library versioning (aka "SONAME") variant to
1587                           provide on AIX, [default=aix].
1588   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1589   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1590                           compiler's sysroot if not specified).
1591   --with-pthreads         use pthreads library, or --without-pthreads to
1592                           disable threading support.
1593   --with-solaris-threads  use solaris native thread library.
1594   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1595                           (default=no)
1596   --with-pythonmodule     build Python module, or --without-pythonmodule to
1597                           disable script engine. (default=no)
1598   --with-nss=path         use libnss instead of openssl, installed at path.
1599   --with-nettle=path      use libnettle as crypto library, installed at path.
1600   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1601                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1602                           /usr)
1603   --with-libevent=pathname
1604                           use libevent (will check /usr/local /opt/local
1605                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1606                           an explicit path). Slower, but allows use of large
1607                           outgoing port ranges.
1608   --with-libexpat=path    specify explicit path for libexpat.
1609   --with-dnstap-socket-path=pathname
1610                           set default dnstap socket path
1611   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1612   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1613   --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1614   --with-libunbound-only  do not build daemon and tool programs
1615
1616 Some influential environment variables:
1617   CC          C compiler command
1618   CFLAGS      C compiler flags
1619   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1620               nonstandard directory <lib dir>
1621   LIBS        libraries to pass to the linker, e.g. -l<library>
1622   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1623               you have headers in a nonstandard directory <include dir>
1624   CPP         C preprocessor
1625   YACC        The `Yet Another Compiler Compiler' implementation to use.
1626               Defaults to the first program found out of: `bison -y', `byacc',
1627               `yacc'.
1628   YFLAGS      The list of arguments that will be passed by default to $YACC.
1629               This script will default YFLAGS to the empty string to avoid a
1630               default value of `-d' given by some make applications.
1631   LT_SYS_LIBRARY_PATH
1632               User-defined run-time library search path.
1633   PYTHON_VERSION
1634               The installed Python version to use, for example '2.3'. This
1635               string will be appended to the Python interpreter canonical
1636               name.
1637   PKG_CONFIG  path to pkg-config utility
1638   PKG_CONFIG_PATH
1639               directories to add to pkg-config's search path
1640   PKG_CONFIG_LIBDIR
1641               path overriding pkg-config's built-in search path
1642   SYSTEMD_CFLAGS
1643               C compiler flags for SYSTEMD, overriding pkg-config
1644   SYSTEMD_LIBS
1645               linker flags for SYSTEMD, overriding pkg-config
1646   SYSTEMD_DAEMON_CFLAGS
1647               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1648   SYSTEMD_DAEMON_LIBS
1649               linker flags for SYSTEMD_DAEMON, overriding pkg-config
1650
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1653
1654 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1655 _ACEOF
1656 ac_status=$?
1657 fi
1658
1659 if test "$ac_init_help" = "recursive"; then
1660   # If there are subdirs, report their specific --help.
1661   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662     test -d "$ac_dir" ||
1663       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664       continue
1665     ac_builddir=.
1666
1667 case "$ac_dir" in
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *)
1670   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671   # A ".." for each directory in $ac_dir_suffix.
1672   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673   case $ac_top_builddir_sub in
1674   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676   esac ;;
1677 esac
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1682
1683 case $srcdir in
1684   .)  # We are building in place.
1685     ac_srcdir=.
1686     ac_top_srcdir=$ac_top_builddir_sub
1687     ac_abs_top_srcdir=$ac_pwd ;;
1688   [\\/]* | ?:[\\/]* )  # Absolute name.
1689     ac_srcdir=$srcdir$ac_dir_suffix;
1690     ac_top_srcdir=$srcdir
1691     ac_abs_top_srcdir=$srcdir ;;
1692   *) # Relative name.
1693     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694     ac_top_srcdir=$ac_top_build_prefix$srcdir
1695     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 esac
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
1699     cd "$ac_dir" || { ac_status=$?; continue; }
1700     # Check for guested configure.
1701     if test -f "$ac_srcdir/configure.gnu"; then
1702       echo &&
1703       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704     elif test -f "$ac_srcdir/configure"; then
1705       echo &&
1706       $SHELL "$ac_srcdir/configure" --help=recursive
1707     else
1708       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709     fi || ac_status=$?
1710     cd "$ac_pwd" || { ac_status=$?; break; }
1711   done
1712 fi
1713
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1716   cat <<\_ACEOF
1717 unbound configure 1.6.6
1718 generated by GNU Autoconf 2.69
1719
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1723 _ACEOF
1724   exit
1725 fi
1726
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1730
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   rm -f conftest.$ac_objext
1738   if { { ac_try="$ac_compile"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_compile") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } && {
1754          test -z "$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        } && test -s conftest.$ac_objext; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762         ac_retval=1
1763 fi
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_compile
1768
1769 # ac_fn_c_try_cpp LINENO
1770 # ----------------------
1771 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_cpp ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   if { { ac_try="$ac_cpp conftest.$ac_ext"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } > conftest.i && {
1791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        }; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799     ac_retval=1
1800 fi
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802   as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_cpp
1805
1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809 # the include files in INCLUDES and setting the cache variable VAR
1810 # accordingly.
1811 ac_fn_c_check_header_mongrel ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   if eval \${$3+:} false; then :
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818   $as_echo_n "(cached) " >&6
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 else
1824   # Is the header compilable?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826 $as_echo_n "checking $2 usability... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833   ac_header_compiler=yes
1834 else
1835   ac_header_compiler=no
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839 $as_echo "$ac_header_compiler" >&6; }
1840
1841 # Is the header present?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843 $as_echo_n "checking $2 presence... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849   ac_header_preproc=yes
1850 else
1851   ac_header_preproc=no
1852 fi
1853 rm -f conftest.err conftest.i conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855 $as_echo "$ac_header_preproc" >&6; }
1856
1857 # So?  What about this header?
1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1859   yes:no: )
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864     ;;
1865   no:yes:* )
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1869 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1873 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ( $as_echo "## ---------------------------------------- ##
1877 ## Report this to unbound-bugs@nlnetlabs.nl ##
1878 ## ---------------------------------------- ##"
1879      ) | sed "s/^/$as_me: WARNING:     /" >&2
1880     ;;
1881 esac
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885   $as_echo_n "(cached) " >&6
1886 else
1887   eval "$3=\$ac_header_compiler"
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 fi
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_header_mongrel
1896
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1901 ac_fn_c_try_run ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_link") 2>&5
1912   ac_status=$?
1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915   { { case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_try") 2>&5
1922   ac_status=$?
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; }; }; then :
1925   ac_retval=0
1926 else
1927   $as_echo "$as_me: program exited with status $ac_status" >&5
1928        $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931        ac_retval=$ac_status
1932 fi
1933   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935   as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_run
1938
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957   eval "$3=yes"
1958 else
1959   eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_check_header_compile
1969
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_link ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   rm -f conftest.$ac_objext conftest$ac_exeext
1977   if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980   *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984   (eval "$ac_link") 2>conftest.err
1985   ac_status=$?
1986   if test -s conftest.err; then
1987     grep -v '^ *+' conftest.err >conftest.er1
1988     cat conftest.er1 >&5
1989     mv -f conftest.er1 conftest.err
1990   fi
1991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992   test $ac_status = 0; } && {
1993          test -z "$ac_c_werror_flag" ||
1994          test ! -s conftest.err
1995        } && test -s conftest$ac_exeext && {
1996          test "$cross_compiling" = yes ||
1997          test -x conftest$ac_exeext
1998        }; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004         ac_retval=1
2005 fi
2006   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008   # interfere with the next link command; also delete a directory that is
2009   # left behind by Apple's compiler.  We do this before executing the actions.
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_link
2015
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2031 #define $2 innocuous_$2
2032
2033 /* System header to define __stub macros and hopefully few prototypes,
2034     which can conflict with char $2 (); below.
2035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036     <limits.h> exists even on freestanding compilers.  */
2037
2038 #ifdef __STDC__
2039 # include <limits.h>
2040 #else
2041 # include <assert.h>
2042 #endif
2043
2044 #undef $2
2045
2046 /* Override any GCC internal prototype to avoid an error.
2047    Use char because int might match the return type of a GCC
2048    builtin and then its argument prototype would still apply.  */
2049 #ifdef __cplusplus
2050 extern "C"
2051 #endif
2052 char $2 ();
2053 /* The GNU C library defines this for functions which it implements
2054     to always fail with ENOSYS.  Some functions are actually named
2055     something starting with __ and the normal name is an alias.  */
2056 #if defined __stub_$2 || defined __stub___$2
2057 choke me
2058 #endif
2059
2060 int
2061 main ()
2062 {
2063 return $2 ();
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_link "$LINENO"; then :
2069   eval "$3=yes"
2070 else
2071   eval "$3=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext \
2074     conftest$ac_exeext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_func
2082
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093   $as_echo_n "(cached) " >&6
2094 else
2095   eval "$3=no"
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 if (sizeof ($2))
2103          return 0;
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 if (sizeof (($2)))
2116             return 0;
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122
2123 else
2124   eval "$3=yes"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_type
2136
2137 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2138 # --------------------------------------------
2139 # Tries to find the compile-time value of EXPR in a program that includes
2140 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2141 # computed
2142 ac_fn_c_compute_int ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   if test "$cross_compiling" = yes; then
2146     # Depending upon the size, compute the lo and hi bounds.
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) >= 0)];
2154 test_array [0] = 0;
2155 return test_array [0];
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_lo=0 ac_mid=0
2163   while :; do
2164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h.  */
2166 $4
2167 int
2168 main ()
2169 {
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171 test_array [0] = 0;
2172 return test_array [0];
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   ac_hi=$ac_mid; break
2180 else
2181   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182                         if test $ac_lo -le $ac_mid; then
2183                           ac_lo= ac_hi=
2184                           break
2185                         fi
2186                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189   done
2190 else
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) < 0)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_hi=-1 ac_mid=-1
2207   while :; do
2208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2215 test_array [0] = 0;
2216 return test_array [0];
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223   ac_lo=$ac_mid; break
2224 else
2225   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226                         if test $ac_mid -le $ac_hi; then
2227                           ac_lo= ac_hi=
2228                           break
2229                         fi
2230                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233   done
2234 else
2235   ac_lo= ac_hi=
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2250 test_array [0] = 0;
2251 return test_array [0];
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258   ac_hi=$ac_mid
2259 else
2260   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 case $ac_lo in #((
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2266 '') ac_retval=1 ;;
2267 esac
2268   else
2269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 $4
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2274 #include <stdio.h>
2275 #include <stdlib.h>
2276 int
2277 main ()
2278 {
2279
2280   FILE *f = fopen ("conftest.val", "w");
2281   if (! f)
2282     return 1;
2283   if (($2) < 0)
2284     {
2285       long int i = longval ();
2286       if (i != ($2))
2287         return 1;
2288       fprintf (f, "%ld", i);
2289     }
2290   else
2291     {
2292       unsigned long int i = ulongval ();
2293       if (i != ($2))
2294         return 1;
2295       fprintf (f, "%lu", i);
2296     }
2297   /* Do not output a trailing newline, as this causes \r\n confusion
2298      on some platforms.  */
2299   return ferror (f) || fclose (f) != 0;
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_run "$LINENO"; then :
2306   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 else
2308   ac_retval=1
2309 fi
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311   conftest.$ac_objext conftest.beam conftest.$ac_ext
2312 rm -f conftest.val
2313
2314   fi
2315   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316   as_fn_set_status $ac_retval
2317
2318 } # ac_fn_c_compute_int
2319
2320 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2323 # accordingly.
2324 ac_fn_c_check_decl ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   as_decl_name=`echo $2|sed 's/ *(.*//'`
2328   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2330 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2331 if eval \${$3+:} false; then :
2332   $as_echo_n "(cached) " >&6
2333 else
2334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h.  */
2336 $4
2337 int
2338 main ()
2339 {
2340 #ifndef $as_decl_name
2341 #ifdef __cplusplus
2342   (void) $as_decl_use;
2343 #else
2344   (void) $as_decl_name;
2345 #endif
2346 #endif
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353   eval "$3=yes"
2354 else
2355   eval "$3=no"
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 eval ac_res=\$$3
2360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363
2364 } # ac_fn_c_check_decl
2365
2366 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2367 # ----------------------------------------------------
2368 # Tries to find if the field MEMBER exists in type AGGR, after including
2369 # INCLUDES, setting cache variable VAR accordingly.
2370 ac_fn_c_check_member ()
2371 {
2372   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2374 $as_echo_n "checking for $2.$3... " >&6; }
2375 if eval \${$4+:} false; then :
2376   $as_echo_n "(cached) " >&6
2377 else
2378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h.  */
2380 $5
2381 int
2382 main ()
2383 {
2384 static $2 ac_aggr;
2385 if (ac_aggr.$3)
2386 return 0;
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392   eval "$4=yes"
2393 else
2394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396 $5
2397 int
2398 main ()
2399 {
2400 static $2 ac_aggr;
2401 if (sizeof ac_aggr.$3)
2402 return 0;
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408   eval "$4=yes"
2409 else
2410   eval "$4=no"
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 fi
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 fi
2416 eval ac_res=\$$4
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420
2421 } # ac_fn_c_check_member
2422 cat >config.log <<_ACEOF
2423 This file contains any messages produced by compilers while
2424 running configure, to aid debugging if configure makes a mistake.
2425
2426 It was created by unbound $as_me 1.6.6, which was
2427 generated by GNU Autoconf 2.69.  Invocation command line was
2428
2429   $ $0 $@
2430
2431 _ACEOF
2432 exec 5>>config.log
2433 {
2434 cat <<_ASUNAME
2435 ## --------- ##
2436 ## Platform. ##
2437 ## --------- ##
2438
2439 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2440 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2441 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2442 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2443 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2444
2445 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2446 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2447
2448 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2449 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2450 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2451 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2452 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2453 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2454 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2455
2456 _ASUNAME
2457
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463     $as_echo "PATH: $as_dir"
2464   done
2465 IFS=$as_save_IFS
2466
2467 } >&5
2468
2469 cat >&5 <<_ACEOF
2470
2471
2472 ## ----------- ##
2473 ## Core tests. ##
2474 ## ----------- ##
2475
2476 _ACEOF
2477
2478
2479 # Keep a trace of the command line.
2480 # Strip out --no-create and --no-recursion so they do not pile up.
2481 # Strip out --silent because we don't want to record it for future runs.
2482 # Also quote any args containing shell meta-characters.
2483 # Make two passes to allow for proper duplicate-argument suppression.
2484 ac_configure_args=
2485 ac_configure_args0=
2486 ac_configure_args1=
2487 ac_must_keep_next=false
2488 for ac_pass in 1 2
2489 do
2490   for ac_arg
2491   do
2492     case $ac_arg in
2493     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2494     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2495     | -silent | --silent | --silen | --sile | --sil)
2496       continue ;;
2497     *\'*)
2498       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2499     esac
2500     case $ac_pass in
2501     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2502     2)
2503       as_fn_append ac_configure_args1 " '$ac_arg'"
2504       if test $ac_must_keep_next = true; then
2505         ac_must_keep_next=false # Got value, back to normal.
2506       else
2507         case $ac_arg in
2508           *=* | --config-cache | -C | -disable-* | --disable-* \
2509           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2510           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2511           | -with-* | --with-* | -without-* | --without-* | --x)
2512             case "$ac_configure_args0 " in
2513               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2514             esac
2515             ;;
2516           -* ) ac_must_keep_next=true ;;
2517         esac
2518       fi
2519       as_fn_append ac_configure_args " '$ac_arg'"
2520       ;;
2521     esac
2522   done
2523 done
2524 { ac_configure_args0=; unset ac_configure_args0;}
2525 { ac_configure_args1=; unset ac_configure_args1;}
2526
2527 # When interrupted or exit'd, cleanup temporary files, and complete
2528 # config.log.  We remove comments because anyway the quotes in there
2529 # would cause problems or look ugly.
2530 # WARNING: Use '\'' to represent an apostrophe within the trap.
2531 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2532 trap 'exit_status=$?
2533   # Save into config.log some information that might help in debugging.
2534   {
2535     echo
2536
2537     $as_echo "## ---------------- ##
2538 ## Cache variables. ##
2539 ## ---------------- ##"
2540     echo
2541     # The following way of writing the cache mishandles newlines in values,
2542 (
2543   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2544     eval ac_val=\$$ac_var
2545     case $ac_val in #(
2546     *${as_nl}*)
2547       case $ac_var in #(
2548       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2550       esac
2551       case $ac_var in #(
2552       _ | IFS | as_nl) ;; #(
2553       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554       *) { eval $ac_var=; unset $ac_var;} ;;
2555       esac ;;
2556     esac
2557   done
2558   (set) 2>&1 |
2559     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2560     *${as_nl}ac_space=\ *)
2561       sed -n \
2562         "s/'\''/'\''\\\\'\'''\''/g;
2563           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2564       ;; #(
2565     *)
2566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2567       ;;
2568     esac |
2569     sort
2570 )
2571     echo
2572
2573     $as_echo "## ----------------- ##
2574 ## Output variables. ##
2575 ## ----------------- ##"
2576     echo
2577     for ac_var in $ac_subst_vars
2578     do
2579       eval ac_val=\$$ac_var
2580       case $ac_val in
2581       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582       esac
2583       $as_echo "$ac_var='\''$ac_val'\''"
2584     done | sort
2585     echo
2586
2587     if test -n "$ac_subst_files"; then
2588       $as_echo "## ------------------- ##
2589 ## File substitutions. ##
2590 ## ------------------- ##"
2591       echo
2592       for ac_var in $ac_subst_files
2593       do
2594         eval ac_val=\$$ac_var
2595         case $ac_val in
2596         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597         esac
2598         $as_echo "$ac_var='\''$ac_val'\''"
2599       done | sort
2600       echo
2601     fi
2602
2603     if test -s confdefs.h; then
2604       $as_echo "## ----------- ##
2605 ## confdefs.h. ##
2606 ## ----------- ##"
2607       echo
2608       cat confdefs.h
2609       echo
2610     fi
2611     test "$ac_signal" != 0 &&
2612       $as_echo "$as_me: caught signal $ac_signal"
2613     $as_echo "$as_me: exit $exit_status"
2614   } >&5
2615   rm -f core *.core core.conftest.* &&
2616     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2617     exit $exit_status
2618 ' 0
2619 for ac_signal in 1 2 13 15; do
2620   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2621 done
2622 ac_signal=0
2623
2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2625 rm -f -r conftest* confdefs.h
2626
2627 $as_echo "/* confdefs.h */" > confdefs.h
2628
2629 # Predefined preprocessor variables.
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2633 _ACEOF
2634
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2637 _ACEOF
2638
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2641 _ACEOF
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_STRING "$PACKAGE_STRING"
2645 _ACEOF
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2649 _ACEOF
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_URL "$PACKAGE_URL"
2653 _ACEOF
2654
2655
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2658 ac_site_file1=NONE
2659 ac_site_file2=NONE
2660 if test -n "$CONFIG_SITE"; then
2661   # We do not want a PATH search for config.site.
2662   case $CONFIG_SITE in #((
2663     -*)  ac_site_file1=./$CONFIG_SITE;;
2664     */*) ac_site_file1=$CONFIG_SITE;;
2665     *)   ac_site_file1=./$CONFIG_SITE;;
2666   esac
2667 elif test "x$prefix" != xNONE; then
2668   ac_site_file1=$prefix/share/config.site
2669   ac_site_file2=$prefix/etc/config.site
2670 else
2671   ac_site_file1=$ac_default_prefix/share/config.site
2672   ac_site_file2=$ac_default_prefix/etc/config.site
2673 fi
2674 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2675 do
2676   test "x$ac_site_file" = xNONE && continue
2677   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2678     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2679 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2680     sed 's/^/| /' "$ac_site_file" >&5
2681     . "$ac_site_file" \
2682       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 as_fn_error $? "failed to load site script $ac_site_file
2685 See \`config.log' for more details" "$LINENO" 5; }
2686   fi
2687 done
2688
2689 if test -r "$cache_file"; then
2690   # Some versions of bash will fail to source /dev/null (special files
2691   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2692   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2693     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2694 $as_echo "$as_me: loading cache $cache_file" >&6;}
2695     case $cache_file in
2696       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2697       *)                      . "./$cache_file";;
2698     esac
2699   fi
2700 else
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2702 $as_echo "$as_me: creating cache $cache_file" >&6;}
2703   >$cache_file
2704 fi
2705
2706 # Check that the precious variables saved in the cache have kept the same
2707 # value.
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711   eval ac_new_set=\$ac_env_${ac_var}_set
2712   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713   eval ac_new_val=\$ac_env_${ac_var}_value
2714   case $ac_old_set,$ac_new_set in
2715     set,)
2716       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718       ac_cache_corrupted=: ;;
2719     ,set)
2720       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722       ac_cache_corrupted=: ;;
2723     ,);;
2724     *)
2725       if test "x$ac_old_val" != "x$ac_new_val"; then
2726         # differences in whitespace do not lead to failure.
2727         ac_old_val_w=`echo x $ac_old_val`
2728         ac_new_val_w=`echo x $ac_new_val`
2729         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732           ac_cache_corrupted=:
2733         else
2734           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736           eval $ac_var=\$ac_old_val
2737         fi
2738         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2739 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2740         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2742       fi;;
2743   esac
2744   # Pass precious variables to config.status.
2745   if test "$ac_new_set" = set; then
2746     case $ac_new_val in
2747     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748     *) ac_arg=$ac_var=$ac_new_val ;;
2749     esac
2750     case " $ac_configure_args " in
2751       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2752       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2753     esac
2754   fi
2755 done
2756 if $ac_cache_corrupted; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2762 fi
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773
2774 UNBOUND_VERSION_MAJOR=1
2775
2776 UNBOUND_VERSION_MINOR=6
2777
2778 UNBOUND_VERSION_MICRO=6
2779
2780
2781 LIBUNBOUND_CURRENT=7
2782 LIBUNBOUND_REVISION=5
2783 LIBUNBOUND_AGE=5
2784 # 1.0.0 had 0:12:0
2785 # 1.0.1 had 0:13:0
2786 # 1.0.2 had 0:14:0
2787 # 1.1.0 had 0:15:0
2788 # 1.1.1 had 0:16:0
2789 # 1.2.0 had 0:17:0
2790 # 1.2.1 had 0:18:0
2791 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2792 # 1.3.1 had 1:1:0
2793 # 1.3.2 had 1:2:0
2794 # 1.3.3 had 1:3:0
2795 # 1.3.4 had 1:4:0
2796 # 1.4.0-snapshots had 1:5:0
2797 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2798 # 1.4.1 had 2:1:0
2799 # 1.4.2 had 2:2:0
2800 # 1.4.3 had 2:3:0
2801 # 1.4.4 had 2:4:0
2802 # 1.4.5 had 2:5:0
2803 # 1.4.6 had 2:6:0
2804 # 1.4.7 had 2:7:0
2805 # 1.4.8 had 2:8:0
2806 # 1.4.9 had 2:9:0
2807 # 1.4.10 had 2:10:0
2808 # 1.4.11 had 2:11:0
2809 # 1.4.12 had 2:12:0
2810 # 1.4.13 had 2:13:0
2811 # and 1.4.13p1 and 1.4.13.p2
2812 # 1.4.14 had 2:14:0
2813 # 1.4.15 had 3:0:1 # adds ub_version()
2814 # 1.4.16 had 3:1:1
2815 # 1.4.17 had 3:2:1
2816 # 1.4.18 had 3:3:1
2817 # 1.4.19 had 3:4:1
2818 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2819 # 1.4.21 had 4:1:2
2820 # 1.4.22 had 4:1:2
2821 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2822 # 1.5.1 had 5:3:3
2823 # 1.5.2 had 5:5:3
2824 # 1.5.3 had 5:6:3
2825 # 1.5.4 had 5:7:3
2826 # 1.5.5 had 5:8:3
2827 # 1.5.6 had 5:9:3
2828 # 1.5.7 had 5:10:3
2829 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2830 # 1.5.9 had 6:1:4
2831 # 1.5.10 had 6:2:4
2832 # 1.6.0 had 6:3:4
2833 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2834 # 1.6.2 had 7:1:5
2835 # 1.6.3 had 7:2:5
2836 # 1.6.4 had 7:3:5
2837 # 1.6.5 had 7:4:5
2838 # 1.6.6 had 7:5:5
2839
2840 #   Current  -- the number of the binary API that we're implementing
2841 #   Revision -- which iteration of the implementation of the binary
2842 #               API are we supplying?
2843 #   Age      -- How many previous binary API versions do we also
2844 #               support?
2845 #
2846 # If we release a new version that does not change the binary API,
2847 # increment Revision.
2848 #
2849 # If we release a new version that changes the binary API, but does
2850 # not break programs compiled against the old binary API, increment
2851 # Current and Age.  Set Revision to 0, since this is the first
2852 # implementation of the new API.
2853 #
2854 # Otherwise, we're changing the binary API and breaking bakward
2855 # compatibility with old binaries.  Increment Current.  Set Age to 0,
2856 # since we're backward compatible with no previous APIs.  Set Revision
2857 # to 0 too.
2858
2859
2860
2861
2862 CFLAGS="$CFLAGS"
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   if test -n "$CC"; then
2877   ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884     for ac_exec_ext in '' $ac_executable_extensions; do
2885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891   done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908   ac_ct_CC=$CC
2909   # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test -n "$ac_ct_CC"; then
2917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924     for ac_exec_ext in '' $ac_executable_extensions; do
2925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     ac_cv_prog_ac_ct_CC="gcc"
2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931   done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945   if test "x$ac_ct_CC" = x; then
2946     CC=""
2947   else
2948     case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954     CC=$ac_ct_CC
2955   fi
2956 else
2957   CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961           if test -n "$ac_tool_prefix"; then
2962     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$CC"; then
2970   ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979     ac_cv_prog_CC="${ac_tool_prefix}cc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999   fi
3000 fi
3001 if test -z "$CC"; then
3002   # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$CC"; then
3010   ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012   ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021        ac_prog_rejected=yes
3022        continue
3023      fi
3024     ac_cv_prog_CC="cc"
3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029   done
3030 IFS=$as_save_IFS
3031
3032 if test $ac_prog_rejected = yes; then
3033   # We found a bogon in the path, so make sure we never use it.
3034   set dummy $ac_cv_prog_CC
3035   shift
3036   if test $# != 0; then
3037     # We chose a different compiler from the bogus one.
3038     # However, it has the same basename, so the bogon will be chosen
3039     # first if we set CC to just the basename; use the full file name.
3040     shift
3041     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042   fi
3043 fi
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$CC"; then
3058   if test -n "$ac_tool_prefix"; then
3059   for ac_prog in cl.exe
3060   do
3061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$CC"; then
3069   ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098     test -n "$CC" && break
3099   done
3100 fi
3101 if test -z "$CC"; then
3102   ac_ct_CC=$CC
3103   for ac_prog in cl.exe
3104 do
3105   # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$ac_ct_CC"; then
3113   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120     for ac_exec_ext in '' $ac_executable_extensions; do
3121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122     ac_cv_prog_ac_ct_CC="$ac_prog"
3123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127   done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142   test -n "$ac_ct_CC" && break
3143 done
3144
3145   if test "x$ac_ct_CC" = x; then
3146     CC=""
3147   else
3148     case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154     CC=$ac_ct_CC
3155   fi
3156 fi
3157
3158 fi
3159
3160
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3165
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171   { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179   ac_status=$?
3180   if test -s conftest.err; then
3181     sed '10a\
3182 ... rest of stderr output deleted ...
3183          10q' conftest.err >conftest.er1
3184     cat conftest.er1 >&5
3185   fi
3186   rm -f conftest.er1 conftest.err
3187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188   test $ac_status = 0; }
3189 done
3190
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3216 do
3217   case $ac_file in
3218     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220   esac
3221 done
3222 rm -f $ac_rmfiles
3223
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231   (eval "$ac_link_default") 2>&5
3232   ac_status=$?
3233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234   test $ac_status = 0; }; then :
3235   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242   test -f "$ac_file" || continue
3243   case $ac_file in
3244     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245         ;;
3246     [ab].out )
3247         # We found the default executable, but exeext='' is most
3248         # certainly right.
3249         break;;
3250     *.* )
3251         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252         then :; else
3253            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254         fi
3255         # We set ac_cv_exeext here because the later test for it is not
3256         # safe: cross compilers may not add the suffix if given an `-o'
3257         # argument, so we may need to know it at that point already.
3258         # Even if this section looks crufty: it has the advantage of
3259         # actually working.
3260         break;;
3261     * )
3262         break;;
3263   esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else
3268   ac_file=''
3269 fi
3270 if test -z "$ac_file"; then :
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3289
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301   (eval "$ac_link") 2>&5
3302   ac_status=$?
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }; then :
3305   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 # `rm'.
3309 for ac_file in conftest.exe conftest conftest.*; do
3310   test -f "$ac_file" || continue
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314           break;;
3315     * ) break;;
3316   esac
3317 done
3318 else
3319   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h.  */
3333 #include <stdio.h>
3334 int
3335 main ()
3336 {
3337 FILE *f = fopen ("conftest.out", "w");
3338  return ferror (f) || fclose (f) != 0;
3339
3340   ;
3341   return 0;
3342 }
3343 _ACEOF
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run.  If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350   { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357   (eval "$ac_link") 2>&5
3358   ac_status=$?
3359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360   test $ac_status = 0; }
3361   if { ac_try='./conftest$ac_cv_exeext'
3362   { { case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368   (eval "$ac_try") 2>&5
3369   ac_status=$?
3370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371   test $ac_status = 0; }; }; then
3372     cross_compiling=no
3373   else
3374     if test "$cross_compiling" = maybe; then
3375         cross_compiling=yes
3376     else
3377         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3382     fi
3383   fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3387
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393   $as_echo_n "(cached) " >&6
3394 else
3395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397
3398 int
3399 main ()
3400 {
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414   (eval "$ac_compile") 2>&5
3415   ac_status=$?
3416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417   test $ac_status = 0; }; then :
3418   for ac_file in conftest.o conftest.obj conftest.*; do
3419   test -f "$ac_file" || continue;
3420   case $ac_file in
3421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423        break;;
3424   esac
3425 done
3426 else
3427   $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3440 ac_objext=$OBJEXT
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444   $as_echo_n "(cached) " >&6
3445 else
3446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452 #ifndef __GNUC__
3453        choke me
3454 #endif
3455
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461   ac_compiler_gnu=yes
3462 else
3463   ac_compiler_gnu=no
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472   GCC=yes
3473 else
3474   GCC=
3475 fi
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481   $as_echo_n "(cached) " >&6
3482 else
3483   ac_save_c_werror_flag=$ac_c_werror_flag
3484    ac_c_werror_flag=yes
3485    ac_cv_prog_cc_g=no
3486    CFLAGS="-g"
3487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499   ac_cv_prog_cc_g=yes
3500 else
3501   CFLAGS=""
3502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h.  */
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514
3515 else
3516   ac_c_werror_flag=$ac_save_c_werror_flag
3517          CFLAGS="-g"
3518          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h.  */
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530   ac_cv_prog_cc_g=yes
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537    ac_c_werror_flag=$ac_save_c_werror_flag
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542   CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544   if test "$GCC" = yes; then
3545     CFLAGS="-g -O2"
3546   else
3547     CFLAGS="-g"
3548   fi
3549 else
3550   if test "$GCC" = yes; then
3551     CFLAGS="-O2"
3552   else
3553     CFLAGS=
3554   fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   ac_cv_prog_cc_c89=no
3562 ac_save_CC=$CC
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565 #include <stdarg.h>
3566 #include <stdio.h>
3567 struct stat;
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3572      char **p;
3573      int i;
3574 {
3575   return p[i];
3576 }
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3578 {
3579   char *s;
3580   va_list v;
3581   va_start (v,p);
3582   s = g (p, va_arg (v,int));
3583   va_end (v);
3584   return s;
3585 }
3586
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3588    function prototypes and stuff, but not '\xHH' hex character constants.
3589    These don't provoke an error unfortunately, instead are silently treated
3590    as 'x'.  The following induces an error, until -std is added to get
3591    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3592    array size at least.  It's necessary to write '\x00'==0 to get something
3593    that's true only with -std.  */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597    inside strings and character constants.  */
3598 #define FOO(x) 'x'
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605 int argc;
3606 char **argv;
3607 int
3608 main ()
3609 {
3610 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 do
3618   CC="$ac_save_CC $ac_arg"
3619   if ac_fn_c_try_compile "$LINENO"; then :
3620   ac_cv_prog_cc_c89=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext
3623   test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3627
3628 fi
3629 # AC_CACHE_VAL
3630 case "x$ac_cv_prog_cc_c89" in
3631   x)
3632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3634   xno)
3635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3637   *)
3638     CC="$CC $ac_cv_prog_cc_c89"
3639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 esac
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644 fi
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3659 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3660 # On Suns, sometimes $CPP names a directory.
3661 if test -n "$CPP" && test -d "$CPP"; then
3662   CPP=
3663 fi
3664 if test -z "$CPP"; then
3665   if ${ac_cv_prog_CPP+:} false; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668       # Double quotes because CPP needs to be expanded
3669     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3670     do
3671       ac_preproc_ok=false
3672 for ac_c_preproc_warn_flag in '' yes
3673 do
3674   # Use a header file that comes with gcc, so configuring glibc
3675   # with a fresh cross-compiler works.
3676   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677   # <limits.h> exists even on freestanding compilers.
3678   # On the NeXT, cc -E runs the code through the compiler's parser,
3679   # not just through cpp. "Syntax error" is here to catch this case.
3680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h.  */
3682 #ifdef __STDC__
3683 # include <limits.h>
3684 #else
3685 # include <assert.h>
3686 #endif
3687                      Syntax error
3688 _ACEOF
3689 if ac_fn_c_try_cpp "$LINENO"; then :
3690
3691 else
3692   # Broken: fails on valid input.
3693 continue
3694 fi
3695 rm -f conftest.err conftest.i conftest.$ac_ext
3696
3697   # OK, works on sane cases.  Now check whether nonexistent headers
3698   # can be detected and how.
3699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701 #include <ac_nonexistent.h>
3702 _ACEOF
3703 if ac_fn_c_try_cpp "$LINENO"; then :
3704   # Broken: success on invalid input.
3705 continue
3706 else
3707   # Passes both tests.
3708 ac_preproc_ok=:
3709 break
3710 fi
3711 rm -f conftest.err conftest.i conftest.$ac_ext
3712
3713 done
3714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715 rm -f conftest.i conftest.err conftest.$ac_ext
3716 if $ac_preproc_ok; then :
3717   break
3718 fi
3719
3720     done
3721     ac_cv_prog_CPP=$CPP
3722
3723 fi
3724   CPP=$ac_cv_prog_CPP
3725 else
3726   ac_cv_prog_CPP=$CPP
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3729 $as_echo "$CPP" >&6; }
3730 ac_preproc_ok=false
3731 for ac_c_preproc_warn_flag in '' yes
3732 do
3733   # Use a header file that comes with gcc, so configuring glibc
3734   # with a fresh cross-compiler works.
3735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736   # <limits.h> exists even on freestanding compilers.
3737   # On the NeXT, cc -E runs the code through the compiler's parser,
3738   # not just through cpp. "Syntax error" is here to catch this case.
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741 #ifdef __STDC__
3742 # include <limits.h>
3743 #else
3744 # include <assert.h>
3745 #endif
3746                      Syntax error
3747 _ACEOF
3748 if ac_fn_c_try_cpp "$LINENO"; then :
3749
3750 else
3751   # Broken: fails on valid input.
3752 continue
3753 fi
3754 rm -f conftest.err conftest.i conftest.$ac_ext
3755
3756   # OK, works on sane cases.  Now check whether nonexistent headers
3757   # can be detected and how.
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760 #include <ac_nonexistent.h>
3761 _ACEOF
3762 if ac_fn_c_try_cpp "$LINENO"; then :
3763   # Broken: success on invalid input.
3764 continue
3765 else
3766   # Passes both tests.
3767 ac_preproc_ok=:
3768 break
3769 fi
3770 rm -f conftest.err conftest.i conftest.$ac_ext
3771
3772 done
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.i conftest.err conftest.$ac_ext
3775 if $ac_preproc_ok; then :
3776
3777 else
3778   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3781 See \`config.log' for more details" "$LINENO" 5; }
3782 fi
3783
3784 ac_ext=c
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789
3790
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3792 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3793 if ${ac_cv_path_GREP+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -z "$GREP"; then
3797   ac_path_GREP_found=false
3798   # Loop through the user's path and test for each of PROGNAME-LIST
3799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_prog in grep ggrep; do
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3807       as_fn_executable_p "$ac_path_GREP" || continue
3808 # Check for GNU ac_path_GREP and select it if it is found.
3809   # Check for GNU $ac_path_GREP
3810 case `"$ac_path_GREP" --version 2>&1` in
3811 *GNU*)
3812   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3813 *)
3814   ac_count=0
3815   $as_echo_n 0123456789 >"conftest.in"
3816   while :
3817   do
3818     cat "conftest.in" "conftest.in" >"conftest.tmp"
3819     mv "conftest.tmp" "conftest.in"
3820     cp "conftest.in" "conftest.nl"
3821     $as_echo 'GREP' >> "conftest.nl"
3822     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824     as_fn_arith $ac_count + 1 && ac_count=$as_val
3825     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3826       # Best one so far, save it but keep looking for a better one
3827       ac_cv_path_GREP="$ac_path_GREP"
3828       ac_path_GREP_max=$ac_count
3829     fi
3830     # 10*(2^10) chars as input seems more than enough
3831     test $ac_count -gt 10 && break
3832   done
3833   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 esac
3835
3836       $ac_path_GREP_found && break 3
3837     done
3838   done
3839   done
3840 IFS=$as_save_IFS
3841   if test -z "$ac_cv_path_GREP"; then
3842     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843   fi
3844 else
3845   ac_cv_path_GREP=$GREP
3846 fi
3847
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3850 $as_echo "$ac_cv_path_GREP" >&6; }
3851  GREP="$ac_cv_path_GREP"
3852
3853
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3855 $as_echo_n "checking for egrep... " >&6; }
3856 if ${ac_cv_path_EGREP+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860    then ac_cv_path_EGREP="$GREP -E"
3861    else
3862      if test -z "$EGREP"; then
3863   ac_path_EGREP_found=false
3864   # Loop through the user's path and test for each of PROGNAME-LIST
3865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867 do
3868   IFS=$as_save_IFS
3869   test -z "$as_dir" && as_dir=.
3870     for ac_prog in egrep; do
3871     for ac_exec_ext in '' $ac_executable_extensions; do
3872       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3873       as_fn_executable_p "$ac_path_EGREP" || continue
3874 # Check for GNU ac_path_EGREP and select it if it is found.
3875   # Check for GNU $ac_path_EGREP
3876 case `"$ac_path_EGREP" --version 2>&1` in
3877 *GNU*)
3878   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3879 *)
3880   ac_count=0
3881   $as_echo_n 0123456789 >"conftest.in"
3882   while :
3883   do
3884     cat "conftest.in" "conftest.in" >"conftest.tmp"
3885     mv "conftest.tmp" "conftest.in"
3886     cp "conftest.in" "conftest.nl"
3887     $as_echo 'EGREP' >> "conftest.nl"
3888     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890     as_fn_arith $ac_count + 1 && ac_count=$as_val
3891     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892       # Best one so far, save it but keep looking for a better one
3893       ac_cv_path_EGREP="$ac_path_EGREP"
3894       ac_path_EGREP_max=$ac_count
3895     fi
3896     # 10*(2^10) chars as input seems more than enough
3897     test $ac_count -gt 10 && break
3898   done
3899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900 esac
3901
3902       $ac_path_EGREP_found && break 3
3903     done
3904   done
3905   done
3906 IFS=$as_save_IFS
3907   if test -z "$ac_cv_path_EGREP"; then
3908     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3909   fi
3910 else
3911   ac_cv_path_EGREP=$EGREP
3912 fi
3913
3914    fi
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3917 $as_echo "$ac_cv_path_EGREP" >&6; }
3918  EGREP="$ac_cv_path_EGREP"
3919
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3922 $as_echo_n "checking for ANSI C header files... " >&6; }
3923 if ${ac_cv_header_stdc+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928 #include <stdlib.h>
3929 #include <stdarg.h>
3930 #include <string.h>
3931 #include <float.h>
3932
3933 int
3934 main ()
3935 {
3936
3937   ;
3938   return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942   ac_cv_header_stdc=yes
3943 else
3944   ac_cv_header_stdc=no
3945 fi
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947
3948 if test $ac_cv_header_stdc = yes; then
3949   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952 #include <string.h>
3953
3954 _ACEOF
3955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3956   $EGREP "memchr" >/dev/null 2>&1; then :
3957
3958 else
3959   ac_cv_header_stdc=no
3960 fi
3961 rm -f conftest*
3962
3963 fi
3964
3965 if test $ac_cv_header_stdc = yes; then
3966   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969 #include <stdlib.h>
3970
3971 _ACEOF
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973   $EGREP "free" >/dev/null 2>&1; then :
3974
3975 else
3976   ac_cv_header_stdc=no
3977 fi
3978 rm -f conftest*
3979
3980 fi
3981
3982 if test $ac_cv_header_stdc = yes; then
3983   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3984   if test "$cross_compiling" = yes; then :
3985   :
3986 else
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 #include <ctype.h>
3990 #include <stdlib.h>
3991 #if ((' ' & 0x0FF) == 0x020)
3992 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3993 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3994 #else
3995 # define ISLOWER(c) \
3996                    (('a' <= (c) && (c) <= 'i') \
3997                      || ('j' <= (c) && (c) <= 'r') \
3998                      || ('s' <= (c) && (c) <= 'z'))
3999 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4000 #endif
4001
4002 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4003 int
4004 main ()
4005 {
4006   int i;
4007   for (i = 0; i < 256; i++)
4008     if (XOR (islower (i), ISLOWER (i))
4009         || toupper (i) != TOUPPER (i))
4010       return 2;
4011   return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_run "$LINENO"; then :
4015
4016 else
4017   ac_cv_header_stdc=no
4018 fi
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4020   conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 fi
4022
4023 fi
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4026 $as_echo "$ac_cv_header_stdc" >&6; }
4027 if test $ac_cv_header_stdc = yes; then
4028
4029 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4030
4031 fi
4032
4033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035                   inttypes.h stdint.h unistd.h
4036 do :
4037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4039 "
4040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4041   cat >>confdefs.h <<_ACEOF
4042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4043 _ACEOF
4044
4045 fi
4046
4047 done
4048
4049
4050
4051   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4052 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4053   MINIX=yes
4054 else
4055   MINIX=
4056 fi
4057
4058
4059   if test "$MINIX" = yes; then
4060
4061 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4062
4063
4064 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4065
4066
4067 $as_echo "#define _MINIX 1" >>confdefs.h
4068
4069   fi
4070
4071
4072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4073 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4074 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079
4080 #         define __EXTENSIONS__ 1
4081           $ac_includes_default
4082 int
4083 main ()
4084 {
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091   ac_cv_safe_to_define___extensions__=yes
4092 else
4093   ac_cv_safe_to_define___extensions__=no
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4098 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4099   test $ac_cv_safe_to_define___extensions__ = yes &&
4100     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4101
4102   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4103
4104   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4105
4106   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4107
4108   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4109
4110
4111
4112 if test "$ac_cv_header_minix_config_h" = "yes"; then
4113
4114 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4115
4116 fi
4117
4118 case "$prefix" in
4119         NONE)
4120                 prefix="/usr/local"
4121         ;;
4122 esac
4123 case "$exec_prefix" in
4124         NONE)
4125                 exec_prefix="$prefix"
4126         ;;
4127 esac
4128
4129 # are we on MinGW?
4130 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4131 else
4132         if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4133         else on_mingw="no"; fi
4134 fi
4135
4136 #
4137 # Determine configuration file
4138 # the eval is to evaluate shell expansion twice
4139 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4140
4141 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4142
4143 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4144
4145 if test $on_mingw = "no"; then
4146   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4147 else
4148   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4149 fi
4150
4151 # Check whether --with-conf_file was given.
4152 if test "${with_conf_file+set}" = set; then :
4153   withval=$with_conf_file; ub_conf_file="$withval"
4154 fi
4155
4156
4157 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4158
4159
4160 cat >>confdefs.h <<_ACEOF
4161 #define CONFIGFILE "$hdr_config"
4162 _ACEOF
4163
4164 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4165 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4166          X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4167          X"$ub_conf_file" : 'X\(//\)$' \| \
4168          X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4169 $as_echo X"$ub_conf_file" |
4170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4171             s//\1/
4172             q
4173           }
4174           /^X\(\/\/\)[^/].*/{
4175             s//\1/
4176             q
4177           }
4178           /^X\(\/\/\)$/{
4179             s//\1/
4180             q
4181           }
4182           /^X\(\/\).*/{
4183             s//\1/
4184             q
4185           }
4186           s/.*/./; q'`
4187
4188
4189 # Determine run, chroot directory and pidfile locations
4190
4191 # Check whether --with-run-dir was given.
4192 if test "${with_run_dir+set}" = set; then :
4193   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4194 else
4195   if test $on_mingw = no; then
4196     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4197 else
4198     UNBOUND_RUN_DIR=""
4199 fi
4200
4201 fi
4202
4203
4204 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4205
4206
4207 cat >>confdefs.h <<_ACEOF
4208 #define RUN_DIR "$hdr_run"
4209 _ACEOF
4210
4211
4212
4213 # Check whether --with-chroot-dir was given.
4214 if test "${with_chroot_dir+set}" = set; then :
4215   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4216 else
4217   if test $on_mingw = no; then
4218     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4219 else
4220     UNBOUND_CHROOT_DIR=""
4221 fi
4222
4223 fi
4224
4225
4226 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4227
4228
4229 cat >>confdefs.h <<_ACEOF
4230 #define CHROOT_DIR "$hdr_chroot"
4231 _ACEOF
4232
4233
4234
4235 # Check whether --with-share-dir was given.
4236 if test "${with_share_dir+set}" = set; then :
4237   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4238 else
4239   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4240 fi
4241
4242
4243
4244 cat >>confdefs.h <<_ACEOF
4245 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4246 _ACEOF
4247
4248
4249
4250 # Check whether --with-pidfile was given.
4251 if test "${with_pidfile+set}" = set; then :
4252   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4253 else
4254   if test $on_mingw = no; then
4255     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4256 else
4257     UNBOUND_PIDFILE=""
4258 fi
4259
4260 fi
4261
4262
4263 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4264
4265
4266 cat >>confdefs.h <<_ACEOF
4267 #define PIDFILE "$hdr_pid"
4268 _ACEOF
4269
4270
4271
4272 # Check whether --with-rootkey-file was given.
4273 if test "${with_rootkey_file+set}" = set; then :
4274   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4275 else
4276   if test $on_mingw = no; then
4277     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4278 else
4279     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4280 fi
4281
4282 fi
4283
4284
4285 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4286
4287
4288 cat >>confdefs.h <<_ACEOF
4289 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4290 _ACEOF
4291
4292
4293
4294 # Check whether --with-rootcert-file was given.
4295 if test "${with_rootcert_file+set}" = set; then :
4296   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4297 else
4298   if test $on_mingw = no; then
4299     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4300 else
4301     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4302 fi
4303
4304 fi
4305
4306
4307 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4308
4309
4310 cat >>confdefs.h <<_ACEOF
4311 #define ROOT_CERT_FILE "$hdr_rpem"
4312 _ACEOF
4313
4314
4315
4316 # Check whether --with-username was given.
4317 if test "${with_username+set}" = set; then :
4318   withval=$with_username; UNBOUND_USERNAME="$withval"
4319 else
4320   UNBOUND_USERNAME="unbound"
4321 fi
4322
4323
4324
4325 cat >>confdefs.h <<_ACEOF
4326 #define UB_USERNAME "$UNBOUND_USERNAME"
4327 _ACEOF
4328
4329
4330
4331 $as_echo "#define WINVER 0x0502" >>confdefs.h
4332
4333 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4334
4335
4336 cat >>confdefs.h <<_ACEOF
4337 #define RSRC_PACKAGE_VERSION $wnvs
4338 _ACEOF
4339
4340
4341 # Checks for typedefs, structures, and compiler characteristics.
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4343 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4344 if ${ac_cv_c_const+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h.  */
4349
4350 int
4351 main ()
4352 {
4353
4354 #ifndef __cplusplus
4355   /* Ultrix mips cc rejects this sort of thing.  */
4356   typedef int charset[2];
4357   const charset cs = { 0, 0 };
4358   /* SunOS 4.1.1 cc rejects this.  */
4359   char const *const *pcpcc;
4360   char **ppc;
4361   /* NEC SVR4.0.2 mips cc rejects this.  */
4362   struct point {int x, y;};
4363   static struct point const zero = {0,0};
4364   /* AIX XL C 1.02.0.0 rejects this.
4365      It does not let you subtract one const X* pointer from another in
4366      an arm of an if-expression whose if-part is not a constant
4367      expression */
4368   const char *g = "string";
4369   pcpcc = &g + (g ? g-g : 0);
4370   /* HPUX 7.0 cc rejects these. */
4371   ++pcpcc;
4372   ppc = (char**) pcpcc;
4373   pcpcc = (char const *const *) ppc;
4374   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4375     char tx;
4376     char *t = &tx;
4377     char const *s = 0 ? (char *) 0 : (char const *) 0;
4378
4379     *t++ = 0;
4380     if (s) return 0;
4381   }
4382   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4383     int x[] = {25, 17};
4384     const int *foo = &x[0];
4385     ++foo;
4386   }
4387   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4388     typedef const int *iptr;
4389     iptr p = 0;
4390     ++p;
4391   }
4392   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4393        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4394     struct s { int j; const int *ap[3]; } bx;
4395     struct s *b = &bx; b->j = 5;
4396   }
4397   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4398     const int foo = 10;
4399     if (!foo) return 0;
4400   }
4401   return !cs[0] && !zero.x;
4402 #endif
4403
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409   ac_cv_c_const=yes
4410 else
4411   ac_cv_c_const=no
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4416 $as_echo "$ac_cv_c_const" >&6; }
4417 if test $ac_cv_c_const = no; then
4418
4419 $as_echo "#define const /**/" >>confdefs.h
4420
4421 fi
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428
4429 # allow user to override the -g -O2 flags.
4430 if test "x$CFLAGS" = "x" ; then
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4434 $as_echo_n "checking whether $CC supports -g... " >&6; }
4435 cache=`echo g | sed 'y%.=/+-%___p_%'`
4436 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4437   $as_echo_n "(cached) " >&6
4438 else
4439
4440 echo 'void f(void){}' >conftest.c
4441 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4442 eval "cv_prog_cc_flag_$cache=yes"
4443 else
4444 eval "cv_prog_cc_flag_$cache=no"
4445 fi
4446 rm -f conftest conftest.o conftest.c
4447
4448 fi
4449
4450 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 $as_echo "yes" >&6; }
4453 :
4454 CFLAGS="$CFLAGS -g"
4455 else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 :
4459
4460 fi
4461
4462
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4465 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4466 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4467 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470
4471 echo 'void f(void){}' >conftest.c
4472 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4473 eval "cv_prog_cc_flag_$cache=yes"
4474 else
4475 eval "cv_prog_cc_flag_$cache=no"
4476 fi
4477 rm -f conftest conftest.o conftest.c
4478
4479 fi
4480
4481 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 $as_echo "yes" >&6; }
4484 :
4485 CFLAGS="$CFLAGS -O2"
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 :
4490
4491 fi
4492
4493 fi
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499 if test -n "$ac_tool_prefix"; then
4500   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4501 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_CC+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   if test -n "$CC"; then
4508   ac_cv_prog_CC="$CC" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522   done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 CC=$ac_cv_prog_CC
4528 if test -n "$CC"; then
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4530 $as_echo "$CC" >&6; }
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537 fi
4538 if test -z "$ac_cv_prog_CC"; then
4539   ac_ct_CC=$CC
4540   # Extract the first word of "gcc", so it can be a program name with args.
4541 set dummy gcc; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   if test -n "$ac_ct_CC"; then
4548   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555     for ac_exec_ext in '' $ac_executable_extensions; do
4556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557     ac_cv_prog_ac_ct_CC="gcc"
4558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562   done
4563 IFS=$as_save_IFS
4564
4565 fi
4566 fi
4567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4568 if test -n "$ac_ct_CC"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4570 $as_echo "$ac_ct_CC" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575
4576   if test "x$ac_ct_CC" = x; then
4577     CC=""
4578   else
4579     case $cross_compiling:$ac_tool_warned in
4580 yes:)
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583 ac_tool_warned=yes ;;
4584 esac
4585     CC=$ac_ct_CC
4586   fi
4587 else
4588   CC="$ac_cv_prog_CC"
4589 fi
4590
4591 if test -z "$CC"; then
4592           if test -n "$ac_tool_prefix"; then
4593     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}cc; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CC+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$CC"; then
4601   ac_cv_prog_CC="$CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_prog_CC="${ac_tool_prefix}cc"
4611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615   done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 CC=$ac_cv_prog_CC
4621 if test -n "$CC"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4623 $as_echo "$CC" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630   fi
4631 fi
4632 if test -z "$CC"; then
4633   # Extract the first word of "cc", so it can be a program name with args.
4634 set dummy cc; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_CC+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   if test -n "$CC"; then
4641   ac_cv_prog_CC="$CC" # Let the user override the test.
4642 else
4643   ac_prog_rejected=no
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649     for ac_exec_ext in '' $ac_executable_extensions; do
4650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4652        ac_prog_rejected=yes
4653        continue
4654      fi
4655     ac_cv_prog_CC="cc"
4656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660   done
4661 IFS=$as_save_IFS
4662
4663 if test $ac_prog_rejected = yes; then
4664   # We found a bogon in the path, so make sure we never use it.
4665   set dummy $ac_cv_prog_CC
4666   shift
4667   if test $# != 0; then
4668     # We chose a different compiler from the bogus one.
4669     # However, it has the same basename, so the bogon will be chosen
4670     # first if we set CC to just the basename; use the full file name.
4671     shift
4672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4673   fi
4674 fi
4675 fi
4676 fi
4677 CC=$ac_cv_prog_CC
4678 if test -n "$CC"; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4680 $as_echo "$CC" >&6; }
4681 else
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 fi
4688 if test -z "$CC"; then
4689   if test -n "$ac_tool_prefix"; then
4690   for ac_prog in cl.exe
4691   do
4692     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_CC+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   if test -n "$CC"; then
4700   ac_cv_prog_CC="$CC" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707     for ac_exec_ext in '' $ac_executable_extensions; do
4708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714   done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 CC=$ac_cv_prog_CC
4720 if test -n "$CC"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4722 $as_echo "$CC" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729     test -n "$CC" && break
4730   done
4731 fi
4732 if test -z "$CC"; then
4733   ac_ct_CC=$CC
4734   for ac_prog in cl.exe
4735 do
4736   # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$ac_ct_CC"; then
4744   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_prog_ac_ct_CC="$ac_prog"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4764 if test -n "$ac_ct_CC"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4766 $as_echo "$ac_ct_CC" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773   test -n "$ac_ct_CC" && break
4774 done
4775
4776   if test "x$ac_ct_CC" = x; then
4777     CC=""
4778   else
4779     case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785     CC=$ac_ct_CC
4786   fi
4787 fi
4788
4789 fi
4790
4791
4792 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4794 as_fn_error $? "no acceptable C compiler found in \$PATH
4795 See \`config.log' for more details" "$LINENO" 5; }
4796
4797 # Provide some information about the compiler.
4798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4799 set X $ac_compile
4800 ac_compiler=$2
4801 for ac_option in --version -v -V -qversion; do
4802   { { ac_try="$ac_compiler $ac_option >&5"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4810   ac_status=$?
4811   if test -s conftest.err; then
4812     sed '10a\
4813 ... rest of stderr output deleted ...
4814          10q' conftest.err >conftest.er1
4815     cat conftest.er1 >&5
4816   fi
4817   rm -f conftest.er1 conftest.err
4818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4819   test $ac_status = 0; }
4820 done
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4823 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4824 if ${ac_cv_c_compiler_gnu+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4829
4830 int
4831 main ()
4832 {
4833 #ifndef __GNUC__
4834        choke me
4835 #endif
4836
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842   ac_compiler_gnu=yes
4843 else
4844   ac_compiler_gnu=no
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4848
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4851 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4852 if test $ac_compiler_gnu = yes; then
4853   GCC=yes
4854 else
4855   GCC=
4856 fi
4857 ac_test_CFLAGS=${CFLAGS+set}
4858 ac_save_CFLAGS=$CFLAGS
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4860 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4861 if ${ac_cv_prog_cc_g+:} false; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   ac_save_c_werror_flag=$ac_c_werror_flag
4865    ac_c_werror_flag=yes
4866    ac_cv_prog_cc_g=no
4867    CFLAGS="-g"
4868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h.  */
4870
4871 int
4872 main ()
4873 {
4874
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880   ac_cv_prog_cc_g=yes
4881 else
4882   CFLAGS=""
4883       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h.  */
4885
4886 int
4887 main ()
4888 {
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895
4896 else
4897   ac_c_werror_flag=$ac_save_c_werror_flag
4898          CFLAGS="-g"
4899          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h.  */
4901
4902 int
4903 main ()
4904 {
4905
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911   ac_cv_prog_cc_g=yes
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918    ac_c_werror_flag=$ac_save_c_werror_flag
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4921 $as_echo "$ac_cv_prog_cc_g" >&6; }
4922 if test "$ac_test_CFLAGS" = set; then
4923   CFLAGS=$ac_save_CFLAGS
4924 elif test $ac_cv_prog_cc_g = yes; then
4925   if test "$GCC" = yes; then
4926     CFLAGS="-g -O2"
4927   else
4928     CFLAGS="-g"
4929   fi
4930 else
4931   if test "$GCC" = yes; then
4932     CFLAGS="-O2"
4933   else
4934     CFLAGS=
4935   fi
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4938 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4939 if ${ac_cv_prog_cc_c89+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   ac_cv_prog_cc_c89=no
4943 ac_save_CC=$CC
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h.  */
4946 #include <stdarg.h>
4947 #include <stdio.h>
4948 struct stat;
4949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4950 struct buf { int x; };
4951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4952 static char *e (p, i)
4953      char **p;
4954      int i;
4955 {
4956   return p[i];
4957 }
4958 static char *f (char * (*g) (char **, int), char **p, ...)
4959 {
4960   char *s;
4961   va_list v;
4962   va_start (v,p);
4963   s = g (p, va_arg (v,int));
4964   va_end (v);
4965   return s;
4966 }
4967
4968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4969    function prototypes and stuff, but not '\xHH' hex character constants.
4970    These don't provoke an error unfortunately, instead are silently treated
4971    as 'x'.  The following induces an error, until -std is added to get
4972    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4973    array size at least.  It's necessary to write '\x00'==0 to get something
4974    that's true only with -std.  */
4975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4976
4977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4978    inside strings and character constants.  */
4979 #define FOO(x) 'x'
4980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4981
4982 int test (int i, double x);
4983 struct s1 {int (*f) (int a);};
4984 struct s2 {int (*f) (double a);};
4985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4986 int argc;
4987 char **argv;
4988 int
4989 main ()
4990 {
4991 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4992   ;
4993   return 0;
4994 }
4995 _ACEOF
4996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4997         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4998 do
4999   CC="$ac_save_CC $ac_arg"
5000   if ac_fn_c_try_compile "$LINENO"; then :
5001   ac_cv_prog_cc_c89=$ac_arg
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext
5004   test "x$ac_cv_prog_cc_c89" != "xno" && break
5005 done
5006 rm -f conftest.$ac_ext
5007 CC=$ac_save_CC
5008
5009 fi
5010 # AC_CACHE_VAL
5011 case "x$ac_cv_prog_cc_c89" in
5012   x)
5013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014 $as_echo "none needed" >&6; } ;;
5015   xno)
5016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5017 $as_echo "unsupported" >&6; } ;;
5018   *)
5019     CC="$CC $ac_cv_prog_cc_c89"
5020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5021 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5022 esac
5023 if test "x$ac_cv_prog_cc_c89" != xno; then :
5024
5025 fi
5026
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5035 $as_echo_n "checking $CC dependency flag... " >&6; }
5036 echo 'void f(){}' >conftest.c
5037 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5038         DEPFLAG="-MM"
5039 else
5040   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5041         DEPFLAG="-xM1"
5042   else
5043         DEPFLAG="-MM"  # dunno do something
5044   fi
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5047 $as_echo "$DEPFLAG" >&6; }
5048 rm -f conftest.c
5049
5050
5051
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5055 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5056 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5057 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060
5061 echo 'void f(void){}' >conftest.c
5062 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5063 eval "cv_prog_cc_flag_$cache=yes"
5064 else
5065 eval "cv_prog_cc_flag_$cache=no"
5066 fi
5067 rm -f conftest conftest.o conftest.c
5068
5069 fi
5070
5071 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5073 $as_echo "yes" >&6; }
5074 :
5075 ERRFLAG="-Werror"
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 :
5080 ERRFLAG="-errwarn"
5081 fi
5082
5083
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5086 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5087 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5088 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091
5092 echo 'void f(void){}' >conftest.c
5093 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5094 eval "cv_prog_cc_flag_$cache=yes"
5095 else
5096 eval "cv_prog_cc_flag_$cache=no"
5097 fi
5098 rm -f conftest conftest.o conftest.c
5099
5100 fi
5101
5102 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5105 :
5106 ERRFLAG="$ERRFLAG -Wall"
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 :
5111 ERRFLAG="$ERRFLAG -errfmt"
5112 fi
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5119 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5120 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5121 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124
5125 echo 'void f(void){}' >conftest.c
5126 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5127 eval "cv_prog_cc_flag_$cache=yes"
5128 else
5129 eval "cv_prog_cc_flag_$cache=no"
5130 fi
5131 rm -f conftest conftest.o conftest.c
5132
5133 fi
5134
5135 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137 $as_echo "yes" >&6; }
5138 :
5139 C99FLAG="-std=c99"
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 :
5144
5145 fi
5146
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5150 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5151 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5152 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155
5156 echo 'void f(void){}' >conftest.c
5157 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5158 eval "cv_prog_cc_flag_$cache=yes"
5159 else
5160 eval "cv_prog_cc_flag_$cache=no"
5161 fi
5162 rm -f conftest conftest.o conftest.c
5163
5164 fi
5165
5166 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168 $as_echo "yes" >&6; }
5169 :
5170 C99FLAG="-xc99"
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 :
5175
5176 fi
5177
5178
5179 for ac_header in getopt.h time.h
5180 do :
5181   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5183 "
5184 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5185   cat >>confdefs.h <<_ACEOF
5186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5188
5189 fi
5190
5191 done
5192
5193
5194
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5198 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5199 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5200 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203
5204 echo '
5205 #include "confdefs.h"
5206 #include <stdlib.h>
5207 #include <ctype.h>
5208 #include <sys/time.h>
5209 #ifdef HAVE_TIME_H
5210 #include <time.h>
5211 #endif
5212 #include <unistd.h>
5213 #include <netdb.h>
5214 #ifdef HAVE_GETOPT_H
5215 #include <getopt.h>
5216 #endif
5217
5218 int test() {
5219         int a;
5220         char **opts = NULL;
5221         struct timeval tv;
5222         char *t;
5223         time_t time = 0;
5224         char *buf = NULL;
5225         const char* str = NULL;
5226         struct msghdr msg;
5227         msg.msg_control = 0;
5228         t = ctime_r(&time, buf);
5229         tv.tv_usec = 10;
5230         srandom(32);
5231         a = getopt(2, opts, "a");
5232         a = isascii(32);
5233         str = gai_strerror(0);
5234         if(str && t && tv.tv_usec && msg.msg_control)
5235                 a = 0;
5236         return a;
5237 }
5238 ' > conftest.c
5239 echo 'void f(){}' >>conftest.c
5240 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5241 eval "cv_prog_cc_flag_needed_$cache=no"
5242 else
5243
5244 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5245 eval "cv_prog_cc_flag_needed_$cache=yes"
5246 else
5247 eval "cv_prog_cc_flag_needed_$cache=fail"
5248 #echo 'Test with flag fails too!'
5249 #cat conftest.c
5250 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5251 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5252 #exit 1
5253 fi
5254
5255 fi
5256 rm -f conftest conftest.c conftest.o
5257
5258 fi
5259
5260 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5262 $as_echo "yes" >&6; }
5263 :
5264 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5265 else
5266 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 #echo 'Test with flag is no!'
5270 #cat conftest.c
5271 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5272 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5273 #exit 1
5274 :
5275
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5278 $as_echo "failed" >&6; }
5279 :
5280
5281 fi
5282 fi
5283
5284
5285
5286
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5289 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5290 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5291 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294
5295 echo '
5296 #include "confdefs.h"
5297 #include <stdlib.h>
5298 #include <ctype.h>
5299 #include <sys/time.h>
5300 #ifdef HAVE_TIME_H
5301 #include <time.h>
5302 #endif
5303 #include <unistd.h>
5304 #include <netdb.h>
5305 #ifdef HAVE_GETOPT_H
5306 #include <getopt.h>
5307 #endif
5308
5309 int test() {
5310         int a;
5311         char **opts = NULL;
5312         struct timeval tv;
5313         char *t;
5314         time_t time = 0;
5315         char *buf = NULL;
5316         const char* str = NULL;
5317         struct msghdr msg;
5318         msg.msg_control = 0;
5319         t = ctime_r(&time, buf);
5320         tv.tv_usec = 10;
5321         srandom(32);
5322         a = getopt(2, opts, "a");
5323         a = isascii(32);
5324         str = gai_strerror(0);
5325         if(str && t && tv.tv_usec && msg.msg_control)
5326                 a = 0;
5327         return a;
5328 }
5329 ' > conftest.c
5330 echo 'void f(){}' >>conftest.c
5331 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5332 eval "cv_prog_cc_flag_needed_$cache=no"
5333 else
5334
5335 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5336 eval "cv_prog_cc_flag_needed_$cache=yes"
5337 else
5338 eval "cv_prog_cc_flag_needed_$cache=fail"
5339 #echo 'Test with flag fails too!'
5340 #cat conftest.c
5341 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5342 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5343 #exit 1
5344 fi
5345
5346 fi
5347 rm -f conftest conftest.c conftest.o
5348
5349 fi
5350
5351 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354 :
5355 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5356 else
5357 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 #echo 'Test with flag is no!'
5361 #cat conftest.c
5362 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5363 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5364 #exit 1
5365 :
5366
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5369 $as_echo "failed" >&6; }
5370 :
5371
5372 fi
5373 fi
5374
5375
5376
5377
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5380 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5381 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5382 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385
5386 echo '
5387 #include <stdbool.h>
5388 #include <ctype.h>
5389 int test() {
5390         int a = 0;
5391         return a;
5392 }
5393 ' > conftest.c
5394 echo 'void f(){}' >>conftest.c
5395 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5396 eval "cv_prog_cc_flag_needed_$cache=no"
5397 else
5398
5399 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5400 eval "cv_prog_cc_flag_needed_$cache=yes"
5401 else
5402 eval "cv_prog_cc_flag_needed_$cache=fail"
5403 #echo 'Test with flag fails too!'
5404 #cat conftest.c
5405 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5406 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5407 #exit 1
5408 fi
5409
5410 fi
5411 rm -f conftest conftest.c conftest.o
5412
5413 fi
5414
5415 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5418 :
5419 CFLAGS="$CFLAGS $C99FLAG"
5420 else
5421 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 #echo 'Test with flag is no!'
5425 #cat conftest.c
5426 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5427 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5428 #exit 1
5429 :
5430
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5433 $as_echo "failed" >&6; }
5434 :
5435
5436 fi
5437 fi
5438
5439
5440
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5444 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5445 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5446 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449
5450 echo '
5451 #include <ctype.h>
5452
5453 int test() {
5454         int a;
5455         a = isascii(32);
5456         return a;
5457 }
5458 ' > conftest.c
5459 echo 'void f(){}' >>conftest.c
5460 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5461 eval "cv_prog_cc_flag_needed_$cache=no"
5462 else
5463
5464 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5465 eval "cv_prog_cc_flag_needed_$cache=yes"
5466 else
5467 eval "cv_prog_cc_flag_needed_$cache=fail"
5468 #echo 'Test with flag fails too!'
5469 #cat conftest.c
5470 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5471 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5472 #exit 1
5473 fi
5474
5475 fi
5476 rm -f conftest conftest.c conftest.o
5477
5478 fi
5479
5480 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5483 :
5484 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5485 else
5486 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 #echo 'Test with flag is no!'
5490 #cat conftest.c
5491 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5492 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5493 #exit 1
5494 :
5495
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5498 $as_echo "failed" >&6; }
5499 :
5500
5501 fi
5502 fi
5503
5504
5505
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5509 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5510 cache=_D_GNU_SOURCE
5511 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514
5515 echo '
5516 #include <netinet/in.h>
5517
5518 int test() {
5519         struct in6_pktinfo inf;
5520         int a = (int)sizeof(inf);
5521         return a;
5522 }
5523 ' > conftest.c
5524 echo 'void f(){}' >>conftest.c
5525 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5526 eval "cv_prog_cc_flag_needed_$cache=no"
5527 else
5528
5529 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5530 eval "cv_prog_cc_flag_needed_$cache=yes"
5531 else
5532 eval "cv_prog_cc_flag_needed_$cache=fail"
5533 #echo 'Test with flag fails too!'
5534 #cat conftest.c
5535 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5536 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5537 #exit 1
5538 fi
5539
5540 fi
5541 rm -f conftest conftest.c conftest.o
5542
5543 fi
5544
5545 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548 :
5549 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5550 else
5551 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 #echo 'Test with flag is no!'
5555 #cat conftest.c
5556 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5557 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5558 #exit 1
5559 :
5560
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5563 $as_echo "failed" >&6; }
5564 :
5565
5566 fi
5567 fi
5568
5569
5570 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5571 # is not available at all. -D_FRSRESGID is to make this check unique.
5572 # otherwise we would get the previous cached result.
5573
5574
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5577 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5578 cache=_D_GNU_SOURCE__D_FRSRESGID
5579 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582
5583 echo '
5584 #include <unistd.h>
5585
5586 int test() {
5587         int a = setresgid(0,0,0);
5588         a = setresuid(0,0,0);
5589         return a;
5590 }
5591 ' > conftest.c
5592 echo 'void f(){}' >>conftest.c
5593 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5594 eval "cv_prog_cc_flag_needed_$cache=no"
5595 else
5596
5597 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5598 eval "cv_prog_cc_flag_needed_$cache=yes"
5599 else
5600 eval "cv_prog_cc_flag_needed_$cache=fail"
5601 #echo 'Test with flag fails too!'
5602 #cat conftest.c
5603 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5604 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5605 #exit 1
5606 fi
5607
5608 fi
5609 rm -f conftest conftest.c conftest.o
5610
5611 fi
5612
5613 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615 $as_echo "yes" >&6; }
5616 :
5617 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5618 else
5619 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 #echo 'Test with flag is no!'
5623 #cat conftest.c
5624 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5625 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5626 #exit 1
5627 :
5628
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5631 $as_echo "failed" >&6; }
5632 :
5633
5634 fi
5635 fi
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5642 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5643 cache=_D_POSIX_C_SOURCE_200112
5644 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647
5648 echo '
5649 #include "confdefs.h"
5650 #ifdef HAVE_TIME_H
5651 #include <time.h>
5652 #endif
5653 #include <netdb.h>
5654
5655 int test() {
5656         int a = 0;
5657         char *t;
5658         time_t time = 0;
5659         char *buf = NULL;
5660         const char* str = NULL;
5661         t = ctime_r(&time, buf);
5662         str = gai_strerror(0);
5663         if(t && str)
5664                 a = 0;
5665         return a;
5666 }
5667 ' > conftest.c
5668 echo 'void f(){}' >>conftest.c
5669 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5670 eval "cv_prog_cc_flag_needed_$cache=no"
5671 else
5672
5673 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5674 eval "cv_prog_cc_flag_needed_$cache=yes"
5675 else
5676 eval "cv_prog_cc_flag_needed_$cache=fail"
5677 #echo 'Test with flag fails too!'
5678 #cat conftest.c
5679 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5680 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5681 #exit 1
5682 fi
5683
5684 fi
5685 rm -f conftest conftest.c conftest.o
5686
5687 fi
5688
5689 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691 $as_echo "yes" >&6; }
5692 :
5693 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5694 else
5695 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 #echo 'Test with flag is no!'
5699 #cat conftest.c
5700 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5701 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5702 #exit 1
5703 :
5704
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5707 $as_echo "failed" >&6; }
5708 :
5709
5710 fi
5711 fi
5712
5713
5714
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5718 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5719 cache=_D__EXTENSIONS__
5720 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723
5724 echo '
5725 #include "confdefs.h"
5726 #include <stdlib.h>
5727 #include <ctype.h>
5728 #include <sys/time.h>
5729 #ifdef HAVE_TIME_H
5730 #include <time.h>
5731 #endif
5732 #include <unistd.h>
5733 #ifdef HAVE_GETOPT_H
5734 #include <getopt.h>
5735 #endif
5736
5737 int test() {
5738         int a;
5739         char **opts = NULL;
5740         struct timeval tv;
5741         tv.tv_usec = 10;
5742         srandom(32);
5743         a = getopt(2, opts, "a");
5744         a = isascii(32);
5745         if(tv.tv_usec)
5746                 a = 0;
5747         return a;
5748 }
5749 ' > conftest.c
5750 echo 'void f(){}' >>conftest.c
5751 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5752 eval "cv_prog_cc_flag_needed_$cache=no"
5753 else
5754
5755 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5756 eval "cv_prog_cc_flag_needed_$cache=yes"
5757 else
5758 eval "cv_prog_cc_flag_needed_$cache=fail"
5759 #echo 'Test with flag fails too!'
5760 #cat conftest.c
5761 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5762 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5763 #exit 1
5764 fi
5765
5766 fi
5767 rm -f conftest conftest.c conftest.o
5768
5769 fi
5770
5771 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5773 $as_echo "yes" >&6; }
5774 :
5775 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5776 else
5777 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 #echo 'Test with flag is no!'
5781 #cat conftest.c
5782 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5783 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5784 #exit 1
5785 :
5786
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5789 $as_echo "failed" >&6; }
5790 :
5791
5792 fi
5793 fi
5794
5795
5796
5797
5798 # debug mode flags warnings
5799 # Check whether --enable-checking was given.
5800 if test "${enable_checking+set}" = set; then :
5801   enableval=$enable_checking;
5802 fi
5803
5804 # Check whether --enable-debug was given.
5805 if test "${enable_debug+set}" = set; then :
5806   enableval=$enable_debug;
5807 fi
5808
5809 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5810 else debug_enabled="$enable_checking"; fi
5811
5812 case "$debug_enabled" in
5813         yes)
5814
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5817 $as_echo_n "checking whether $CC supports -W... " >&6; }
5818 cache=`echo W | sed 'y%.=/+-%___p_%'`
5819 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822
5823 echo 'void f(void){}' >conftest.c
5824 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5825 eval "cv_prog_cc_flag_$cache=yes"
5826 else
5827 eval "cv_prog_cc_flag_$cache=no"
5828 fi
5829 rm -f conftest conftest.o conftest.c
5830
5831 fi
5832
5833 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5835 $as_echo "yes" >&6; }
5836 :
5837 CFLAGS="$CFLAGS -W"
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 :
5842
5843 fi
5844
5845
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5848 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5849 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5850 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853
5854 echo 'void f(void){}' >conftest.c
5855 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5856 eval "cv_prog_cc_flag_$cache=yes"
5857 else
5858 eval "cv_prog_cc_flag_$cache=no"
5859 fi
5860 rm -f conftest conftest.o conftest.c
5861
5862 fi
5863
5864 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867 :
5868 CFLAGS="$CFLAGS -Wall"
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 :
5873
5874 fi
5875
5876
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5879 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5880 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5881 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884
5885 echo 'void f(void){}' >conftest.c
5886 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5887 eval "cv_prog_cc_flag_$cache=yes"
5888 else
5889 eval "cv_prog_cc_flag_$cache=no"
5890 fi
5891 rm -f conftest conftest.o conftest.c
5892
5893 fi
5894
5895 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5897 $as_echo "yes" >&6; }
5898 :
5899 CFLAGS="$CFLAGS -Wextra"
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 :
5904
5905 fi
5906
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5910 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5911 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5912 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915
5916 echo 'void f(void){}' >conftest.c
5917 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5918 eval "cv_prog_cc_flag_$cache=yes"
5919 else
5920 eval "cv_prog_cc_flag_$cache=no"
5921 fi
5922 rm -f conftest conftest.o conftest.c
5923
5924 fi
5925
5926 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5928 $as_echo "yes" >&6; }
5929 :
5930 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 :
5935
5936 fi
5937
5938
5939 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5940
5941                 ;;
5942         no|*)
5943                 # nothing to do.
5944                 ;;
5945 esac
5946
5947     # Check whether --enable-flto was given.
5948 if test "${enable_flto+set}" = set; then :
5949   enableval=$enable_flto;
5950 fi
5951
5952     if test "x$enable_flto" != "xno"; then :
5953
5954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5955 $as_echo_n "checking if $CC supports -flto... " >&6; }
5956         BAKCFLAGS="$CFLAGS"
5957         CFLAGS="$CFLAGS -flto"
5958         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h.  */
5960
5961 int
5962 main ()
5963 {
5964
5965   ;
5966   return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970
5971             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5972                 CFLAGS="$BAKCFLAGS"
5973                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975             else
5976                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 $as_echo "yes" >&6; }
5978             fi
5979             rm -f conftest conftest.c conftest.o
5980
5981 else
5982   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext \
5986     conftest$ac_exeext conftest.$ac_ext
5987
5988 fi
5989
5990
5991     # Check whether --enable-pie was given.
5992 if test "${enable_pie+set}" = set; then :
5993   enableval=$enable_pie;
5994 fi
5995
5996     if test "x$enable_pie" = "xyes"; then :
5997
5998         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5999 $as_echo_n "checking if $CC supports PIE... " >&6; }
6000         BAKLDFLAGS="$LDFLAGS"
6001         BAKCFLAGS="$CFLAGS"
6002         LDFLAGS="$LDFLAGS -pie"
6003         CFLAGS="$CFLAGS -fPIE"
6004         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h.  */
6006
6007 int
6008 main ()
6009 {
6010
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 if ac_fn_c_try_link "$LINENO"; then :
6016
6017             if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6018                 LDFLAGS="$BAKLDFLAGS"
6019                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021             else
6022                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6023 $as_echo "yes" >&6; }
6024             fi
6025             rm -f conftest conftest.c conftest.o
6026
6027 else
6028   LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext \
6032     conftest$ac_exeext conftest.$ac_ext
6033
6034 fi
6035
6036
6037     # Check whether --enable-relro_now was given.
6038 if test "${enable_relro_now+set}" = set; then :
6039   enableval=$enable_relro_now;
6040 fi
6041
6042     if test "x$enable_relro_now" = "xyes"; then :
6043
6044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6045 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6046         BAKLDFLAGS="$LDFLAGS"
6047         LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6048         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h.  */
6050
6051 int
6052 main ()
6053 {
6054
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 if ac_fn_c_try_link "$LINENO"; then :
6060
6061             if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6062                 LDFLAGS="$BAKLDFLAGS"
6063                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065             else
6066                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6067 $as_echo "yes" >&6; }
6068             fi
6069             rm -f conftest conftest.c conftest.o
6070
6071 else
6072   LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext \
6076     conftest$ac_exeext conftest.$ac_ext
6077
6078 fi
6079
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6082 $as_echo_n "checking for inline... " >&6; }
6083 if ${ac_cv_c_inline+:} false; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   ac_cv_c_inline=no
6087 for ac_kw in inline __inline__ __inline; do
6088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h.  */
6090 #ifndef __cplusplus
6091 typedef int foo_t;
6092 static $ac_kw foo_t static_foo () {return 0; }
6093 $ac_kw foo_t foo () {return 0; }
6094 #endif
6095
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098   ac_cv_c_inline=$ac_kw
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101   test "$ac_cv_c_inline" != no && break
6102 done
6103
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6106 $as_echo "$ac_cv_c_inline" >&6; }
6107
6108 case $ac_cv_c_inline in
6109   inline | yes) ;;
6110   *)
6111     case $ac_cv_c_inline in
6112       no) ac_val=;;
6113       *) ac_val=$ac_cv_c_inline;;
6114     esac
6115     cat >>confdefs.h <<_ACEOF
6116 #ifndef __cplusplus
6117 #define inline $ac_val
6118 #endif
6119 _ACEOF
6120     ;;
6121 esac
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6125 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6126 if ${ac_cv_c_format_attribute+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   ac_cv_c_format_attribute=no
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h.  */
6132 #include <stdio.h>
6133 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6134 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6135
6136 int
6137 main ()
6138 {
6139
6140    f ("%s", "str");
6141
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147   ac_cv_c_format_attribute="yes"
6148 else
6149   ac_cv_c_format_attribute="no"
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152
6153 fi
6154
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6157 $as_echo "$ac_cv_c_format_attribute" >&6; }
6158 if test $ac_cv_c_format_attribute = yes; then
6159
6160 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6161
6162 fi
6163
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6166 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6167 if ${ac_cv_c_unused_attribute+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170   ac_cv_c_unused_attribute=no
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h.  */
6173 #include <stdio.h>
6174 void f (char *u __attribute__((unused)));
6175
6176 int
6177 main ()
6178 {
6179
6180    f ("x");
6181
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187   ac_cv_c_unused_attribute="yes"
6188 else
6189   ac_cv_c_unused_attribute="no"
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192
6193 fi
6194
6195
6196
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6199 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6200 if test $ac_cv_c_unused_attribute = yes; then
6201
6202 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6203
6204 fi
6205
6206
6207
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6210 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6211 if ${ac_cv_c_weak_attribute+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   ac_cv_c_weak_attribute=no
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h.  */
6217  #include <stdio.h>
6218 __attribute__((weak)) void f(int x) { printf("%d", x); }
6219
6220 int
6221 main ()
6222 {
6223
6224    f(1);
6225
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231   ac_cv_c_weak_attribute="yes"
6232 else
6233   ac_cv_c_weak_attribute="no"
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236
6237 fi
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6241 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6242 if test $ac_cv_c_weak_attribute = yes; then
6243
6244 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6245
6246 fi
6247
6248
6249 if test "$srcdir" != "."; then
6250         CPPFLAGS="$CPPFLAGS -I$srcdir"
6251 fi
6252
6253
6254
6255 for ac_prog in flex lex
6256 do
6257   # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy $ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_LEX+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$LEX"; then
6265   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272     for ac_exec_ext in '' $ac_executable_extensions; do
6273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274     ac_cv_prog_LEX="$ac_prog"
6275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279   done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 LEX=$ac_cv_prog_LEX
6285 if test -n "$LEX"; then
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6287 $as_echo "$LEX" >&6; }
6288 else
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293
6294   test -n "$LEX" && break
6295 done
6296 test -n "$LEX" || LEX=":"
6297
6298 if test "x$LEX" != "x:"; then
6299   cat >conftest.l <<_ACEOF
6300 %%
6301 a { ECHO; }
6302 b { REJECT; }
6303 c { yymore (); }
6304 d { yyless (1); }
6305 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6306     yyless ((input () != 0)); }
6307 f { unput (yytext[0]); }
6308 . { BEGIN INITIAL; }
6309 %%
6310 #ifdef YYTEXT_POINTER
6311 extern char *yytext;
6312 #endif
6313 int
6314 main (void)
6315 {
6316   return ! yylex () + ! yywrap ();
6317 }
6318 _ACEOF
6319 { { ac_try="$LEX conftest.l"
6320 case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6325 $as_echo "$ac_try_echo"; } >&5
6326   (eval "$LEX conftest.l") 2>&5
6327   ac_status=$?
6328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329   test $ac_status = 0; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6331 $as_echo_n "checking lex output file root... " >&6; }
6332 if ${ac_cv_prog_lex_root+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335
6336 if test -f lex.yy.c; then
6337   ac_cv_prog_lex_root=lex.yy
6338 elif test -f lexyy.c; then
6339   ac_cv_prog_lex_root=lexyy
6340 else
6341   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6342 fi
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6345 $as_echo "$ac_cv_prog_lex_root" >&6; }
6346 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6347
6348 if test -z "${LEXLIB+set}"; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6350 $as_echo_n "checking lex library... " >&6; }
6351 if ${ac_cv_lib_lex+:} false; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354
6355     ac_save_LIBS=$LIBS
6356     ac_cv_lib_lex='none needed'
6357     for ac_lib in '' -lfl -ll; do
6358       LIBS="$ac_lib $ac_save_LIBS"
6359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h.  */
6361 `cat $LEX_OUTPUT_ROOT.c`
6362 _ACEOF
6363 if ac_fn_c_try_link "$LINENO"; then :
6364   ac_cv_lib_lex=$ac_lib
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext \
6367     conftest$ac_exeext conftest.$ac_ext
6368       test "$ac_cv_lib_lex" != 'none needed' && break
6369     done
6370     LIBS=$ac_save_LIBS
6371
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6374 $as_echo "$ac_cv_lib_lex" >&6; }
6375   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6376 fi
6377
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6380 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6381 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   # POSIX says lex can declare yytext either as a pointer or an array; the
6385 # default is implementation-dependent.  Figure out which it is, since
6386 # not all implementations provide the %pointer and %array declarations.
6387 ac_cv_prog_lex_yytext_pointer=no
6388 ac_save_LIBS=$LIBS
6389 LIBS="$LEXLIB $ac_save_LIBS"
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h.  */
6392
6393   #define YYTEXT_POINTER 1
6394 `cat $LEX_OUTPUT_ROOT.c`
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"; then :
6397   ac_cv_prog_lex_yytext_pointer=yes
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext \
6400     conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_save_LIBS
6402
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6405 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6406 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6407
6408 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6409
6410 fi
6411 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6412
6413 fi
6414
6415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6416 $as_echo_n "checking for yylex_destroy... " >&6; }
6417         if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6418
6419 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6420
6421                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6422 $as_echo "yes" >&6; }
6423         else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }; fi
6425
6426 for ac_prog in 'bison -y' byacc
6427 do
6428   # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_YACC+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$YACC"; then
6436   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_exec_ext in '' $ac_executable_extensions; do
6444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445     ac_cv_prog_YACC="$ac_prog"
6446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450   done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 YACC=$ac_cv_prog_YACC
6456 if test -n "$YACC"; then
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6458 $as_echo "$YACC" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464
6465   test -n "$YACC" && break
6466 done
6467 test -n "$YACC" || YACC="yacc"
6468
6469 # Extract the first word of "doxygen", so it can be a program name with args.
6470 set dummy doxygen; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_doxygen+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   if test -n "$doxygen"; then
6477   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484     for ac_exec_ext in '' $ac_executable_extensions; do
6485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486     ac_cv_prog_doxygen="doxygen"
6487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491   done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 doxygen=$ac_cv_prog_doxygen
6497 if test -n "$doxygen"; then
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6499 $as_echo "$doxygen" >&6; }
6500 else
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 if test -n "$ac_tool_prefix"; then
6507   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}strip; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_STRIP+:} false; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   if test -n "$STRIP"; then
6515   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522     for ac_exec_ext in '' $ac_executable_extensions; do
6523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 STRIP=$ac_cv_prog_STRIP
6535 if test -n "$STRIP"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6537 $as_echo "$STRIP" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_STRIP"; then
6546   ac_ct_STRIP=$STRIP
6547   # Extract the first word of "strip", so it can be a program name with args.
6548 set dummy strip; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554   if test -n "$ac_ct_STRIP"; then
6555   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562     for ac_exec_ext in '' $ac_executable_extensions; do
6563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564     ac_cv_prog_ac_ct_STRIP="strip"
6565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569   done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6575 if test -n "$ac_ct_STRIP"; then
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6577 $as_echo "$ac_ct_STRIP" >&6; }
6578 else
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583   if test "x$ac_ct_STRIP" = x; then
6584     STRIP=""
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6591 esac
6592     STRIP=$ac_ct_STRIP
6593   fi
6594 else
6595   STRIP="$ac_cv_prog_STRIP"
6596 fi
6597
6598 ac_aux_dir=
6599 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6600   if test -f "$ac_dir/install-sh"; then
6601     ac_aux_dir=$ac_dir
6602     ac_install_sh="$ac_aux_dir/install-sh -c"
6603     break
6604   elif test -f "$ac_dir/install.sh"; then
6605     ac_aux_dir=$ac_dir
6606     ac_install_sh="$ac_aux_dir/install.sh -c"
6607     break
6608   elif test -f "$ac_dir/shtool"; then
6609     ac_aux_dir=$ac_dir
6610     ac_install_sh="$ac_aux_dir/shtool install -c"
6611     break
6612   fi
6613 done
6614 if test -z "$ac_aux_dir"; then
6615   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6616 fi
6617
6618 # These three variables are undocumented and unsupported,
6619 # and are intended to be withdrawn in a future Autoconf release.
6620 # They can cause serious problems if a builder's source tree is in a directory
6621 # whose full name contains unusual characters.
6622 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6623 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6624 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6625
6626
6627 # Make sure we can run config.sub.
6628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6629   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6632 $as_echo_n "checking build system type... " >&6; }
6633 if ${ac_cv_build+:} false; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   ac_build_alias=$build_alias
6637 test "x$ac_build_alias" = x &&
6638   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6639 test "x$ac_build_alias" = x &&
6640   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6642   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6643
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6646 $as_echo "$ac_cv_build" >&6; }
6647 case $ac_cv_build in
6648 *-*-*) ;;
6649 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6650 esac
6651 build=$ac_cv_build
6652 ac_save_IFS=$IFS; IFS='-'
6653 set x $ac_cv_build
6654 shift
6655 build_cpu=$1
6656 build_vendor=$2
6657 shift; shift
6658 # Remember, the first character of IFS is used to create $*,
6659 # except with old shells:
6660 build_os=$*
6661 IFS=$ac_save_IFS
6662 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6663
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6666 $as_echo_n "checking host system type... " >&6; }
6667 if ${ac_cv_host+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test "x$host_alias" = x; then
6671   ac_cv_host=$ac_cv_build
6672 else
6673   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6674     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6675 fi
6676
6677 fi
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6679 $as_echo "$ac_cv_host" >&6; }
6680 case $ac_cv_host in
6681 *-*-*) ;;
6682 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6683 esac
6684 host=$ac_cv_host
6685 ac_save_IFS=$IFS; IFS='-'
6686 set x $ac_cv_host
6687 shift
6688 host_cpu=$1
6689 host_vendor=$2
6690 shift; shift
6691 # Remember, the first character of IFS is used to create $*,
6692 # except with old shells:
6693 host_os=$*
6694 IFS=$ac_save_IFS
6695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6696
6697
6698
6699 # skip these tests, we do not need them.
6700
6701
6702
6703
6704
6705
6706
6707
6708 # always use ./libtool unless override from commandline (libtool=mylibtool)
6709 if test -z "$libtool"; then
6710         libtool="./libtool"
6711 fi
6712
6713 # avoid libtool max commandline length test on systems that fork slowly.
6714
6715 if echo "$host_os" | grep "sunos4" >/dev/null; then
6716         lt_cv_sys_max_cmd_len=32750;
6717 fi
6718 if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ar; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_path_AR+:} false; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   case $AR in
6727   [\\/]* | ?:[\\/]*)
6728   ac_cv_path_AR="$AR" # Let the user override the test with a path.
6729   ;;
6730   *)
6731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736     for ac_exec_ext in '' $ac_executable_extensions; do
6737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743   done
6744 IFS=$as_save_IFS
6745
6746   ;;
6747 esac
6748 fi
6749 AR=$ac_cv_path_AR
6750 if test -n "$AR"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752 $as_echo "$AR" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_path_AR"; then
6761   ac_pt_AR=$AR
6762   # Extract the first word of "ar", so it can be a program name with args.
6763 set dummy ar; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_path_ac_pt_AR+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   case $ac_pt_AR in
6770   [\\/]* | ?:[\\/]*)
6771   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6772   ;;
6773   *)
6774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779     for ac_exec_ext in '' $ac_executable_extensions; do
6780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786   done
6787 IFS=$as_save_IFS
6788
6789   ;;
6790 esac
6791 fi
6792 ac_pt_AR=$ac_cv_path_ac_pt_AR
6793 if test -n "$ac_pt_AR"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6795 $as_echo "$ac_pt_AR" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801   if test "x$ac_pt_AR" = x; then
6802     AR="false"
6803   else
6804     case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810     AR=$ac_pt_AR
6811   fi
6812 else
6813   AR="$ac_cv_path_AR"
6814 fi
6815
6816 if test $AR = false; then
6817         as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6818 fi
6819
6820 case `pwd` in
6821   *\ * | *\     *)
6822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6823 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6824 esac
6825
6826
6827
6828 macro_version='2.4.6'
6829 macro_revision='2.4.6'
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 ltmain=$ac_aux_dir/ltmain.sh
6844
6845 # Backslashify metacharacters that are still active within
6846 # double-quoted strings.
6847 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6848
6849 # Same as above, but do not quote variable references.
6850 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6851
6852 # Sed substitution to delay expansion of an escaped shell variable in a
6853 # double_quote_subst'ed string.
6854 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6855
6856 # Sed substitution to delay expansion of an escaped single quote.
6857 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6858
6859 # Sed substitution to avoid accidental globbing in evaled expressions
6860 no_glob_subst='s/\*/\\\*/g'
6861
6862 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6864 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6867 $as_echo_n "checking how to print strings... " >&6; }
6868 # Test print first, because it will be a builtin if present.
6869 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6870    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6871   ECHO='print -r --'
6872 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6873   ECHO='printf %s\n'
6874 else
6875   # Use this function as a fallback that always works.
6876   func_fallback_echo ()
6877   {
6878     eval 'cat <<_LTECHO_EOF
6879 $1
6880 _LTECHO_EOF'
6881   }
6882   ECHO='func_fallback_echo'
6883 fi
6884
6885 # func_echo_all arg...
6886 # Invoke $ECHO with all args, space-separated.
6887 func_echo_all ()
6888 {
6889     $ECHO ""
6890 }
6891
6892 case $ECHO in
6893   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6894 $as_echo "printf" >&6; } ;;
6895   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6896 $as_echo "print -r" >&6; } ;;
6897   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6898 $as_echo "cat" >&6; } ;;
6899 esac
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6916 if ${ac_cv_path_SED+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6920      for ac_i in 1 2 3 4 5 6 7; do
6921        ac_script="$ac_script$as_nl$ac_script"
6922      done
6923      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6924      { ac_script=; unset ac_script;}
6925      if test -z "$SED"; then
6926   ac_path_SED_found=false
6927   # Loop through the user's path and test for each of PROGNAME-LIST
6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_prog in sed gsed; do
6934     for ac_exec_ext in '' $ac_executable_extensions; do
6935       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6936       as_fn_executable_p "$ac_path_SED" || continue
6937 # Check for GNU ac_path_SED and select it if it is found.
6938   # Check for GNU $ac_path_SED
6939 case `"$ac_path_SED" --version 2>&1` in
6940 *GNU*)
6941   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6942 *)
6943   ac_count=0
6944   $as_echo_n 0123456789 >"conftest.in"
6945   while :
6946   do
6947     cat "conftest.in" "conftest.in" >"conftest.tmp"
6948     mv "conftest.tmp" "conftest.in"
6949     cp "conftest.in" "conftest.nl"
6950     $as_echo '' >> "conftest.nl"
6951     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6953     as_fn_arith $ac_count + 1 && ac_count=$as_val
6954     if test $ac_count -gt ${ac_path_SED_max-0}; then
6955       # Best one so far, save it but keep looking for a better one
6956       ac_cv_path_SED="$ac_path_SED"
6957       ac_path_SED_max=$ac_count
6958     fi
6959     # 10*(2^10) chars as input seems more than enough
6960     test $ac_count -gt 10 && break
6961   done
6962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6963 esac
6964
6965       $ac_path_SED_found && break 3
6966     done
6967   done
6968   done
6969 IFS=$as_save_IFS
6970   if test -z "$ac_cv_path_SED"; then
6971     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6972   fi
6973 else
6974   ac_cv_path_SED=$SED
6975 fi
6976
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6979 $as_echo "$ac_cv_path_SED" >&6; }
6980  SED="$ac_cv_path_SED"
6981   rm -f conftest.sed
6982
6983 test -z "$SED" && SED=sed
6984 Xsed="$SED -e 1s/^X//"
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6997 $as_echo_n "checking for fgrep... " >&6; }
6998 if ${ac_cv_path_FGREP+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7002    then ac_cv_path_FGREP="$GREP -F"
7003    else
7004      if test -z "$FGREP"; then
7005   ac_path_FGREP_found=false
7006   # Loop through the user's path and test for each of PROGNAME-LIST
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_prog in fgrep; do
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7015       as_fn_executable_p "$ac_path_FGREP" || continue
7016 # Check for GNU ac_path_FGREP and select it if it is found.
7017   # Check for GNU $ac_path_FGREP
7018 case `"$ac_path_FGREP" --version 2>&1` in
7019 *GNU*)
7020   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7021 *)
7022   ac_count=0
7023   $as_echo_n 0123456789 >"conftest.in"
7024   while :
7025   do
7026     cat "conftest.in" "conftest.in" >"conftest.tmp"
7027     mv "conftest.tmp" "conftest.in"
7028     cp "conftest.in" "conftest.nl"
7029     $as_echo 'FGREP' >> "conftest.nl"
7030     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7031     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7032     as_fn_arith $ac_count + 1 && ac_count=$as_val
7033     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7034       # Best one so far, save it but keep looking for a better one
7035       ac_cv_path_FGREP="$ac_path_FGREP"
7036       ac_path_FGREP_max=$ac_count
7037     fi
7038     # 10*(2^10) chars as input seems more than enough
7039     test $ac_count -gt 10 && break
7040   done
7041   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7042 esac
7043
7044       $ac_path_FGREP_found && break 3
7045     done
7046   done
7047   done
7048 IFS=$as_save_IFS
7049   if test -z "$ac_cv_path_FGREP"; then
7050     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7051   fi
7052 else
7053   ac_cv_path_FGREP=$FGREP
7054 fi
7055
7056    fi
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7059 $as_echo "$ac_cv_path_FGREP" >&6; }
7060  FGREP="$ac_cv_path_FGREP"
7061
7062
7063 test -z "$GREP" && GREP=grep
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 # Check whether --with-gnu-ld was given.
7084 if test "${with_gnu_ld+set}" = set; then :
7085   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7086 else
7087   with_gnu_ld=no
7088 fi
7089
7090 ac_prog=ld
7091 if test yes = "$GCC"; then
7092   # Check if gcc -print-prog-name=ld gives a path.
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7094 $as_echo_n "checking for ld used by $CC... " >&6; }
7095   case $host in
7096   *-*-mingw*)
7097     # gcc leaves a trailing carriage return, which upsets mingw
7098     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7099   *)
7100     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7101   esac
7102   case $ac_prog in
7103     # Accept absolute paths.
7104     [\\/]* | ?:[\\/]*)
7105       re_direlt='/[^/][^/]*/\.\./'
7106       # Canonicalize the pathname of ld
7107       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7108       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7109         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7110       done
7111       test -z "$LD" && LD=$ac_prog
7112       ;;
7113   "")
7114     # If it fails, then pretend we aren't using GCC.
7115     ac_prog=ld
7116     ;;
7117   *)
7118     # If it is relative, then search for the first ld in PATH.
7119     with_gnu_ld=unknown
7120     ;;
7121   esac
7122 elif test yes = "$with_gnu_ld"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7124 $as_echo_n "checking for GNU ld... " >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7127 $as_echo_n "checking for non-GNU ld... " >&6; }
7128 fi
7129 if ${lt_cv_path_LD+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -z "$LD"; then
7133   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7134   for ac_dir in $PATH; do
7135     IFS=$lt_save_ifs
7136     test -z "$ac_dir" && ac_dir=.
7137     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7138       lt_cv_path_LD=$ac_dir/$ac_prog
7139       # Check to see if the program is GNU ld.  I'd rather use --version,
7140       # but apparently some variants of GNU ld only accept -v.
7141       # Break only if it was the GNU/non-GNU ld that we prefer.
7142       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7143       *GNU* | *'with BFD'*)
7144         test no != "$with_gnu_ld" && break
7145         ;;
7146       *)
7147         test yes != "$with_gnu_ld" && break
7148         ;;
7149       esac
7150     fi
7151   done
7152   IFS=$lt_save_ifs
7153 else
7154   lt_cv_path_LD=$LD # Let the user override the test with a path.
7155 fi
7156 fi
7157
7158 LD=$lt_cv_path_LD
7159 if test -n "$LD"; then
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7161 $as_echo "$LD" >&6; }
7162 else
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7169 if ${lt_cv_prog_gnu_ld+:} false; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7173 case `$LD -v 2>&1 </dev/null` in
7174 *GNU* | *'with BFD'*)
7175   lt_cv_prog_gnu_ld=yes
7176   ;;
7177 *)
7178   lt_cv_prog_gnu_ld=no
7179   ;;
7180 esac
7181 fi
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7183 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7184 with_gnu_ld=$lt_cv_prog_gnu_ld
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7195 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7196 if ${lt_cv_path_NM+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   if test -n "$NM"; then
7200   # Let the user override the test.
7201   lt_cv_path_NM=$NM
7202 else
7203   lt_nm_to_check=${ac_tool_prefix}nm
7204   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7205     lt_nm_to_check="$lt_nm_to_check nm"
7206   fi
7207   for lt_tmp_nm in $lt_nm_to_check; do
7208     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7209     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7210       IFS=$lt_save_ifs
7211       test -z "$ac_dir" && ac_dir=.
7212       tmp_nm=$ac_dir/$lt_tmp_nm
7213       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7214         # Check to see if the nm accepts a BSD-compat flag.
7215         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7216         #   nm: unknown option "B" ignored
7217         # Tru64's nm complains that /dev/null is an invalid object file
7218         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7219         case $build_os in
7220         mingw*) lt_bad_file=conftest.nm/nofile ;;
7221         *) lt_bad_file=/dev/null ;;
7222         esac
7223         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7224         *$lt_bad_file* | *'Invalid file or object type'*)
7225           lt_cv_path_NM="$tmp_nm -B"
7226           break 2
7227           ;;
7228         *)
7229           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7230           */dev/null*)
7231             lt_cv_path_NM="$tmp_nm -p"
7232             break 2
7233             ;;
7234           *)
7235             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7236             continue # so that we can try to find one that supports BSD flags
7237             ;;
7238           esac
7239           ;;
7240         esac
7241       fi
7242     done
7243     IFS=$lt_save_ifs
7244   done
7245   : ${lt_cv_path_NM=no}
7246 fi
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7249 $as_echo "$lt_cv_path_NM" >&6; }
7250 if test no != "$lt_cv_path_NM"; then
7251   NM=$lt_cv_path_NM
7252 else
7253   # Didn't find any BSD compatible name lister, look for dumpbin.
7254   if test -n "$DUMPBIN"; then :
7255     # Let the user override the test.
7256   else
7257     if test -n "$ac_tool_prefix"; then
7258   for ac_prog in dumpbin "link -dump"
7259   do
7260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_DUMPBIN+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   if test -n "$DUMPBIN"; then
7268   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275     for ac_exec_ext in '' $ac_executable_extensions; do
7276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282   done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 DUMPBIN=$ac_cv_prog_DUMPBIN
7288 if test -n "$DUMPBIN"; then
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7290 $as_echo "$DUMPBIN" >&6; }
7291 else
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297     test -n "$DUMPBIN" && break
7298   done
7299 fi
7300 if test -z "$DUMPBIN"; then
7301   ac_ct_DUMPBIN=$DUMPBIN
7302   for ac_prog in dumpbin "link -dump"
7303 do
7304   # Extract the first word of "$ac_prog", so it can be a program name with args.
7305 set dummy $ac_prog; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7309   $as_echo_n "(cached) " >&6
7310 else
7311   if test -n "$ac_ct_DUMPBIN"; then
7312   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319     for ac_exec_ext in '' $ac_executable_extensions; do
7320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326   done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7332 if test -n "$ac_ct_DUMPBIN"; then
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7334 $as_echo "$ac_ct_DUMPBIN" >&6; }
7335 else
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341   test -n "$ac_ct_DUMPBIN" && break
7342 done
7343
7344   if test "x$ac_ct_DUMPBIN" = x; then
7345     DUMPBIN=":"
7346   else
7347     case $cross_compiling:$ac_tool_warned in
7348 yes:)
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7352 esac
7353     DUMPBIN=$ac_ct_DUMPBIN
7354   fi
7355 fi
7356
7357     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7358     *COFF*)
7359       DUMPBIN="$DUMPBIN -symbols -headers"
7360       ;;
7361     *)
7362       DUMPBIN=:
7363       ;;
7364     esac
7365   fi
7366
7367   if test : != "$DUMPBIN"; then
7368     NM=$DUMPBIN
7369   fi
7370 fi
7371 test -z "$NM" && NM=nm
7372
7373
7374
7375
7376
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7379 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7380 if ${lt_cv_nm_interface+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   lt_cv_nm_interface="BSD nm"
7384   echo "int some_variable = 0;" > conftest.$ac_ext
7385   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7386   (eval "$ac_compile" 2>conftest.err)
7387   cat conftest.err >&5
7388   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7389   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7390   cat conftest.err >&5
7391   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7392   cat conftest.out >&5
7393   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7394     lt_cv_nm_interface="MS dumpbin"
7395   fi
7396   rm -f conftest*
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7399 $as_echo "$lt_cv_nm_interface" >&6; }
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7402 $as_echo_n "checking whether ln -s works... " >&6; }
7403 LN_S=$as_ln_s
7404 if test "$LN_S" = "ln -s"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7409 $as_echo "no, using $LN_S" >&6; }
7410 fi
7411
7412 # find the maximum length of command line arguments
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7414 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7415 if ${lt_cv_sys_max_cmd_len+:} false; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418     i=0
7419   teststring=ABCD
7420
7421   case $build_os in
7422   msdosdjgpp*)
7423     # On DJGPP, this test can blow up pretty badly due to problems in libc
7424     # (any single argument exceeding 2000 bytes causes a buffer overrun
7425     # during glob expansion).  Even if it were fixed, the result of this
7426     # check would be larger than it should be.
7427     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7428     ;;
7429
7430   gnu*)
7431     # Under GNU Hurd, this test is not required because there is
7432     # no limit to the length of command line arguments.
7433     # Libtool will interpret -1 as no limit whatsoever
7434     lt_cv_sys_max_cmd_len=-1;
7435     ;;
7436
7437   cygwin* | mingw* | cegcc*)
7438     # On Win9x/ME, this test blows up -- it succeeds, but takes
7439     # about 5 minutes as the teststring grows exponentially.
7440     # Worse, since 9x/ME are not pre-emptively multitasking,
7441     # you end up with a "frozen" computer, even though with patience
7442     # the test eventually succeeds (with a max line length of 256k).
7443     # Instead, let's just punt: use the minimum linelength reported by
7444     # all of the supported platforms: 8192 (on NT/2K/XP).
7445     lt_cv_sys_max_cmd_len=8192;
7446     ;;
7447
7448   mint*)
7449     # On MiNT this can take a long time and run out of memory.
7450     lt_cv_sys_max_cmd_len=8192;
7451     ;;
7452
7453   amigaos*)
7454     # On AmigaOS with pdksh, this test takes hours, literally.
7455     # So we just punt and use a minimum line length of 8192.
7456     lt_cv_sys_max_cmd_len=8192;
7457     ;;
7458
7459   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7460     # This has been around since 386BSD, at least.  Likely further.
7461     if test -x /sbin/sysctl; then
7462       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7463     elif test -x /usr/sbin/sysctl; then
7464       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7465     else
7466       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7467     fi
7468     # And add a safety zone
7469     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7470     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7471     ;;
7472
7473   interix*)
7474     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7475     lt_cv_sys_max_cmd_len=196608
7476     ;;
7477
7478   os2*)
7479     # The test takes a long time on OS/2.
7480     lt_cv_sys_max_cmd_len=8192
7481     ;;
7482
7483   osf*)
7484     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7485     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7486     # nice to cause kernel panics so lets avoid the loop below.
7487     # First set a reasonable default.
7488     lt_cv_sys_max_cmd_len=16384
7489     #
7490     if test -x /sbin/sysconfig; then
7491       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7492         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7493       esac
7494     fi
7495     ;;
7496   sco3.2v5*)
7497     lt_cv_sys_max_cmd_len=102400
7498     ;;
7499   sysv5* | sco5v6* | sysv4.2uw2*)
7500     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7501     if test -n "$kargmax"; then
7502       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7503     else
7504       lt_cv_sys_max_cmd_len=32768
7505     fi
7506     ;;
7507   *)
7508     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7509     if test -n "$lt_cv_sys_max_cmd_len" && \
7510        test undefined != "$lt_cv_sys_max_cmd_len"; then
7511       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7512       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7513     else
7514       # Make teststring a little bigger before we do anything with it.
7515       # a 1K string should be a reasonable start.
7516       for i in 1 2 3 4 5 6 7 8; do
7517         teststring=$teststring$teststring
7518       done
7519       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7520       # If test is not a shell built-in, we'll probably end up computing a
7521       # maximum length that is only half of the actual maximum length, but
7522       # we can't tell.
7523       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7524                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7525               test 17 != "$i" # 1/2 MB should be enough
7526       do
7527         i=`expr $i + 1`
7528         teststring=$teststring$teststring
7529       done
7530       # Only check the string length outside the loop.
7531       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7532       teststring=
7533       # Add a significant safety factor because C++ compilers can tack on
7534       # massive amounts of additional arguments before passing them to the
7535       # linker.  It appears as though 1/2 is a usable value.
7536       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7537     fi
7538     ;;
7539   esac
7540
7541 fi
7542
7543 if test -n "$lt_cv_sys_max_cmd_len"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7548 $as_echo "none" >&6; }
7549 fi
7550 max_cmd_len=$lt_cv_sys_max_cmd_len
7551
7552
7553
7554
7555
7556
7557 : ${CP="cp -f"}
7558 : ${MV="mv -f"}
7559 : ${RM="rm -f"}
7560
7561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7562   lt_unset=unset
7563 else
7564   lt_unset=false
7565 fi
7566
7567
7568
7569
7570
7571 # test EBCDIC or ASCII
7572 case `echo X|tr X '\101'` in
7573  A) # ASCII based system
7574     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7575   lt_SP2NL='tr \040 \012'
7576   lt_NL2SP='tr \015\012 \040\040'
7577   ;;
7578  *) # EBCDIC based system
7579   lt_SP2NL='tr \100 \n'
7580   lt_NL2SP='tr \r\n \100\100'
7581   ;;
7582 esac
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7593 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7594 if ${lt_cv_to_host_file_cmd+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   case $host in
7598   *-*-mingw* )
7599     case $build in
7600       *-*-mingw* ) # actually msys
7601         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7602         ;;
7603       *-*-cygwin* )
7604         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7605         ;;
7606       * ) # otherwise, assume *nix
7607         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7608         ;;
7609     esac
7610     ;;
7611   *-*-cygwin* )
7612     case $build in
7613       *-*-mingw* ) # actually msys
7614         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7615         ;;
7616       *-*-cygwin* )
7617         lt_cv_to_host_file_cmd=func_convert_file_noop
7618         ;;
7619       * ) # otherwise, assume *nix
7620         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7621         ;;
7622     esac
7623     ;;
7624   * ) # unhandled hosts (and "normal" native builds)
7625     lt_cv_to_host_file_cmd=func_convert_file_noop
7626     ;;
7627 esac
7628
7629 fi
7630
7631 to_host_file_cmd=$lt_cv_to_host_file_cmd
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7633 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7634
7635
7636
7637
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7640 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7641 if ${lt_cv_to_tool_file_cmd+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   #assume ordinary cross tools, or native build.
7645 lt_cv_to_tool_file_cmd=func_convert_file_noop
7646 case $host in
7647   *-*-mingw* )
7648     case $build in
7649       *-*-mingw* ) # actually msys
7650         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7651         ;;
7652     esac
7653     ;;
7654 esac
7655
7656 fi
7657
7658 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7660 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7661
7662
7663
7664
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7668 if ${lt_cv_ld_reload_flag+:} false; then :
7669   $as_echo_n "(cached) " >&6
7670 else
7671   lt_cv_ld_reload_flag='-r'
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7675 reload_flag=$lt_cv_ld_reload_flag
7676 case $reload_flag in
7677 "" | " "*) ;;
7678 *) reload_flag=" $reload_flag" ;;
7679 esac
7680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7681 case $host_os in
7682   cygwin* | mingw* | pw32* | cegcc*)
7683     if test yes != "$GCC"; then
7684       reload_cmds=false
7685     fi
7686     ;;
7687   darwin*)
7688     if test yes = "$GCC"; then
7689       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7690     else
7691       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7692     fi
7693     ;;
7694 esac
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_OBJDUMP+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$OBJDUMP"; then
7713   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 OBJDUMP=$ac_cv_prog_OBJDUMP
7733 if test -n "$OBJDUMP"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7735 $as_echo "$OBJDUMP" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_OBJDUMP"; then
7744   ac_ct_OBJDUMP=$OBJDUMP
7745   # Extract the first word of "objdump", so it can be a program name with args.
7746 set dummy objdump; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   if test -n "$ac_ct_OBJDUMP"; then
7753   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767   done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7773 if test -n "$ac_ct_OBJDUMP"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7775 $as_echo "$ac_ct_OBJDUMP" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_OBJDUMP" = x; then
7782     OBJDUMP="false"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     OBJDUMP=$ac_ct_OBJDUMP
7791   fi
7792 else
7793   OBJDUMP="$ac_cv_prog_OBJDUMP"
7794 fi
7795
7796 test -z "$OBJDUMP" && OBJDUMP=objdump
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7807 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7808 if ${lt_cv_deplibs_check_method+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   lt_cv_file_magic_cmd='$MAGIC_CMD'
7812 lt_cv_file_magic_test_file=
7813 lt_cv_deplibs_check_method='unknown'
7814 # Need to set the preceding variable on all platforms that support
7815 # interlibrary dependencies.
7816 # 'none' -- dependencies not supported.
7817 # 'unknown' -- same as none, but documents that we really don't know.
7818 # 'pass_all' -- all dependencies passed with no checks.
7819 # 'test_compile' -- check by making test program.
7820 # 'file_magic [[regex]]' -- check by looking for files in library path
7821 # that responds to the $file_magic_cmd with a given extended regex.
7822 # If you have 'file' or equivalent on your system and you're not sure
7823 # whether 'pass_all' will *always* work, you probably want this one.
7824
7825 case $host_os in
7826 aix[4-9]*)
7827   lt_cv_deplibs_check_method=pass_all
7828   ;;
7829
7830 beos*)
7831   lt_cv_deplibs_check_method=pass_all
7832   ;;
7833
7834 bsdi[45]*)
7835   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7836   lt_cv_file_magic_cmd='/usr/bin/file -L'
7837   lt_cv_file_magic_test_file=/shlib/libc.so
7838   ;;
7839
7840 cygwin*)
7841   # func_win32_libid is a shell function defined in ltmain.sh
7842   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7843   lt_cv_file_magic_cmd='func_win32_libid'
7844   ;;
7845
7846 mingw* | pw32*)
7847   # Base MSYS/MinGW do not provide the 'file' command needed by
7848   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7849   # unless we find 'file', for example because we are cross-compiling.
7850   if ( file / ) >/dev/null 2>&1; then
7851     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7852     lt_cv_file_magic_cmd='func_win32_libid'
7853   else
7854     # Keep this pattern in sync with the one in func_win32_libid.
7855     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7856     lt_cv_file_magic_cmd='$OBJDUMP -f'
7857   fi
7858   ;;
7859
7860 cegcc*)
7861   # use the weaker test based on 'objdump'. See mingw*.
7862   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7863   lt_cv_file_magic_cmd='$OBJDUMP -f'
7864   ;;
7865
7866 darwin* | rhapsody*)
7867   lt_cv_deplibs_check_method=pass_all
7868   ;;
7869
7870 freebsd* | dragonfly*)
7871   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7872     case $host_cpu in
7873     i*86 )
7874       # Not sure whether the presence of OpenBSD here was a mistake.
7875       # Let's accept both of them until this is cleared up.
7876       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7877       lt_cv_file_magic_cmd=/usr/bin/file
7878       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7879       ;;
7880     esac
7881   else
7882     lt_cv_deplibs_check_method=pass_all
7883   fi
7884   ;;
7885
7886 haiku*)
7887   lt_cv_deplibs_check_method=pass_all
7888   ;;
7889
7890 hpux10.20* | hpux11*)
7891   lt_cv_file_magic_cmd=/usr/bin/file
7892   case $host_cpu in
7893   ia64*)
7894     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7895     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7896     ;;
7897   hppa*64*)
7898     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7899     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7900     ;;
7901   *)
7902     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7903     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7904     ;;
7905   esac
7906   ;;
7907
7908 interix[3-9]*)
7909   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7910   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7911   ;;
7912
7913 irix5* | irix6* | nonstopux*)
7914   case $LD in
7915   *-32|*"-32 ") libmagic=32-bit;;
7916   *-n32|*"-n32 ") libmagic=N32;;
7917   *-64|*"-64 ") libmagic=64-bit;;
7918   *) libmagic=never-match;;
7919   esac
7920   lt_cv_deplibs_check_method=pass_all
7921   ;;
7922
7923 # This must be glibc/ELF.
7924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7925   lt_cv_deplibs_check_method=pass_all
7926   ;;
7927
7928 netbsd*)
7929   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7930     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7931   else
7932     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7933   fi
7934   ;;
7935
7936 newos6*)
7937   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7938   lt_cv_file_magic_cmd=/usr/bin/file
7939   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7940   ;;
7941
7942 *nto* | *qnx*)
7943   lt_cv_deplibs_check_method=pass_all
7944   ;;
7945
7946 openbsd* | bitrig*)
7947   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7948     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7949   else
7950     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7951   fi
7952   ;;
7953
7954 osf3* | osf4* | osf5*)
7955   lt_cv_deplibs_check_method=pass_all
7956   ;;
7957
7958 rdos*)
7959   lt_cv_deplibs_check_method=pass_all
7960   ;;
7961
7962 solaris*)
7963   lt_cv_deplibs_check_method=pass_all
7964   ;;
7965
7966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7967   lt_cv_deplibs_check_method=pass_all
7968   ;;
7969
7970 sysv4 | sysv4.3*)
7971   case $host_vendor in
7972   motorola)
7973     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7974     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7975     ;;
7976   ncr)
7977     lt_cv_deplibs_check_method=pass_all
7978     ;;
7979   sequent)
7980     lt_cv_file_magic_cmd='/bin/file'
7981     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7982     ;;
7983   sni)
7984     lt_cv_file_magic_cmd='/bin/file'
7985     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7986     lt_cv_file_magic_test_file=/lib/libc.so
7987     ;;
7988   siemens)
7989     lt_cv_deplibs_check_method=pass_all
7990     ;;
7991   pc)
7992     lt_cv_deplibs_check_method=pass_all
7993     ;;
7994   esac
7995   ;;
7996
7997 tpf*)
7998   lt_cv_deplibs_check_method=pass_all
7999   ;;
8000 os2*)
8001   lt_cv_deplibs_check_method=pass_all
8002   ;;
8003 esac
8004
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8007 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8008
8009 file_magic_glob=
8010 want_nocaseglob=no
8011 if test "$build" = "$host"; then
8012   case $host_os in
8013   mingw* | pw32*)
8014     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8015       want_nocaseglob=yes
8016     else
8017       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8018     fi
8019     ;;
8020   esac
8021 fi
8022
8023 file_magic_cmd=$lt_cv_file_magic_cmd
8024 deplibs_check_method=$lt_cv_deplibs_check_method
8025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048 if test -n "$ac_tool_prefix"; then
8049   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_DLLTOOL+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$DLLTOOL"; then
8057   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 DLLTOOL=$ac_cv_prog_DLLTOOL
8077 if test -n "$DLLTOOL"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8079 $as_echo "$DLLTOOL" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086 fi
8087 if test -z "$ac_cv_prog_DLLTOOL"; then
8088   ac_ct_DLLTOOL=$DLLTOOL
8089   # Extract the first word of "dlltool", so it can be a program name with args.
8090 set dummy dlltool; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   if test -n "$ac_ct_DLLTOOL"; then
8097   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104     for ac_exec_ext in '' $ac_executable_extensions; do
8105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111   done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8117 if test -n "$ac_ct_DLLTOOL"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8119 $as_echo "$ac_ct_DLLTOOL" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125   if test "x$ac_ct_DLLTOOL" = x; then
8126     DLLTOOL="false"
8127   else
8128     case $cross_compiling:$ac_tool_warned in
8129 yes:)
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8133 esac
8134     DLLTOOL=$ac_ct_DLLTOOL
8135   fi
8136 else
8137   DLLTOOL="$ac_cv_prog_DLLTOOL"
8138 fi
8139
8140 test -z "$DLLTOOL" && DLLTOOL=dlltool
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8152 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8153 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   lt_cv_sharedlib_from_linklib_cmd='unknown'
8157
8158 case $host_os in
8159 cygwin* | mingw* | pw32* | cegcc*)
8160   # two different shell functions defined in ltmain.sh;
8161   # decide which one to use based on capabilities of $DLLTOOL
8162   case `$DLLTOOL --help 2>&1` in
8163   *--identify-strict*)
8164     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8165     ;;
8166   *)
8167     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8168     ;;
8169   esac
8170   ;;
8171 *)
8172   # fallback: assume linklib IS sharedlib
8173   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8174   ;;
8175 esac
8176
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8179 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8180 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8181 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8182
8183
8184
8185
8186
8187
8188
8189 if test -n "$ac_tool_prefix"; then
8190   for ac_prog in ar
8191   do
8192     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if ${ac_cv_prog_AR+:} false; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   if test -n "$AR"; then
8200   ac_cv_prog_AR="$AR" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207     for ac_exec_ext in '' $ac_executable_extensions; do
8208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8209     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214   done
8215 IFS=$as_save_IFS
8216
8217 fi
8218 fi
8219 AR=$ac_cv_prog_AR
8220 if test -n "$AR"; then
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8222 $as_echo "$AR" >&6; }
8223 else
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8226 fi
8227
8228
8229     test -n "$AR" && break
8230   done
8231 fi
8232 if test -z "$AR"; then
8233   ac_ct_AR=$AR
8234   for ac_prog in ar
8235 do
8236   # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   if test -n "$ac_ct_AR"; then
8244   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249   IFS=$as_save_IFS
8250   test -z "$as_dir" && as_dir=.
8251     for ac_exec_ext in '' $ac_executable_extensions; do
8252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253     ac_cv_prog_ac_ct_AR="$ac_prog"
8254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255     break 2
8256   fi
8257 done
8258   done
8259 IFS=$as_save_IFS
8260
8261 fi
8262 fi
8263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8264 if test -n "$ac_ct_AR"; then
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8266 $as_echo "$ac_ct_AR" >&6; }
8267 else
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8270 fi
8271
8272
8273   test -n "$ac_ct_AR" && break
8274 done
8275
8276   if test "x$ac_ct_AR" = x; then
8277     AR="false"
8278   else
8279     case $cross_compiling:$ac_tool_warned in
8280 yes:)
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283 ac_tool_warned=yes ;;
8284 esac
8285     AR=$ac_ct_AR
8286   fi
8287 fi
8288
8289 : ${AR=ar}
8290 : ${AR_FLAGS=cru}
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8303 $as_echo_n "checking for archiver @FILE support... " >&6; }
8304 if ${lt_cv_ar_at_file+:} false; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   lt_cv_ar_at_file=no
8308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h.  */
8310
8311 int
8312 main ()
8313 {
8314
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"; then :
8320   echo conftest.$ac_objext > conftest.lst
8321       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8322       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8323   (eval $lt_ar_try) 2>&5
8324   ac_status=$?
8325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8326   test $ac_status = 0; }
8327       if test 0 -eq "$ac_status"; then
8328         # Ensure the archiver fails upon bogus file names.
8329         rm -f conftest.$ac_objext libconftest.a
8330         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8331   (eval $lt_ar_try) 2>&5
8332   ac_status=$?
8333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8334   test $ac_status = 0; }
8335         if test 0 -ne "$ac_status"; then
8336           lt_cv_ar_at_file=@
8337         fi
8338       fi
8339       rm -f conftest.* libconftest.a
8340
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8346 $as_echo "$lt_cv_ar_at_file" >&6; }
8347
8348 if test no = "$lt_cv_ar_at_file"; then
8349   archiver_list_spec=
8350 else
8351   archiver_list_spec=$lt_cv_ar_at_file
8352 fi
8353
8354
8355
8356
8357
8358
8359
8360 if test -n "$ac_tool_prefix"; then
8361   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8362 set dummy ${ac_tool_prefix}strip; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_STRIP+:} false; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   if test -n "$STRIP"; then
8369   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376     for ac_exec_ext in '' $ac_executable_extensions; do
8377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383   done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 STRIP=$ac_cv_prog_STRIP
8389 if test -n "$STRIP"; then
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8391 $as_echo "$STRIP" >&6; }
8392 else
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 if test -z "$ac_cv_prog_STRIP"; then
8400   ac_ct_STRIP=$STRIP
8401   # Extract the first word of "strip", so it can be a program name with args.
8402 set dummy strip; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   if test -n "$ac_ct_STRIP"; then
8409   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416     for ac_exec_ext in '' $ac_executable_extensions; do
8417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418     ac_cv_prog_ac_ct_STRIP="strip"
8419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423   done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8429 if test -n "$ac_ct_STRIP"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8431 $as_echo "$ac_ct_STRIP" >&6; }
8432 else
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 fi
8436
8437   if test "x$ac_ct_STRIP" = x; then
8438     STRIP=":"
8439   else
8440     case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444 ac_tool_warned=yes ;;
8445 esac
8446     STRIP=$ac_ct_STRIP
8447   fi
8448 else
8449   STRIP="$ac_cv_prog_STRIP"
8450 fi
8451
8452 test -z "$STRIP" && STRIP=:
8453
8454
8455
8456
8457
8458
8459 if test -n "$ac_tool_prefix"; then
8460   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_RANLIB+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   if test -n "$RANLIB"; then
8468   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475     for ac_exec_ext in '' $ac_executable_extensions; do
8476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479     break 2
8480   fi
8481 done
8482   done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 RANLIB=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8490 $as_echo "$RANLIB" >&6; }
8491 else
8492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 fi
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499   ac_ct_RANLIB=$RANLIB
8500   # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8505   $as_echo_n "(cached) " >&6
8506 else
8507   if test -n "$ac_ct_RANLIB"; then
8508   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513   IFS=$as_save_IFS
8514   test -z "$as_dir" && as_dir=.
8515     for ac_exec_ext in '' $ac_executable_extensions; do
8516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517     ac_cv_prog_ac_ct_RANLIB="ranlib"
8518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519     break 2
8520   fi
8521 done
8522   done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8530 $as_echo "$ac_ct_RANLIB" >&6; }
8531 else
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536   if test "x$ac_ct_RANLIB" = x; then
8537     RANLIB=":"
8538   else
8539     case $cross_compiling:$ac_tool_warned in
8540 yes:)
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543 ac_tool_warned=yes ;;
8544 esac
8545     RANLIB=$ac_ct_RANLIB
8546   fi
8547 else
8548   RANLIB="$ac_cv_prog_RANLIB"
8549 fi
8550
8551 test -z "$RANLIB" && RANLIB=:
8552
8553
8554
8555
8556
8557
8558 # Determine commands to create old-style static archives.
8559 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8560 old_postinstall_cmds='chmod 644 $oldlib'
8561 old_postuninstall_cmds=
8562
8563 if test -n "$RANLIB"; then
8564   case $host_os in
8565   bitrig* | openbsd*)
8566     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8567     ;;
8568   *)
8569     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8570     ;;
8571   esac
8572   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8573 fi
8574
8575 case $host_os in
8576   darwin*)
8577     lock_old_archive_extraction=yes ;;
8578   *)
8579     lock_old_archive_extraction=no ;;
8580 esac
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 for ac_prog in gawk mawk nawk awk
8603 do
8604   # Extract the first word of "$ac_prog", so it can be a program name with args.
8605 set dummy $ac_prog; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_AWK+:} false; then :
8609   $as_echo_n "(cached) " >&6
8610 else
8611   if test -n "$AWK"; then
8612   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8613 else
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 for as_dir in $PATH
8616 do
8617   IFS=$as_save_IFS
8618   test -z "$as_dir" && as_dir=.
8619     for ac_exec_ext in '' $ac_executable_extensions; do
8620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621     ac_cv_prog_AWK="$ac_prog"
8622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623     break 2
8624   fi
8625 done
8626   done
8627 IFS=$as_save_IFS
8628
8629 fi
8630 fi
8631 AWK=$ac_cv_prog_AWK
8632 if test -n "$AWK"; then
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8634 $as_echo "$AWK" >&6; }
8635 else
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 fi
8639
8640
8641   test -n "$AWK" && break
8642 done
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662 # If no C compiler was specified, use CC.
8663 LTCC=${LTCC-"$CC"}
8664
8665 # If no C compiler flags were specified, use CFLAGS.
8666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8667
8668 # Allow CC to be a program name with arguments.
8669 compiler=$CC
8670
8671
8672 # Check for command to grab the raw symbol name followed by C symbol from nm.
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8675 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8676   $as_echo_n "(cached) " >&6
8677 else
8678
8679 # These are sane defaults that work on at least a few old systems.
8680 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8681
8682 # Character class describing NM global symbol codes.
8683 symcode='[BCDEGRST]'
8684
8685 # Regexp to match symbols that can be accessed directly from C.
8686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8687
8688 # Define system-specific variables.
8689 case $host_os in
8690 aix*)
8691   symcode='[BCDT]'
8692   ;;
8693 cygwin* | mingw* | pw32* | cegcc*)
8694   symcode='[ABCDGISTW]'
8695   ;;
8696 hpux*)
8697   if test ia64 = "$host_cpu"; then
8698     symcode='[ABCDEGRST]'
8699   fi
8700   ;;
8701 irix* | nonstopux*)
8702   symcode='[BCDEGRST]'
8703   ;;
8704 osf*)
8705   symcode='[BCDEGQRST]'
8706   ;;
8707 solaris*)
8708   symcode='[BDRT]'
8709   ;;
8710 sco3.2v5*)
8711   symcode='[DT]'
8712   ;;
8713 sysv4.2uw2*)
8714   symcode='[DT]'
8715   ;;
8716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8717   symcode='[ABDT]'
8718   ;;
8719 sysv4)
8720   symcode='[DFNSTU]'
8721   ;;
8722 esac
8723
8724 # If we're using GNU nm, then use its standard symbol codes.
8725 case `$NM -V 2>&1` in
8726 *GNU* | *'with BFD'*)
8727   symcode='[ABCDGIRSTW]' ;;
8728 esac
8729
8730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8731   # Gets list of data symbols to import.
8732   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8733   # Adjust the below global symbol transforms to fixup imported variables.
8734   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8735   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8736   lt_c_name_lib_hook="\
8737   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8738   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8739 else
8740   # Disable hooks by default.
8741   lt_cv_sys_global_symbol_to_import=
8742   lt_cdecl_hook=
8743   lt_c_name_hook=
8744   lt_c_name_lib_hook=
8745 fi
8746
8747 # Transform an extracted symbol line into a proper C declaration.
8748 # Some systems (esp. on ia64) link data and code symbols differently,
8749 # so use this general approach.
8750 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8751 $lt_cdecl_hook\
8752 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8753 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8754
8755 # Transform an extracted symbol line into symbol name and symbol address
8756 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8757 $lt_c_name_hook\
8758 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8759 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8760
8761 # Transform an extracted symbol line into symbol name with lib prefix and
8762 # symbol address.
8763 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8764 $lt_c_name_lib_hook\
8765 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8766 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8767 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8768
8769 # Handle CRLF in mingw tool chain
8770 opt_cr=
8771 case $build_os in
8772 mingw*)
8773   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8774   ;;
8775 esac
8776
8777 # Try without a prefix underscore, then with it.
8778 for ac_symprfx in "" "_"; do
8779
8780   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8781   symxfrm="\\1 $ac_symprfx\\2 \\2"
8782
8783   # Write the raw and C identifiers.
8784   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8785     # Fake it for dumpbin and say T for any non-static function,
8786     # D for any global variable and I for any imported variable.
8787     # Also find C++ and __fastcall symbols from MSVC++,
8788     # which start with @ or ?.
8789     lt_cv_sys_global_symbol_pipe="$AWK '"\
8790 "     {last_section=section; section=\$ 3};"\
8791 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8792 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8793 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8794 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8795 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8796 "     \$ 0!~/External *\|/{next};"\
8797 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8798 "     {if(hide[section]) next};"\
8799 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8800 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8801 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8802 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8803 "     ' prfx=^$ac_symprfx"
8804   else
8805     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8806   fi
8807   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8808
8809   # Check to see that the pipe works correctly.
8810   pipe_works=no
8811
8812   rm -f conftest*
8813   cat > conftest.$ac_ext <<_LT_EOF
8814 #ifdef __cplusplus
8815 extern "C" {
8816 #endif
8817 char nm_test_var;
8818 void nm_test_func(void);
8819 void nm_test_func(void){}
8820 #ifdef __cplusplus
8821 }
8822 #endif
8823 int main(){nm_test_var='a';nm_test_func();return(0);}
8824 _LT_EOF
8825
8826   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8827   (eval $ac_compile) 2>&5
8828   ac_status=$?
8829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8830   test $ac_status = 0; }; then
8831     # Now try to grab the symbols.
8832     nlist=conftest.nm
8833     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8834   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8835   ac_status=$?
8836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837   test $ac_status = 0; } && test -s "$nlist"; then
8838       # Try sorting and uniquifying the output.
8839       if sort "$nlist" | uniq > "$nlist"T; then
8840         mv -f "$nlist"T "$nlist"
8841       else
8842         rm -f "$nlist"T
8843       fi
8844
8845       # Make sure that we snagged all the symbols we need.
8846       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8847         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8848           cat <<_LT_EOF > conftest.$ac_ext
8849 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8850 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8851 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8852    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8853 # define LT_DLSYM_CONST
8854 #elif defined __osf__
8855 /* This system does not cope well with relocations in const data.  */
8856 # define LT_DLSYM_CONST
8857 #else
8858 # define LT_DLSYM_CONST const
8859 #endif
8860
8861 #ifdef __cplusplus
8862 extern "C" {
8863 #endif
8864
8865 _LT_EOF
8866           # Now generate the symbol file.
8867           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8868
8869           cat <<_LT_EOF >> conftest.$ac_ext
8870
8871 /* The mapping between symbol names and symbols.  */
8872 LT_DLSYM_CONST struct {
8873   const char *name;
8874   void       *address;
8875 }
8876 lt__PROGRAM__LTX_preloaded_symbols[] =
8877 {
8878   { "@PROGRAM@", (void *) 0 },
8879 _LT_EOF
8880           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8881           cat <<\_LT_EOF >> conftest.$ac_ext
8882   {0, (void *) 0}
8883 };
8884
8885 /* This works around a problem in FreeBSD linker */
8886 #ifdef FREEBSD_WORKAROUND
8887 static const void *lt_preloaded_setup() {
8888   return lt__PROGRAM__LTX_preloaded_symbols;
8889 }
8890 #endif
8891
8892 #ifdef __cplusplus
8893 }
8894 #endif
8895 _LT_EOF
8896           # Now try linking the two files.
8897           mv conftest.$ac_objext conftstm.$ac_objext
8898           lt_globsym_save_LIBS=$LIBS
8899           lt_globsym_save_CFLAGS=$CFLAGS
8900           LIBS=conftstm.$ac_objext
8901           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8902           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8903   (eval $ac_link) 2>&5
8904   ac_status=$?
8905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8906   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8907             pipe_works=yes
8908           fi
8909           LIBS=$lt_globsym_save_LIBS
8910           CFLAGS=$lt_globsym_save_CFLAGS
8911         else
8912           echo "cannot find nm_test_func in $nlist" >&5
8913         fi
8914       else
8915         echo "cannot find nm_test_var in $nlist" >&5
8916       fi
8917     else
8918       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8919     fi
8920   else
8921     echo "$progname: failed program was:" >&5
8922     cat conftest.$ac_ext >&5
8923   fi
8924   rm -rf conftest* conftst*
8925
8926   # Do not use the global_symbol_pipe unless it works.
8927   if test yes = "$pipe_works"; then
8928     break
8929   else
8930     lt_cv_sys_global_symbol_pipe=
8931   fi
8932 done
8933
8934 fi
8935
8936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8937   lt_cv_sys_global_symbol_to_cdecl=
8938 fi
8939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8941 $as_echo "failed" >&6; }
8942 else
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8944 $as_echo "ok" >&6; }
8945 fi
8946
8947 # Response file support.
8948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8949   nm_file_list_spec='@'
8950 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8951   nm_file_list_spec='@'
8952 fi
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8991 $as_echo_n "checking for sysroot... " >&6; }
8992
8993 # Check whether --with-sysroot was given.
8994 if test "${with_sysroot+set}" = set; then :
8995   withval=$with_sysroot;
8996 else
8997   with_sysroot=no
8998 fi
8999
9000
9001 lt_sysroot=
9002 case $with_sysroot in #(
9003  yes)
9004    if test yes = "$GCC"; then
9005      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9006    fi
9007    ;; #(
9008  /*)
9009    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9010    ;; #(
9011  no|'')
9012    ;; #(
9013  *)
9014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9015 $as_echo "$with_sysroot" >&6; }
9016    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9017    ;;
9018 esac
9019
9020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9021 $as_echo "${lt_sysroot:-no}" >&6; }
9022
9023
9024
9025
9026
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9028 $as_echo_n "checking for a working dd... " >&6; }
9029 if ${ac_cv_path_lt_DD+:} false; then :
9030   $as_echo_n "(cached) " >&6
9031 else
9032   printf 0123456789abcdef0123456789abcdef >conftest.i
9033 cat conftest.i conftest.i >conftest2.i
9034 : ${lt_DD:=$DD}
9035 if test -z "$lt_DD"; then
9036   ac_path_lt_DD_found=false
9037   # Loop through the user's path and test for each of PROGNAME-LIST
9038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041   IFS=$as_save_IFS
9042   test -z "$as_dir" && as_dir=.
9043     for ac_prog in dd; do
9044     for ac_exec_ext in '' $ac_executable_extensions; do
9045       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9046       as_fn_executable_p "$ac_path_lt_DD" || continue
9047 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9048   cmp -s conftest.i conftest.out \
9049   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9050 fi
9051       $ac_path_lt_DD_found && break 3
9052     done
9053   done
9054   done
9055 IFS=$as_save_IFS
9056   if test -z "$ac_cv_path_lt_DD"; then
9057     :
9058   fi
9059 else
9060   ac_cv_path_lt_DD=$lt_DD
9061 fi
9062
9063 rm -f conftest.i conftest2.i conftest.out
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9066 $as_echo "$ac_cv_path_lt_DD" >&6; }
9067
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9070 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9071 if ${lt_cv_truncate_bin+:} false; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   printf 0123456789abcdef0123456789abcdef >conftest.i
9075 cat conftest.i conftest.i >conftest2.i
9076 lt_cv_truncate_bin=
9077 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9078   cmp -s conftest.i conftest.out \
9079   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9080 fi
9081 rm -f conftest.i conftest2.i conftest.out
9082 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9085 $as_echo "$lt_cv_truncate_bin" >&6; }
9086
9087
9088
9089
9090
9091
9092
9093 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9094 func_cc_basename ()
9095 {
9096     for cc_temp in $*""; do
9097       case $cc_temp in
9098         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9099         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9100         \-*) ;;
9101         *) break;;
9102       esac
9103     done
9104     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9105 }
9106
9107 # Check whether --enable-libtool-lock was given.
9108 if test "${enable_libtool_lock+set}" = set; then :
9109   enableval=$enable_libtool_lock;
9110 fi
9111
9112 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9113
9114 # Some flags need to be propagated to the compiler or linker for good
9115 # libtool support.
9116 case $host in
9117 ia64-*-hpux*)
9118   # Find out what ABI is being produced by ac_compile, and set mode
9119   # options accordingly.
9120   echo 'int i;' > conftest.$ac_ext
9121   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9122   (eval $ac_compile) 2>&5
9123   ac_status=$?
9124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9125   test $ac_status = 0; }; then
9126     case `/usr/bin/file conftest.$ac_objext` in
9127       *ELF-32*)
9128         HPUX_IA64_MODE=32
9129         ;;
9130       *ELF-64*)
9131         HPUX_IA64_MODE=64
9132         ;;
9133     esac
9134   fi
9135   rm -rf conftest*
9136   ;;
9137 *-*-irix6*)
9138   # Find out what ABI is being produced by ac_compile, and set linker
9139   # options accordingly.
9140   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9141   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9142   (eval $ac_compile) 2>&5
9143   ac_status=$?
9144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9145   test $ac_status = 0; }; then
9146     if test yes = "$lt_cv_prog_gnu_ld"; then
9147       case `/usr/bin/file conftest.$ac_objext` in
9148         *32-bit*)
9149           LD="${LD-ld} -melf32bsmip"
9150           ;;
9151         *N32*)
9152           LD="${LD-ld} -melf32bmipn32"
9153           ;;
9154         *64-bit*)
9155           LD="${LD-ld} -melf64bmip"
9156         ;;
9157       esac
9158     else
9159       case `/usr/bin/file conftest.$ac_objext` in
9160         *32-bit*)
9161           LD="${LD-ld} -32"
9162           ;;
9163         *N32*)
9164           LD="${LD-ld} -n32"
9165           ;;
9166         *64-bit*)
9167           LD="${LD-ld} -64"
9168           ;;
9169       esac
9170     fi
9171   fi
9172   rm -rf conftest*
9173   ;;
9174
9175 mips64*-*linux*)
9176   # Find out what ABI is being produced by ac_compile, and set linker
9177   # options accordingly.
9178   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9179   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9180   (eval $ac_compile) 2>&5
9181   ac_status=$?
9182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9183   test $ac_status = 0; }; then
9184     emul=elf
9185     case `/usr/bin/file conftest.$ac_objext` in
9186       *32-bit*)
9187         emul="${emul}32"
9188         ;;
9189       *64-bit*)
9190         emul="${emul}64"
9191         ;;
9192     esac
9193     case `/usr/bin/file conftest.$ac_objext` in
9194       *MSB*)
9195         emul="${emul}btsmip"
9196         ;;
9197       *LSB*)
9198         emul="${emul}ltsmip"
9199         ;;
9200     esac
9201     case `/usr/bin/file conftest.$ac_objext` in
9202       *N32*)
9203         emul="${emul}n32"
9204         ;;
9205     esac
9206     LD="${LD-ld} -m $emul"
9207   fi
9208   rm -rf conftest*
9209   ;;
9210
9211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9213   # Find out what ABI is being produced by ac_compile, and set linker
9214   # options accordingly.  Note that the listed cases only cover the
9215   # situations where additional linker options are needed (such as when
9216   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9217   # vice versa); the common cases where no linker options are needed do
9218   # not appear in the list.
9219   echo 'int i;' > conftest.$ac_ext
9220   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9221   (eval $ac_compile) 2>&5
9222   ac_status=$?
9223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9224   test $ac_status = 0; }; then
9225     case `/usr/bin/file conftest.o` in
9226       *32-bit*)
9227         case $host in
9228           x86_64-*kfreebsd*-gnu)
9229             LD="${LD-ld} -m elf_i386_fbsd"
9230             ;;
9231           x86_64-*linux*)
9232             case `/usr/bin/file conftest.o` in
9233               *x86-64*)
9234                 LD="${LD-ld} -m elf32_x86_64"
9235                 ;;
9236               *)
9237                 LD="${LD-ld} -m elf_i386"
9238                 ;;
9239             esac
9240             ;;
9241           powerpc64le-*linux*)
9242             LD="${LD-ld} -m elf32lppclinux"
9243             ;;
9244           powerpc64-*linux*)
9245             LD="${LD-ld} -m elf32ppclinux"
9246             ;;
9247           s390x-*linux*)
9248             LD="${LD-ld} -m elf_s390"
9249             ;;
9250           sparc64-*linux*)
9251             LD="${LD-ld} -m elf32_sparc"
9252             ;;
9253         esac
9254         ;;
9255       *64-bit*)
9256         case $host in
9257           x86_64-*kfreebsd*-gnu)
9258             LD="${LD-ld} -m elf_x86_64_fbsd"
9259             ;;
9260           x86_64-*linux*)
9261             LD="${LD-ld} -m elf_x86_64"
9262             ;;
9263           powerpcle-*linux*)
9264             LD="${LD-ld} -m elf64lppc"
9265             ;;
9266           powerpc-*linux*)
9267             LD="${LD-ld} -m elf64ppc"
9268             ;;
9269           s390*-*linux*|s390*-*tpf*)
9270             LD="${LD-ld} -m elf64_s390"
9271             ;;
9272           sparc*-*linux*)
9273             LD="${LD-ld} -m elf64_sparc"
9274             ;;
9275         esac
9276         ;;
9277     esac
9278   fi
9279   rm -rf conftest*
9280   ;;
9281
9282 *-*-sco3.2v5*)
9283   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9284   SAVE_CFLAGS=$CFLAGS
9285   CFLAGS="$CFLAGS -belf"
9286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9287 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9288 if ${lt_cv_cc_needs_belf+:} false; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   ac_ext=c
9292 ac_cpp='$CPP $CPPFLAGS'
9293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9296
9297      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h.  */
9299
9300 int
9301 main ()
9302 {
9303
9304   ;
9305   return 0;
9306 }
9307 _ACEOF
9308 if ac_fn_c_try_link "$LINENO"; then :
9309   lt_cv_cc_needs_belf=yes
9310 else
9311   lt_cv_cc_needs_belf=no
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext \
9314     conftest$ac_exeext conftest.$ac_ext
9315      ac_ext=c
9316 ac_cpp='$CPP $CPPFLAGS'
9317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9320
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9323 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9324   if test yes != "$lt_cv_cc_needs_belf"; then
9325     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9326     CFLAGS=$SAVE_CFLAGS
9327   fi
9328   ;;
9329 *-*solaris*)
9330   # Find out what ABI is being produced by ac_compile, and set linker
9331   # options accordingly.
9332   echo 'int i;' > conftest.$ac_ext
9333   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9334   (eval $ac_compile) 2>&5
9335   ac_status=$?
9336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9337   test $ac_status = 0; }; then
9338     case `/usr/bin/file conftest.o` in
9339     *64-bit*)
9340       case $lt_cv_prog_gnu_ld in
9341       yes*)
9342         case $host in
9343         i?86-*-solaris*|x86_64-*-solaris*)
9344           LD="${LD-ld} -m elf_x86_64"
9345           ;;
9346         sparc*-*-solaris*)
9347           LD="${LD-ld} -m elf64_sparc"
9348           ;;
9349         esac
9350         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9351         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9352           LD=${LD-ld}_sol2
9353         fi
9354         ;;
9355       *)
9356         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9357           LD="${LD-ld} -64"
9358         fi
9359         ;;
9360       esac
9361       ;;
9362     esac
9363   fi
9364   rm -rf conftest*
9365   ;;
9366 esac
9367
9368 need_locks=$enable_libtool_lock
9369
9370 if test -n "$ac_tool_prefix"; then
9371   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9372 set dummy ${ac_tool_prefix}mt; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   if test -n "$MANIFEST_TOOL"; then
9379   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384   IFS=$as_save_IFS
9385   test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391   fi
9392 done
9393   done
9394 IFS=$as_save_IFS
9395
9396 fi
9397 fi
9398 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9399 if test -n "$MANIFEST_TOOL"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9401 $as_echo "$MANIFEST_TOOL" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406
9407
9408 fi
9409 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9410   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9411   # Extract the first word of "mt", so it can be a program name with args.
9412 set dummy mt; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9416   $as_echo_n "(cached) " >&6
9417 else
9418   if test -n "$ac_ct_MANIFEST_TOOL"; then
9419   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9420 else
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422 for as_dir in $PATH
9423 do
9424   IFS=$as_save_IFS
9425   test -z "$as_dir" && as_dir=.
9426     for ac_exec_ext in '' $ac_executable_extensions; do
9427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430     break 2
9431   fi
9432 done
9433   done
9434 IFS=$as_save_IFS
9435
9436 fi
9437 fi
9438 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9439 if test -n "$ac_ct_MANIFEST_TOOL"; then
9440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9441 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9442 else
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9445 fi
9446
9447   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9448     MANIFEST_TOOL=":"
9449   else
9450     case $cross_compiling:$ac_tool_warned in
9451 yes:)
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9454 ac_tool_warned=yes ;;
9455 esac
9456     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9457   fi
9458 else
9459   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9460 fi
9461
9462 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9464 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9465 if ${lt_cv_path_mainfest_tool+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   lt_cv_path_mainfest_tool=no
9469   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9470   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9471   cat conftest.err >&5
9472   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9473     lt_cv_path_mainfest_tool=yes
9474   fi
9475   rm -f conftest*
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9478 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9479 if test yes != "$lt_cv_path_mainfest_tool"; then
9480   MANIFEST_TOOL=:
9481 fi
9482
9483
9484
9485
9486
9487
9488   case $host_os in
9489     rhapsody* | darwin*)
9490     if test -n "$ac_tool_prefix"; then
9491   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9492 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498   if test -n "$DSYMUTIL"; then
9499   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9500 else
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504   IFS=$as_save_IFS
9505   test -z "$as_dir" && as_dir=.
9506     for ac_exec_ext in '' $ac_executable_extensions; do
9507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510     break 2
9511   fi
9512 done
9513   done
9514 IFS=$as_save_IFS
9515
9516 fi
9517 fi
9518 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9519 if test -n "$DSYMUTIL"; then
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9521 $as_echo "$DSYMUTIL" >&6; }
9522 else
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 fi
9526
9527
9528 fi
9529 if test -z "$ac_cv_prog_DSYMUTIL"; then
9530   ac_ct_DSYMUTIL=$DSYMUTIL
9531   # Extract the first word of "dsymutil", so it can be a program name with args.
9532 set dummy dsymutil; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   if test -n "$ac_ct_DSYMUTIL"; then
9539   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9540 else
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9543 do
9544   IFS=$as_save_IFS
9545   test -z "$as_dir" && as_dir=.
9546     for ac_exec_ext in '' $ac_executable_extensions; do
9547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550     break 2
9551   fi
9552 done
9553   done
9554 IFS=$as_save_IFS
9555
9556 fi
9557 fi
9558 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9559 if test -n "$ac_ct_DSYMUTIL"; then
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9561 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9562 else
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 fi
9566
9567   if test "x$ac_ct_DSYMUTIL" = x; then
9568     DSYMUTIL=":"
9569   else
9570     case $cross_compiling:$ac_tool_warned in
9571 yes:)
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9574 ac_tool_warned=yes ;;
9575 esac
9576     DSYMUTIL=$ac_ct_DSYMUTIL
9577   fi
9578 else
9579   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9580 fi
9581
9582     if test -n "$ac_tool_prefix"; then
9583   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9584 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_prog_NMEDIT+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   if test -n "$NMEDIT"; then
9591   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9592 else
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9595 do
9596   IFS=$as_save_IFS
9597   test -z "$as_dir" && as_dir=.
9598     for ac_exec_ext in '' $ac_executable_extensions; do
9599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602     break 2
9603   fi
9604 done
9605   done
9606 IFS=$as_save_IFS
9607
9608 fi
9609 fi
9610 NMEDIT=$ac_cv_prog_NMEDIT
9611 if test -n "$NMEDIT"; then
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9613 $as_echo "$NMEDIT" >&6; }
9614 else
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9617 fi
9618
9619
9620 fi
9621 if test -z "$ac_cv_prog_NMEDIT"; then
9622   ac_ct_NMEDIT=$NMEDIT
9623   # Extract the first word of "nmedit", so it can be a program name with args.
9624 set dummy nmedit; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   if test -n "$ac_ct_NMEDIT"; then
9631   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9632 else
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636   IFS=$as_save_IFS
9637   test -z "$as_dir" && as_dir=.
9638     for ac_exec_ext in '' $ac_executable_extensions; do
9639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9640     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642     break 2
9643   fi
9644 done
9645   done
9646 IFS=$as_save_IFS
9647
9648 fi
9649 fi
9650 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9651 if test -n "$ac_ct_NMEDIT"; then
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9653 $as_echo "$ac_ct_NMEDIT" >&6; }
9654 else
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 fi
9658
9659   if test "x$ac_ct_NMEDIT" = x; then
9660     NMEDIT=":"
9661   else
9662     case $cross_compiling:$ac_tool_warned in
9663 yes:)
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9666 ac_tool_warned=yes ;;
9667 esac
9668     NMEDIT=$ac_ct_NMEDIT
9669   fi
9670 else
9671   NMEDIT="$ac_cv_prog_NMEDIT"
9672 fi
9673
9674     if test -n "$ac_tool_prefix"; then
9675   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9676 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_LIPO+:} false; then :
9680   $as_echo_n "(cached) " >&6
9681 else
9682   if test -n "$LIPO"; then
9683   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688   IFS=$as_save_IFS
9689   test -z "$as_dir" && as_dir=.
9690     for ac_exec_ext in '' $ac_executable_extensions; do
9691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694     break 2
9695   fi
9696 done
9697   done
9698 IFS=$as_save_IFS
9699
9700 fi
9701 fi
9702 LIPO=$ac_cv_prog_LIPO
9703 if test -n "$LIPO"; then
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9705 $as_echo "$LIPO" >&6; }
9706 else
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9709 fi
9710
9711
9712 fi
9713 if test -z "$ac_cv_prog_LIPO"; then
9714   ac_ct_LIPO=$LIPO
9715   # Extract the first word of "lipo", so it can be a program name with args.
9716 set dummy lipo; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9720   $as_echo_n "(cached) " >&6
9721 else
9722   if test -n "$ac_ct_LIPO"; then
9723   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9724 else
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9727 do
9728   IFS=$as_save_IFS
9729   test -z "$as_dir" && as_dir=.
9730     for ac_exec_ext in '' $ac_executable_extensions; do
9731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732     ac_cv_prog_ac_ct_LIPO="lipo"
9733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734     break 2
9735   fi
9736 done
9737   done
9738 IFS=$as_save_IFS
9739
9740 fi
9741 fi
9742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9743 if test -n "$ac_ct_LIPO"; then
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9745 $as_echo "$ac_ct_LIPO" >&6; }
9746 else
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9749 fi
9750
9751   if test "x$ac_ct_LIPO" = x; then
9752     LIPO=":"
9753   else
9754     case $cross_compiling:$ac_tool_warned in
9755 yes:)
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9758 ac_tool_warned=yes ;;
9759 esac
9760     LIPO=$ac_ct_LIPO
9761   fi
9762 else
9763   LIPO="$ac_cv_prog_LIPO"
9764 fi
9765
9766     if test -n "$ac_tool_prefix"; then
9767   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9768 set dummy ${ac_tool_prefix}otool; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_prog_OTOOL+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   if test -n "$OTOOL"; then
9775   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9776 else
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780   IFS=$as_save_IFS
9781   test -z "$as_dir" && as_dir=.
9782     for ac_exec_ext in '' $ac_executable_extensions; do
9783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786     break 2
9787   fi
9788 done
9789   done
9790 IFS=$as_save_IFS
9791
9792 fi
9793 fi
9794 OTOOL=$ac_cv_prog_OTOOL
9795 if test -n "$OTOOL"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9797 $as_echo "$OTOOL" >&6; }
9798 else
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802
9803
9804 fi
9805 if test -z "$ac_cv_prog_OTOOL"; then
9806   ac_ct_OTOOL=$OTOOL
9807   # Extract the first word of "otool", so it can be a program name with args.
9808 set dummy otool; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   if test -n "$ac_ct_OTOOL"; then
9815   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820   IFS=$as_save_IFS
9821   test -z "$as_dir" && as_dir=.
9822     for ac_exec_ext in '' $ac_executable_extensions; do
9823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824     ac_cv_prog_ac_ct_OTOOL="otool"
9825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826     break 2
9827   fi
9828 done
9829   done
9830 IFS=$as_save_IFS
9831
9832 fi
9833 fi
9834 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9835 if test -n "$ac_ct_OTOOL"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9837 $as_echo "$ac_ct_OTOOL" >&6; }
9838 else
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842
9843   if test "x$ac_ct_OTOOL" = x; then
9844     OTOOL=":"
9845   else
9846     case $cross_compiling:$ac_tool_warned in
9847 yes:)
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9850 ac_tool_warned=yes ;;
9851 esac
9852     OTOOL=$ac_ct_OTOOL
9853   fi
9854 else
9855   OTOOL="$ac_cv_prog_OTOOL"
9856 fi
9857
9858     if test -n "$ac_tool_prefix"; then
9859   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9860 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_prog_OTOOL64+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866   if test -n "$OTOOL64"; then
9867   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9868 else
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872   IFS=$as_save_IFS
9873   test -z "$as_dir" && as_dir=.
9874     for ac_exec_ext in '' $ac_executable_extensions; do
9875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878     break 2
9879   fi
9880 done
9881   done
9882 IFS=$as_save_IFS
9883
9884 fi
9885 fi
9886 OTOOL64=$ac_cv_prog_OTOOL64
9887 if test -n "$OTOOL64"; then
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9889 $as_echo "$OTOOL64" >&6; }
9890 else
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 fi
9894
9895
9896 fi
9897 if test -z "$ac_cv_prog_OTOOL64"; then
9898   ac_ct_OTOOL64=$OTOOL64
9899   # Extract the first word of "otool64", so it can be a program name with args.
9900 set dummy otool64; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   if test -n "$ac_ct_OTOOL64"; then
9907   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9908 else
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9911 do
9912   IFS=$as_save_IFS
9913   test -z "$as_dir" && as_dir=.
9914     for ac_exec_ext in '' $ac_executable_extensions; do
9915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916     ac_cv_prog_ac_ct_OTOOL64="otool64"
9917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918     break 2
9919   fi
9920 done
9921   done
9922 IFS=$as_save_IFS
9923
9924 fi
9925 fi
9926 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9927 if test -n "$ac_ct_OTOOL64"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9929 $as_echo "$ac_ct_OTOOL64" >&6; }
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935   if test "x$ac_ct_OTOOL64" = x; then
9936     OTOOL64=":"
9937   else
9938     case $cross_compiling:$ac_tool_warned in
9939 yes:)
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9942 ac_tool_warned=yes ;;
9943 esac
9944     OTOOL64=$ac_ct_OTOOL64
9945   fi
9946 else
9947   OTOOL64="$ac_cv_prog_OTOOL64"
9948 fi
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9977 $as_echo_n "checking for -single_module linker flag... " >&6; }
9978 if ${lt_cv_apple_cc_single_mod+:} false; then :
9979   $as_echo_n "(cached) " >&6
9980 else
9981   lt_cv_apple_cc_single_mod=no
9982       if test -z "$LT_MULTI_MODULE"; then
9983         # By default we will add the -single_module flag. You can override
9984         # by either setting the environment variable LT_MULTI_MODULE
9985         # non-empty at configure time, or by adding -multi_module to the
9986         # link flags.
9987         rm -rf libconftest.dylib*
9988         echo "int foo(void){return 1;}" > conftest.c
9989         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9990 -dynamiclib -Wl,-single_module conftest.c" >&5
9991         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9992           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9993         _lt_result=$?
9994         # If there is a non-empty error log, and "single_module"
9995         # appears in it, assume the flag caused a linker warning
9996         if test -s conftest.err && $GREP single_module conftest.err; then
9997           cat conftest.err >&5
9998         # Otherwise, if the output was created with a 0 exit code from
9999         # the compiler, it worked.
10000         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10001           lt_cv_apple_cc_single_mod=yes
10002         else
10003           cat conftest.err >&5
10004         fi
10005         rm -rf libconftest.dylib*
10006         rm -f conftest.*
10007       fi
10008 fi
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10010 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10011
10012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10013 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10014 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   lt_cv_ld_exported_symbols_list=no
10018       save_LDFLAGS=$LDFLAGS
10019       echo "_main" > conftest.sym
10020       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h.  */
10023
10024 int
10025 main ()
10026 {
10027
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033   lt_cv_ld_exported_symbols_list=yes
10034 else
10035   lt_cv_ld_exported_symbols_list=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext \
10038     conftest$ac_exeext conftest.$ac_ext
10039         LDFLAGS=$save_LDFLAGS
10040
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10043 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10044
10045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10046 $as_echo_n "checking for -force_load linker flag... " >&6; }
10047 if ${lt_cv_ld_force_load+:} false; then :
10048   $as_echo_n "(cached) " >&6
10049 else
10050   lt_cv_ld_force_load=no
10051       cat > conftest.c << _LT_EOF
10052 int forced_loaded() { return 2;}
10053 _LT_EOF
10054       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10055       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10056       echo "$AR cru libconftest.a conftest.o" >&5
10057       $AR cru libconftest.a conftest.o 2>&5
10058       echo "$RANLIB libconftest.a" >&5
10059       $RANLIB libconftest.a 2>&5
10060       cat > conftest.c << _LT_EOF
10061 int main() { return 0;}
10062 _LT_EOF
10063       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10064       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10065       _lt_result=$?
10066       if test -s conftest.err && $GREP force_load conftest.err; then
10067         cat conftest.err >&5
10068       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10069         lt_cv_ld_force_load=yes
10070       else
10071         cat conftest.err >&5
10072       fi
10073         rm -f conftest.err libconftest.a conftest conftest.c
10074         rm -rf conftest.dSYM
10075
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10078 $as_echo "$lt_cv_ld_force_load" >&6; }
10079     case $host_os in
10080     rhapsody* | darwin1.[012])
10081       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10082     darwin1.*)
10083       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10084     darwin*) # darwin 5.x on
10085       # if running on 10.5 or later, the deployment target defaults
10086       # to the OS version, if on x86, and 10.4, the deployment
10087       # target defaults to 10.4. Don't you love it?
10088       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10089         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10090           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10091         10.[012][,.]*)
10092           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10093         10.*)
10094           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10095       esac
10096     ;;
10097   esac
10098     if test yes = "$lt_cv_apple_cc_single_mod"; then
10099       _lt_dar_single_mod='$single_module'
10100     fi
10101     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10102       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10103     else
10104       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10105     fi
10106     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10107       _lt_dsymutil='~$DSYMUTIL $lib || :'
10108     else
10109       _lt_dsymutil=
10110     fi
10111     ;;
10112   esac
10113
10114 # func_munge_path_list VARIABLE PATH
10115 # -----------------------------------
10116 # VARIABLE is name of variable containing _space_ separated list of
10117 # directories to be munged by the contents of PATH, which is string
10118 # having a format:
10119 # "DIR[:DIR]:"
10120 #       string "DIR[ DIR]" will be prepended to VARIABLE
10121 # ":DIR[:DIR]"
10122 #       string "DIR[ DIR]" will be appended to VARIABLE
10123 # "DIRP[:DIRP]::[DIRA:]DIRA"
10124 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10125 #       "DIRA[ DIRA]" will be appended to VARIABLE
10126 # "DIR[:DIR]"
10127 #       VARIABLE will be replaced by "DIR[ DIR]"
10128 func_munge_path_list ()
10129 {
10130     case x$2 in
10131     x)
10132         ;;
10133     *:)
10134         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10135         ;;
10136     x:*)
10137         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10138         ;;
10139     *::*)
10140         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10141         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10142         ;;
10143     *)
10144         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10145         ;;
10146     esac
10147 }
10148
10149 for ac_header in dlfcn.h
10150 do :
10151   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10152 "
10153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10154   cat >>confdefs.h <<_ACEOF
10155 #define HAVE_DLFCN_H 1
10156 _ACEOF
10157
10158 fi
10159
10160 done
10161
10162
10163
10164
10165
10166
10167
10168 # Set options
10169
10170
10171
10172         enable_dlopen=no
10173
10174
10175   enable_win32_dll=no
10176
10177
10178             # Check whether --enable-shared was given.
10179 if test "${enable_shared+set}" = set; then :
10180   enableval=$enable_shared; p=${PACKAGE-default}
10181     case $enableval in
10182     yes) enable_shared=yes ;;
10183     no) enable_shared=no ;;
10184     *)
10185       enable_shared=no
10186       # Look at the argument we got.  We use all the common list separators.
10187       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10188       for pkg in $enableval; do
10189         IFS=$lt_save_ifs
10190         if test "X$pkg" = "X$p"; then
10191           enable_shared=yes
10192         fi
10193       done
10194       IFS=$lt_save_ifs
10195       ;;
10196     esac
10197 else
10198   enable_shared=yes
10199 fi
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209   # Check whether --enable-static was given.
10210 if test "${enable_static+set}" = set; then :
10211   enableval=$enable_static; p=${PACKAGE-default}
10212     case $enableval in
10213     yes) enable_static=yes ;;
10214     no) enable_static=no ;;
10215     *)
10216      enable_static=no
10217       # Look at the argument we got.  We use all the common list separators.
10218       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10219       for pkg in $enableval; do
10220         IFS=$lt_save_ifs
10221         if test "X$pkg" = "X$p"; then
10222           enable_static=yes
10223         fi
10224       done
10225       IFS=$lt_save_ifs
10226       ;;
10227     esac
10228 else
10229   enable_static=yes
10230 fi
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241 # Check whether --with-pic was given.
10242 if test "${with_pic+set}" = set; then :
10243   withval=$with_pic; lt_p=${PACKAGE-default}
10244     case $withval in
10245     yes|no) pic_mode=$withval ;;
10246     *)
10247       pic_mode=default
10248       # Look at the argument we got.  We use all the common list separators.
10249       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10250       for lt_pkg in $withval; do
10251         IFS=$lt_save_ifs
10252         if test "X$lt_pkg" = "X$lt_p"; then
10253           pic_mode=yes
10254         fi
10255       done
10256       IFS=$lt_save_ifs
10257       ;;
10258     esac
10259 else
10260   pic_mode=default
10261 fi
10262
10263
10264
10265
10266
10267
10268
10269
10270   # Check whether --enable-fast-install was given.
10271 if test "${enable_fast_install+set}" = set; then :
10272   enableval=$enable_fast_install; p=${PACKAGE-default}
10273     case $enableval in
10274     yes) enable_fast_install=yes ;;
10275     no) enable_fast_install=no ;;
10276     *)
10277       enable_fast_install=no
10278       # Look at the argument we got.  We use all the common list separators.
10279       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10280       for pkg in $enableval; do
10281         IFS=$lt_save_ifs
10282         if test "X$pkg" = "X$p"; then
10283           enable_fast_install=yes
10284         fi
10285       done
10286       IFS=$lt_save_ifs
10287       ;;
10288     esac
10289 else
10290   enable_fast_install=yes
10291 fi
10292
10293
10294
10295
10296
10297
10298
10299
10300   shared_archive_member_spec=
10301 case $host,$enable_shared in
10302 power*-*-aix[5-9]*,yes)
10303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10304 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10305
10306 # Check whether --with-aix-soname was given.
10307 if test "${with_aix_soname+set}" = set; then :
10308   withval=$with_aix_soname; case $withval in
10309     aix|svr4|both)
10310       ;;
10311     *)
10312       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10313       ;;
10314     esac
10315     lt_cv_with_aix_soname=$with_aix_soname
10316 else
10317   if ${lt_cv_with_aix_soname+:} false; then :
10318   $as_echo_n "(cached) " >&6
10319 else
10320   lt_cv_with_aix_soname=aix
10321 fi
10322
10323     with_aix_soname=$lt_cv_with_aix_soname
10324 fi
10325
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10327 $as_echo "$with_aix_soname" >&6; }
10328   if test aix != "$with_aix_soname"; then
10329     # For the AIX way of multilib, we name the shared archive member
10330     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10331     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10332     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10333     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10334     if test 64 = "${OBJECT_MODE-32}"; then
10335       shared_archive_member_spec=shr_64
10336     else
10337       shared_archive_member_spec=shr
10338     fi
10339   fi
10340   ;;
10341 *)
10342   with_aix_soname=aix
10343   ;;
10344 esac
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355 # This can be used to rebuild libtool when needed
10356 LIBTOOL_DEPS=$ltmain
10357
10358 # Always use our own libtool.
10359 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390 test -z "$LN_S" && LN_S="ln -s"
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405 if test -n "${ZSH_VERSION+set}"; then
10406    setopt NO_GLOB_SUBST
10407 fi
10408
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10410 $as_echo_n "checking for objdir... " >&6; }
10411 if ${lt_cv_objdir+:} false; then :
10412   $as_echo_n "(cached) " >&6
10413 else
10414   rm -f .libs 2>/dev/null
10415 mkdir .libs 2>/dev/null
10416 if test -d .libs; then
10417   lt_cv_objdir=.libs
10418 else
10419   # MS-DOS does not allow filenames that begin with a dot.
10420   lt_cv_objdir=_libs
10421 fi
10422 rmdir .libs 2>/dev/null
10423 fi
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10425 $as_echo "$lt_cv_objdir" >&6; }
10426 objdir=$lt_cv_objdir
10427
10428
10429
10430
10431
10432 cat >>confdefs.h <<_ACEOF
10433 #define LT_OBJDIR "$lt_cv_objdir/"
10434 _ACEOF
10435
10436
10437
10438
10439 case $host_os in
10440 aix3*)
10441   # AIX sometimes has problems with the GCC collect2 program.  For some
10442   # reason, if we set the COLLECT_NAMES environment variable, the problems
10443   # vanish in a puff of smoke.
10444   if test set != "${COLLECT_NAMES+set}"; then
10445     COLLECT_NAMES=
10446     export COLLECT_NAMES
10447   fi
10448   ;;
10449 esac
10450
10451 # Global variables:
10452 ofile=libtool
10453 can_build_shared=yes
10454
10455 # All known linkers require a '.a' archive for static linking (except MSVC,
10456 # which needs '.lib').
10457 libext=a
10458
10459 with_gnu_ld=$lt_cv_prog_gnu_ld
10460
10461 old_CC=$CC
10462 old_CFLAGS=$CFLAGS
10463
10464 # Set sane defaults for various variables
10465 test -z "$CC" && CC=cc
10466 test -z "$LTCC" && LTCC=$CC
10467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10468 test -z "$LD" && LD=ld
10469 test -z "$ac_objext" && ac_objext=o
10470
10471 func_cc_basename $compiler
10472 cc_basename=$func_cc_basename_result
10473
10474
10475 # Only perform the check for file, if the check method requires it
10476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10477 case $deplibs_check_method in
10478 file_magic*)
10479   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10481 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   case $MAGIC_CMD in
10486 [\\/*] |  ?:[\\/]*)
10487   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10488   ;;
10489 *)
10490   lt_save_MAGIC_CMD=$MAGIC_CMD
10491   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10492   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10493   for ac_dir in $ac_dummy; do
10494     IFS=$lt_save_ifs
10495     test -z "$ac_dir" && ac_dir=.
10496     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10497       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10498       if test -n "$file_magic_test_file"; then
10499         case $deplibs_check_method in
10500         "file_magic "*)
10501           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10502           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10503           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10504             $EGREP "$file_magic_regex" > /dev/null; then
10505             :
10506           else
10507             cat <<_LT_EOF 1>&2
10508
10509 *** Warning: the command libtool uses to detect shared libraries,
10510 *** $file_magic_cmd, produces output that libtool cannot recognize.
10511 *** The result is that libtool may fail to recognize shared libraries
10512 *** as such.  This will affect the creation of libtool libraries that
10513 *** depend on shared libraries, but programs linked with such libtool
10514 *** libraries will work regardless of this problem.  Nevertheless, you
10515 *** may want to report the problem to your system manager and/or to
10516 *** bug-libtool@gnu.org
10517
10518 _LT_EOF
10519           fi ;;
10520         esac
10521       fi
10522       break
10523     fi
10524   done
10525   IFS=$lt_save_ifs
10526   MAGIC_CMD=$lt_save_MAGIC_CMD
10527   ;;
10528 esac
10529 fi
10530
10531 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10532 if test -n "$MAGIC_CMD"; then
10533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10534 $as_echo "$MAGIC_CMD" >&6; }
10535 else
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 fi
10539
10540
10541
10542
10543
10544 if test -z "$lt_cv_path_MAGIC_CMD"; then
10545   if test -n "$ac_tool_prefix"; then
10546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10547 $as_echo_n "checking for file... " >&6; }
10548 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10549   $as_echo_n "(cached) " >&6
10550 else
10551   case $MAGIC_CMD in
10552 [\\/*] |  ?:[\\/]*)
10553   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10554   ;;
10555 *)
10556   lt_save_MAGIC_CMD=$MAGIC_CMD
10557   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10558   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10559   for ac_dir in $ac_dummy; do
10560     IFS=$lt_save_ifs
10561     test -z "$ac_dir" && ac_dir=.
10562     if test -f "$ac_dir/file"; then
10563       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10564       if test -n "$file_magic_test_file"; then
10565         case $deplibs_check_method in
10566         "file_magic "*)
10567           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10568           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10569           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10570             $EGREP "$file_magic_regex" > /dev/null; then
10571             :
10572           else
10573             cat <<_LT_EOF 1>&2
10574
10575 *** Warning: the command libtool uses to detect shared libraries,
10576 *** $file_magic_cmd, produces output that libtool cannot recognize.
10577 *** The result is that libtool may fail to recognize shared libraries
10578 *** as such.  This will affect the creation of libtool libraries that
10579 *** depend on shared libraries, but programs linked with such libtool
10580 *** libraries will work regardless of this problem.  Nevertheless, you
10581 *** may want to report the problem to your system manager and/or to
10582 *** bug-libtool@gnu.org
10583
10584 _LT_EOF
10585           fi ;;
10586         esac
10587       fi
10588       break
10589     fi
10590   done
10591   IFS=$lt_save_ifs
10592   MAGIC_CMD=$lt_save_MAGIC_CMD
10593   ;;
10594 esac
10595 fi
10596
10597 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10598 if test -n "$MAGIC_CMD"; then
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10600 $as_echo "$MAGIC_CMD" >&6; }
10601 else
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 fi
10605
10606
10607   else
10608     MAGIC_CMD=:
10609   fi
10610 fi
10611
10612   fi
10613   ;;
10614 esac
10615
10616 # Use C for the default configuration in the libtool script
10617
10618 lt_save_CC=$CC
10619 ac_ext=c
10620 ac_cpp='$CPP $CPPFLAGS'
10621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624
10625
10626 # Source file extension for C test sources.
10627 ac_ext=c
10628
10629 # Object file extension for compiled C test sources.
10630 objext=o
10631 objext=$objext
10632
10633 # Code to be used in simple compile tests
10634 lt_simple_compile_test_code="int some_variable = 0;"
10635
10636 # Code to be used in simple link tests
10637 lt_simple_link_test_code='int main(){return(0);}'
10638
10639
10640
10641
10642
10643
10644
10645 # If no C compiler was specified, use CC.
10646 LTCC=${LTCC-"$CC"}
10647
10648 # If no C compiler flags were specified, use CFLAGS.
10649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10650
10651 # Allow CC to be a program name with arguments.
10652 compiler=$CC
10653
10654 # Save the default compiler, since it gets overwritten when the other
10655 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10656 compiler_DEFAULT=$CC
10657
10658 # save warnings/boilerplate of simple test code
10659 ac_outfile=conftest.$ac_objext
10660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10662 _lt_compiler_boilerplate=`cat conftest.err`
10663 $RM conftest*
10664
10665 ac_outfile=conftest.$ac_objext
10666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10668 _lt_linker_boilerplate=`cat conftest.err`
10669 $RM -r conftest*
10670
10671
10672 if test -n "$compiler"; then
10673
10674 lt_prog_compiler_no_builtin_flag=
10675
10676 if test yes = "$GCC"; then
10677   case $cc_basename in
10678   nvcc*)
10679     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10680   *)
10681     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10682   esac
10683
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10685 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10686 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   lt_cv_prog_compiler_rtti_exceptions=no
10690    ac_outfile=conftest.$ac_objext
10691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10692    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10693    # Insert the option either (1) after the last *FLAGS variable, or
10694    # (2) before a word containing "conftest.", or (3) at the end.
10695    # Note that $ac_compile itself does not contain backslashes and begins
10696    # with a dollar sign (not a hyphen), so the echo should work correctly.
10697    # The option is referenced via a variable to avoid confusing sed.
10698    lt_compile=`echo "$ac_compile" | $SED \
10699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10701    -e 's:$: $lt_compiler_flag:'`
10702    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10703    (eval "$lt_compile" 2>conftest.err)
10704    ac_status=$?
10705    cat conftest.err >&5
10706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707    if (exit $ac_status) && test -s "$ac_outfile"; then
10708      # The compiler can only warn and ignore the option if not recognized
10709      # So say no if there are warnings other than the usual output.
10710      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10711      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10712      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10713        lt_cv_prog_compiler_rtti_exceptions=yes
10714      fi
10715    fi
10716    $RM conftest*
10717
10718 fi
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10720 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10721
10722 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10723     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10724 else
10725     :
10726 fi
10727
10728 fi
10729
10730
10731
10732
10733
10734
10735   lt_prog_compiler_wl=
10736 lt_prog_compiler_pic=
10737 lt_prog_compiler_static=
10738
10739
10740   if test yes = "$GCC"; then
10741     lt_prog_compiler_wl='-Wl,'
10742     lt_prog_compiler_static='-static'
10743
10744     case $host_os in
10745       aix*)
10746       # All AIX code is PIC.
10747       if test ia64 = "$host_cpu"; then
10748         # AIX 5 now supports IA64 processor
10749         lt_prog_compiler_static='-Bstatic'
10750       fi
10751       lt_prog_compiler_pic='-fPIC'
10752       ;;
10753
10754     amigaos*)
10755       case $host_cpu in
10756       powerpc)
10757             # see comment about AmigaOS4 .so support
10758             lt_prog_compiler_pic='-fPIC'
10759         ;;
10760       m68k)
10761             # FIXME: we need at least 68020 code to build shared libraries, but
10762             # adding the '-m68020' flag to GCC prevents building anything better,
10763             # like '-m68040'.
10764             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10765         ;;
10766       esac
10767       ;;
10768
10769     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10770       # PIC is the default for these OSes.
10771       ;;
10772
10773     mingw* | cygwin* | pw32* | os2* | cegcc*)
10774       # This hack is so that the source file can tell whether it is being
10775       # built for inclusion in a dll (and should export symbols for example).
10776       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10777       # (--disable-auto-import) libraries
10778       lt_prog_compiler_pic='-DDLL_EXPORT'
10779       case $host_os in
10780       os2*)
10781         lt_prog_compiler_static='$wl-static'
10782         ;;
10783       esac
10784       ;;
10785
10786     darwin* | rhapsody*)
10787       # PIC is the default on this platform
10788       # Common symbols not allowed in MH_DYLIB files
10789       lt_prog_compiler_pic='-fno-common'
10790       ;;
10791
10792     haiku*)
10793       # PIC is the default for Haiku.
10794       # The "-static" flag exists, but is broken.
10795       lt_prog_compiler_static=
10796       ;;
10797
10798     hpux*)
10799       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10800       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10801       # sets the default TLS model and affects inlining.
10802       case $host_cpu in
10803       hppa*64*)
10804         # +Z the default
10805         ;;
10806       *)
10807         lt_prog_compiler_pic='-fPIC'
10808         ;;
10809       esac
10810       ;;
10811
10812     interix[3-9]*)
10813       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10814       # Instead, we relocate shared libraries at runtime.
10815       ;;
10816
10817     msdosdjgpp*)
10818       # Just because we use GCC doesn't mean we suddenly get shared libraries
10819       # on systems that don't support them.
10820       lt_prog_compiler_can_build_shared=no
10821       enable_shared=no
10822       ;;
10823
10824     *nto* | *qnx*)
10825       # QNX uses GNU C++, but need to define -shared option too, otherwise
10826       # it will coredump.
10827       lt_prog_compiler_pic='-fPIC -shared'
10828       ;;
10829
10830     sysv4*MP*)
10831       if test -d /usr/nec; then
10832         lt_prog_compiler_pic=-Kconform_pic
10833       fi
10834       ;;
10835
10836     *)
10837       lt_prog_compiler_pic='-fPIC'
10838       ;;
10839     esac
10840
10841     case $cc_basename in
10842     nvcc*) # Cuda Compiler Driver 2.2
10843       lt_prog_compiler_wl='-Xlinker '
10844       if test -n "$lt_prog_compiler_pic"; then
10845         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10846       fi
10847       ;;
10848     esac
10849   else
10850     # PORTME Check for flag to pass linker flags through the system compiler.
10851     case $host_os in
10852     aix*)
10853       lt_prog_compiler_wl='-Wl,'
10854       if test ia64 = "$host_cpu"; then
10855         # AIX 5 now supports IA64 processor
10856         lt_prog_compiler_static='-Bstatic'
10857       else
10858         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10859       fi
10860       ;;
10861
10862     darwin* | rhapsody*)
10863       # PIC is the default on this platform
10864       # Common symbols not allowed in MH_DYLIB files
10865       lt_prog_compiler_pic='-fno-common'
10866       case $cc_basename in
10867       nagfor*)
10868         # NAG Fortran compiler
10869         lt_prog_compiler_wl='-Wl,-Wl,,'
10870         lt_prog_compiler_pic='-PIC'
10871         lt_prog_compiler_static='-Bstatic'
10872         ;;
10873       esac
10874       ;;
10875
10876     mingw* | cygwin* | pw32* | os2* | cegcc*)
10877       # This hack is so that the source file can tell whether it is being
10878       # built for inclusion in a dll (and should export symbols for example).
10879       lt_prog_compiler_pic='-DDLL_EXPORT'
10880       case $host_os in
10881       os2*)
10882         lt_prog_compiler_static='$wl-static'
10883         ;;
10884       esac
10885       ;;
10886
10887     hpux9* | hpux10* | hpux11*)
10888       lt_prog_compiler_wl='-Wl,'
10889       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10890       # not for PA HP-UX.
10891       case $host_cpu in
10892       hppa*64*|ia64*)
10893         # +Z the default
10894         ;;
10895       *)
10896         lt_prog_compiler_pic='+Z'
10897         ;;
10898       esac
10899       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10900       lt_prog_compiler_static='$wl-a ${wl}archive'
10901       ;;
10902
10903     irix5* | irix6* | nonstopux*)
10904       lt_prog_compiler_wl='-Wl,'
10905       # PIC (with -KPIC) is the default.
10906       lt_prog_compiler_static='-non_shared'
10907       ;;
10908
10909     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10910       case $cc_basename in
10911       # old Intel for x86_64, which still supported -KPIC.
10912       ecc*)
10913         lt_prog_compiler_wl='-Wl,'
10914         lt_prog_compiler_pic='-KPIC'
10915         lt_prog_compiler_static='-static'
10916         ;;
10917       # icc used to be incompatible with GCC.
10918       # ICC 10 doesn't accept -KPIC any more.
10919       icc* | ifort*)
10920         lt_prog_compiler_wl='-Wl,'
10921         lt_prog_compiler_pic='-fPIC'
10922         lt_prog_compiler_static='-static'
10923         ;;
10924       # Lahey Fortran 8.1.
10925       lf95*)
10926         lt_prog_compiler_wl='-Wl,'
10927         lt_prog_compiler_pic='--shared'
10928         lt_prog_compiler_static='--static'
10929         ;;
10930       nagfor*)
10931         # NAG Fortran compiler
10932         lt_prog_compiler_wl='-Wl,-Wl,,'
10933         lt_prog_compiler_pic='-PIC'
10934         lt_prog_compiler_static='-Bstatic'
10935         ;;
10936       tcc*)
10937         # Fabrice Bellard et al's Tiny C Compiler
10938         lt_prog_compiler_wl='-Wl,'
10939         lt_prog_compiler_pic='-fPIC'
10940         lt_prog_compiler_static='-static'
10941         ;;
10942       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10943         # Portland Group compilers (*not* the Pentium gcc compiler,
10944         # which looks to be a dead project)
10945         lt_prog_compiler_wl='-Wl,'
10946         lt_prog_compiler_pic='-fpic'
10947         lt_prog_compiler_static='-Bstatic'
10948         ;;
10949       ccc*)
10950         lt_prog_compiler_wl='-Wl,'
10951         # All Alpha code is PIC.
10952         lt_prog_compiler_static='-non_shared'
10953         ;;
10954       xl* | bgxl* | bgf* | mpixl*)
10955         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10956         lt_prog_compiler_wl='-Wl,'
10957         lt_prog_compiler_pic='-qpic'
10958         lt_prog_compiler_static='-qstaticlink'
10959         ;;
10960       *)
10961         case `$CC -V 2>&1 | sed 5q` in
10962         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10963           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10964           lt_prog_compiler_pic='-KPIC'
10965           lt_prog_compiler_static='-Bstatic'
10966           lt_prog_compiler_wl=''
10967           ;;
10968         *Sun\ F* | *Sun*Fortran*)
10969           lt_prog_compiler_pic='-KPIC'
10970           lt_prog_compiler_static='-Bstatic'
10971           lt_prog_compiler_wl='-Qoption ld '
10972           ;;
10973         *Sun\ C*)
10974           # Sun C 5.9
10975           lt_prog_compiler_pic='-KPIC'
10976           lt_prog_compiler_static='-Bstatic'
10977           lt_prog_compiler_wl='-Wl,'
10978           ;;
10979         *Intel*\ [CF]*Compiler*)
10980           lt_prog_compiler_wl='-Wl,'
10981           lt_prog_compiler_pic='-fPIC'
10982           lt_prog_compiler_static='-static'
10983           ;;
10984         *Portland\ Group*)
10985           lt_prog_compiler_wl='-Wl,'
10986           lt_prog_compiler_pic='-fpic'
10987           lt_prog_compiler_static='-Bstatic'
10988           ;;
10989         esac
10990         ;;
10991       esac
10992       ;;
10993
10994     newsos6)
10995       lt_prog_compiler_pic='-KPIC'
10996       lt_prog_compiler_static='-Bstatic'
10997       ;;
10998
10999     *nto* | *qnx*)
11000       # QNX uses GNU C++, but need to define -shared option too, otherwise
11001       # it will coredump.
11002       lt_prog_compiler_pic='-fPIC -shared'
11003       ;;
11004
11005     osf3* | osf4* | osf5*)
11006       lt_prog_compiler_wl='-Wl,'
11007       # All OSF/1 code is PIC.
11008       lt_prog_compiler_static='-non_shared'
11009       ;;
11010
11011     rdos*)
11012       lt_prog_compiler_static='-non_shared'
11013       ;;
11014
11015     solaris*)
11016       lt_prog_compiler_pic='-KPIC'
11017       lt_prog_compiler_static='-Bstatic'
11018       case $cc_basename in
11019       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11020         lt_prog_compiler_wl='-Qoption ld ';;
11021       *)
11022         lt_prog_compiler_wl='-Wl,';;
11023       esac
11024       ;;
11025
11026     sunos4*)
11027       lt_prog_compiler_wl='-Qoption ld '
11028       lt_prog_compiler_pic='-PIC'
11029       lt_prog_compiler_static='-Bstatic'
11030       ;;
11031
11032     sysv4 | sysv4.2uw2* | sysv4.3*)
11033       lt_prog_compiler_wl='-Wl,'
11034       lt_prog_compiler_pic='-KPIC'
11035       lt_prog_compiler_static='-Bstatic'
11036       ;;
11037
11038     sysv4*MP*)
11039       if test -d /usr/nec; then
11040         lt_prog_compiler_pic='-Kconform_pic'
11041         lt_prog_compiler_static='-Bstatic'
11042       fi
11043       ;;
11044
11045     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11046       lt_prog_compiler_wl='-Wl,'
11047       lt_prog_compiler_pic='-KPIC'
11048       lt_prog_compiler_static='-Bstatic'
11049       ;;
11050
11051     unicos*)
11052       lt_prog_compiler_wl='-Wl,'
11053       lt_prog_compiler_can_build_shared=no
11054       ;;
11055
11056     uts4*)
11057       lt_prog_compiler_pic='-pic'
11058       lt_prog_compiler_static='-Bstatic'
11059       ;;
11060
11061     *)
11062       lt_prog_compiler_can_build_shared=no
11063       ;;
11064     esac
11065   fi
11066
11067 case $host_os in
11068   # For platforms that do not support PIC, -DPIC is meaningless:
11069   *djgpp*)
11070     lt_prog_compiler_pic=
11071     ;;
11072   *)
11073     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11074     ;;
11075 esac
11076
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11078 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11079 if ${lt_cv_prog_compiler_pic+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11083 fi
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11085 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11086 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11087
11088 #
11089 # Check to make sure the PIC flag actually works.
11090 #
11091 if test -n "$lt_prog_compiler_pic"; then
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11093 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11094 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11095   $as_echo_n "(cached) " >&6
11096 else
11097   lt_cv_prog_compiler_pic_works=no
11098    ac_outfile=conftest.$ac_objext
11099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11101    # Insert the option either (1) after the last *FLAGS variable, or
11102    # (2) before a word containing "conftest.", or (3) at the end.
11103    # Note that $ac_compile itself does not contain backslashes and begins
11104    # with a dollar sign (not a hyphen), so the echo should work correctly.
11105    # The option is referenced via a variable to avoid confusing sed.
11106    lt_compile=`echo "$ac_compile" | $SED \
11107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11109    -e 's:$: $lt_compiler_flag:'`
11110    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11111    (eval "$lt_compile" 2>conftest.err)
11112    ac_status=$?
11113    cat conftest.err >&5
11114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115    if (exit $ac_status) && test -s "$ac_outfile"; then
11116      # The compiler can only warn and ignore the option if not recognized
11117      # So say no if there are warnings other than the usual output.
11118      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11119      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11120      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11121        lt_cv_prog_compiler_pic_works=yes
11122      fi
11123    fi
11124    $RM conftest*
11125
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11128 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11129
11130 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11131     case $lt_prog_compiler_pic in
11132      "" | " "*) ;;
11133      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11134      esac
11135 else
11136     lt_prog_compiler_pic=
11137      lt_prog_compiler_can_build_shared=no
11138 fi
11139
11140 fi
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152 #
11153 # Check to make sure the static flag actually works.
11154 #
11155 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11157 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11158 if ${lt_cv_prog_compiler_static_works+:} false; then :
11159   $as_echo_n "(cached) " >&6
11160 else
11161   lt_cv_prog_compiler_static_works=no
11162    save_LDFLAGS=$LDFLAGS
11163    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11164    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11165    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11166      # The linker can only warn and ignore the option if not recognized
11167      # So say no if there are warnings
11168      if test -s conftest.err; then
11169        # Append any errors to the config.log.
11170        cat conftest.err 1>&5
11171        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11172        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11173        if diff conftest.exp conftest.er2 >/dev/null; then
11174          lt_cv_prog_compiler_static_works=yes
11175        fi
11176      else
11177        lt_cv_prog_compiler_static_works=yes
11178      fi
11179    fi
11180    $RM -r conftest*
11181    LDFLAGS=$save_LDFLAGS
11182
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11185 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11186
11187 if test yes = "$lt_cv_prog_compiler_static_works"; then
11188     :
11189 else
11190     lt_prog_compiler_static=
11191 fi
11192
11193
11194
11195
11196
11197
11198
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11201 if ${lt_cv_prog_compiler_c_o+:} false; then :
11202   $as_echo_n "(cached) " >&6
11203 else
11204   lt_cv_prog_compiler_c_o=no
11205    $RM -r conftest 2>/dev/null
11206    mkdir conftest
11207    cd conftest
11208    mkdir out
11209    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11210
11211    lt_compiler_flag="-o out/conftest2.$ac_objext"
11212    # Insert the option either (1) after the last *FLAGS variable, or
11213    # (2) before a word containing "conftest.", or (3) at the end.
11214    # Note that $ac_compile itself does not contain backslashes and begins
11215    # with a dollar sign (not a hyphen), so the echo should work correctly.
11216    lt_compile=`echo "$ac_compile" | $SED \
11217    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11219    -e 's:$: $lt_compiler_flag:'`
11220    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11221    (eval "$lt_compile" 2>out/conftest.err)
11222    ac_status=$?
11223    cat out/conftest.err >&5
11224    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11226    then
11227      # The compiler can only warn and ignore the option if not recognized
11228      # So say no if there are warnings
11229      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11230      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11231      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11232        lt_cv_prog_compiler_c_o=yes
11233      fi
11234    fi
11235    chmod u+w . 2>&5
11236    $RM conftest*
11237    # SGI C++ compiler will create directory out/ii_files/ for
11238    # template instantiation
11239    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11240    $RM out/* && rmdir out
11241    cd ..
11242    $RM -r conftest
11243    $RM conftest*
11244
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11247 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11248
11249
11250
11251
11252
11253
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11255 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11256 if ${lt_cv_prog_compiler_c_o+:} false; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   lt_cv_prog_compiler_c_o=no
11260    $RM -r conftest 2>/dev/null
11261    mkdir conftest
11262    cd conftest
11263    mkdir out
11264    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11265
11266    lt_compiler_flag="-o out/conftest2.$ac_objext"
11267    # Insert the option either (1) after the last *FLAGS variable, or
11268    # (2) before a word containing "conftest.", or (3) at the end.
11269    # Note that $ac_compile itself does not contain backslashes and begins
11270    # with a dollar sign (not a hyphen), so the echo should work correctly.
11271    lt_compile=`echo "$ac_compile" | $SED \
11272    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11274    -e 's:$: $lt_compiler_flag:'`
11275    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11276    (eval "$lt_compile" 2>out/conftest.err)
11277    ac_status=$?
11278    cat out/conftest.err >&5
11279    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11281    then
11282      # The compiler can only warn and ignore the option if not recognized
11283      # So say no if there are warnings
11284      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11285      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11286      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11287        lt_cv_prog_compiler_c_o=yes
11288      fi
11289    fi
11290    chmod u+w . 2>&5
11291    $RM conftest*
11292    # SGI C++ compiler will create directory out/ii_files/ for
11293    # template instantiation
11294    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11295    $RM out/* && rmdir out
11296    cd ..
11297    $RM -r conftest
11298    $RM conftest*
11299
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11302 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11303
11304
11305
11306
11307 hard_links=nottested
11308 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11309   # do not overwrite the value of need_locks provided by the user
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11311 $as_echo_n "checking if we can lock with hard links... " >&6; }
11312   hard_links=yes
11313   $RM conftest*
11314   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315   touch conftest.a
11316   ln conftest.a conftest.b 2>&5 || hard_links=no
11317   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11319 $as_echo "$hard_links" >&6; }
11320   if test no = "$hard_links"; then
11321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11322 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11323     need_locks=warn
11324   fi
11325 else
11326   need_locks=no
11327 fi
11328
11329
11330
11331
11332
11333
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11335 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11336
11337   runpath_var=
11338   allow_undefined_flag=
11339   always_export_symbols=no
11340   archive_cmds=
11341   archive_expsym_cmds=
11342   compiler_needs_object=no
11343   enable_shared_with_static_runtimes=no
11344   export_dynamic_flag_spec=
11345   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11346   hardcode_automatic=no
11347   hardcode_direct=no
11348   hardcode_direct_absolute=no
11349   hardcode_libdir_flag_spec=
11350   hardcode_libdir_separator=
11351   hardcode_minus_L=no
11352   hardcode_shlibpath_var=unsupported
11353   inherit_rpath=no
11354   link_all_deplibs=unknown
11355   module_cmds=
11356   module_expsym_cmds=
11357   old_archive_from_new_cmds=
11358   old_archive_from_expsyms_cmds=
11359   thread_safe_flag_spec=
11360   whole_archive_flag_spec=
11361   # include_expsyms should be a list of space-separated symbols to be *always*
11362   # included in the symbol list
11363   include_expsyms=
11364   # exclude_expsyms can be an extended regexp of symbols to exclude
11365   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11366   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11367   # as well as any symbol that contains 'd'.
11368   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11369   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11370   # platforms (ab)use it in PIC code, but their linkers get confused if
11371   # the symbol is explicitly referenced.  Since portable code cannot
11372   # rely on this symbol name, it's probably fine to never include it in
11373   # preloaded symbol tables.
11374   # Exclude shared library initialization/finalization symbols.
11375   extract_expsyms_cmds=
11376
11377   case $host_os in
11378   cygwin* | mingw* | pw32* | cegcc*)
11379     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11380     # When not using gcc, we currently assume that we are using
11381     # Microsoft Visual C++.
11382     if test yes != "$GCC"; then
11383       with_gnu_ld=no
11384     fi
11385     ;;
11386   interix*)
11387     # we just hope/assume this is gcc and not c89 (= MSVC++)
11388     with_gnu_ld=yes
11389     ;;
11390   openbsd* | bitrig*)
11391     with_gnu_ld=no
11392     ;;
11393   esac
11394
11395   ld_shlibs=yes
11396
11397   # On some targets, GNU ld is compatible enough with the native linker
11398   # that we're better off using the native interface for both.
11399   lt_use_gnu_ld_interface=no
11400   if test yes = "$with_gnu_ld"; then
11401     case $host_os in
11402       aix*)
11403         # The AIX port of GNU ld has always aspired to compatibility
11404         # with the native linker.  However, as the warning in the GNU ld
11405         # block says, versions before 2.19.5* couldn't really create working
11406         # shared libraries, regardless of the interface used.
11407         case `$LD -v 2>&1` in
11408           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11409           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11410           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11411           *)
11412             lt_use_gnu_ld_interface=yes
11413             ;;
11414         esac
11415         ;;
11416       *)
11417         lt_use_gnu_ld_interface=yes
11418         ;;
11419     esac
11420   fi
11421
11422   if test yes = "$lt_use_gnu_ld_interface"; then
11423     # If archive_cmds runs LD, not CC, wlarc should be empty
11424     wlarc='$wl'
11425
11426     # Set some defaults for GNU ld with shared library support. These
11427     # are reset later if shared libraries are not supported. Putting them
11428     # here allows them to be overridden if necessary.
11429     runpath_var=LD_RUN_PATH
11430     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11431     export_dynamic_flag_spec='$wl--export-dynamic'
11432     # ancient GNU ld didn't support --whole-archive et. al.
11433     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11434       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11435     else
11436       whole_archive_flag_spec=
11437     fi
11438     supports_anon_versioning=no
11439     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11440       *GNU\ gold*) supports_anon_versioning=yes ;;
11441       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11442       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11443       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11444       *\ 2.11.*) ;; # other 2.11 versions
11445       *) supports_anon_versioning=yes ;;
11446     esac
11447
11448     # See if GNU ld supports shared libraries.
11449     case $host_os in
11450     aix[3-9]*)
11451       # On AIX/PPC, the GNU linker is very broken
11452       if test ia64 != "$host_cpu"; then
11453         ld_shlibs=no
11454         cat <<_LT_EOF 1>&2
11455
11456 *** Warning: the GNU linker, at least up to release 2.19, is reported
11457 *** to be unable to reliably create shared libraries on AIX.
11458 *** Therefore, libtool is disabling shared libraries support.  If you
11459 *** really care for shared libraries, you may want to install binutils
11460 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11461 *** You will then need to restart the configuration process.
11462
11463 _LT_EOF
11464       fi
11465       ;;
11466
11467     amigaos*)
11468       case $host_cpu in
11469       powerpc)
11470             # see comment about AmigaOS4 .so support
11471             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11472             archive_expsym_cmds=''
11473         ;;
11474       m68k)
11475             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11476             hardcode_libdir_flag_spec='-L$libdir'
11477             hardcode_minus_L=yes
11478         ;;
11479       esac
11480       ;;
11481
11482     beos*)
11483       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11484         allow_undefined_flag=unsupported
11485         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11486         # support --undefined.  This deserves some investigation.  FIXME
11487         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11488       else
11489         ld_shlibs=no
11490       fi
11491       ;;
11492
11493     cygwin* | mingw* | pw32* | cegcc*)
11494       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11495       # as there is no search path for DLLs.
11496       hardcode_libdir_flag_spec='-L$libdir'
11497       export_dynamic_flag_spec='$wl--export-all-symbols'
11498       allow_undefined_flag=unsupported
11499       always_export_symbols=no
11500       enable_shared_with_static_runtimes=yes
11501       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11502       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11503
11504       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11505         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11506         # If the export-symbols file already is a .def file, use it as
11507         # is; otherwise, prepend EXPORTS...
11508         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11509           cp $export_symbols $output_objdir/$soname.def;
11510         else
11511           echo EXPORTS > $output_objdir/$soname.def;
11512           cat $export_symbols >> $output_objdir/$soname.def;
11513         fi~
11514         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11515       else
11516         ld_shlibs=no
11517       fi
11518       ;;
11519
11520     haiku*)
11521       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11522       link_all_deplibs=yes
11523       ;;
11524
11525     os2*)
11526       hardcode_libdir_flag_spec='-L$libdir'
11527       hardcode_minus_L=yes
11528       allow_undefined_flag=unsupported
11529       shrext_cmds=.dll
11530       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11531         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11532         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11533         $ECHO EXPORTS >> $output_objdir/$libname.def~
11534         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11535         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11536         emximp -o $lib $output_objdir/$libname.def'
11537       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11538         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11539         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11540         $ECHO EXPORTS >> $output_objdir/$libname.def~
11541         prefix_cmds="$SED"~
11542         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11543           prefix_cmds="$prefix_cmds -e 1d";
11544         fi~
11545         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11546         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11547         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11548         emximp -o $lib $output_objdir/$libname.def'
11549       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11550       enable_shared_with_static_runtimes=yes
11551       ;;
11552
11553     interix[3-9]*)
11554       hardcode_direct=no
11555       hardcode_shlibpath_var=no
11556       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11557       export_dynamic_flag_spec='$wl-E'
11558       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11559       # Instead, shared libraries are loaded at an image base (0x10000000 by
11560       # default) and relocated if they conflict, which is a slow very memory
11561       # consuming and fragmenting process.  To avoid this, we pick a random,
11562       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11563       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11564       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11565       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11566       ;;
11567
11568     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11569       tmp_diet=no
11570       if test linux-dietlibc = "$host_os"; then
11571         case $cc_basename in
11572           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11573         esac
11574       fi
11575       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11576          && test no = "$tmp_diet"
11577       then
11578         tmp_addflag=' $pic_flag'
11579         tmp_sharedflag='-shared'
11580         case $cc_basename,$host_cpu in
11581         pgcc*)                          # Portland Group C compiler
11582           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11583           tmp_addflag=' $pic_flag'
11584           ;;
11585         pgf77* | pgf90* | pgf95* | pgfortran*)
11586                                         # Portland Group f77 and f90 compilers
11587           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11588           tmp_addflag=' $pic_flag -Mnomain' ;;
11589         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11590           tmp_addflag=' -i_dynamic' ;;
11591         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11592           tmp_addflag=' -i_dynamic -nofor_main' ;;
11593         ifc* | ifort*)                  # Intel Fortran compiler
11594           tmp_addflag=' -nofor_main' ;;
11595         lf95*)                          # Lahey Fortran 8.1
11596           whole_archive_flag_spec=
11597           tmp_sharedflag='--shared' ;;
11598         nagfor*)                        # NAGFOR 5.3
11599           tmp_sharedflag='-Wl,-shared' ;;
11600         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11601           tmp_sharedflag='-qmkshrobj'
11602           tmp_addflag= ;;
11603         nvcc*)  # Cuda Compiler Driver 2.2
11604           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11605           compiler_needs_object=yes
11606           ;;
11607         esac
11608         case `$CC -V 2>&1 | sed 5q` in
11609         *Sun\ C*)                       # Sun C 5.9
11610           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11611           compiler_needs_object=yes
11612           tmp_sharedflag='-G' ;;
11613         *Sun\ F*)                       # Sun Fortran 8.3
11614           tmp_sharedflag='-G' ;;
11615         esac
11616         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11617
11618         if test yes = "$supports_anon_versioning"; then
11619           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11620             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11621             echo "local: *; };" >> $output_objdir/$libname.ver~
11622             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11623         fi
11624
11625         case $cc_basename in
11626         tcc*)
11627           export_dynamic_flag_spec='-rdynamic'
11628           ;;
11629         xlf* | bgf* | bgxlf* | mpixlf*)
11630           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11631           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11632           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11633           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11634           if test yes = "$supports_anon_versioning"; then
11635             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11636               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11637               echo "local: *; };" >> $output_objdir/$libname.ver~
11638               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11639           fi
11640           ;;
11641         esac
11642       else
11643         ld_shlibs=no
11644       fi
11645       ;;
11646
11647     netbsd*)
11648       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11649         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11650         wlarc=
11651       else
11652         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11653         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11654       fi
11655       ;;
11656
11657     solaris*)
11658       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11659         ld_shlibs=no
11660         cat <<_LT_EOF 1>&2
11661
11662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11663 *** create shared libraries on Solaris systems.  Therefore, libtool
11664 *** is disabling shared libraries support.  We urge you to upgrade GNU
11665 *** binutils to release 2.9.1 or newer.  Another option is to modify
11666 *** your PATH or compiler configuration so that the native linker is
11667 *** used, and then restart.
11668
11669 _LT_EOF
11670       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11671         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11672         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11673       else
11674         ld_shlibs=no
11675       fi
11676       ;;
11677
11678     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11679       case `$LD -v 2>&1` in
11680         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11681         ld_shlibs=no
11682         cat <<_LT_EOF 1>&2
11683
11684 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11685 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11686 *** is disabling shared libraries support.  We urge you to upgrade GNU
11687 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11688 *** your PATH or compiler configuration so that the native linker is
11689 *** used, and then restart.
11690
11691 _LT_EOF
11692         ;;
11693         *)
11694           # For security reasons, it is highly recommended that you always
11695           # use absolute paths for naming shared libraries, and exclude the
11696           # DT_RUNPATH tag from executables and libraries.  But doing so
11697           # requires that you compile everything twice, which is a pain.
11698           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11699             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11700             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11701             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11702           else
11703             ld_shlibs=no
11704           fi
11705         ;;
11706       esac
11707       ;;
11708
11709     sunos4*)
11710       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11711       wlarc=
11712       hardcode_direct=yes
11713       hardcode_shlibpath_var=no
11714       ;;
11715
11716     *)
11717       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11718         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11719         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11720       else
11721         ld_shlibs=no
11722       fi
11723       ;;
11724     esac
11725
11726     if test no = "$ld_shlibs"; then
11727       runpath_var=
11728       hardcode_libdir_flag_spec=
11729       export_dynamic_flag_spec=
11730       whole_archive_flag_spec=
11731     fi
11732   else
11733     # PORTME fill in a description of your system's linker (not GNU ld)
11734     case $host_os in
11735     aix3*)
11736       allow_undefined_flag=unsupported
11737       always_export_symbols=yes
11738       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11739       # Note: this linker hardcodes the directories in LIBPATH if there
11740       # are no directories specified by -L.
11741       hardcode_minus_L=yes
11742       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11743         # Neither direct hardcoding nor static linking is supported with a
11744         # broken collect2.
11745         hardcode_direct=unsupported
11746       fi
11747       ;;
11748
11749     aix[4-9]*)
11750       if test ia64 = "$host_cpu"; then
11751         # On IA64, the linker does run time linking by default, so we don't
11752         # have to do anything special.
11753         aix_use_runtimelinking=no
11754         exp_sym_flag='-Bexport'
11755         no_entry_flag=
11756       else
11757         # If we're using GNU nm, then we don't want the "-C" option.
11758         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11759         # Without the "-l" option, or with the "-B" option, AIX nm treats
11760         # weak defined symbols like other global defined symbols, whereas
11761         # GNU nm marks them as "W".
11762         # While the 'weak' keyword is ignored in the Export File, we need
11763         # it in the Import File for the 'aix-soname' feature, so we have
11764         # to replace the "-B" option with "-P" for AIX nm.
11765         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11766           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11767         else
11768           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11769         fi
11770         aix_use_runtimelinking=no
11771
11772         # Test if we are trying to use run time linking or normal
11773         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11774         # have runtime linking enabled, and use it for executables.
11775         # For shared libraries, we enable/disable runtime linking
11776         # depending on the kind of the shared library created -
11777         # when "with_aix_soname,aix_use_runtimelinking" is:
11778         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11779         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11780         #            lib.a           static archive
11781         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11782         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11783         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11784         #            lib.a(lib.so.V) shared, rtl:no
11785         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11786         #            lib.a           static archive
11787         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11788           for ld_flag in $LDFLAGS; do
11789           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11790             aix_use_runtimelinking=yes
11791             break
11792           fi
11793           done
11794           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11795             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11796             # so we don't have lib.a shared libs to link our executables.
11797             # We have to force runtime linking in this case.
11798             aix_use_runtimelinking=yes
11799             LDFLAGS="$LDFLAGS -Wl,-brtl"
11800           fi
11801           ;;
11802         esac
11803
11804         exp_sym_flag='-bexport'
11805         no_entry_flag='-bnoentry'
11806       fi
11807
11808       # When large executables or shared objects are built, AIX ld can
11809       # have problems creating the table of contents.  If linking a library
11810       # or program results in "error TOC overflow" add -mminimal-toc to
11811       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11812       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11813
11814       archive_cmds=''
11815       hardcode_direct=yes
11816       hardcode_direct_absolute=yes
11817       hardcode_libdir_separator=':'
11818       link_all_deplibs=yes
11819       file_list_spec='$wl-f,'
11820       case $with_aix_soname,$aix_use_runtimelinking in
11821       aix,*) ;; # traditional, no import file
11822       svr4,* | *,yes) # use import file
11823         # The Import File defines what to hardcode.
11824         hardcode_direct=no
11825         hardcode_direct_absolute=no
11826         ;;
11827       esac
11828
11829       if test yes = "$GCC"; then
11830         case $host_os in aix4.[012]|aix4.[012].*)
11831         # We only want to do this on AIX 4.2 and lower, the check
11832         # below for broken collect2 doesn't work under 4.3+
11833           collect2name=`$CC -print-prog-name=collect2`
11834           if test -f "$collect2name" &&
11835            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11836           then
11837           # We have reworked collect2
11838           :
11839           else
11840           # We have old collect2
11841           hardcode_direct=unsupported
11842           # It fails to find uninstalled libraries when the uninstalled
11843           # path is not listed in the libpath.  Setting hardcode_minus_L
11844           # to unsupported forces relinking
11845           hardcode_minus_L=yes
11846           hardcode_libdir_flag_spec='-L$libdir'
11847           hardcode_libdir_separator=
11848           fi
11849           ;;
11850         esac
11851         shared_flag='-shared'
11852         if test yes = "$aix_use_runtimelinking"; then
11853           shared_flag="$shared_flag "'$wl-G'
11854         fi
11855         # Need to ensure runtime linking is disabled for the traditional
11856         # shared library, or the linker may eventually find shared libraries
11857         # /with/ Import File - we do not want to mix them.
11858         shared_flag_aix='-shared'
11859         shared_flag_svr4='-shared $wl-G'
11860       else
11861         # not using gcc
11862         if test ia64 = "$host_cpu"; then
11863         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11864         # chokes on -Wl,-G. The following line is correct:
11865           shared_flag='-G'
11866         else
11867           if test yes = "$aix_use_runtimelinking"; then
11868             shared_flag='$wl-G'
11869           else
11870             shared_flag='$wl-bM:SRE'
11871           fi
11872           shared_flag_aix='$wl-bM:SRE'
11873           shared_flag_svr4='$wl-G'
11874         fi
11875       fi
11876
11877       export_dynamic_flag_spec='$wl-bexpall'
11878       # It seems that -bexpall does not export symbols beginning with
11879       # underscore (_), so it is better to generate a list of symbols to export.
11880       always_export_symbols=yes
11881       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11882         # Warning - without using the other runtime loading flags (-brtl),
11883         # -berok will link without error, but may produce a broken library.
11884         allow_undefined_flag='-berok'
11885         # Determine the default libpath from the value encoded in an
11886         # empty executable.
11887         if test set = "${lt_cv_aix_libpath+set}"; then
11888   aix_libpath=$lt_cv_aix_libpath
11889 else
11890   if ${lt_cv_aix_libpath_+:} false; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h.  */
11895
11896 int
11897 main ()
11898 {
11899
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905
11906   lt_aix_libpath_sed='
11907       /Import File Strings/,/^$/ {
11908           /^0/ {
11909               s/^0  *\([^ ]*\) *$/\1/
11910               p
11911           }
11912       }'
11913   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11914   # Check for a 64-bit object if we didn't find anything.
11915   if test -z "$lt_cv_aix_libpath_"; then
11916     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11917   fi
11918 fi
11919 rm -f core conftest.err conftest.$ac_objext \
11920     conftest$ac_exeext conftest.$ac_ext
11921   if test -z "$lt_cv_aix_libpath_"; then
11922     lt_cv_aix_libpath_=/usr/lib:/lib
11923   fi
11924
11925 fi
11926
11927   aix_libpath=$lt_cv_aix_libpath_
11928 fi
11929
11930         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11931         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11932       else
11933         if test ia64 = "$host_cpu"; then
11934           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11935           allow_undefined_flag="-z nodefs"
11936           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11937         else
11938          # Determine the default libpath from the value encoded in an
11939          # empty executable.
11940          if test set = "${lt_cv_aix_libpath+set}"; then
11941   aix_libpath=$lt_cv_aix_libpath
11942 else
11943   if ${lt_cv_aix_libpath_+:} false; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h.  */
11948
11949 int
11950 main ()
11951 {
11952
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958
11959   lt_aix_libpath_sed='
11960       /Import File Strings/,/^$/ {
11961           /^0/ {
11962               s/^0  *\([^ ]*\) *$/\1/
11963               p
11964           }
11965       }'
11966   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11967   # Check for a 64-bit object if we didn't find anything.
11968   if test -z "$lt_cv_aix_libpath_"; then
11969     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11970   fi
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext \
11973     conftest$ac_exeext conftest.$ac_ext
11974   if test -z "$lt_cv_aix_libpath_"; then
11975     lt_cv_aix_libpath_=/usr/lib:/lib
11976   fi
11977
11978 fi
11979
11980   aix_libpath=$lt_cv_aix_libpath_
11981 fi
11982
11983          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11984           # Warning - without using the other run time loading flags,
11985           # -berok will link without error, but may produce a broken library.
11986           no_undefined_flag=' $wl-bernotok'
11987           allow_undefined_flag=' $wl-berok'
11988           if test yes = "$with_gnu_ld"; then
11989             # We only use this code for GNU lds that support --whole-archive.
11990             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11991           else
11992             # Exported symbols can be pulled into shared objects from archives
11993             whole_archive_flag_spec='$convenience'
11994           fi
11995           archive_cmds_need_lc=yes
11996           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11997           # -brtl affects multiple linker settings, -berok does not and is overridden later
11998           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11999           if test svr4 != "$with_aix_soname"; then
12000             # This is similar to how AIX traditionally builds its shared libraries.
12001             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12002           fi
12003           if test aix != "$with_aix_soname"; then
12004             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12005           else
12006             # used by -dlpreopen to get the symbols
12007             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12008           fi
12009           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12010         fi
12011       fi
12012       ;;
12013
12014     amigaos*)
12015       case $host_cpu in
12016       powerpc)
12017             # see comment about AmigaOS4 .so support
12018             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12019             archive_expsym_cmds=''
12020         ;;
12021       m68k)
12022             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12023             hardcode_libdir_flag_spec='-L$libdir'
12024             hardcode_minus_L=yes
12025         ;;
12026       esac
12027       ;;
12028
12029     bsdi[45]*)
12030       export_dynamic_flag_spec=-rdynamic
12031       ;;
12032
12033     cygwin* | mingw* | pw32* | cegcc*)
12034       # When not using gcc, we currently assume that we are using
12035       # Microsoft Visual C++.
12036       # hardcode_libdir_flag_spec is actually meaningless, as there is
12037       # no search path for DLLs.
12038       case $cc_basename in
12039       cl*)
12040         # Native MSVC
12041         hardcode_libdir_flag_spec=' '
12042         allow_undefined_flag=unsupported
12043         always_export_symbols=yes
12044         file_list_spec='@'
12045         # Tell ltmain to make .lib files, not .a files.
12046         libext=lib
12047         # Tell ltmain to make .dll files, not .so files.
12048         shrext_cmds=.dll
12049         # FIXME: Setting linknames here is a bad hack.
12050         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12051         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12052             cp "$export_symbols" "$output_objdir/$soname.def";
12053             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12054           else
12055             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12056           fi~
12057           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12058           linknames='
12059         # The linker will not automatically build a static lib if we build a DLL.
12060         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12061         enable_shared_with_static_runtimes=yes
12062         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12063         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12064         # Don't use ranlib
12065         old_postinstall_cmds='chmod 644 $oldlib'
12066         postlink_cmds='lt_outputfile="@OUTPUT@"~
12067           lt_tool_outputfile="@TOOL_OUTPUT@"~
12068           case $lt_outputfile in
12069             *.exe|*.EXE) ;;
12070             *)
12071               lt_outputfile=$lt_outputfile.exe
12072               lt_tool_outputfile=$lt_tool_outputfile.exe
12073               ;;
12074           esac~
12075           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12076             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12077             $RM "$lt_outputfile.manifest";
12078           fi'
12079         ;;
12080       *)
12081         # Assume MSVC wrapper
12082         hardcode_libdir_flag_spec=' '
12083         allow_undefined_flag=unsupported
12084         # Tell ltmain to make .lib files, not .a files.
12085         libext=lib
12086         # Tell ltmain to make .dll files, not .so files.
12087         shrext_cmds=.dll
12088         # FIXME: Setting linknames here is a bad hack.
12089         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12090         # The linker will automatically build a .lib file if we build a DLL.
12091         old_archive_from_new_cmds='true'
12092         # FIXME: Should let the user specify the lib program.
12093         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12094         enable_shared_with_static_runtimes=yes
12095         ;;
12096       esac
12097       ;;
12098
12099     darwin* | rhapsody*)
12100
12101
12102   archive_cmds_need_lc=no
12103   hardcode_direct=no
12104   hardcode_automatic=yes
12105   hardcode_shlibpath_var=unsupported
12106   if test yes = "$lt_cv_ld_force_load"; then
12107     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12108
12109   else
12110     whole_archive_flag_spec=''
12111   fi
12112   link_all_deplibs=yes
12113   allow_undefined_flag=$_lt_dar_allow_undefined
12114   case $cc_basename in
12115      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12116      *) _lt_dar_can_shared=$GCC ;;
12117   esac
12118   if test yes = "$_lt_dar_can_shared"; then
12119     output_verbose_link_cmd=func_echo_all
12120     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12121     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12122     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12123     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12124
12125   else
12126   ld_shlibs=no
12127   fi
12128
12129       ;;
12130
12131     dgux*)
12132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12133       hardcode_libdir_flag_spec='-L$libdir'
12134       hardcode_shlibpath_var=no
12135       ;;
12136
12137     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12138     # support.  Future versions do this automatically, but an explicit c++rt0.o
12139     # does not break anything, and helps significantly (at the cost of a little
12140     # extra space).
12141     freebsd2.2*)
12142       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12143       hardcode_libdir_flag_spec='-R$libdir'
12144       hardcode_direct=yes
12145       hardcode_shlibpath_var=no
12146       ;;
12147
12148     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12149     freebsd2.*)
12150       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12151       hardcode_direct=yes
12152       hardcode_minus_L=yes
12153       hardcode_shlibpath_var=no
12154       ;;
12155
12156     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12157     freebsd* | dragonfly*)
12158       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12159       hardcode_libdir_flag_spec='-R$libdir'
12160       hardcode_direct=yes
12161       hardcode_shlibpath_var=no
12162       ;;
12163
12164     hpux9*)
12165       if test yes = "$GCC"; then
12166         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12167       else
12168         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12169       fi
12170       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12171       hardcode_libdir_separator=:
12172       hardcode_direct=yes
12173
12174       # hardcode_minus_L: Not really in the search PATH,
12175       # but as the default location of the library.
12176       hardcode_minus_L=yes
12177       export_dynamic_flag_spec='$wl-E'
12178       ;;
12179
12180     hpux10*)
12181       if test yes,no = "$GCC,$with_gnu_ld"; then
12182         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12183       else
12184         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12185       fi
12186       if test no = "$with_gnu_ld"; then
12187         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12188         hardcode_libdir_separator=:
12189         hardcode_direct=yes
12190         hardcode_direct_absolute=yes
12191         export_dynamic_flag_spec='$wl-E'
12192         # hardcode_minus_L: Not really in the search PATH,
12193         # but as the default location of the library.
12194         hardcode_minus_L=yes
12195       fi
12196       ;;
12197
12198     hpux11*)
12199       if test yes,no = "$GCC,$with_gnu_ld"; then
12200         case $host_cpu in
12201         hppa*64*)
12202           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12203           ;;
12204         ia64*)
12205           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12206           ;;
12207         *)
12208           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12209           ;;
12210         esac
12211       else
12212         case $host_cpu in
12213         hppa*64*)
12214           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12215           ;;
12216         ia64*)
12217           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12218           ;;
12219         *)
12220
12221           # Older versions of the 11.00 compiler do not understand -b yet
12222           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12223           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12224 $as_echo_n "checking if $CC understands -b... " >&6; }
12225 if ${lt_cv_prog_compiler__b+:} false; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228   lt_cv_prog_compiler__b=no
12229    save_LDFLAGS=$LDFLAGS
12230    LDFLAGS="$LDFLAGS -b"
12231    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12232    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12233      # The linker can only warn and ignore the option if not recognized
12234      # So say no if there are warnings
12235      if test -s conftest.err; then
12236        # Append any errors to the config.log.
12237        cat conftest.err 1>&5
12238        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12239        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12240        if diff conftest.exp conftest.er2 >/dev/null; then
12241          lt_cv_prog_compiler__b=yes
12242        fi
12243      else
12244        lt_cv_prog_compiler__b=yes
12245      fi
12246    fi
12247    $RM -r conftest*
12248    LDFLAGS=$save_LDFLAGS
12249
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12252 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12253
12254 if test yes = "$lt_cv_prog_compiler__b"; then
12255     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12256 else
12257     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12258 fi
12259
12260           ;;
12261         esac
12262       fi
12263       if test no = "$with_gnu_ld"; then
12264         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12265         hardcode_libdir_separator=:
12266
12267         case $host_cpu in
12268         hppa*64*|ia64*)
12269           hardcode_direct=no
12270           hardcode_shlibpath_var=no
12271           ;;
12272         *)
12273           hardcode_direct=yes
12274           hardcode_direct_absolute=yes
12275           export_dynamic_flag_spec='$wl-E'
12276
12277           # hardcode_minus_L: Not really in the search PATH,
12278           # but as the default location of the library.
12279           hardcode_minus_L=yes
12280           ;;
12281         esac
12282       fi
12283       ;;
12284
12285     irix5* | irix6* | nonstopux*)
12286       if test yes = "$GCC"; then
12287         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12288         # Try to use the -exported_symbol ld option, if it does not
12289         # work, assume that -exports_file does not work either and
12290         # implicitly export all symbols.
12291         # This should be the same for all languages, so no per-tag cache variable.
12292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12293 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12294 if ${lt_cv_irix_exported_symbol+:} false; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   save_LDFLAGS=$LDFLAGS
12298            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12299            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h.  */
12301 int foo (void) { return 0; }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304   lt_cv_irix_exported_symbol=yes
12305 else
12306   lt_cv_irix_exported_symbol=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309     conftest$ac_exeext conftest.$ac_ext
12310            LDFLAGS=$save_LDFLAGS
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12313 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12314         if test yes = "$lt_cv_irix_exported_symbol"; then
12315           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12316         fi
12317       else
12318         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12319         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12320       fi
12321       archive_cmds_need_lc='no'
12322       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12323       hardcode_libdir_separator=:
12324       inherit_rpath=yes
12325       link_all_deplibs=yes
12326       ;;
12327
12328     linux*)
12329       case $cc_basename in
12330       tcc*)
12331         # Fabrice Bellard et al's Tiny C Compiler
12332         ld_shlibs=yes
12333         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12334         ;;
12335       esac
12336       ;;
12337
12338     netbsd*)
12339       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12340         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12341       else
12342         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12343       fi
12344       hardcode_libdir_flag_spec='-R$libdir'
12345       hardcode_direct=yes
12346       hardcode_shlibpath_var=no
12347       ;;
12348
12349     newsos6)
12350       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12351       hardcode_direct=yes
12352       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12353       hardcode_libdir_separator=:
12354       hardcode_shlibpath_var=no
12355       ;;
12356
12357     *nto* | *qnx*)
12358       ;;
12359
12360     openbsd* | bitrig*)
12361       if test -f /usr/libexec/ld.so; then
12362         hardcode_direct=yes
12363         hardcode_shlibpath_var=no
12364         hardcode_direct_absolute=yes
12365         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12366           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12367           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12368           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12369           export_dynamic_flag_spec='$wl-E'
12370         else
12371           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12372           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12373         fi
12374       else
12375         ld_shlibs=no
12376       fi
12377       ;;
12378
12379     os2*)
12380       hardcode_libdir_flag_spec='-L$libdir'
12381       hardcode_minus_L=yes
12382       allow_undefined_flag=unsupported
12383       shrext_cmds=.dll
12384       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12385         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12386         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12387         $ECHO EXPORTS >> $output_objdir/$libname.def~
12388         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12389         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12390         emximp -o $lib $output_objdir/$libname.def'
12391       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12392         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12393         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12394         $ECHO EXPORTS >> $output_objdir/$libname.def~
12395         prefix_cmds="$SED"~
12396         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12397           prefix_cmds="$prefix_cmds -e 1d";
12398         fi~
12399         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12400         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12401         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12402         emximp -o $lib $output_objdir/$libname.def'
12403       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12404       enable_shared_with_static_runtimes=yes
12405       ;;
12406
12407     osf3*)
12408       if test yes = "$GCC"; then
12409         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12410         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12411       else
12412         allow_undefined_flag=' -expect_unresolved \*'
12413         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12414       fi
12415       archive_cmds_need_lc='no'
12416       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12417       hardcode_libdir_separator=:
12418       ;;
12419
12420     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12421       if test yes = "$GCC"; then
12422         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12423         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12424         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12425       else
12426         allow_undefined_flag=' -expect_unresolved \*'
12427         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12428         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12429           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12430
12431         # Both c and cxx compiler support -rpath directly
12432         hardcode_libdir_flag_spec='-rpath $libdir'
12433       fi
12434       archive_cmds_need_lc='no'
12435       hardcode_libdir_separator=:
12436       ;;
12437
12438     solaris*)
12439       no_undefined_flag=' -z defs'
12440       if test yes = "$GCC"; then
12441         wlarc='$wl'
12442         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12443         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12444           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12445       else
12446         case `$CC -V 2>&1` in
12447         *"Compilers 5.0"*)
12448           wlarc=''
12449           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12450           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12451             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12452           ;;
12453         *)
12454           wlarc='$wl'
12455           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12456           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12457             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12458           ;;
12459         esac
12460       fi
12461       hardcode_libdir_flag_spec='-R$libdir'
12462       hardcode_shlibpath_var=no
12463       case $host_os in
12464       solaris2.[0-5] | solaris2.[0-5].*) ;;
12465       *)
12466         # The compiler driver will combine and reorder linker options,
12467         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12468         # but is careful enough not to reorder.
12469         # Supported since Solaris 2.6 (maybe 2.5.1?)
12470         if test yes = "$GCC"; then
12471           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12472         else
12473           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12474         fi
12475         ;;
12476       esac
12477       link_all_deplibs=yes
12478       ;;
12479
12480     sunos4*)
12481       if test sequent = "$host_vendor"; then
12482         # Use $CC to link under sequent, because it throws in some extra .o
12483         # files that make .init and .fini sections work.
12484         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12485       else
12486         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12487       fi
12488       hardcode_libdir_flag_spec='-L$libdir'
12489       hardcode_direct=yes
12490       hardcode_minus_L=yes
12491       hardcode_shlibpath_var=no
12492       ;;
12493
12494     sysv4)
12495       case $host_vendor in
12496         sni)
12497           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12498           hardcode_direct=yes # is this really true???
12499         ;;
12500         siemens)
12501           ## LD is ld it makes a PLAMLIB
12502           ## CC just makes a GrossModule.
12503           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12504           reload_cmds='$CC -r -o $output$reload_objs'
12505           hardcode_direct=no
12506         ;;
12507         motorola)
12508           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12509           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12510         ;;
12511       esac
12512       runpath_var='LD_RUN_PATH'
12513       hardcode_shlibpath_var=no
12514       ;;
12515
12516     sysv4.3*)
12517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12518       hardcode_shlibpath_var=no
12519       export_dynamic_flag_spec='-Bexport'
12520       ;;
12521
12522     sysv4*MP*)
12523       if test -d /usr/nec; then
12524         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12525         hardcode_shlibpath_var=no
12526         runpath_var=LD_RUN_PATH
12527         hardcode_runpath_var=yes
12528         ld_shlibs=yes
12529       fi
12530       ;;
12531
12532     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12533       no_undefined_flag='$wl-z,text'
12534       archive_cmds_need_lc=no
12535       hardcode_shlibpath_var=no
12536       runpath_var='LD_RUN_PATH'
12537
12538       if test yes = "$GCC"; then
12539         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541       else
12542         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12543         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12544       fi
12545       ;;
12546
12547     sysv5* | sco3.2v5* | sco5v6*)
12548       # Note: We CANNOT use -z defs as we might desire, because we do not
12549       # link with -lc, and that would cause any symbols used from libc to
12550       # always be unresolved, which means just about no library would
12551       # ever link correctly.  If we're not using GNU ld we use -z text
12552       # though, which does catch some bad symbols but isn't as heavy-handed
12553       # as -z defs.
12554       no_undefined_flag='$wl-z,text'
12555       allow_undefined_flag='$wl-z,nodefs'
12556       archive_cmds_need_lc=no
12557       hardcode_shlibpath_var=no
12558       hardcode_libdir_flag_spec='$wl-R,$libdir'
12559       hardcode_libdir_separator=':'
12560       link_all_deplibs=yes
12561       export_dynamic_flag_spec='$wl-Bexport'
12562       runpath_var='LD_RUN_PATH'
12563
12564       if test yes = "$GCC"; then
12565         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567       else
12568         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570       fi
12571       ;;
12572
12573     uts4*)
12574       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12575       hardcode_libdir_flag_spec='-L$libdir'
12576       hardcode_shlibpath_var=no
12577       ;;
12578
12579     *)
12580       ld_shlibs=no
12581       ;;
12582     esac
12583
12584     if test sni = "$host_vendor"; then
12585       case $host in
12586       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12587         export_dynamic_flag_spec='$wl-Blargedynsym'
12588         ;;
12589       esac
12590     fi
12591   fi
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12594 $as_echo "$ld_shlibs" >&6; }
12595 test no = "$ld_shlibs" && can_build_shared=no
12596
12597 with_gnu_ld=$with_gnu_ld
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613 #
12614 # Do we need to explicitly link libc?
12615 #
12616 case "x$archive_cmds_need_lc" in
12617 x|xyes)
12618   # Assume -lc should be added
12619   archive_cmds_need_lc=yes
12620
12621   if test yes,yes = "$GCC,$enable_shared"; then
12622     case $archive_cmds in
12623     *'~'*)
12624       # FIXME: we may have to deal with multi-command sequences.
12625       ;;
12626     '$CC '*)
12627       # Test whether the compiler implicitly links with -lc since on some
12628       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12629       # to ld, don't add -lc before -lgcc.
12630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12631 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12632 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12633   $as_echo_n "(cached) " >&6
12634 else
12635   $RM conftest*
12636         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12637
12638         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12639   (eval $ac_compile) 2>&5
12640   ac_status=$?
12641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12642   test $ac_status = 0; } 2>conftest.err; then
12643           soname=conftest
12644           lib=conftest
12645           libobjs=conftest.$ac_objext
12646           deplibs=
12647           wl=$lt_prog_compiler_wl
12648           pic_flag=$lt_prog_compiler_pic
12649           compiler_flags=-v
12650           linker_flags=-v
12651           verstring=
12652           output_objdir=.
12653           libname=conftest
12654           lt_save_allow_undefined_flag=$allow_undefined_flag
12655           allow_undefined_flag=
12656           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12657   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12658   ac_status=$?
12659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12660   test $ac_status = 0; }
12661           then
12662             lt_cv_archive_cmds_need_lc=no
12663           else
12664             lt_cv_archive_cmds_need_lc=yes
12665           fi
12666           allow_undefined_flag=$lt_save_allow_undefined_flag
12667         else
12668           cat conftest.err 1>&5
12669         fi
12670         $RM conftest*
12671
12672 fi
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12674 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12675       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12676       ;;
12677     esac
12678   fi
12679   ;;
12680 esac
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12835
12836 if test yes = "$GCC"; then
12837   case $host_os in
12838     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12839     *) lt_awk_arg='/^libraries:/' ;;
12840   esac
12841   case $host_os in
12842     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12843     *) lt_sed_strip_eq='s|=/|/|g' ;;
12844   esac
12845   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12846   case $lt_search_path_spec in
12847   *\;*)
12848     # if the path contains ";" then we assume it to be the separator
12849     # otherwise default to the standard path separator (i.e. ":") - it is
12850     # assumed that no part of a normal pathname contains ";" but that should
12851     # okay in the real world where ";" in dirpaths is itself problematic.
12852     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12853     ;;
12854   *)
12855     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12856     ;;
12857   esac
12858   # Ok, now we have the path, separated by spaces, we can step through it
12859   # and add multilib dir if necessary...
12860   lt_tmp_lt_search_path_spec=
12861   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12862   # ...but if some path component already ends with the multilib dir we assume
12863   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12864   case "$lt_multi_os_dir; $lt_search_path_spec " in
12865   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12866     lt_multi_os_dir=
12867     ;;
12868   esac
12869   for lt_sys_path in $lt_search_path_spec; do
12870     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12871       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12872     elif test -n "$lt_multi_os_dir"; then
12873       test -d "$lt_sys_path" && \
12874         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12875     fi
12876   done
12877   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12878 BEGIN {RS = " "; FS = "/|\n";} {
12879   lt_foo = "";
12880   lt_count = 0;
12881   for (lt_i = NF; lt_i > 0; lt_i--) {
12882     if ($lt_i != "" && $lt_i != ".") {
12883       if ($lt_i == "..") {
12884         lt_count++;
12885       } else {
12886         if (lt_count == 0) {
12887           lt_foo = "/" $lt_i lt_foo;
12888         } else {
12889           lt_count--;
12890         }
12891       }
12892     }
12893   }
12894   if (lt_foo != "") { lt_freq[lt_foo]++; }
12895   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12896 }'`
12897   # AWK program above erroneously prepends '/' to C:/dos/paths
12898   # for these hosts.
12899   case $host_os in
12900     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12901       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12902   esac
12903   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12904 else
12905   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12906 fi
12907 library_names_spec=
12908 libname_spec='lib$name'
12909 soname_spec=
12910 shrext_cmds=.so
12911 postinstall_cmds=
12912 postuninstall_cmds=
12913 finish_cmds=
12914 finish_eval=
12915 shlibpath_var=
12916 shlibpath_overrides_runpath=unknown
12917 version_type=none
12918 dynamic_linker="$host_os ld.so"
12919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12920 need_lib_prefix=unknown
12921 hardcode_into_libs=no
12922
12923 # when you set need_version to no, make sure it does not cause -set_version
12924 # flags to be left without arguments
12925 need_version=unknown
12926
12927
12928
12929 case $host_os in
12930 aix3*)
12931   version_type=linux # correct to gnu/linux during the next big refactor
12932   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12933   shlibpath_var=LIBPATH
12934
12935   # AIX 3 has no versioning support, so we append a major version to the name.
12936   soname_spec='$libname$release$shared_ext$major'
12937   ;;
12938
12939 aix[4-9]*)
12940   version_type=linux # correct to gnu/linux during the next big refactor
12941   need_lib_prefix=no
12942   need_version=no
12943   hardcode_into_libs=yes
12944   if test ia64 = "$host_cpu"; then
12945     # AIX 5 supports IA64
12946     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12947     shlibpath_var=LD_LIBRARY_PATH
12948   else
12949     # With GCC up to 2.95.x, collect2 would create an import file
12950     # for dependence libraries.  The import file would start with
12951     # the line '#! .'.  This would cause the generated library to
12952     # depend on '.', always an invalid library.  This was fixed in
12953     # development snapshots of GCC prior to 3.0.
12954     case $host_os in
12955       aix4 | aix4.[01] | aix4.[01].*)
12956       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12957            echo ' yes '
12958            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12959         :
12960       else
12961         can_build_shared=no
12962       fi
12963       ;;
12964     esac
12965     # Using Import Files as archive members, it is possible to support
12966     # filename-based versioning of shared library archives on AIX. While
12967     # this would work for both with and without runtime linking, it will
12968     # prevent static linking of such archives. So we do filename-based
12969     # shared library versioning with .so extension only, which is used
12970     # when both runtime linking and shared linking is enabled.
12971     # Unfortunately, runtime linking may impact performance, so we do
12972     # not want this to be the default eventually. Also, we use the
12973     # versioned .so libs for executables only if there is the -brtl
12974     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12975     # To allow for filename-based versioning support, we need to create
12976     # libNAME.so.V as an archive file, containing:
12977     # *) an Import File, referring to the versioned filename of the
12978     #    archive as well as the shared archive member, telling the
12979     #    bitwidth (32 or 64) of that shared object, and providing the
12980     #    list of exported symbols of that shared object, eventually
12981     #    decorated with the 'weak' keyword
12982     # *) the shared object with the F_LOADONLY flag set, to really avoid
12983     #    it being seen by the linker.
12984     # At run time we better use the real file rather than another symlink,
12985     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12986
12987     case $with_aix_soname,$aix_use_runtimelinking in
12988     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12989     # soname into executable. Probably we can add versioning support to
12990     # collect2, so additional links can be useful in future.
12991     aix,yes) # traditional libtool
12992       dynamic_linker='AIX unversionable lib.so'
12993       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12994       # instead of lib<name>.a to let people know that these are not
12995       # typical AIX shared libraries.
12996       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12997       ;;
12998     aix,no) # traditional AIX only
12999       dynamic_linker='AIX lib.a(lib.so.V)'
13000       # We preserve .a as extension for shared libraries through AIX4.2
13001       # and later when we are not doing run time linking.
13002       library_names_spec='$libname$release.a $libname.a'
13003       soname_spec='$libname$release$shared_ext$major'
13004       ;;
13005     svr4,*) # full svr4 only
13006       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13007       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13008       # We do not specify a path in Import Files, so LIBPATH fires.
13009       shlibpath_overrides_runpath=yes
13010       ;;
13011     *,yes) # both, prefer svr4
13012       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13013       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13014       # unpreferred sharedlib libNAME.a needs extra handling
13015       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13016       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13017       # We do not specify a path in Import Files, so LIBPATH fires.
13018       shlibpath_overrides_runpath=yes
13019       ;;
13020     *,no) # both, prefer aix
13021       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13022       library_names_spec='$libname$release.a $libname.a'
13023       soname_spec='$libname$release$shared_ext$major'
13024       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13025       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13026       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13027       ;;
13028     esac
13029     shlibpath_var=LIBPATH
13030   fi
13031   ;;
13032
13033 amigaos*)
13034   case $host_cpu in
13035   powerpc)
13036     # Since July 2007 AmigaOS4 officially supports .so libraries.
13037     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13038     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13039     ;;
13040   m68k)
13041     library_names_spec='$libname.ixlibrary $libname.a'
13042     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13043     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13044     ;;
13045   esac
13046   ;;
13047
13048 beos*)
13049   library_names_spec='$libname$shared_ext'
13050   dynamic_linker="$host_os ld.so"
13051   shlibpath_var=LIBRARY_PATH
13052   ;;
13053
13054 bsdi[45]*)
13055   version_type=linux # correct to gnu/linux during the next big refactor
13056   need_version=no
13057   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13058   soname_spec='$libname$release$shared_ext$major'
13059   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13060   shlibpath_var=LD_LIBRARY_PATH
13061   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13062   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13063   # the default ld.so.conf also contains /usr/contrib/lib and
13064   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13065   # libtool to hard-code these into programs
13066   ;;
13067
13068 cygwin* | mingw* | pw32* | cegcc*)
13069   version_type=windows
13070   shrext_cmds=.dll
13071   need_version=no
13072   need_lib_prefix=no
13073
13074   case $GCC,$cc_basename in
13075   yes,*)
13076     # gcc
13077     library_names_spec='$libname.dll.a'
13078     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13079     postinstall_cmds='base_file=`basename \$file`~
13080       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13081       dldir=$destdir/`dirname \$dlpath`~
13082       test -d \$dldir || mkdir -p \$dldir~
13083       $install_prog $dir/$dlname \$dldir/$dlname~
13084       chmod a+x \$dldir/$dlname~
13085       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13086         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13087       fi'
13088     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13089       dlpath=$dir/\$dldll~
13090        $RM \$dlpath'
13091     shlibpath_overrides_runpath=yes
13092
13093     case $host_os in
13094     cygwin*)
13095       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13096       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13097
13098       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13099       ;;
13100     mingw* | cegcc*)
13101       # MinGW DLLs use traditional 'lib' prefix
13102       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13103       ;;
13104     pw32*)
13105       # pw32 DLLs use 'pw' prefix rather than 'lib'
13106       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13107       ;;
13108     esac
13109     dynamic_linker='Win32 ld.exe'
13110     ;;
13111
13112   *,cl*)
13113     # Native MSVC
13114     libname_spec='$name'
13115     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13116     library_names_spec='$libname.dll.lib'
13117
13118     case $build_os in
13119     mingw*)
13120       sys_lib_search_path_spec=
13121       lt_save_ifs=$IFS
13122       IFS=';'
13123       for lt_path in $LIB
13124       do
13125         IFS=$lt_save_ifs
13126         # Let DOS variable expansion print the short 8.3 style file name.
13127         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13128         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13129       done
13130       IFS=$lt_save_ifs
13131       # Convert to MSYS style.
13132       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13133       ;;
13134     cygwin*)
13135       # Convert to unix form, then to dos form, then back to unix form
13136       # but this time dos style (no spaces!) so that the unix form looks
13137       # like /cygdrive/c/PROGRA~1:/cygdr...
13138       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13139       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13140       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13141       ;;
13142     *)
13143       sys_lib_search_path_spec=$LIB
13144       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13145         # It is most probably a Windows format PATH.
13146         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13147       else
13148         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13149       fi
13150       # FIXME: find the short name or the path components, as spaces are
13151       # common. (e.g. "Program Files" -> "PROGRA~1")
13152       ;;
13153     esac
13154
13155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13156     postinstall_cmds='base_file=`basename \$file`~
13157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13158       dldir=$destdir/`dirname \$dlpath`~
13159       test -d \$dldir || mkdir -p \$dldir~
13160       $install_prog $dir/$dlname \$dldir/$dlname'
13161     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13162       dlpath=$dir/\$dldll~
13163        $RM \$dlpath'
13164     shlibpath_overrides_runpath=yes
13165     dynamic_linker='Win32 link.exe'
13166     ;;
13167
13168   *)
13169     # Assume MSVC wrapper
13170     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13171     dynamic_linker='Win32 ld.exe'
13172     ;;
13173   esac
13174   # FIXME: first we should search . and the directory the executable is in
13175   shlibpath_var=PATH
13176   ;;
13177
13178 darwin* | rhapsody*)
13179   dynamic_linker="$host_os dyld"
13180   version_type=darwin
13181   need_lib_prefix=no
13182   need_version=no
13183   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13184   soname_spec='$libname$release$major$shared_ext'
13185   shlibpath_overrides_runpath=yes
13186   shlibpath_var=DYLD_LIBRARY_PATH
13187   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13188
13189   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13190   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13191   ;;
13192
13193 dgux*)
13194   version_type=linux # correct to gnu/linux during the next big refactor
13195   need_lib_prefix=no
13196   need_version=no
13197   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198   soname_spec='$libname$release$shared_ext$major'
13199   shlibpath_var=LD_LIBRARY_PATH
13200   ;;
13201
13202 freebsd* | dragonfly*)
13203   # DragonFly does not have aout.  When/if they implement a new
13204   # versioning mechanism, adjust this.
13205   if test -x /usr/bin/objformat; then
13206     objformat=`/usr/bin/objformat`
13207   else
13208     case $host_os in
13209     freebsd[23].*) objformat=aout ;;
13210     *) objformat=elf ;;
13211     esac
13212   fi
13213   version_type=freebsd-$objformat
13214   case $version_type in
13215     freebsd-elf*)
13216       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13217       soname_spec='$libname$release$shared_ext$major'
13218       need_version=no
13219       need_lib_prefix=no
13220       ;;
13221     freebsd-*)
13222       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13223       need_version=yes
13224       ;;
13225   esac
13226   shlibpath_var=LD_LIBRARY_PATH
13227   case $host_os in
13228   freebsd2.*)
13229     shlibpath_overrides_runpath=yes
13230     ;;
13231   freebsd3.[01]* | freebsdelf3.[01]*)
13232     shlibpath_overrides_runpath=yes
13233     hardcode_into_libs=yes
13234     ;;
13235   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13236   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13237     shlibpath_overrides_runpath=no
13238     hardcode_into_libs=yes
13239     ;;
13240   *) # from 4.6 on, and DragonFly
13241     shlibpath_overrides_runpath=yes
13242     hardcode_into_libs=yes
13243     ;;
13244   esac
13245   ;;
13246
13247 haiku*)
13248   version_type=linux # correct to gnu/linux during the next big refactor
13249   need_lib_prefix=no
13250   need_version=no
13251   dynamic_linker="$host_os runtime_loader"
13252   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13253   soname_spec='$libname$release$shared_ext$major'
13254   shlibpath_var=LIBRARY_PATH
13255   shlibpath_overrides_runpath=no
13256   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13257   hardcode_into_libs=yes
13258   ;;
13259
13260 hpux9* | hpux10* | hpux11*)
13261   # Give a soname corresponding to the major version so that dld.sl refuses to
13262   # link against other versions.
13263   version_type=sunos
13264   need_lib_prefix=no
13265   need_version=no
13266   case $host_cpu in
13267   ia64*)
13268     shrext_cmds='.so'
13269     hardcode_into_libs=yes
13270     dynamic_linker="$host_os dld.so"
13271     shlibpath_var=LD_LIBRARY_PATH
13272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13273     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13274     soname_spec='$libname$release$shared_ext$major'
13275     if test 32 = "$HPUX_IA64_MODE"; then
13276       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13277       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13278     else
13279       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13280       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13281     fi
13282     ;;
13283   hppa*64*)
13284     shrext_cmds='.sl'
13285     hardcode_into_libs=yes
13286     dynamic_linker="$host_os dld.sl"
13287     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13288     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13289     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13290     soname_spec='$libname$release$shared_ext$major'
13291     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13293     ;;
13294   *)
13295     shrext_cmds='.sl'
13296     dynamic_linker="$host_os dld.sl"
13297     shlibpath_var=SHLIB_PATH
13298     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13299     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13300     soname_spec='$libname$release$shared_ext$major'
13301     ;;
13302   esac
13303   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13304   postinstall_cmds='chmod 555 $lib'
13305   # or fails outright, so override atomically:
13306   install_override_mode=555
13307   ;;
13308
13309 interix[3-9]*)
13310   version_type=linux # correct to gnu/linux during the next big refactor
13311   need_lib_prefix=no
13312   need_version=no
13313   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13314   soname_spec='$libname$release$shared_ext$major'
13315   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13316   shlibpath_var=LD_LIBRARY_PATH
13317   shlibpath_overrides_runpath=no
13318   hardcode_into_libs=yes
13319   ;;
13320
13321 irix5* | irix6* | nonstopux*)
13322   case $host_os in
13323     nonstopux*) version_type=nonstopux ;;
13324     *)
13325         if test yes = "$lt_cv_prog_gnu_ld"; then
13326                 version_type=linux # correct to gnu/linux during the next big refactor
13327         else
13328                 version_type=irix
13329         fi ;;
13330   esac
13331   need_lib_prefix=no
13332   need_version=no
13333   soname_spec='$libname$release$shared_ext$major'
13334   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13335   case $host_os in
13336   irix5* | nonstopux*)
13337     libsuff= shlibsuff=
13338     ;;
13339   *)
13340     case $LD in # libtool.m4 will add one of these switches to LD
13341     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13342       libsuff= shlibsuff= libmagic=32-bit;;
13343     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13344       libsuff=32 shlibsuff=N32 libmagic=N32;;
13345     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13346       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13347     *) libsuff= shlibsuff= libmagic=never-match;;
13348     esac
13349     ;;
13350   esac
13351   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13352   shlibpath_overrides_runpath=no
13353   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13354   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13355   hardcode_into_libs=yes
13356   ;;
13357
13358 # No shared lib support for Linux oldld, aout, or coff.
13359 linux*oldld* | linux*aout* | linux*coff*)
13360   dynamic_linker=no
13361   ;;
13362
13363 linux*android*)
13364   version_type=none # Android doesn't support versioned libraries.
13365   need_lib_prefix=no
13366   need_version=no
13367   library_names_spec='$libname$release$shared_ext'
13368   soname_spec='$libname$release$shared_ext'
13369   finish_cmds=
13370   shlibpath_var=LD_LIBRARY_PATH
13371   shlibpath_overrides_runpath=yes
13372
13373   # This implies no fast_install, which is unacceptable.
13374   # Some rework will be needed to allow for fast_install
13375   # before this can be enabled.
13376   hardcode_into_libs=yes
13377
13378   dynamic_linker='Android linker'
13379   # Don't embed -rpath directories since the linker doesn't support them.
13380   hardcode_libdir_flag_spec='-L$libdir'
13381   ;;
13382
13383 # This must be glibc/ELF.
13384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13385   version_type=linux # correct to gnu/linux during the next big refactor
13386   need_lib_prefix=no
13387   need_version=no
13388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13389   soname_spec='$libname$release$shared_ext$major'
13390   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13391   shlibpath_var=LD_LIBRARY_PATH
13392   shlibpath_overrides_runpath=no
13393
13394   # Some binutils ld are patched to set DT_RUNPATH
13395   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   lt_cv_shlibpath_overrides_runpath=no
13399     save_LDFLAGS=$LDFLAGS
13400     save_libdir=$libdir
13401     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13402          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13403     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h.  */
13405
13406 int
13407 main ()
13408 {
13409
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13416   lt_cv_shlibpath_overrides_runpath=yes
13417 fi
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext \
13420     conftest$ac_exeext conftest.$ac_ext
13421     LDFLAGS=$save_LDFLAGS
13422     libdir=$save_libdir
13423
13424 fi
13425
13426   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13427
13428   # This implies no fast_install, which is unacceptable.
13429   # Some rework will be needed to allow for fast_install
13430   # before this can be enabled.
13431   hardcode_into_libs=yes
13432
13433   # Add ABI-specific directories to the system library path.
13434   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13435
13436   # Ideally, we could use ldconfig to report *all* directores which are
13437   # searched for libraries, however this is still not possible.  Aside from not
13438   # being certain /sbin/ldconfig is available, command
13439   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13440   # even though it is searched at run-time.  Try to do the best guess by
13441   # appending ld.so.conf contents (and includes) to the search path.
13442   if test -f /etc/ld.so.conf; then
13443     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13444     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13445   fi
13446
13447   # We used to test for /lib/ld.so.1 and disable shared libraries on
13448   # powerpc, because MkLinux only supported shared libraries with the
13449   # GNU dynamic linker.  Since this was broken with cross compilers,
13450   # most powerpc-linux boxes support dynamic linking these days and
13451   # people can always --disable-shared, the test was removed, and we
13452   # assume the GNU/Linux dynamic linker is in use.
13453   dynamic_linker='GNU/Linux ld.so'
13454   ;;
13455
13456 netbsd*)
13457   version_type=sunos
13458   need_lib_prefix=no
13459   need_version=no
13460   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13461     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13462     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463     dynamic_linker='NetBSD (a.out) ld.so'
13464   else
13465     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13466     soname_spec='$libname$release$shared_ext$major'
13467     dynamic_linker='NetBSD ld.elf_so'
13468   fi
13469   shlibpath_var=LD_LIBRARY_PATH
13470   shlibpath_overrides_runpath=yes
13471   hardcode_into_libs=yes
13472   ;;
13473
13474 newsos6)
13475   version_type=linux # correct to gnu/linux during the next big refactor
13476   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13477   shlibpath_var=LD_LIBRARY_PATH
13478   shlibpath_overrides_runpath=yes
13479   ;;
13480
13481 *nto* | *qnx*)
13482   version_type=qnx
13483   need_lib_prefix=no
13484   need_version=no
13485   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13486   soname_spec='$libname$release$shared_ext$major'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   shlibpath_overrides_runpath=no
13489   hardcode_into_libs=yes
13490   dynamic_linker='ldqnx.so'
13491   ;;
13492
13493 openbsd* | bitrig*)
13494   version_type=sunos
13495   sys_lib_dlsearch_path_spec=/usr/lib
13496   need_lib_prefix=no
13497   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13498     need_version=no
13499   else
13500     need_version=yes
13501   fi
13502   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13503   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13504   shlibpath_var=LD_LIBRARY_PATH
13505   shlibpath_overrides_runpath=yes
13506   ;;
13507
13508 os2*)
13509   libname_spec='$name'
13510   version_type=windows
13511   shrext_cmds=.dll
13512   need_version=no
13513   need_lib_prefix=no
13514   # OS/2 can only load a DLL with a base name of 8 characters or less.
13515   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13516     v=$($ECHO $release$versuffix | tr -d .-);
13517     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13518     $ECHO $n$v`$shared_ext'
13519   library_names_spec='${libname}_dll.$libext'
13520   dynamic_linker='OS/2 ld.exe'
13521   shlibpath_var=BEGINLIBPATH
13522   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13523   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13524   postinstall_cmds='base_file=`basename \$file`~
13525     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13526     dldir=$destdir/`dirname \$dlpath`~
13527     test -d \$dldir || mkdir -p \$dldir~
13528     $install_prog $dir/$dlname \$dldir/$dlname~
13529     chmod a+x \$dldir/$dlname~
13530     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13531       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13532     fi'
13533   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13534     dlpath=$dir/\$dldll~
13535     $RM \$dlpath'
13536   ;;
13537
13538 osf3* | osf4* | osf5*)
13539   version_type=osf
13540   need_lib_prefix=no
13541   need_version=no
13542   soname_spec='$libname$release$shared_ext$major'
13543   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13544   shlibpath_var=LD_LIBRARY_PATH
13545   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13546   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13547   ;;
13548
13549 rdos*)
13550   dynamic_linker=no
13551   ;;
13552
13553 solaris*)
13554   version_type=linux # correct to gnu/linux during the next big refactor
13555   need_lib_prefix=no
13556   need_version=no
13557   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13558   soname_spec='$libname$release$shared_ext$major'
13559   shlibpath_var=LD_LIBRARY_PATH
13560   shlibpath_overrides_runpath=yes
13561   hardcode_into_libs=yes
13562   # ldd complains unless libraries are executable
13563   postinstall_cmds='chmod +x $lib'
13564   ;;
13565
13566 sunos4*)
13567   version_type=sunos
13568   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13569   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13570   shlibpath_var=LD_LIBRARY_PATH
13571   shlibpath_overrides_runpath=yes
13572   if test yes = "$with_gnu_ld"; then
13573     need_lib_prefix=no
13574   fi
13575   need_version=yes
13576   ;;
13577
13578 sysv4 | sysv4.3*)
13579   version_type=linux # correct to gnu/linux during the next big refactor
13580   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13581   soname_spec='$libname$release$shared_ext$major'
13582   shlibpath_var=LD_LIBRARY_PATH
13583   case $host_vendor in
13584     sni)
13585       shlibpath_overrides_runpath=no
13586       need_lib_prefix=no
13587       runpath_var=LD_RUN_PATH
13588       ;;
13589     siemens)
13590       need_lib_prefix=no
13591       ;;
13592     motorola)
13593       need_lib_prefix=no
13594       need_version=no
13595       shlibpath_overrides_runpath=no
13596       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13597       ;;
13598   esac
13599   ;;
13600
13601 sysv4*MP*)
13602   if test -d /usr/nec; then
13603     version_type=linux # correct to gnu/linux during the next big refactor
13604     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13605     soname_spec='$libname$shared_ext.$major'
13606     shlibpath_var=LD_LIBRARY_PATH
13607   fi
13608   ;;
13609
13610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13611   version_type=sco
13612   need_lib_prefix=no
13613   need_version=no
13614   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13615   soname_spec='$libname$release$shared_ext$major'
13616   shlibpath_var=LD_LIBRARY_PATH
13617   shlibpath_overrides_runpath=yes
13618   hardcode_into_libs=yes
13619   if test yes = "$with_gnu_ld"; then
13620     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13621   else
13622     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13623     case $host_os in
13624       sco3.2v5*)
13625         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13626         ;;
13627     esac
13628   fi
13629   sys_lib_dlsearch_path_spec='/usr/lib'
13630   ;;
13631
13632 tpf*)
13633   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13634   version_type=linux # correct to gnu/linux during the next big refactor
13635   need_lib_prefix=no
13636   need_version=no
13637   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13638   shlibpath_var=LD_LIBRARY_PATH
13639   shlibpath_overrides_runpath=no
13640   hardcode_into_libs=yes
13641   ;;
13642
13643 uts4*)
13644   version_type=linux # correct to gnu/linux during the next big refactor
13645   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13646   soname_spec='$libname$release$shared_ext$major'
13647   shlibpath_var=LD_LIBRARY_PATH
13648   ;;
13649
13650 *)
13651   dynamic_linker=no
13652   ;;
13653 esac
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13655 $as_echo "$dynamic_linker" >&6; }
13656 test no = "$dynamic_linker" && can_build_shared=no
13657
13658 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13659 if test yes = "$GCC"; then
13660   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13661 fi
13662
13663 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13664   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13665 fi
13666
13667 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13668   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13669 fi
13670
13671 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13672 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13673
13674 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13675 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13676
13677 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13678 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13777 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13778 hardcode_action=
13779 if test -n "$hardcode_libdir_flag_spec" ||
13780    test -n "$runpath_var" ||
13781    test yes = "$hardcode_automatic"; then
13782
13783   # We can hardcode non-existent directories.
13784   if test no != "$hardcode_direct" &&
13785      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13786      # have to relink, otherwise we might link with an installed library
13787      # when we should be linking with a yet-to-be-installed one
13788      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13789      test no != "$hardcode_minus_L"; then
13790     # Linking always hardcodes the temporary library directory.
13791     hardcode_action=relink
13792   else
13793     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13794     hardcode_action=immediate
13795   fi
13796 else
13797   # We cannot hardcode anything, or else we can only hardcode existing
13798   # directories.
13799   hardcode_action=unsupported
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13802 $as_echo "$hardcode_action" >&6; }
13803
13804 if test relink = "$hardcode_action" ||
13805    test yes = "$inherit_rpath"; then
13806   # Fast installation is not supported
13807   enable_fast_install=no
13808 elif test yes = "$shlibpath_overrides_runpath" ||
13809      test no = "$enable_shared"; then
13810   # Fast installation is not necessary
13811   enable_fast_install=needless
13812 fi
13813
13814
13815
13816
13817
13818
13819   if test yes != "$enable_dlopen"; then
13820   enable_dlopen=unknown
13821   enable_dlopen_self=unknown
13822   enable_dlopen_self_static=unknown
13823 else
13824   lt_cv_dlopen=no
13825   lt_cv_dlopen_libs=
13826
13827   case $host_os in
13828   beos*)
13829     lt_cv_dlopen=load_add_on
13830     lt_cv_dlopen_libs=
13831     lt_cv_dlopen_self=yes
13832     ;;
13833
13834   mingw* | pw32* | cegcc*)
13835     lt_cv_dlopen=LoadLibrary
13836     lt_cv_dlopen_libs=
13837     ;;
13838
13839   cygwin*)
13840     lt_cv_dlopen=dlopen
13841     lt_cv_dlopen_libs=
13842     ;;
13843
13844   darwin*)
13845     # if libdl is installed we need to link against it
13846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13847 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13848 if ${ac_cv_lib_dl_dlopen+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   ac_check_lib_save_LIBS=$LIBS
13852 LIBS="-ldl  $LIBS"
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h.  */
13855
13856 /* Override any GCC internal prototype to avoid an error.
13857    Use char because int might match the return type of a GCC
13858    builtin and then its argument prototype would still apply.  */
13859 #ifdef __cplusplus
13860 extern "C"
13861 #endif
13862 char dlopen ();
13863 int
13864 main ()
13865 {
13866 return dlopen ();
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 if ac_fn_c_try_link "$LINENO"; then :
13872   ac_cv_lib_dl_dlopen=yes
13873 else
13874   ac_cv_lib_dl_dlopen=no
13875 fi
13876 rm -f core conftest.err conftest.$ac_objext \
13877     conftest$ac_exeext conftest.$ac_ext
13878 LIBS=$ac_check_lib_save_LIBS
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13881 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13882 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13883   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13884 else
13885
13886     lt_cv_dlopen=dyld
13887     lt_cv_dlopen_libs=
13888     lt_cv_dlopen_self=yes
13889
13890 fi
13891
13892     ;;
13893
13894   tpf*)
13895     # Don't try to run any link tests for TPF.  We know it's impossible
13896     # because TPF is a cross-compiler, and we know how we open DSOs.
13897     lt_cv_dlopen=dlopen
13898     lt_cv_dlopen_libs=
13899     lt_cv_dlopen_self=no
13900     ;;
13901
13902   *)
13903     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13904 if test "x$ac_cv_func_shl_load" = xyes; then :
13905   lt_cv_dlopen=shl_load
13906 else
13907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13909 if ${ac_cv_lib_dld_shl_load+:} false; then :
13910   $as_echo_n "(cached) " >&6
13911 else
13912   ac_check_lib_save_LIBS=$LIBS
13913 LIBS="-ldld  $LIBS"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h.  */
13916
13917 /* Override any GCC internal prototype to avoid an error.
13918    Use char because int might match the return type of a GCC
13919    builtin and then its argument prototype would still apply.  */
13920 #ifdef __cplusplus
13921 extern "C"
13922 #endif
13923 char shl_load ();
13924 int
13925 main ()
13926 {
13927 return shl_load ();
13928   ;
13929   return 0;
13930 }
13931 _ACEOF
13932 if ac_fn_c_try_link "$LINENO"; then :
13933   ac_cv_lib_dld_shl_load=yes
13934 else
13935   ac_cv_lib_dld_shl_load=no
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext \
13938     conftest$ac_exeext conftest.$ac_ext
13939 LIBS=$ac_check_lib_save_LIBS
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13944   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13945 else
13946   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13947 if test "x$ac_cv_func_dlopen" = xyes; then :
13948   lt_cv_dlopen=dlopen
13949 else
13950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13952 if ${ac_cv_lib_dl_dlopen+:} false; then :
13953   $as_echo_n "(cached) " >&6
13954 else
13955   ac_check_lib_save_LIBS=$LIBS
13956 LIBS="-ldl  $LIBS"
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h.  */
13959
13960 /* Override any GCC internal prototype to avoid an error.
13961    Use char because int might match the return type of a GCC
13962    builtin and then its argument prototype would still apply.  */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char dlopen ();
13967 int
13968 main ()
13969 {
13970 return dlopen ();
13971   ;
13972   return 0;
13973 }
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976   ac_cv_lib_dl_dlopen=yes
13977 else
13978   ac_cv_lib_dl_dlopen=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext \
13981     conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13987   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13988 else
13989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13991 if ${ac_cv_lib_svld_dlopen+:} false; then :
13992   $as_echo_n "(cached) " >&6
13993 else
13994   ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lsvld  $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h.  */
13998
13999 /* Override any GCC internal prototype to avoid an error.
14000    Use char because int might match the return type of a GCC
14001    builtin and then its argument prototype would still apply.  */
14002 #ifdef __cplusplus
14003 extern "C"
14004 #endif
14005 char dlopen ();
14006 int
14007 main ()
14008 {
14009 return dlopen ();
14010   ;
14011   return 0;
14012 }
14013 _ACEOF
14014 if ac_fn_c_try_link "$LINENO"; then :
14015   ac_cv_lib_svld_dlopen=yes
14016 else
14017   ac_cv_lib_svld_dlopen=no
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext \
14020     conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14026   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14027 else
14028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14030 if ${ac_cv_lib_dld_dld_link+:} false; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-ldld  $LIBS"
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h.  */
14037
14038 /* Override any GCC internal prototype to avoid an error.
14039    Use char because int might match the return type of a GCC
14040    builtin and then its argument prototype would still apply.  */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 char dld_link ();
14045 int
14046 main ()
14047 {
14048 return dld_link ();
14049   ;
14050   return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054   ac_cv_lib_dld_dld_link=yes
14055 else
14056   ac_cv_lib_dld_dld_link=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059     conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14065   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14066 fi
14067
14068
14069 fi
14070
14071
14072 fi
14073
14074
14075 fi
14076
14077
14078 fi
14079
14080
14081 fi
14082
14083     ;;
14084   esac
14085
14086   if test no = "$lt_cv_dlopen"; then
14087     enable_dlopen=no
14088   else
14089     enable_dlopen=yes
14090   fi
14091
14092   case $lt_cv_dlopen in
14093   dlopen)
14094     save_CPPFLAGS=$CPPFLAGS
14095     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14096
14097     save_LDFLAGS=$LDFLAGS
14098     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14099
14100     save_LIBS=$LIBS
14101     LIBS="$lt_cv_dlopen_libs $LIBS"
14102
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14105 if ${lt_cv_dlopen_self+:} false; then :
14106   $as_echo_n "(cached) " >&6
14107 else
14108           if test yes = "$cross_compiling"; then :
14109   lt_cv_dlopen_self=cross
14110 else
14111   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14112   lt_status=$lt_dlunknown
14113   cat > conftest.$ac_ext <<_LT_EOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116
14117 #if HAVE_DLFCN_H
14118 #include <dlfcn.h>
14119 #endif
14120
14121 #include <stdio.h>
14122
14123 #ifdef RTLD_GLOBAL
14124 #  define LT_DLGLOBAL           RTLD_GLOBAL
14125 #else
14126 #  ifdef DL_GLOBAL
14127 #    define LT_DLGLOBAL         DL_GLOBAL
14128 #  else
14129 #    define LT_DLGLOBAL         0
14130 #  endif
14131 #endif
14132
14133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14134    find out it does not work in some platform. */
14135 #ifndef LT_DLLAZY_OR_NOW
14136 #  ifdef RTLD_LAZY
14137 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14138 #  else
14139 #    ifdef DL_LAZY
14140 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14141 #    else
14142 #      ifdef RTLD_NOW
14143 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14144 #      else
14145 #        ifdef DL_NOW
14146 #          define LT_DLLAZY_OR_NOW      DL_NOW
14147 #        else
14148 #          define LT_DLLAZY_OR_NOW      0
14149 #        endif
14150 #      endif
14151 #    endif
14152 #  endif
14153 #endif
14154
14155 /* When -fvisibility=hidden is used, assume the code has been annotated
14156    correspondingly for the symbols needed.  */
14157 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14158 int fnord () __attribute__((visibility("default")));
14159 #endif
14160
14161 int fnord () { return 42; }
14162 int main ()
14163 {
14164   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14165   int status = $lt_dlunknown;
14166
14167   if (self)
14168     {
14169       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14170       else
14171         {
14172           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14173           else puts (dlerror ());
14174         }
14175       /* dlclose (self); */
14176     }
14177   else
14178     puts (dlerror ());
14179
14180   return status;
14181 }
14182 _LT_EOF
14183   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14184   (eval $ac_link) 2>&5
14185   ac_status=$?
14186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14188     (./conftest; exit; ) >&5 2>/dev/null
14189     lt_status=$?
14190     case x$lt_status in
14191       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14192       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14193       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14194     esac
14195   else :
14196     # compilation failed
14197     lt_cv_dlopen_self=no
14198   fi
14199 fi
14200 rm -fr conftest*
14201
14202
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14205 $as_echo "$lt_cv_dlopen_self" >&6; }
14206
14207     if test yes = "$lt_cv_dlopen_self"; then
14208       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14211 if ${lt_cv_dlopen_self_static+:} false; then :
14212   $as_echo_n "(cached) " >&6
14213 else
14214           if test yes = "$cross_compiling"; then :
14215   lt_cv_dlopen_self_static=cross
14216 else
14217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14218   lt_status=$lt_dlunknown
14219   cat > conftest.$ac_ext <<_LT_EOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14222
14223 #if HAVE_DLFCN_H
14224 #include <dlfcn.h>
14225 #endif
14226
14227 #include <stdio.h>
14228
14229 #ifdef RTLD_GLOBAL
14230 #  define LT_DLGLOBAL           RTLD_GLOBAL
14231 #else
14232 #  ifdef DL_GLOBAL
14233 #    define LT_DLGLOBAL         DL_GLOBAL
14234 #  else
14235 #    define LT_DLGLOBAL         0
14236 #  endif
14237 #endif
14238
14239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14240    find out it does not work in some platform. */
14241 #ifndef LT_DLLAZY_OR_NOW
14242 #  ifdef RTLD_LAZY
14243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14244 #  else
14245 #    ifdef DL_LAZY
14246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14247 #    else
14248 #      ifdef RTLD_NOW
14249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14250 #      else
14251 #        ifdef DL_NOW
14252 #          define LT_DLLAZY_OR_NOW      DL_NOW
14253 #        else
14254 #          define LT_DLLAZY_OR_NOW      0
14255 #        endif
14256 #      endif
14257 #    endif
14258 #  endif
14259 #endif
14260
14261 /* When -fvisibility=hidden is used, assume the code has been annotated
14262    correspondingly for the symbols needed.  */
14263 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14264 int fnord () __attribute__((visibility("default")));
14265 #endif
14266
14267 int fnord () { return 42; }
14268 int main ()
14269 {
14270   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271   int status = $lt_dlunknown;
14272
14273   if (self)
14274     {
14275       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14276       else
14277         {
14278           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14279           else puts (dlerror ());
14280         }
14281       /* dlclose (self); */
14282     }
14283   else
14284     puts (dlerror ());
14285
14286   return status;
14287 }
14288 _LT_EOF
14289   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14290   (eval $ac_link) 2>&5
14291   ac_status=$?
14292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14294     (./conftest; exit; ) >&5 2>/dev/null
14295     lt_status=$?
14296     case x$lt_status in
14297       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14298       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14299       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14300     esac
14301   else :
14302     # compilation failed
14303     lt_cv_dlopen_self_static=no
14304   fi
14305 fi
14306 rm -fr conftest*
14307
14308
14309 fi
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14312     fi
14313
14314     CPPFLAGS=$save_CPPFLAGS
14315     LDFLAGS=$save_LDFLAGS
14316     LIBS=$save_LIBS
14317     ;;
14318   esac
14319
14320   case $lt_cv_dlopen_self in
14321   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14322   *) enable_dlopen_self=unknown ;;
14323   esac
14324
14325   case $lt_cv_dlopen_self_static in
14326   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14327   *) enable_dlopen_self_static=unknown ;;
14328   esac
14329 fi
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347 striplib=
14348 old_striplib=
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14352   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14353   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356 else
14357 # FIXME - insert some real tests, host_os isn't really good enough
14358   case $host_os in
14359   darwin*)
14360     if test -n "$STRIP"; then
14361       striplib="$STRIP -x"
14362       old_striplib="$STRIP -S"
14363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14364 $as_echo "yes" >&6; }
14365     else
14366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14368     fi
14369     ;;
14370   *)
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14373     ;;
14374   esac
14375 fi
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388   # Report what library types will actually be built
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14392 $as_echo "$can_build_shared" >&6; }
14393
14394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14395 $as_echo_n "checking whether to build shared libraries... " >&6; }
14396   test no = "$can_build_shared" && enable_shared=no
14397
14398   # On AIX, shared libraries and static libraries use the same namespace, and
14399   # are all built from PIC.
14400   case $host_os in
14401   aix3*)
14402     test yes = "$enable_shared" && enable_static=no
14403     if test -n "$RANLIB"; then
14404       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14405       postinstall_cmds='$RANLIB $lib'
14406     fi
14407     ;;
14408
14409   aix[4-9]*)
14410     if test ia64 != "$host_cpu"; then
14411       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14412       yes,aix,yes) ;;                   # shared object as lib.so file only
14413       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14414       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14415       esac
14416     fi
14417     ;;
14418   esac
14419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14420 $as_echo "$enable_shared" >&6; }
14421
14422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14423 $as_echo_n "checking whether to build static libraries... " >&6; }
14424   # Make sure either enable_shared or enable_static is yes.
14425   test yes = "$enable_shared" || enable_static=yes
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14427 $as_echo "$enable_static" >&6; }
14428
14429
14430
14431
14432 fi
14433 ac_ext=c
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438
14439 CC=$lt_save_CC
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455         ac_config_commands="$ac_config_commands libtool"
14456
14457
14458
14459
14460 # Only expand once:
14461
14462
14463
14464
14465 # Checks for header files.
14466 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/ipc.h sys/shm.h
14467 do :
14468   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14469 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14470 "
14471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14472   cat >>confdefs.h <<_ACEOF
14473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474 _ACEOF
14475
14476 fi
14477
14478 done
14479
14480
14481 # check for types.
14482 # Using own tests for int64* because autoconf builtin only give 32bit.
14483 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14484 if test "x$ac_cv_type_int8_t" = xyes; then :
14485
14486 else
14487
14488 cat >>confdefs.h <<_ACEOF
14489 #define int8_t signed char
14490 _ACEOF
14491
14492 fi
14493
14494 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14495 if test "x$ac_cv_type_int16_t" = xyes; then :
14496
14497 else
14498
14499 cat >>confdefs.h <<_ACEOF
14500 #define int16_t short
14501 _ACEOF
14502
14503 fi
14504
14505 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14506 if test "x$ac_cv_type_int32_t" = xyes; then :
14507
14508 else
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define int32_t int
14512 _ACEOF
14513
14514 fi
14515
14516 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14517 if test "x$ac_cv_type_int64_t" = xyes; then :
14518
14519 else
14520
14521 cat >>confdefs.h <<_ACEOF
14522 #define int64_t long long
14523 _ACEOF
14524
14525 fi
14526
14527 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14528 if test "x$ac_cv_type_uint8_t" = xyes; then :
14529
14530 else
14531
14532 cat >>confdefs.h <<_ACEOF
14533 #define uint8_t unsigned char
14534 _ACEOF
14535
14536 fi
14537
14538 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14539 if test "x$ac_cv_type_uint16_t" = xyes; then :
14540
14541 else
14542
14543 cat >>confdefs.h <<_ACEOF
14544 #define uint16_t unsigned short
14545 _ACEOF
14546
14547 fi
14548
14549 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14550 if test "x$ac_cv_type_uint32_t" = xyes; then :
14551
14552 else
14553
14554 cat >>confdefs.h <<_ACEOF
14555 #define uint32_t unsigned int
14556 _ACEOF
14557
14558 fi
14559
14560 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14561 if test "x$ac_cv_type_uint64_t" = xyes; then :
14562
14563 else
14564
14565 cat >>confdefs.h <<_ACEOF
14566 #define uint64_t unsigned long long
14567 _ACEOF
14568
14569 fi
14570
14571 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14572 if test "x$ac_cv_type_size_t" = xyes; then :
14573
14574 else
14575
14576 cat >>confdefs.h <<_ACEOF
14577 #define size_t unsigned int
14578 _ACEOF
14579
14580 fi
14581
14582 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14583 if test "x$ac_cv_type_ssize_t" = xyes; then :
14584
14585 else
14586
14587 cat >>confdefs.h <<_ACEOF
14588 #define ssize_t int
14589 _ACEOF
14590
14591 fi
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14594 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14595 if ${ac_cv_type_uid_t+:} false; then :
14596   $as_echo_n "(cached) " >&6
14597 else
14598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h.  */
14600 #include <sys/types.h>
14601
14602 _ACEOF
14603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14604   $EGREP "uid_t" >/dev/null 2>&1; then :
14605   ac_cv_type_uid_t=yes
14606 else
14607   ac_cv_type_uid_t=no
14608 fi
14609 rm -f conftest*
14610
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14613 $as_echo "$ac_cv_type_uid_t" >&6; }
14614 if test $ac_cv_type_uid_t = no; then
14615
14616 $as_echo "#define uid_t int" >>confdefs.h
14617
14618
14619 $as_echo "#define gid_t int" >>confdefs.h
14620
14621 fi
14622
14623 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14624 if test "x$ac_cv_type_pid_t" = xyes; then :
14625
14626 else
14627
14628 cat >>confdefs.h <<_ACEOF
14629 #define pid_t int
14630 _ACEOF
14631
14632 fi
14633
14634 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14635 if test "x$ac_cv_type_off_t" = xyes; then :
14636
14637 else
14638
14639 cat >>confdefs.h <<_ACEOF
14640 #define off_t long int
14641 _ACEOF
14642
14643 fi
14644
14645 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14646 $ac_includes_default
14647 #ifdef HAVE_WINSOCK2_H
14648 #  include <winsock2.h>
14649 #endif
14650
14651 "
14652 if test "x$ac_cv_type_u_char" = xyes; then :
14653
14654 else
14655
14656 $as_echo "#define u_char unsigned char" >>confdefs.h
14657
14658 fi
14659
14660 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14661 $ac_includes_default
14662 #ifdef HAVE_SYS_RESOURCE_H
14663 #  include <sys/resource.h>
14664 #endif
14665
14666 "
14667 if test "x$ac_cv_type_rlim_t" = xyes; then :
14668
14669 else
14670
14671 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14672
14673 fi
14674
14675
14676 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14677 $ac_includes_default
14678 #ifdef HAVE_SYS_SOCKET_H
14679 #  include <sys/socket.h>
14680 #endif
14681 #ifdef HAVE_WS2TCPIP_H
14682 #  include <ws2tcpip.h>
14683 #endif
14684
14685 "
14686 if test "x$ac_cv_type_socklen_t" = xyes; then :
14687
14688 else
14689
14690 $as_echo "#define socklen_t int" >>confdefs.h
14691
14692 fi
14693
14694  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14695 $ac_includes_default
14696 #ifdef HAVE_SYS_TYPES_H
14697 # include <sys/types.h>
14698 #endif
14699 #ifdef HAVE_NETINET_IN_H
14700 # include <netinet/in.h>
14701 #endif
14702
14703 "
14704 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14705
14706 else
14707
14708 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14709
14710 fi
14711
14712  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14713 $ac_includes_default
14714 #ifdef HAVE_SYS_TYPES_H
14715 # include <sys/types.h>
14716 #endif
14717 #ifdef HAVE_NETINET_IN_H
14718 # include <netinet/in.h>
14719 #endif
14720
14721 "
14722 if test "x$ac_cv_type_in_port_t" = xyes; then :
14723
14724 else
14725
14726 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14727
14728 fi
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14731 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14732 if test "$cross_compiling" = yes; then :
14733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14734 $as_echo "cross-compile no" >&6; }
14735
14736 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14737
14738   case " $LIBOBJS " in
14739   *" memcmp.$ac_objext "* ) ;;
14740   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14741  ;;
14742 esac
14743
14744
14745 else
14746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h.  */
14748
14749 #include <stdio.h>
14750 #include <stdlib.h>
14751 #include <string.h>
14752 int main(void)
14753 {
14754         char a = 255, b = 0;
14755         if(memcmp(&a, &b, 1) < 0)
14756                 return 1;
14757         return 0;
14758 }
14759
14760 _ACEOF
14761 if ac_fn_c_try_run "$LINENO"; then :
14762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763 $as_echo "yes" >&6; }
14764 else
14765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 $as_echo "no" >&6; }
14767
14768 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14769
14770   case " $LIBOBJS " in
14771   *" memcmp.$ac_objext "* ) ;;
14772   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14773  ;;
14774 esac
14775
14776
14777 fi
14778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14779   conftest.$ac_objext conftest.beam conftest.$ac_ext
14780 fi
14781
14782
14783 # The cast to long int works around a bug in the HP C Compiler
14784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14786 # This bug is HP SR number 8606223364.
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14788 $as_echo_n "checking size of time_t... " >&6; }
14789 if ${ac_cv_sizeof_time_t+:} false; then :
14790   $as_echo_n "(cached) " >&6
14791 else
14792   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14793 $ac_includes_default
14794 #ifdef TIME_WITH_SYS_TIME
14795 # include <sys/time.h>
14796 # include <time.h>
14797 #else
14798 # ifdef HAVE_SYS_TIME_H
14799 #  include <sys/time.h>
14800 # else
14801 #  include <time.h>
14802 # endif
14803 #endif
14804
14805 "; then :
14806
14807 else
14808   if test "$ac_cv_type_time_t" = yes; then
14809      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14811 as_fn_error 77 "cannot compute sizeof (time_t)
14812 See \`config.log' for more details" "$LINENO" 5; }
14813    else
14814      ac_cv_sizeof_time_t=0
14815    fi
14816 fi
14817
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14820 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14821
14822
14823
14824 cat >>confdefs.h <<_ACEOF
14825 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14826 _ACEOF
14827
14828
14829
14830 # add option to disable the evil rpath
14831
14832 # Check whether --enable-rpath was given.
14833 if test "${enable_rpath+set}" = set; then :
14834   enableval=$enable_rpath; enable_rpath=$enableval
14835 else
14836   enable_rpath=yes
14837 fi
14838
14839 if test "x$enable_rpath" = xno; then
14840                 ac_config_commands="$ac_config_commands disable-rpath"
14841
14842 fi
14843
14844
14845
14846 # check to see if libraries are needed for these functions.
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14848 $as_echo_n "checking for library containing inet_pton... " >&6; }
14849 if ${ac_cv_search_inet_pton+:} false; then :
14850   $as_echo_n "(cached) " >&6
14851 else
14852   ac_func_search_save_LIBS=$LIBS
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h.  */
14855
14856 /* Override any GCC internal prototype to avoid an error.
14857    Use char because int might match the return type of a GCC
14858    builtin and then its argument prototype would still apply.  */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 char inet_pton ();
14863 int
14864 main ()
14865 {
14866 return inet_pton ();
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 for ac_lib in '' nsl; do
14872   if test -z "$ac_lib"; then
14873     ac_res="none required"
14874   else
14875     ac_res=-l$ac_lib
14876     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14877   fi
14878   if ac_fn_c_try_link "$LINENO"; then :
14879   ac_cv_search_inet_pton=$ac_res
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext \
14882     conftest$ac_exeext
14883   if ${ac_cv_search_inet_pton+:} false; then :
14884   break
14885 fi
14886 done
14887 if ${ac_cv_search_inet_pton+:} false; then :
14888
14889 else
14890   ac_cv_search_inet_pton=no
14891 fi
14892 rm conftest.$ac_ext
14893 LIBS=$ac_func_search_save_LIBS
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14896 $as_echo "$ac_cv_search_inet_pton" >&6; }
14897 ac_res=$ac_cv_search_inet_pton
14898 if test "$ac_res" != no; then :
14899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14900
14901 fi
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14904 $as_echo_n "checking for library containing socket... " >&6; }
14905 if ${ac_cv_search_socket+:} false; then :
14906   $as_echo_n "(cached) " >&6
14907 else
14908   ac_func_search_save_LIBS=$LIBS
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h.  */
14911
14912 /* Override any GCC internal prototype to avoid an error.
14913    Use char because int might match the return type of a GCC
14914    builtin and then its argument prototype would still apply.  */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char socket ();
14919 int
14920 main ()
14921 {
14922 return socket ();
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 for ac_lib in '' socket; do
14928   if test -z "$ac_lib"; then
14929     ac_res="none required"
14930   else
14931     ac_res=-l$ac_lib
14932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14933   fi
14934   if ac_fn_c_try_link "$LINENO"; then :
14935   ac_cv_search_socket=$ac_res
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext \
14938     conftest$ac_exeext
14939   if ${ac_cv_search_socket+:} false; then :
14940   break
14941 fi
14942 done
14943 if ${ac_cv_search_socket+:} false; then :
14944
14945 else
14946   ac_cv_search_socket=no
14947 fi
14948 rm conftest.$ac_ext
14949 LIBS=$ac_func_search_save_LIBS
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14952 $as_echo "$ac_cv_search_socket" >&6; }
14953 ac_res=$ac_cv_search_socket
14954 if test "$ac_res" != no; then :
14955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14956
14957 fi
14958
14959
14960 # check wether strptime also works
14961
14962 # check some functions of the OS before linking libs (while still runnable).
14963 for ac_header in unistd.h
14964 do :
14965   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14966 if test "x$ac_cv_header_unistd_h" = xyes; then :
14967   cat >>confdefs.h <<_ACEOF
14968 #define HAVE_UNISTD_H 1
14969 _ACEOF
14970
14971 fi
14972
14973 done
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14976 $as_echo_n "checking for working chown... " >&6; }
14977 if ${ac_cv_func_chown_works+:} false; then :
14978   $as_echo_n "(cached) " >&6
14979 else
14980   if test "$cross_compiling" = yes; then :
14981   ac_cv_func_chown_works=no
14982 else
14983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h.  */
14985 $ac_includes_default
14986 #include <fcntl.h>
14987
14988 int
14989 main ()
14990 {
14991   char *f = "conftest.chown";
14992   struct stat before, after;
14993
14994   if (creat (f, 0600) < 0)
14995     return 1;
14996   if (stat (f, &before) < 0)
14997     return 1;
14998   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14999     return 1;
15000   if (stat (f, &after) < 0)
15001     return 1;
15002   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15003
15004   ;
15005   return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_run "$LINENO"; then :
15009   ac_cv_func_chown_works=yes
15010 else
15011   ac_cv_func_chown_works=no
15012 fi
15013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15014   conftest.$ac_objext conftest.beam conftest.$ac_ext
15015 fi
15016
15017 rm -f conftest.chown
15018
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15021 $as_echo "$ac_cv_func_chown_works" >&6; }
15022 if test $ac_cv_func_chown_works = yes; then
15023
15024 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15025
15026 fi
15027
15028 for ac_header in vfork.h
15029 do :
15030   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15031 if test "x$ac_cv_header_vfork_h" = xyes; then :
15032   cat >>confdefs.h <<_ACEOF
15033 #define HAVE_VFORK_H 1
15034 _ACEOF
15035
15036 fi
15037
15038 done
15039
15040 for ac_func in fork vfork
15041 do :
15042   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15045   cat >>confdefs.h <<_ACEOF
15046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15047 _ACEOF
15048
15049 fi
15050 done
15051
15052 if test "x$ac_cv_func_fork" = xyes; then
15053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15054 $as_echo_n "checking for working fork... " >&6; }
15055 if ${ac_cv_func_fork_works+:} false; then :
15056   $as_echo_n "(cached) " >&6
15057 else
15058   if test "$cross_compiling" = yes; then :
15059   ac_cv_func_fork_works=cross
15060 else
15061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 int
15065 main ()
15066 {
15067
15068           /* By Ruediger Kuhlmann. */
15069           return fork () < 0;
15070
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 if ac_fn_c_try_run "$LINENO"; then :
15076   ac_cv_func_fork_works=yes
15077 else
15078   ac_cv_func_fork_works=no
15079 fi
15080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15081   conftest.$ac_objext conftest.beam conftest.$ac_ext
15082 fi
15083
15084 fi
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15086 $as_echo "$ac_cv_func_fork_works" >&6; }
15087
15088 else
15089   ac_cv_func_fork_works=$ac_cv_func_fork
15090 fi
15091 if test "x$ac_cv_func_fork_works" = xcross; then
15092   case $host in
15093     *-*-amigaos* | *-*-msdosdjgpp*)
15094       # Override, as these systems have only a dummy fork() stub
15095       ac_cv_func_fork_works=no
15096       ;;
15097     *)
15098       ac_cv_func_fork_works=yes
15099       ;;
15100   esac
15101   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15102 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15103 fi
15104 ac_cv_func_vfork_works=$ac_cv_func_vfork
15105 if test "x$ac_cv_func_vfork" = xyes; then
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15107 $as_echo_n "checking for working vfork... " >&6; }
15108 if ${ac_cv_func_vfork_works+:} false; then :
15109   $as_echo_n "(cached) " >&6
15110 else
15111   if test "$cross_compiling" = yes; then :
15112   ac_cv_func_vfork_works=cross
15113 else
15114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h.  */
15116 /* Thanks to Paul Eggert for this test.  */
15117 $ac_includes_default
15118 #include <sys/wait.h>
15119 #ifdef HAVE_VFORK_H
15120 # include <vfork.h>
15121 #endif
15122 /* On some sparc systems, changes by the child to local and incoming
15123    argument registers are propagated back to the parent.  The compiler
15124    is told about this with #include <vfork.h>, but some compilers
15125    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15126    static variable whose address is put into a register that is
15127    clobbered by the vfork.  */
15128 static void
15129 #ifdef __cplusplus
15130 sparc_address_test (int arg)
15131 # else
15132 sparc_address_test (arg) int arg;
15133 #endif
15134 {
15135   static pid_t child;
15136   if (!child) {
15137     child = vfork ();
15138     if (child < 0) {
15139       perror ("vfork");
15140       _exit(2);
15141     }
15142     if (!child) {
15143       arg = getpid();
15144       write(-1, "", 0);
15145       _exit (arg);
15146     }
15147   }
15148 }
15149
15150 int
15151 main ()
15152 {
15153   pid_t parent = getpid ();
15154   pid_t child;
15155
15156   sparc_address_test (0);
15157
15158   child = vfork ();
15159
15160   if (child == 0) {
15161     /* Here is another test for sparc vfork register problems.  This
15162        test uses lots of local variables, at least as many local
15163        variables as main has allocated so far including compiler
15164        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15165        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15166        reuse the register of parent for one of the local variables,
15167        since it will think that parent can't possibly be used any more
15168        in this routine.  Assigning to the local variable will thus
15169        munge parent in the parent process.  */
15170     pid_t
15171       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15172       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15173     /* Convince the compiler that p..p7 are live; otherwise, it might
15174        use the same hardware register for all 8 local variables.  */
15175     if (p != p1 || p != p2 || p != p3 || p != p4
15176         || p != p5 || p != p6 || p != p7)
15177       _exit(1);
15178
15179     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15180        from child file descriptors.  If the child closes a descriptor
15181        before it execs or exits, this munges the parent's descriptor
15182        as well.  Test for this by closing stdout in the child.  */
15183     _exit(close(fileno(stdout)) != 0);
15184   } else {
15185     int status;
15186     struct stat st;
15187
15188     while (wait(&status) != child)
15189       ;
15190     return (
15191          /* Was there some problem with vforking?  */
15192          child < 0
15193
15194          /* Did the child fail?  (This shouldn't happen.)  */
15195          || status
15196
15197          /* Did the vfork/compiler bug occur?  */
15198          || parent != getpid()
15199
15200          /* Did the file descriptor bug occur?  */
15201          || fstat(fileno(stdout), &st) != 0
15202          );
15203   }
15204 }
15205 _ACEOF
15206 if ac_fn_c_try_run "$LINENO"; then :
15207   ac_cv_func_vfork_works=yes
15208 else
15209   ac_cv_func_vfork_works=no
15210 fi
15211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15212   conftest.$ac_objext conftest.beam conftest.$ac_ext
15213 fi
15214
15215 fi
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15217 $as_echo "$ac_cv_func_vfork_works" >&6; }
15218
15219 fi;
15220 if test "x$ac_cv_func_fork_works" = xcross; then
15221   ac_cv_func_vfork_works=$ac_cv_func_vfork
15222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15223 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15224 fi
15225
15226 if test "x$ac_cv_func_vfork_works" = xyes; then
15227
15228 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15229
15230 else
15231
15232 $as_echo "#define vfork fork" >>confdefs.h
15233
15234 fi
15235 if test "x$ac_cv_func_fork_works" = xyes; then
15236
15237 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15238
15239 fi
15240
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15242 $as_echo_n "checking return type of signal handlers... " >&6; }
15243 if ${ac_cv_type_signal+:} false; then :
15244   $as_echo_n "(cached) " >&6
15245 else
15246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h.  */
15248 #include <sys/types.h>
15249 #include <signal.h>
15250
15251 int
15252 main ()
15253 {
15254 return *(signal (0, 0)) (0) == 1;
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 if ac_fn_c_try_compile "$LINENO"; then :
15260   ac_cv_type_signal=int
15261 else
15262   ac_cv_type_signal=void
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 fi
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15267 $as_echo "$ac_cv_type_signal" >&6; }
15268
15269 cat >>confdefs.h <<_ACEOF
15270 #define RETSIGTYPE $ac_cv_type_signal
15271 _ACEOF
15272
15273
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15275 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15276 if ${ac_cv_sys_largefile_source+:} false; then :
15277   $as_echo_n "(cached) " >&6
15278 else
15279   while :; do
15280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h.  */
15282 #include <sys/types.h> /* for off_t */
15283      #include <stdio.h>
15284 int
15285 main ()
15286 {
15287 int (*fp) (FILE *, off_t, int) = fseeko;
15288      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15289   ;
15290   return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"; then :
15294   ac_cv_sys_largefile_source=no; break
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297     conftest$ac_exeext conftest.$ac_ext
15298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h.  */
15300 #define _LARGEFILE_SOURCE 1
15301 #include <sys/types.h> /* for off_t */
15302      #include <stdio.h>
15303 int
15304 main ()
15305 {
15306 int (*fp) (FILE *, off_t, int) = fseeko;
15307      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313   ac_cv_sys_largefile_source=1; break
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext \
15316     conftest$ac_exeext conftest.$ac_ext
15317   ac_cv_sys_largefile_source=unknown
15318   break
15319 done
15320 fi
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15322 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15323 case $ac_cv_sys_largefile_source in #(
15324   no | unknown) ;;
15325   *)
15326 cat >>confdefs.h <<_ACEOF
15327 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15328 _ACEOF
15329 ;;
15330 esac
15331 rm -rf conftest*
15332
15333 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15334 # in glibc 2.1.3, but that breaks too many other things.
15335 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15336 if test $ac_cv_sys_largefile_source != unknown; then
15337
15338 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15339
15340 fi
15341
15342
15343 # Check whether --enable-largefile was given.
15344 if test "${enable_largefile+set}" = set; then :
15345   enableval=$enable_largefile;
15346 fi
15347
15348 if test "$enable_largefile" != no; then
15349
15350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15351 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15352 if ${ac_cv_sys_largefile_CC+:} false; then :
15353   $as_echo_n "(cached) " >&6
15354 else
15355   ac_cv_sys_largefile_CC=no
15356      if test "$GCC" != yes; then
15357        ac_save_CC=$CC
15358        while :; do
15359          # IRIX 6.2 and later do not support large files by default,
15360          # so use the C compiler's -n32 option if that helps.
15361          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363 #include <sys/types.h>
15364  /* Check that off_t can represent 2**63 - 1 correctly.
15365     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15366     since some C++ compilers masquerading as C compilers
15367     incorrectly reject 9223372036854775807.  */
15368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15369   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15370                        && LARGE_OFF_T % 2147483647 == 1)
15371                       ? 1 : -1];
15372 int
15373 main ()
15374 {
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380          if ac_fn_c_try_compile "$LINENO"; then :
15381   break
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext
15384          CC="$CC -n32"
15385          if ac_fn_c_try_compile "$LINENO"; then :
15386   ac_cv_sys_largefile_CC=' -n32'; break
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext
15389          break
15390        done
15391        CC=$ac_save_CC
15392        rm -f conftest.$ac_ext
15393     fi
15394 fi
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15396 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15397   if test "$ac_cv_sys_largefile_CC" != no; then
15398     CC=$CC$ac_cv_sys_largefile_CC
15399   fi
15400
15401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15402 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15403 if ${ac_cv_sys_file_offset_bits+:} false; then :
15404   $as_echo_n "(cached) " >&6
15405 else
15406   while :; do
15407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h.  */
15409 #include <sys/types.h>
15410  /* Check that off_t can represent 2**63 - 1 correctly.
15411     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15412     since some C++ compilers masquerading as C compilers
15413     incorrectly reject 9223372036854775807.  */
15414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15415   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15416                        && LARGE_OFF_T % 2147483647 == 1)
15417                       ? 1 : -1];
15418 int
15419 main ()
15420 {
15421
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_c_try_compile "$LINENO"; then :
15427   ac_cv_sys_file_offset_bits=no; break
15428 fi
15429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h.  */
15432 #define _FILE_OFFSET_BITS 64
15433 #include <sys/types.h>
15434  /* Check that off_t can represent 2**63 - 1 correctly.
15435     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15436     since some C++ compilers masquerading as C compilers
15437     incorrectly reject 9223372036854775807.  */
15438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15439   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15440                        && LARGE_OFF_T % 2147483647 == 1)
15441                       ? 1 : -1];
15442 int
15443 main ()
15444 {
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 if ac_fn_c_try_compile "$LINENO"; then :
15451   ac_cv_sys_file_offset_bits=64; break
15452 fi
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454   ac_cv_sys_file_offset_bits=unknown
15455   break
15456 done
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15459 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15460 case $ac_cv_sys_file_offset_bits in #(
15461   no | unknown) ;;
15462   *)
15463 cat >>confdefs.h <<_ACEOF
15464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15465 _ACEOF
15466 ;;
15467 esac
15468 rm -rf conftest*
15469   if test $ac_cv_sys_file_offset_bits = unknown; then
15470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15471 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15472 if ${ac_cv_sys_large_files+:} false; then :
15473   $as_echo_n "(cached) " >&6
15474 else
15475   while :; do
15476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h.  */
15478 #include <sys/types.h>
15479  /* Check that off_t can represent 2**63 - 1 correctly.
15480     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15481     since some C++ compilers masquerading as C compilers
15482     incorrectly reject 9223372036854775807.  */
15483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15484   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15485                        && LARGE_OFF_T % 2147483647 == 1)
15486                       ? 1 : -1];
15487 int
15488 main ()
15489 {
15490
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 if ac_fn_c_try_compile "$LINENO"; then :
15496   ac_cv_sys_large_files=no; break
15497 fi
15498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h.  */
15501 #define _LARGE_FILES 1
15502 #include <sys/types.h>
15503  /* Check that off_t can represent 2**63 - 1 correctly.
15504     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15505     since some C++ compilers masquerading as C compilers
15506     incorrectly reject 9223372036854775807.  */
15507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15508   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15509                        && LARGE_OFF_T % 2147483647 == 1)
15510                       ? 1 : -1];
15511 int
15512 main ()
15513 {
15514
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 if ac_fn_c_try_compile "$LINENO"; then :
15520   ac_cv_sys_large_files=1; break
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523   ac_cv_sys_large_files=unknown
15524   break
15525 done
15526 fi
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15528 $as_echo "$ac_cv_sys_large_files" >&6; }
15529 case $ac_cv_sys_large_files in #(
15530   no | unknown) ;;
15531   *)
15532 cat >>confdefs.h <<_ACEOF
15533 #define _LARGE_FILES $ac_cv_sys_large_files
15534 _ACEOF
15535 ;;
15536 esac
15537 rm -rf conftest*
15538   fi
15539
15540
15541 fi
15542
15543
15544
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15547 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15548 cache=_D_LARGEFILE_SOURCE_1
15549 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15550   $as_echo_n "(cached) " >&6
15551 else
15552
15553 echo '
15554 #include <stdio.h>
15555 int test() {
15556         int a = fseeko(stdin, 0, 0);
15557         return a;
15558 }
15559 ' > conftest.c
15560 echo 'void f(){}' >>conftest.c
15561 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15562 eval "cv_prog_cc_flag_needed_$cache=no"
15563 else
15564
15565 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15566 eval "cv_prog_cc_flag_needed_$cache=yes"
15567 else
15568 eval "cv_prog_cc_flag_needed_$cache=fail"
15569 #echo 'Test with flag fails too!'
15570 #cat conftest.c
15571 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15572 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15573 #exit 1
15574 fi
15575
15576 fi
15577 rm -f conftest conftest.c conftest.o
15578
15579 fi
15580
15581 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15583 $as_echo "yes" >&6; }
15584 :
15585 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15586 else
15587 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15590 #echo 'Test with flag is no!'
15591 #cat conftest.c
15592 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15593 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15594 #exit 1
15595 :
15596
15597 else
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15599 $as_echo "failed" >&6; }
15600 :
15601
15602 fi
15603 fi
15604
15605
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15608 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15609 if echo $target | grep mingw32 >/dev/null; then
15610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15611 $as_echo "no (windows)" >&6; }
15612
15613 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15614
15615 else
15616 if test "$cross_compiling" = yes; then :
15617
15618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15619 $as_echo "crosscompile(yes)" >&6; }
15620
15621 else
15622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h.  */
15624
15625
15626 #include <stdio.h>
15627 #include <string.h>
15628 #include <stdlib.h>
15629 #include <fcntl.h>
15630 #include <errno.h>
15631 #ifdef HAVE_SYS_TYPES_H
15632 #include <sys/types.h>
15633 #endif
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15636 #endif
15637 #ifdef HAVE_NETINET_IN_H
15638 #include <netinet/in.h>
15639 #endif
15640 #ifdef HAVE_ARPA_INET_H
15641 #include <arpa/inet.h>
15642 #endif
15643 #ifdef HAVE_UNISTD_H
15644 #include <unistd.h>
15645 #endif
15646 #ifdef HAVE_TIME_H
15647 #include <time.h>
15648 #endif
15649
15650 int main(void)
15651 {
15652         int port;
15653         int sfd, cfd;
15654         int num = 10;
15655         int i, p;
15656         struct sockaddr_in a;
15657         /* test if select and nonblocking reads work well together */
15658         /* open port.
15659            fork child to send 10 messages.
15660            select to read.
15661            then try to nonblocking read the 10 messages
15662            then, nonblocking read must give EAGAIN
15663         */
15664
15665         port = 12345 + (time(0)%32);
15666         sfd = socket(PF_INET, SOCK_DGRAM, 0);
15667         if(sfd == -1) {
15668                 perror("socket");
15669                 return 1;
15670         }
15671         memset(&a, 0, sizeof(a));
15672         a.sin_family = AF_INET;
15673         a.sin_port = htons(port);
15674         a.sin_addr.s_addr = inet_addr("127.0.0.1");
15675         if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15676                 perror("bind");
15677                 return 1;
15678         }
15679         if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15680                 perror("fcntl");
15681                 return 1;
15682         }
15683
15684         cfd = socket(PF_INET, SOCK_DGRAM, 0);
15685         if(cfd == -1) {
15686                 perror("client socket");
15687                 return 1;
15688         }
15689         a.sin_port = 0;
15690         if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15691                 perror("client bind");
15692                 return 1;
15693         }
15694         a.sin_port = htons(port);
15695
15696         /* no handler, causes exit in 10 seconds */
15697         alarm(10);
15698
15699         /* send and receive on the socket */
15700         if((p=fork()) == 0) {
15701                 for(i=0; i<num; i++) {
15702                         if(sendto(cfd, &i, sizeof(i), 0,
15703                                 (struct sockaddr*)&a, sizeof(a)) < 0) {
15704                                 perror("sendto");
15705                                 return 1;
15706                         }
15707                 }
15708         } else {
15709                 /* parent */
15710                 fd_set rset;
15711                 int x;
15712                 if(p == -1) {
15713                         perror("fork");
15714                         return 1;
15715                 }
15716                 FD_ZERO(&rset);
15717                 FD_SET(sfd, &rset);
15718                 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15719                         perror("select");
15720                         return 1;
15721                 }
15722                 i = 0;
15723                 while(i < num) {
15724                         if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15725                                 if(errno == EAGAIN)
15726                                         continue;
15727                                 perror("recv");
15728                                 return 1;
15729                         }
15730                         i++;
15731                 }
15732                 /* now we want to get EAGAIN: nonblocking goodness */
15733                 errno = 0;
15734                 recv(sfd, &x, sizeof(x), 0);
15735                 if(errno != EAGAIN) {
15736                         perror("trying to recv again");
15737                         return 1;
15738                 }
15739                 /* EAGAIN encountered */
15740         }
15741
15742         close(sfd);
15743         close(cfd);
15744         return 0;
15745 }
15746
15747 _ACEOF
15748 if ac_fn_c_try_run "$LINENO"; then :
15749
15750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15751 $as_echo "yes" >&6; }
15752
15753 else
15754
15755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15757
15758 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15759
15760
15761 fi
15762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15763   conftest.$ac_objext conftest.beam conftest.$ac_ext
15764 fi
15765
15766 fi
15767
15768
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15770 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h.  */
15773
15774 #include <stdio.h>
15775 #include <unistd.h>
15776 #ifdef HAVE_WINSOCK2_H
15777 #include <winsock2.h>
15778 #endif
15779 #ifdef HAVE_SYS_STAT_H
15780 #include <sys/stat.h>
15781 #endif
15782
15783 int
15784 main ()
15785 {
15786
15787         (void)mkdir("directory");
15788
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 if ac_fn_c_try_compile "$LINENO"; then :
15794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15795 $as_echo "yes" >&6; }
15796
15797 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15798
15799
15800 else
15801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802 $as_echo "no" >&6; }
15803
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806
15807 for ac_func in strptime
15808 do :
15809   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15810 if test "x$ac_cv_func_strptime" = xyes; then :
15811   cat >>confdefs.h <<_ACEOF
15812 #define HAVE_STRPTIME 1
15813 _ACEOF
15814
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15816 $as_echo_n "checking whether strptime works... " >&6; }
15817 if test c${cross_compiling} = cno; then
15818 if test "$cross_compiling" = yes; then :
15819   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15821 as_fn_error $? "cannot run test program while cross compiling
15822 See \`config.log' for more details" "$LINENO" 5; }
15823 else
15824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h.  */
15826
15827 #define _XOPEN_SOURCE 600
15828 #include <time.h>
15829 int main(void) { struct tm tm; char *res;
15830 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
15831 if (!res) return 2;
15832 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15833 if (!res) return 1; return 0; }
15834
15835 _ACEOF
15836 if ac_fn_c_try_run "$LINENO"; then :
15837   eval "ac_cv_c_strptime_works=yes"
15838 else
15839   eval "ac_cv_c_strptime_works=no"
15840 fi
15841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15842   conftest.$ac_objext conftest.beam conftest.$ac_ext
15843 fi
15844
15845 else
15846 eval "ac_cv_c_strptime_works=maybe"
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15849 $as_echo "$ac_cv_c_strptime_works" >&6; }
15850 if test $ac_cv_c_strptime_works = no; then
15851 case " $LIBOBJS " in
15852   *" strptime.$ac_objext "* ) ;;
15853   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15854  ;;
15855 esac
15856
15857 else
15858
15859 cat >>confdefs.h <<_ACEOF
15860 #define STRPTIME_WORKS 1
15861 _ACEOF
15862
15863 fi
15864
15865 else
15866   case " $LIBOBJS " in
15867   *" strptime.$ac_objext "* ) ;;
15868   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15869  ;;
15870 esac
15871
15872 fi
15873 done
15874
15875
15876 # set memory allocation checking if requested
15877 # Check whether --enable-alloc-checks was given.
15878 if test "${enable_alloc_checks+set}" = set; then :
15879   enableval=$enable_alloc_checks;
15880 fi
15881
15882 # Check whether --enable-alloc-lite was given.
15883 if test "${enable_alloc_lite+set}" = set; then :
15884   enableval=$enable_alloc_lite;
15885 fi
15886
15887 # Check whether --enable-alloc-nonregional was given.
15888 if test "${enable_alloc_nonregional+set}" = set; then :
15889   enableval=$enable_alloc_nonregional;
15890 fi
15891
15892 if test x_$enable_alloc_nonregional = x_yes; then
15893
15894 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15895
15896 fi
15897 if test x_$enable_alloc_checks = x_yes; then
15898
15899 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15900
15901 else
15902         if test x_$enable_alloc_lite = x_yes; then
15903
15904 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15905
15906         else
15907
15908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15909 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15910         if test "$cross_compiling" = yes; then :
15911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15912 $as_echo "no (crosscompile)" >&6; }
15913         case " $LIBOBJS " in
15914   *" malloc.$ac_objext "* ) ;;
15915   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15916  ;;
15917 esac
15918
15919
15920 cat >>confdefs.h <<_ACEOF
15921 #define malloc rpl_malloc_unbound
15922 _ACEOF
15923
15924 else
15925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h.  */
15927 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15928 #include <stdlib.h>
15929 #else
15930 char *malloc ();
15931 #endif
15932
15933 int
15934 main ()
15935 {
15936  if(malloc(0) != 0) return 1;
15937   ;
15938   return 0;
15939 }
15940
15941 _ACEOF
15942 if ac_fn_c_try_run "$LINENO"; then :
15943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15945         case " $LIBOBJS " in
15946   *" malloc.$ac_objext "* ) ;;
15947   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15948  ;;
15949 esac
15950
15951
15952 cat >>confdefs.h <<_ACEOF
15953 #define malloc rpl_malloc_unbound
15954 _ACEOF
15955
15956 else
15957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15959
15960 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15961
15962 fi
15963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15964   conftest.$ac_objext conftest.beam conftest.$ac_ext
15965 fi
15966
15967
15968         fi
15969 fi
15970
15971 # check windows threads (we use them, not pthreads, on windows).
15972 if test "$on_mingw" = "yes"; then
15973 # check windows threads
15974         for ac_header in windows.h
15975 do :
15976   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15977 "
15978 if test "x$ac_cv_header_windows_h" = xyes; then :
15979   cat >>confdefs.h <<_ACEOF
15980 #define HAVE_WINDOWS_H 1
15981 _ACEOF
15982
15983 fi
15984
15985 done
15986
15987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15988 $as_echo_n "checking for CreateThread... " >&6; }
15989         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991
15992 #ifdef HAVE_WINDOWS_H
15993 #include <windows.h>
15994 #endif
15995
15996 int
15997 main ()
15998 {
15999
16000         HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16001
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 if ac_fn_c_try_compile "$LINENO"; then :
16007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16009
16010 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16011
16012
16013 else
16014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016
16017 fi
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019
16020 else
16021 # not on mingw, check thread libraries.
16022
16023 # check for thread library.
16024 # check this first, so that the pthread lib does not get linked in via
16025 # libssl or libpython, and thus distorts the tests, and we end up using
16026 # the non-threadsafe C libraries.
16027
16028 # Check whether --with-pthreads was given.
16029 if test "${with_pthreads+set}" = set; then :
16030   withval=$with_pthreads;
16031 else
16032    withval="yes"
16033 fi
16034
16035 ub_have_pthreads=no
16036 if test x_$withval != x_no; then
16037
16038
16039 ac_ext=c
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16044
16045 ax_pthread_ok=no
16046
16047 # We used to check for pthread.h first, but this fails if pthread.h
16048 # requires special compiler flags (e.g. on True64 or Sequent).
16049 # It gets checked for in the link test anyway.
16050
16051 # First of all, check if the user has set any of the PTHREAD_LIBS,
16052 # etcetera environment variables, and if threads linking works using
16053 # them:
16054 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16055         save_CFLAGS="$CFLAGS"
16056         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16057         save_LIBS="$LIBS"
16058         LIBS="$PTHREAD_LIBS $LIBS"
16059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16060 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16061         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h.  */
16063
16064 /* Override any GCC internal prototype to avoid an error.
16065    Use char because int might match the return type of a GCC
16066    builtin and then its argument prototype would still apply.  */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 char pthread_join ();
16071 int
16072 main ()
16073 {
16074 return pthread_join ();
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_link "$LINENO"; then :
16080   ax_pthread_ok=yes
16081 fi
16082 rm -f core conftest.err conftest.$ac_objext \
16083     conftest$ac_exeext conftest.$ac_ext
16084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16085 $as_echo "$ax_pthread_ok" >&6; }
16086         if test x"$ax_pthread_ok" = xno; then
16087                 PTHREAD_LIBS=""
16088                 PTHREAD_CFLAGS=""
16089         fi
16090         LIBS="$save_LIBS"
16091         CFLAGS="$save_CFLAGS"
16092 fi
16093
16094 # We must check for the threads library under a number of different
16095 # names; the ordering is very important because some systems
16096 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16097 # libraries is broken (non-POSIX).
16098
16099 # Create a list of thread flags to try.  Items starting with a "-" are
16100 # C compiler flags, and other items are library names, except for "none"
16101 # which indicates that we try without any flags at all, and "pthread-config"
16102 # which is a program returning the flags for the Pth emulation library.
16103
16104 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16105
16106 # The ordering *is* (sometimes) important.  Some notes on the
16107 # individual items follow:
16108
16109 # pthreads: AIX (must check this before -lpthread)
16110 # none: in case threads are in libc; should be tried before -Kthread and
16111 #       other compiler flags to prevent continual compiler warnings
16112 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16113 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16114 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16115 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16116 # -pthreads: Solaris/gcc
16117 # -mthreads: Mingw32/gcc, Lynx/gcc
16118 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16119 #      doesn't hurt to check since this sometimes defines pthreads too;
16120 #      also defines -D_REENTRANT)
16121 #      ... -mt is also the pthreads flag for HP/aCC
16122 # pthread: Linux, etcetera
16123 # --thread-safe: KAI C++
16124 # pthread-config: use pthread-config program (for GNU Pth library)
16125
16126 case ${host_os} in
16127         solaris*)
16128
16129         # On Solaris (at least, for some versions), libc contains stubbed
16130         # (non-functional) versions of the pthreads routines, so link-based
16131         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16132         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16133         # a function called by this macro, so we could check for that, but
16134         # who knows whether they'll stub that too in a future libc.)  So,
16135         # we'll just look for -pthreads and -lpthread first:
16136
16137         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16138         ;;
16139
16140         darwin*)
16141         ax_pthread_flags="-pthread $ax_pthread_flags"
16142         ;;
16143 esac
16144
16145 # Clang doesn't consider unrecognized options an error unless we specify
16146 # -Werror. We throw in some extra Clang-specific options to ensure that
16147 # this doesn't happen for GCC, which also accepts -Werror.
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16150 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16151 save_CFLAGS="$CFLAGS"
16152 ax_pthread_extra_flags="-Werror"
16153 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h.  */
16156 int foo(void);
16157 int
16158 main ()
16159 {
16160 foo()
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 if ac_fn_c_try_compile "$LINENO"; then :
16166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16167 $as_echo "yes" >&6; }
16168 else
16169   ax_pthread_extra_flags=
16170                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171 $as_echo "no" >&6; }
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 CFLAGS="$save_CFLAGS"
16175
16176 if test x"$ax_pthread_ok" = xno; then
16177 for flag in $ax_pthread_flags; do
16178
16179         case $flag in
16180                 none)
16181                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16182 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16183                 ;;
16184
16185                 -*)
16186                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16187 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16188                 PTHREAD_CFLAGS="$flag"
16189                 ;;
16190
16191                 pthread-config)
16192                 # Extract the first word of "pthread-config", so it can be a program name with args.
16193 set dummy pthread-config; ac_word=$2
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16195 $as_echo_n "checking for $ac_word... " >&6; }
16196 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16197   $as_echo_n "(cached) " >&6
16198 else
16199   if test -n "$ax_pthread_config"; then
16200   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16201 else
16202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16203 for as_dir in $PATH
16204 do
16205   IFS=$as_save_IFS
16206   test -z "$as_dir" && as_dir=.
16207     for ac_exec_ext in '' $ac_executable_extensions; do
16208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16209     ac_cv_prog_ax_pthread_config="yes"
16210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16211     break 2
16212   fi
16213 done
16214   done
16215 IFS=$as_save_IFS
16216
16217   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16218 fi
16219 fi
16220 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16221 if test -n "$ax_pthread_config"; then
16222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16223 $as_echo "$ax_pthread_config" >&6; }
16224 else
16225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226 $as_echo "no" >&6; }
16227 fi
16228
16229
16230                 if test x"$ax_pthread_config" = xno; then continue; fi
16231                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16232                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16233                 ;;
16234
16235                 *)
16236                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16237 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16238                 PTHREAD_LIBS="-l$flag"
16239                 ;;
16240         esac
16241
16242         save_LIBS="$LIBS"
16243         save_CFLAGS="$CFLAGS"
16244         LIBS="$PTHREAD_LIBS $LIBS"
16245         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16246
16247         # Check for various functions.  We must include pthread.h,
16248         # since some functions may be macros.  (On the Sequent, we
16249         # need a special flag -Kthread to make this header compile.)
16250         # We check for pthread_join because it is in -lpthread on IRIX
16251         # while pthread_create is in libc.  We check for pthread_attr_init
16252         # due to DEC craziness with -lpthreads.  We check for
16253         # pthread_cleanup_push because it is one of the few pthread
16254         # functions on Solaris that doesn't have a non-functional libc stub.
16255         # We try pthread_create on general principles.
16256         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h.  */
16258 #include <pthread.h>
16259                         static void routine(void *a) { *((int*)a) = 0; }
16260                         static void *start_routine(void *a) { return a; }
16261 int
16262 main ()
16263 {
16264 pthread_t th; pthread_attr_t attr;
16265                         pthread_create(&th, 0, start_routine, 0);
16266                         pthread_join(th, 0);
16267                         pthread_attr_init(&attr);
16268                         pthread_cleanup_push(routine, 0);
16269                         pthread_cleanup_pop(0) /* ; */
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 if ac_fn_c_try_link "$LINENO"; then :
16275   ax_pthread_ok=yes
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext \
16278     conftest$ac_exeext conftest.$ac_ext
16279
16280         LIBS="$save_LIBS"
16281         CFLAGS="$save_CFLAGS"
16282
16283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16284 $as_echo "$ax_pthread_ok" >&6; }
16285         if test "x$ax_pthread_ok" = xyes; then
16286                 break;
16287         fi
16288
16289         PTHREAD_LIBS=""
16290         PTHREAD_CFLAGS=""
16291 done
16292 fi
16293
16294 # Various other checks:
16295 if test "x$ax_pthread_ok" = xyes; then
16296         save_LIBS="$LIBS"
16297         LIBS="$PTHREAD_LIBS $LIBS"
16298         save_CFLAGS="$CFLAGS"
16299         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16300
16301         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16303 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16304         attr_name=unknown
16305         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16306             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h.  */
16308 #include <pthread.h>
16309 int
16310 main ()
16311 {
16312 int attr = $attr; return attr /* ; */
16313   ;
16314   return 0;
16315 }
16316 _ACEOF
16317 if ac_fn_c_try_link "$LINENO"; then :
16318   attr_name=$attr; break
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext \
16321     conftest$ac_exeext conftest.$ac_ext
16322         done
16323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16324 $as_echo "$attr_name" >&6; }
16325         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16326
16327 cat >>confdefs.h <<_ACEOF
16328 #define PTHREAD_CREATE_JOINABLE $attr_name
16329 _ACEOF
16330
16331         fi
16332
16333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16334 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16335         flag=no
16336         case ${host_os} in
16337             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16338             osf* | hpux*) flag="-D_REENTRANT";;
16339             solaris*)
16340             if test "$GCC" = "yes"; then
16341                 flag="-D_REENTRANT"
16342             else
16343                 # TODO: What about Clang on Solaris?
16344                 flag="-mt -D_REENTRANT"
16345             fi
16346             ;;
16347         esac
16348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16349 $as_echo "$flag" >&6; }
16350         if test "x$flag" != xno; then
16351             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16352         fi
16353
16354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16355 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16356 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16357   $as_echo_n "(cached) " >&6
16358 else
16359
16360                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h.  */
16362 #include <pthread.h>
16363 int
16364 main ()
16365 {
16366 int i = PTHREAD_PRIO_INHERIT;
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 if ac_fn_c_try_link "$LINENO"; then :
16372   ax_cv_PTHREAD_PRIO_INHERIT=yes
16373 else
16374   ax_cv_PTHREAD_PRIO_INHERIT=no
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext \
16377     conftest$ac_exeext conftest.$ac_ext
16378
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16381 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16382         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16383
16384 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16385
16386 fi
16387
16388         LIBS="$save_LIBS"
16389         CFLAGS="$save_CFLAGS"
16390
16391         # More AIX lossage: compile with *_r variant
16392         if test "x$GCC" != xyes; then
16393             case $host_os in
16394                 aix*)
16395                 case "x/$CC" in #(
16396   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16397     #handle absolute path differently from PATH based program lookup
16398                    case "x$CC" in #(
16399   x/*) :
16400     if as_fn_executable_p ${CC}_r; then :
16401   PTHREAD_CC="${CC}_r"
16402 fi ;; #(
16403   *) :
16404     for ac_prog in ${CC}_r
16405 do
16406   # Extract the first word of "$ac_prog", so it can be a program name with args.
16407 set dummy $ac_prog; ac_word=$2
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409 $as_echo_n "checking for $ac_word... " >&6; }
16410 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16411   $as_echo_n "(cached) " >&6
16412 else
16413   if test -n "$PTHREAD_CC"; then
16414   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16415 else
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH
16418 do
16419   IFS=$as_save_IFS
16420   test -z "$as_dir" && as_dir=.
16421     for ac_exec_ext in '' $ac_executable_extensions; do
16422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423     ac_cv_prog_PTHREAD_CC="$ac_prog"
16424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16425     break 2
16426   fi
16427 done
16428   done
16429 IFS=$as_save_IFS
16430
16431 fi
16432 fi
16433 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16434 if test -n "$PTHREAD_CC"; then
16435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16436 $as_echo "$PTHREAD_CC" >&6; }
16437 else
16438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16440 fi
16441
16442
16443   test -n "$PTHREAD_CC" && break
16444 done
16445 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16446  ;;
16447 esac ;; #(
16448   *) :
16449      ;;
16450 esac
16451                 ;;
16452             esac
16453         fi
16454 fi
16455
16456 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16457
16458
16459
16460
16461
16462 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16463 if test x"$ax_pthread_ok" = xyes; then
16464
16465
16466 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16467
16468                 if test -n "$PTHREAD_LIBS"; then
16469                   LIBS="$PTHREAD_LIBS $LIBS"
16470                 fi
16471                 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16472                 CC="$PTHREAD_CC"
16473                 ub_have_pthreads=yes
16474                 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16475 "
16476 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16477
16478 cat >>confdefs.h <<_ACEOF
16479 #define HAVE_PTHREAD_SPINLOCK_T 1
16480 _ACEOF
16481
16482
16483 fi
16484 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16485 "
16486 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16487
16488 cat >>confdefs.h <<_ACEOF
16489 #define HAVE_PTHREAD_RWLOCK_T 1
16490 _ACEOF
16491
16492
16493 fi
16494
16495
16496                 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16497                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16498 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16499                 # catch clang warning 'argument unused during compilation'
16500                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h.  */
16502 $ac_includes_default
16503
16504 int main(void) {return 0;}
16505
16506 _ACEOF
16507                 pthread_unused="yes"
16508                 # first compile
16509                 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16510                 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16511                 if test $? = 0; then
16512                         # then link
16513                         echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16514                         $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16515                         if test $? -ne 0; then
16516                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16517 $as_echo "yes" >&6; }
16518                                 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16519                                 PTHREAD_CFLAGS_ONLY="-pthread"
16520
16521                         else
16522                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16524                         fi
16525                 else
16526                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16528                 fi # endif cc successful
16529                 rm -f conftest conftest.c conftest.o
16530                 fi # endif -pthread in CFLAGS
16531
16532
16533         :
16534 else
16535         ax_pthread_ok=no
16536
16537 fi
16538 ac_ext=c
16539 ac_cpp='$CPP $CPPFLAGS'
16540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16543
16544
16545 fi
16546
16547 # check solaris thread library
16548
16549 # Check whether --with-solaris-threads was given.
16550 if test "${with_solaris_threads+set}" = set; then :
16551   withval=$with_solaris_threads;
16552 else
16553    withval="no"
16554 fi
16555
16556 ub_have_sol_threads=no
16557 if test x_$withval != x_no; then
16558         if test x_$ub_have_pthreads != x_no; then
16559             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16560 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16561         else
16562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16563 $as_echo_n "checking for library containing thr_create... " >&6; }
16564 if ${ac_cv_search_thr_create+:} false; then :
16565   $as_echo_n "(cached) " >&6
16566 else
16567   ac_func_search_save_LIBS=$LIBS
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h.  */
16570
16571 /* Override any GCC internal prototype to avoid an error.
16572    Use char because int might match the return type of a GCC
16573    builtin and then its argument prototype would still apply.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 #endif
16577 char thr_create ();
16578 int
16579 main ()
16580 {
16581 return thr_create ();
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 for ac_lib in '' thread; do
16587   if test -z "$ac_lib"; then
16588     ac_res="none required"
16589   else
16590     ac_res=-l$ac_lib
16591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16592   fi
16593   if ac_fn_c_try_link "$LINENO"; then :
16594   ac_cv_search_thr_create=$ac_res
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext \
16597     conftest$ac_exeext
16598   if ${ac_cv_search_thr_create+:} false; then :
16599   break
16600 fi
16601 done
16602 if ${ac_cv_search_thr_create+:} false; then :
16603
16604 else
16605   ac_cv_search_thr_create=no
16606 fi
16607 rm conftest.$ac_ext
16608 LIBS=$ac_func_search_save_LIBS
16609 fi
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16611 $as_echo "$ac_cv_search_thr_create" >&6; }
16612 ac_res=$ac_cv_search_thr_create
16613 if test "$ac_res" != no; then :
16614   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16615
16616
16617 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16618
16619
16620
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16623 $as_echo_n "checking whether $CC supports -mt... " >&6; }
16624 cache=`echo mt | sed 'y%.=/+-%___p_%'`
16625 if eval \${cv_prog_cc_flag_$cache+:} false; then :
16626   $as_echo_n "(cached) " >&6
16627 else
16628
16629 echo 'void f(void){}' >conftest.c
16630 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16631 eval "cv_prog_cc_flag_$cache=yes"
16632 else
16633 eval "cv_prog_cc_flag_$cache=no"
16634 fi
16635 rm -f conftest conftest.o conftest.c
16636
16637 fi
16638
16639 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16641 $as_echo "yes" >&6; }
16642 :
16643 CFLAGS="$CFLAGS -mt"
16644 else
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16646 $as_echo "no" >&6; }
16647 :
16648 CFLAGS="$CFLAGS -D_REENTRANT"
16649 fi
16650
16651                 ub_have_sol_threads=yes
16652
16653 else
16654
16655                 as_fn_error $? "no solaris threads found." "$LINENO" 5
16656
16657 fi
16658
16659         fi
16660 fi
16661
16662 fi # end of non-mingw check of thread libraries
16663
16664 # Check for PyUnbound
16665
16666 # Check whether --with-pyunbound was given.
16667 if test "${with_pyunbound+set}" = set; then :
16668   withval=$with_pyunbound;
16669 else
16670    withval="no"
16671 fi
16672
16673
16674 ub_test_python=no
16675 ub_with_pyunbound=no
16676 if test x_$withval != x_no; then
16677    ub_with_pyunbound=yes
16678    ub_test_python=yes
16679 fi
16680
16681 # Check for Python module
16682
16683 # Check whether --with-pythonmodule was given.
16684 if test "${with_pythonmodule+set}" = set; then :
16685   withval=$with_pythonmodule;
16686 else
16687    withval="no"
16688 fi
16689
16690
16691 ub_with_pythonmod=no
16692 if test x_$withval != x_no; then
16693    ub_with_pythonmod=yes
16694    ub_test_python=yes
16695 fi
16696
16697 # Check for Python & SWIG only on PyUnbound or PyModule
16698 if test x_$ub_test_python != x_no; then
16699
16700    # Check for Python
16701    ub_have_python=no
16702    ac_save_LIBS="$LIBS"
16703         #
16704         # Allow the use of a (user set) custom python version
16705         #
16706
16707
16708         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16709 set dummy python$PYTHON_VERSION; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16711 $as_echo_n "checking for $ac_word... " >&6; }
16712 if ${ac_cv_path_PYTHON+:} false; then :
16713   $as_echo_n "(cached) " >&6
16714 else
16715   case $PYTHON in
16716   [\\/]* | ?:[\\/]*)
16717   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16718   ;;
16719   *)
16720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16722 do
16723   IFS=$as_save_IFS
16724   test -z "$as_dir" && as_dir=.
16725     for ac_exec_ext in '' $ac_executable_extensions; do
16726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729     break 2
16730   fi
16731 done
16732   done
16733 IFS=$as_save_IFS
16734
16735   ;;
16736 esac
16737 fi
16738 PYTHON=$ac_cv_path_PYTHON
16739 if test -n "$PYTHON"; then
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16741 $as_echo "$PYTHON" >&6; }
16742 else
16743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16745 fi
16746
16747
16748         if test -z "$PYTHON"; then
16749            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16750            PYTHON_VERSION=""
16751         fi
16752
16753         if test -z "$PYTHON_VERSION"; then
16754                 PYTHON_VERSION=`$PYTHON -c "import sys; \
16755                         print(sys.version.split()[0])"`
16756         fi
16757
16758         #
16759         # Check if you have distutils, else fail
16760         #
16761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16762 $as_echo_n "checking for the distutils Python package... " >&6; }
16763         if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
16764                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16765 $as_echo "yes" >&6; }
16766         else
16767                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16769                 as_fn_error $? "cannot import Python module \"distutils\".
16770 Please check your Python installation. The error was:
16771 $ac_distutils_result" "$LINENO" 5
16772                 PYTHON_VERSION=""
16773         fi
16774
16775         #
16776         # Check for Python include path
16777         #
16778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16779 $as_echo_n "checking for Python include path... " >&6; }
16780         if test -z "$PYTHON_CPPFLAGS"; then
16781                 python_path=`$PYTHON -c "import distutils.sysconfig; \
16782                         print(distutils.sysconfig.get_python_inc());"`
16783                 if test -n "${python_path}"; then
16784                         python_path="-I$python_path"
16785                 fi
16786                 PYTHON_CPPFLAGS=$python_path
16787         fi
16788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16789 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16790
16791
16792         #
16793         # Check for Python library path
16794         #
16795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16796 $as_echo_n "checking for Python library path... " >&6; }
16797         if test -z "$PYTHON_LDFLAGS"; then
16798                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16799                         print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
16800         fi
16801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16802 $as_echo "$PYTHON_LDFLAGS" >&6; }
16803
16804
16805         #
16806         # Check for site packages
16807         #
16808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16809 $as_echo_n "checking for Python site-packages path... " >&6; }
16810         if test -z "$PYTHON_SITE_PKG"; then
16811                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16812                         print(distutils.sysconfig.get_python_lib(1,0));"`
16813         fi
16814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16815 $as_echo "$PYTHON_SITE_PKG" >&6; }
16816
16817
16818         #
16819         # final check to see if everything compiles alright
16820         #
16821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16822 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16823         ac_ext=c
16824 ac_cpp='$CPP $CPPFLAGS'
16825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16828
16829         # save current global flags
16830         ac_save_LIBS="$LIBS"
16831         ac_save_CPPFLAGS="$CPPFLAGS"
16832
16833         LIBS="$LIBS $PYTHON_LDFLAGS"
16834         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16835         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h.  */
16837
16838                 #include <Python.h>
16839
16840 int
16841 main ()
16842 {
16843
16844                 Py_Initialize();
16845
16846   ;
16847   return 0;
16848 }
16849 _ACEOF
16850 if ac_fn_c_try_link "$LINENO"; then :
16851   pythonexists=yes
16852 else
16853   pythonexists=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext \
16856     conftest$ac_exeext conftest.$ac_ext
16857
16858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16859 $as_echo "$pythonexists" >&6; }
16860
16861         if test ! "$pythonexists" = "yes"; then
16862            as_fn_error $? "
16863   Could not link test program to Python. Maybe the main Python library has been
16864   installed in some non-standard library path. If so, pass it to configure,
16865   via the LDFLAGS environment variable.
16866   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16867   ============================================================================
16868    ERROR!
16869    You probably have to install the development version of the Python package
16870    for your distribution.  The exact name of this package varies among them.
16871   ============================================================================
16872            " "$LINENO" 5
16873           PYTHON_VERSION=""
16874         fi
16875         ac_ext=c
16876 ac_cpp='$CPP $CPPFLAGS'
16877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16880
16881         # turn back to default flags
16882         CPPFLAGS="$ac_save_CPPFLAGS"
16883         LIBS="$ac_save_LIBS"
16884
16885         #
16886         # all done!
16887         #
16888
16889    if test ! -z "$PYTHON_VERSION"; then
16890         if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16891                 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16892         fi
16893
16894       PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16895
16896       # Have Python
16897
16898 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16899
16900       if test -n "$LIBS"; then
16901         LIBS="$PYTHON_LDFLAGS $LIBS"
16902       else
16903         LIBS="$PYTHON_LDFLAGS"
16904       fi
16905       if test -n "$CPPFLAGS"; then
16906         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16907       else
16908         CPPFLAGS="$PYTHON_CPPFLAGS"
16909       fi
16910       ub_have_python=yes
16911       PC_PY_DEPENDENCY="python"
16912
16913
16914       # Check for SWIG
16915       ub_have_swig=no
16916
16917         # Extract the first word of "swig", so it can be a program name with args.
16918 set dummy swig; ac_word=$2
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16920 $as_echo_n "checking for $ac_word... " >&6; }
16921 if ${ac_cv_path_SWIG+:} false; then :
16922   $as_echo_n "(cached) " >&6
16923 else
16924   case $SWIG in
16925   [\\/]* | ?:[\\/]*)
16926   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16927   ;;
16928   *)
16929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH
16931 do
16932   IFS=$as_save_IFS
16933   test -z "$as_dir" && as_dir=.
16934     for ac_exec_ext in '' $ac_executable_extensions; do
16935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16938     break 2
16939   fi
16940 done
16941   done
16942 IFS=$as_save_IFS
16943
16944   ;;
16945 esac
16946 fi
16947 SWIG=$ac_cv_path_SWIG
16948 if test -n "$SWIG"; then
16949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16950 $as_echo "$SWIG" >&6; }
16951 else
16952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16954 fi
16955
16956
16957         if test -z "$SWIG" ; then
16958                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16959 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16960                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16961         elif test -n "2.0.1" ; then
16962                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16963 $as_echo_n "checking for SWIG version... " >&6; }
16964                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
16965                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16966 $as_echo "$swig_version" >&6; }
16967                 if test -n "$swig_version" ; then
16968                         # Calculate the required version number components
16969                         required=2.0.1
16970                         required_major=`echo $required | sed 's/[^0-9].*//'`
16971                         if test -z "$required_major" ; then
16972                                 required_major=0
16973                         fi
16974                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16975                         required_minor=`echo $required | sed 's/[^0-9].*//'`
16976                         if test -z "$required_minor" ; then
16977                                 required_minor=0
16978                         fi
16979                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16980                         required_patch=`echo $required | sed 's/[^0-9].*//'`
16981                         if test -z "$required_patch" ; then
16982                                 required_patch=0
16983                         fi
16984                         # Calculate the available version number components
16985                         available=$swig_version
16986                         available_major=`echo $available | sed 's/[^0-9].*//'`
16987                         if test -z "$available_major" ; then
16988                                 available_major=0
16989                         fi
16990                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16991                         available_minor=`echo $available | sed 's/[^0-9].*//'`
16992                         if test -z "$available_minor" ; then
16993                                 available_minor=0
16994                         fi
16995                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16996                         available_patch=`echo $available | sed 's/[^0-9].*//'`
16997                         if test -z "$available_patch" ; then
16998                                 available_patch=0
16999                         fi
17000                         badversion=0
17001                         if test $available_major -lt $required_major ; then
17002                                 badversion=1
17003                         fi
17004                         if test $available_major -eq $required_major \
17005                                 -a $available_minor -lt $required_minor ; then
17006                                 badversion=1
17007                         fi
17008                         if test $available_major -eq $required_major \
17009                                 -a $available_minor -eq $required_minor \
17010                                 -a $available_patch -lt $required_patch ; then
17011                                 badversion=1
17012                         fi
17013                         if test $badversion -eq 1 ; then
17014                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
17015 $as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17016                                 SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17017                         else
17018                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17019 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17020                                 SWIG_LIB=`$SWIG -swiglib`
17021                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17022 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17023                         fi
17024                 else
17025                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17026 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17027                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17028                 fi
17029         fi
17030
17031
17032       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17033 $as_echo_n "checking SWIG... " >&6; }
17034       if test ! -x "$SWIG"; then
17035          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17036       else
17037
17038 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17039
17040          swig="$SWIG"
17041
17042          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17043 $as_echo "present" >&6; }
17044
17045          # If have Python & SWIG
17046          # Declare PythonMod
17047          if test x_$ub_with_pythonmod != x_no; then
17048
17049 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17050
17051             WITH_PYTHONMODULE=yes
17052
17053             PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17054
17055             PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17056
17057             PYTHONMOD_INSTALL=pythonmod-install
17058
17059             PYTHONMOD_UNINSTALL=pythonmod-uninstall
17060
17061          fi
17062
17063          # Declare PyUnbound
17064          if test x_$ub_with_pyunbound != x_no; then
17065
17066 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17067
17068             WITH_PYUNBOUND=yes
17069
17070             PYUNBOUND_OBJ="libunbound_wrap.lo"
17071
17072             PYUNBOUND_TARGET="_unbound.la"
17073
17074             PYUNBOUND_INSTALL=pyunbound-install
17075
17076             PYUNBOUND_UNINSTALL=pyunbound-uninstall
17077
17078          fi
17079       fi
17080    else
17081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17082 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17083       ub_with_pyunbound=no
17084       ub_with_pythonmod=no
17085    fi
17086 fi
17087
17088 if test "`uname`" = "NetBSD"; then
17089         NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17090
17091 fi
17092 CONFIG_DATE=`date +%Y%m%d`
17093
17094
17095 # Checks for libraries.
17096
17097 # libnss
17098 USE_NSS="no"
17099
17100 # Check whether --with-nss was given.
17101 if test "${with_nss+set}" = set; then :
17102   withval=$with_nss;
17103         USE_NSS="yes"
17104
17105 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17106
17107         if test "$withval" != "" -a "$withval" != "yes"; then
17108                 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17109                 LDFLAGS="$LDFLAGS -L$withval/lib"
17110
17111         if test "x$enable_rpath" = xyes; then
17112                 if echo "$withval/lib" | grep "^/" >/dev/null; then
17113                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17114                 fi
17115         fi
17116
17117                 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17118         else
17119                 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17120                 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17121         fi
17122         LIBS="$LIBS -lnss3 -lnspr4"
17123         SSLLIB=""
17124
17125
17126 fi
17127
17128
17129 # libnettle
17130 USE_NETTLE="no"
17131
17132 # Check whether --with-nettle was given.
17133 if test "${with_nettle+set}" = set; then :
17134   withval=$with_nettle;
17135         USE_NETTLE="yes"
17136
17137 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17138
17139         for ac_header in nettle/dsa-compat.h
17140 do :
17141   ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17142 "
17143 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17144   cat >>confdefs.h <<_ACEOF
17145 #define HAVE_NETTLE_DSA_COMPAT_H 1
17146 _ACEOF
17147
17148 fi
17149
17150 done
17151
17152         if test "$withval" != "" -a "$withval" != "yes"; then
17153                 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17154                 LDFLAGS="$LDFLAGS -L$withval/lib"
17155
17156         if test "x$enable_rpath" = xyes; then
17157                 if echo "$withval/lib" | grep "^/" >/dev/null; then
17158                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17159                 fi
17160         fi
17161
17162         else
17163                 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17164         fi
17165         LIBS="$LIBS -lhogweed -lnettle -lgmp"
17166         SSLLIB=""
17167
17168
17169 fi
17170
17171
17172 # openssl
17173 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17174
17175
17176 # Check whether --with-ssl was given.
17177 if test "${with_ssl+set}" = set; then :
17178   withval=$with_ssl;
17179
17180 else
17181
17182             withval="yes"
17183
17184 fi
17185
17186     if test x_$withval = x_no; then
17187         as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17188     fi
17189
17190     withval=$withval
17191     if test x_$withval != x_no; then
17192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17193 $as_echo_n "checking for SSL... " >&6; }
17194         if test x_$withval = x_ -o x_$withval = x_yes; then
17195             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17196         fi
17197         for dir in $withval; do
17198             ssldir="$dir"
17199             if test -f "$dir/include/openssl/ssl.h"; then
17200                 found_ssl="yes"
17201
17202 cat >>confdefs.h <<_ACEOF
17203 #define HAVE_SSL /**/
17204 _ACEOF
17205
17206                                 if test "$ssldir" != "/usr"; then
17207                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17208                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17209                 fi
17210                 break;
17211             fi
17212         done
17213         if test x_$found_ssl != x_yes; then
17214             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17215         else
17216             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17217 $as_echo "found in $ssldir" >&6; }
17218             HAVE_SSL=yes
17219                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17220                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17221                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17222
17223         if test "x$enable_rpath" = xyes; then
17224                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17225                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17226                 fi
17227         fi
17228
17229             fi
17230
17231             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17232 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17233             LIBS="$LIBS -lcrypto"
17234             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17235             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h.  */
17237
17238 int
17239 main ()
17240 {
17241
17242                 int HMAC_Update(void);
17243                 (void)HMAC_Update();
17244
17245   ;
17246   return 0;
17247 }
17248 _ACEOF
17249 if ac_fn_c_try_link "$LINENO"; then :
17250
17251                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17253
17254 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17255
17256
17257 else
17258
17259                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260 $as_echo "no" >&6; }
17261                 # check if -lwsock32 or -lgdi32 are needed.
17262                 BAKLIBS="$LIBS"
17263                 BAKSSLLIBS="$LIBSSL_LIBS"
17264                 LIBS="$LIBS -lgdi32 -lws2_32"
17265                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17266                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17267 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17268                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h.  */
17270
17271 int
17272 main ()
17273 {
17274
17275                     int HMAC_Update(void);
17276                     (void)HMAC_Update();
17277
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283
17284
17285 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17286
17287                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288 $as_echo "yes" >&6; }
17289
17290 else
17291
17292                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17293 $as_echo "no" >&6; }
17294                     LIBS="$BAKLIBS"
17295                     LIBSSL_LIBS="$BAKSSLLIBS"
17296                     LIBS="$LIBS -ldl"
17297                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17298                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17299 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17300                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h.  */
17302
17303 int
17304 main ()
17305 {
17306
17307                         int HMAC_Update(void);
17308                         (void)HMAC_Update();
17309
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 if ac_fn_c_try_link "$LINENO"; then :
17315
17316
17317 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17318
17319                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 $as_echo "yes" >&6; }
17321
17322 else
17323
17324                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17326                         LIBS="$BAKLIBS"
17327                         LIBSSL_LIBS="$BAKSSLLIBS"
17328                         LIBS="$LIBS -ldl -pthread"
17329                         LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17330                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17331 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17332                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h.  */
17334
17335 int
17336 main ()
17337 {
17338
17339                             int HMAC_Update(void);
17340                             (void)HMAC_Update();
17341
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"; then :
17347
17348
17349 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17350
17351                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17352 $as_echo "yes" >&6; }
17353
17354 else
17355
17356                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357 $as_echo "no" >&6; }
17358                             as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17359
17360 fi
17361 rm -f core conftest.err conftest.$ac_objext \
17362     conftest$ac_exeext conftest.$ac_ext
17363
17364 fi
17365 rm -f core conftest.err conftest.$ac_objext \
17366     conftest$ac_exeext conftest.$ac_ext
17367
17368 fi
17369 rm -f core conftest.err conftest.$ac_objext \
17370     conftest$ac_exeext conftest.$ac_ext
17371
17372 fi
17373 rm -f core conftest.err conftest.$ac_objext \
17374     conftest$ac_exeext conftest.$ac_ext
17375         fi
17376
17377
17378     fi
17379 for ac_header in openssl/ssl.h
17380 do :
17381   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17382 "
17383 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17384   cat >>confdefs.h <<_ACEOF
17385 #define HAVE_OPENSSL_SSL_H 1
17386 _ACEOF
17387
17388 fi
17389
17390 done
17391
17392 for ac_header in openssl/err.h
17393 do :
17394   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17395 "
17396 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17397   cat >>confdefs.h <<_ACEOF
17398 #define HAVE_OPENSSL_ERR_H 1
17399 _ACEOF
17400
17401 fi
17402
17403 done
17404
17405 for ac_header in openssl/rand.h
17406 do :
17407   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17408 "
17409 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17410   cat >>confdefs.h <<_ACEOF
17411 #define HAVE_OPENSSL_RAND_H 1
17412 _ACEOF
17413
17414 fi
17415
17416 done
17417
17418
17419
17420
17421 # check if libssl needs libdl
17422 BAKLIBS="$LIBS"
17423 LIBS="-lssl $LIBS"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17425 $as_echo_n "checking if libssl needs libdl... " >&6; }
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h.  */
17428
17429 /* Override any GCC internal prototype to avoid an error.
17430    Use char because int might match the return type of a GCC
17431    builtin and then its argument prototype would still apply.  */
17432 #ifdef __cplusplus
17433 extern "C"
17434 #endif
17435 char SSL_CTX_new ();
17436 int
17437 main ()
17438 {
17439 return SSL_CTX_new ();
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 if ac_fn_c_try_link "$LINENO"; then :
17445
17446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17448         LIBS="$BAKLIBS"
17449
17450 else
17451
17452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17453 $as_echo "yes" >&6; }
17454         LIBS="$BAKLIBS"
17455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17456 $as_echo_n "checking for library containing dlopen... " >&6; }
17457 if ${ac_cv_search_dlopen+:} false; then :
17458   $as_echo_n "(cached) " >&6
17459 else
17460   ac_func_search_save_LIBS=$LIBS
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h.  */
17463
17464 /* Override any GCC internal prototype to avoid an error.
17465    Use char because int might match the return type of a GCC
17466    builtin and then its argument prototype would still apply.  */
17467 #ifdef __cplusplus
17468 extern "C"
17469 #endif
17470 char dlopen ();
17471 int
17472 main ()
17473 {
17474 return dlopen ();
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 for ac_lib in '' dl; do
17480   if test -z "$ac_lib"; then
17481     ac_res="none required"
17482   else
17483     ac_res=-l$ac_lib
17484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17485   fi
17486   if ac_fn_c_try_link "$LINENO"; then :
17487   ac_cv_search_dlopen=$ac_res
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext \
17490     conftest$ac_exeext
17491   if ${ac_cv_search_dlopen+:} false; then :
17492   break
17493 fi
17494 done
17495 if ${ac_cv_search_dlopen+:} false; then :
17496
17497 else
17498   ac_cv_search_dlopen=no
17499 fi
17500 rm conftest.$ac_ext
17501 LIBS=$ac_func_search_save_LIBS
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17504 $as_echo "$ac_cv_search_dlopen" >&6; }
17505 ac_res=$ac_cv_search_dlopen
17506 if test "$ac_res" != no; then :
17507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17508
17509 fi
17510
17511
17512 fi
17513 rm -f core conftest.err conftest.$ac_objext \
17514     conftest$ac_exeext conftest.$ac_ext
17515 SSLLIB="-lssl"
17516
17517 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17518 BAKLIBS="$LIBS"
17519 LIBS="-lssl $LIBS"
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17521 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h.  */
17524
17525 /* Override any GCC internal prototype to avoid an error.
17526    Use char because int might match the return type of a GCC
17527    builtin and then its argument prototype would still apply.  */
17528 #ifdef __cplusplus
17529 extern "C"
17530 #endif
17531 char HMAC_Update ();
17532 int
17533 main ()
17534 {
17535 return HMAC_Update ();
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 if ac_fn_c_try_link "$LINENO"; then :
17541
17542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543 $as_echo "no" >&6; }
17544         LIBS="$BAKLIBS"
17545
17546 else
17547
17548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17549 $as_echo "yes" >&6; }
17550         LIBS="$BAKLIBS"
17551         LIBS="$LIBS -lcrypt32"
17552
17553 fi
17554 rm -f core conftest.err conftest.$ac_objext \
17555     conftest$ac_exeext conftest.$ac_ext
17556
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17558 $as_echo_n "checking for LibreSSL... " >&6; }
17559 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17561 $as_echo "yes" >&6; }
17562
17563 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17564
17565         # libressl provides these compat functions, but they may also be
17566         # declared by the OS in libc.  See if they have been declared.
17567         ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17568 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17569   ac_have_decl=1
17570 else
17571   ac_have_decl=0
17572 fi
17573
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_DECL_STRLCPY $ac_have_decl
17576 _ACEOF
17577 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17578 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17579   ac_have_decl=1
17580 else
17581   ac_have_decl=0
17582 fi
17583
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_DECL_STRLCAT $ac_have_decl
17586 _ACEOF
17587 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17588 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17589   ac_have_decl=1
17590 else
17591   ac_have_decl=0
17592 fi
17593
17594 cat >>confdefs.h <<_ACEOF
17595 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
17596 _ACEOF
17597 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17598 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17599   ac_have_decl=1
17600 else
17601   ac_have_decl=0
17602 fi
17603
17604 cat >>confdefs.h <<_ACEOF
17605 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17606 _ACEOF
17607 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17608 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17609   ac_have_decl=1
17610 else
17611   ac_have_decl=0
17612 fi
17613
17614 cat >>confdefs.h <<_ACEOF
17615 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
17616 _ACEOF
17617
17618 else
17619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17621 fi
17622 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17623 do :
17624   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17626 "
17627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17628   cat >>confdefs.h <<_ACEOF
17629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17630 _ACEOF
17631
17632 fi
17633
17634 done
17635
17636 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify
17637 do :
17638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17641   cat >>confdefs.h <<_ACEOF
17642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17643 _ACEOF
17644
17645 fi
17646 done
17647
17648
17649 # these check_funcs need -lssl
17650 BAKLIBS="$LIBS"
17651 LIBS="-lssl $LIBS"
17652 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level
17653 do :
17654   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17656 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17657   cat >>confdefs.h <<_ACEOF
17658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17659 _ACEOF
17660
17661 fi
17662 done
17663
17664 LIBS="$BAKLIBS"
17665
17666 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17667 $ac_includes_default
17668 #ifdef HAVE_OPENSSL_ERR_H
17669 #include <openssl/err.h>
17670 #endif
17671
17672 #ifdef HAVE_OPENSSL_RAND_H
17673 #include <openssl/rand.h>
17674 #endif
17675
17676 #ifdef HAVE_OPENSSL_CONF_H
17677 #include <openssl/conf.h>
17678 #endif
17679
17680 #ifdef HAVE_OPENSSL_ENGINE_H
17681 #include <openssl/engine.h>
17682 #endif
17683 #include <openssl/ssl.h>
17684 #include <openssl/evp.h>
17685
17686 "
17687 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17688   ac_have_decl=1
17689 else
17690   ac_have_decl=0
17691 fi
17692
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17695 _ACEOF
17696 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17697 $ac_includes_default
17698 #ifdef HAVE_OPENSSL_ERR_H
17699 #include <openssl/err.h>
17700 #endif
17701
17702 #ifdef HAVE_OPENSSL_RAND_H
17703 #include <openssl/rand.h>
17704 #endif
17705
17706 #ifdef HAVE_OPENSSL_CONF_H
17707 #include <openssl/conf.h>
17708 #endif
17709
17710 #ifdef HAVE_OPENSSL_ENGINE_H
17711 #include <openssl/engine.h>
17712 #endif
17713 #include <openssl/ssl.h>
17714 #include <openssl/evp.h>
17715
17716 "
17717 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17718   ac_have_decl=1
17719 else
17720   ac_have_decl=0
17721 fi
17722
17723 cat >>confdefs.h <<_ACEOF
17724 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17725 _ACEOF
17726 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17727 $ac_includes_default
17728 #ifdef HAVE_OPENSSL_ERR_H
17729 #include <openssl/err.h>
17730 #endif
17731
17732 #ifdef HAVE_OPENSSL_RAND_H
17733 #include <openssl/rand.h>
17734 #endif
17735
17736 #ifdef HAVE_OPENSSL_CONF_H
17737 #include <openssl/conf.h>
17738 #endif
17739
17740 #ifdef HAVE_OPENSSL_ENGINE_H
17741 #include <openssl/engine.h>
17742 #endif
17743 #include <openssl/ssl.h>
17744 #include <openssl/evp.h>
17745
17746 "
17747 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17748   ac_have_decl=1
17749 else
17750   ac_have_decl=0
17751 fi
17752
17753 cat >>confdefs.h <<_ACEOF
17754 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17755 _ACEOF
17756
17757 fi
17758
17759
17760
17761 # Check whether --enable-sha1 was given.
17762 if test "${enable_sha1+set}" = set; then :
17763   enableval=$enable_sha1;
17764 fi
17765
17766 case "$enable_sha1" in
17767         no)
17768         ;;
17769         yes|*)
17770
17771 $as_echo "#define USE_SHA1 1" >>confdefs.h
17772
17773         ;;
17774 esac
17775
17776
17777 # Check whether --enable-sha2 was given.
17778 if test "${enable_sha2+set}" = set; then :
17779   enableval=$enable_sha2;
17780 fi
17781
17782 case "$enable_sha2" in
17783         no)
17784         ;;
17785         yes|*)
17786
17787 $as_echo "#define USE_SHA2 1" >>confdefs.h
17788
17789         ;;
17790 esac
17791
17792 # Check whether --enable-subnet was given.
17793 if test "${enable_subnet+set}" = set; then :
17794   enableval=$enable_subnet;
17795 fi
17796
17797 case "$enable_subnet" in
17798         yes)
17799
17800 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
17801
17802         SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
17803
17804         SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
17805
17806         ;;
17807         no|*)
17808         ;;
17809 esac
17810
17811 # check wether gost also works
17812
17813 # Check whether --enable-gost was given.
17814 if test "${enable_gost+set}" = set; then :
17815   enableval=$enable_gost;
17816 fi
17817
17818 use_gost="no"
17819 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17820 case "$enable_gost" in
17821         no)
17822         ;;
17823         *)
17824         ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17825 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17826   :
17827 else
17828   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17829 fi
17830
17831         ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17832 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17833
17834 else
17835   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17836 fi
17837
17838
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17840 $as_echo_n "checking if GOST works... " >&6; }
17841 if test c${cross_compiling} = cno; then
17842 BAKCFLAGS="$CFLAGS"
17843 if test -n "$ssldir"; then
17844         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17845 fi
17846 if test "$cross_compiling" = yes; then :
17847   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17849 as_fn_error $? "cannot run test program while cross compiling
17850 See \`config.log' for more details" "$LINENO" 5; }
17851 else
17852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h.  */
17854
17855 #include <string.h>
17856 #include <openssl/ssl.h>
17857 #include <openssl/evp.h>
17858 #include <openssl/engine.h>
17859 #include <openssl/conf.h>
17860 /* routine to load gost (from sldns) */
17861 int load_gost_id(void)
17862 {
17863         static int gost_id = 0;
17864         const EVP_PKEY_ASN1_METHOD* meth;
17865         ENGINE* e;
17866
17867         if(gost_id) return gost_id;
17868
17869         /* see if configuration loaded gost implementation from other engine*/
17870         meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17871         if(meth) {
17872                 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17873                 return gost_id;
17874         }
17875
17876         /* see if engine can be loaded already */
17877         e = ENGINE_by_id("gost");
17878         if(!e) {
17879                 /* load it ourself, in case statically linked */
17880                 ENGINE_load_builtin_engines();
17881                 ENGINE_load_dynamic();
17882                 e = ENGINE_by_id("gost");
17883         }
17884         if(!e) {
17885                 /* no gost engine in openssl */
17886                 return 0;
17887         }
17888         if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17889                 ENGINE_finish(e);
17890                 ENGINE_free(e);
17891                 return 0;
17892         }
17893
17894         meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17895         if(!meth) {
17896                 /* algo not found */
17897                 ENGINE_finish(e);
17898                 ENGINE_free(e);
17899                 return 0;
17900         }
17901         EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17902         return gost_id;
17903 }
17904 int main(void) {
17905         EVP_MD_CTX* ctx;
17906         const EVP_MD* md;
17907         unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17908         const char* str = "Hello world";
17909         const unsigned char check[] = {
17910                 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17911                 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17912                 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17913                 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17914         };
17915         OPENSSL_config(NULL);
17916         (void)load_gost_id();
17917         md = EVP_get_digestbyname("md_gost94");
17918         if(!md) return 1;
17919         memset(digest, 0, sizeof(digest));
17920         ctx = EVP_MD_CTX_create();
17921         if(!ctx) return 2;
17922         if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17923         if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17924         if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17925         /* uncomment to see the hash calculated.
17926                 {int i;
17927                 for(i=0; i<32; i++)
17928                         printf(" %2.2x", (int)digest[i]);
17929                 printf("\n");}
17930         */
17931         if(memcmp(digest, check, sizeof(check)) != 0)
17932                 return 6;
17933         return 0;
17934 }
17935
17936 _ACEOF
17937 if ac_fn_c_try_run "$LINENO"; then :
17938   eval "ac_cv_c_gost_works=yes"
17939 else
17940   eval "ac_cv_c_gost_works=no"
17941 fi
17942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17943   conftest.$ac_objext conftest.beam conftest.$ac_ext
17944 fi
17945
17946 CFLAGS="$BAKCFLAGS"
17947 else
17948 eval "ac_cv_c_gost_works=maybe"
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17951 $as_echo "$ac_cv_c_gost_works" >&6; }
17952
17953         if test "$ac_cv_c_gost_works" != no; then
17954                 use_gost="yes"
17955
17956 $as_echo "#define USE_GOST 1" >>confdefs.h
17957
17958         fi
17959         ;;
17960 esac
17961 fi
17962 # Check whether --enable-ecdsa was given.
17963 if test "${enable_ecdsa+set}" = set; then :
17964   enableval=$enable_ecdsa;
17965 fi
17966
17967 use_ecdsa="no"
17968 case "$enable_ecdsa" in
17969     no)
17970       ;;
17971     *)
17972       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17973               ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17974 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17975
17976 else
17977   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17978 fi
17979
17980               ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17981 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17982
17983 else
17984   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17985 fi
17986
17987               ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17988 #include <openssl/evp.h>
17989
17990 "
17991 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17992   ac_have_decl=1
17993 else
17994   ac_have_decl=0
17995 fi
17996
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17999 _ACEOF
18000 if test $ac_have_decl = 1; then :
18001
18002 else
18003   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18004 fi
18005 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18006 #include <openssl/evp.h>
18007
18008 "
18009 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18010   ac_have_decl=1
18011 else
18012   ac_have_decl=0
18013 fi
18014
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18017 _ACEOF
18018 if test $ac_have_decl = 1; then :
18019
18020 else
18021   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18022 fi
18023
18024               # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18025               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18026 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18027               if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18028                 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18029                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 $as_echo "no" >&6; }
18031
18032 cat >>confdefs.h <<_ACEOF
18033 #define USE_ECDSA_EVP_WORKAROUND 1
18034 _ACEOF
18035
18036                 else
18037                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18038 $as_echo "yes" >&6; }
18039                 fi
18040               else
18041                 # not OpenSSL, thus likely LibreSSL, which supports it
18042                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18043 $as_echo "yes" >&6; }
18044               fi
18045       fi
18046       # we now know we have ECDSA and the required curves.
18047
18048 cat >>confdefs.h <<_ACEOF
18049 #define USE_ECDSA 1
18050 _ACEOF
18051
18052       use_ecdsa="yes"
18053       ;;
18054 esac
18055
18056 # Check whether --enable-dsa was given.
18057 if test "${enable_dsa+set}" = set; then :
18058   enableval=$enable_dsa;
18059 fi
18060
18061 use_dsa="no"
18062 case "$enable_dsa" in
18063     no)
18064       ;;
18065     *)
18066       # detect if DSA is supported, and turn it off if not.
18067       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18068       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18069 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18070
18071
18072 cat >>confdefs.h <<_ACEOF
18073 #define USE_DSA 1
18074 _ACEOF
18075
18076
18077 else
18078   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18079                fi
18080 fi
18081
18082       else
18083
18084 cat >>confdefs.h <<_ACEOF
18085 #define USE_DSA 1
18086 _ACEOF
18087
18088       fi
18089       ;;
18090 esac
18091
18092 # Check whether --enable-ed25519 was given.
18093 if test "${enable_ed25519+set}" = set; then :
18094   enableval=$enable_ed25519;
18095 fi
18096
18097 use_ed25519="no"
18098 case "$enable_ed25519" in
18099     no)
18100       ;;
18101     *)
18102       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18103               ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18104 #include <openssl/evp.h>
18105
18106 "
18107 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18108   ac_have_decl=1
18109 else
18110   ac_have_decl=0
18111 fi
18112
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18115 _ACEOF
18116 if test $ac_have_decl = 1; then :
18117
18118                 use_ed25519="yes"
18119
18120 else
18121    if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18122                 fi
18123 fi
18124
18125       fi
18126       if test $USE_NETTLE = "yes"; then
18127                 for ac_header in nettle/eddsa.h
18128 do :
18129   ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18130 "
18131 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18132   cat >>confdefs.h <<_ACEOF
18133 #define HAVE_NETTLE_EDDSA_H 1
18134 _ACEOF
18135  use_ed25519="yes"
18136 fi
18137
18138 done
18139
18140       fi
18141       if test $use_ed25519 = "yes"; then
18142
18143 cat >>confdefs.h <<_ACEOF
18144 #define USE_ED25519 1
18145 _ACEOF
18146
18147       fi
18148       ;;
18149 esac
18150
18151 # Check whether --enable-event-api was given.
18152 if test "${enable_event_api+set}" = set; then :
18153   enableval=$enable_event_api;
18154 fi
18155
18156 case "$enable_event_api" in
18157     yes)
18158       UNBOUND_EVENT_INSTALL=unbound-event-install
18159
18160       UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18161
18162       ;;
18163     *)
18164       ;;
18165 esac
18166
18167 # Check whether --enable-tfo-client was given.
18168 if test "${enable_tfo_client+set}" = set; then :
18169   enableval=$enable_tfo_client;
18170 fi
18171
18172 case "$enable_tfo_client" in
18173         yes)
18174                 case `uname` in
18175                         Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18176 #include <netinet/tcp.h>
18177
18178 "
18179 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18181 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18182 else
18183   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18184 fi
18185
18186
18187 cat >>confdefs.h <<_ACEOF
18188 #define USE_MSG_FASTOPEN 1
18189 _ACEOF
18190
18191                           ;;
18192                         Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18193 #include <sys/socket.h>
18194
18195 "
18196 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18197   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18198 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18199 else
18200   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18201 fi
18202
18203
18204 cat >>confdefs.h <<_ACEOF
18205 #define USE_OSX_MSG_FASTOPEN 1
18206 _ACEOF
18207
18208                           ;;
18209                 esac
18210         ;;
18211         no|*)
18212                 ;;
18213 esac
18214
18215 # Check whether --enable-tfo-server was given.
18216 if test "${enable_tfo_server+set}" = set; then :
18217   enableval=$enable_tfo_server;
18218 fi
18219
18220 case "$enable_tfo_server" in
18221         yes)
18222               ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18223 #include <netinet/tcp.h>
18224
18225 "
18226 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18228 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18229 else
18230   as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18231 fi
18232
18233
18234 cat >>confdefs.h <<_ACEOF
18235 #define USE_TCP_FASTOPEN 1
18236 _ACEOF
18237
18238                 ;;
18239         no|*)
18240                 ;;
18241 esac
18242
18243 # check for libevent
18244
18245 # Check whether --with-libevent was given.
18246 if test "${with_libevent+set}" = set; then :
18247   withval=$with_libevent;
18248 else
18249    withval="no"
18250 fi
18251
18252 if test x_$withval = x_yes -o x_$withval != x_no; then
18253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18254 $as_echo_n "checking for libevent... " >&6; }
18255         if test x_$withval = x_ -o x_$withval = x_yes; then
18256             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18257         fi
18258         for dir in $withval; do
18259             thedir="$dir"
18260             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18261                 found_libevent="yes"
18262                                 if test "$thedir" != "/usr"; then
18263                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
18264                 fi
18265                 break;
18266             fi
18267         done
18268         if test x_$found_libevent != x_yes; then
18269                 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18270                         # libevent source directory
18271                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18272 $as_echo "found in $thedir" >&6; }
18273                         CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18274                         BAK_LDFLAGS_SET="1"
18275                         BAK_LDFLAGS="$LDFLAGS"
18276                         # remove evdns from linking
18277                         mkdir build >/dev/null 2>&1
18278                         mkdir build/libevent >/dev/null 2>&1
18279                         mkdir build/libevent/.libs >/dev/null 2>&1
18280                         ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18281                         ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18282                         ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18283                         cp $ev_files_o build/libevent
18284                         cp $ev_files_lo build/libevent
18285                         cp $ev_files_libso build/libevent/.libs
18286                         LATE_LDFLAGS="build/libevent/*.lo -lm"
18287                         LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18288                 else
18289                         as_fn_error $? "Cannot find the libevent library in $withval
18290 You can restart ./configure --with-libevent=no to use a builtin alternative.
18291 Please note that this alternative is not as capable as libevent when using
18292 large outgoing port ranges.  " "$LINENO" 5
18293                 fi
18294         else
18295             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18296 $as_echo "found in $thedir" >&6; }
18297                     if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18298                     LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18299
18300         if test "x$enable_rpath" = xyes; then
18301                 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18302                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18303                 fi
18304         fi
18305
18306             else
18307                                     if test "$thedir" != "/usr" -a "$thedir" != ""; then
18308                         LDFLAGS="$LDFLAGS -L$thedir/lib"
18309
18310         if test "x$enable_rpath" = xyes; then
18311                 if echo "$thedir/lib" | grep "^/" >/dev/null; then
18312                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18313                 fi
18314         fi
18315
18316                     fi
18317             fi
18318         fi
18319         # check for library used by libevent after 1.3c
18320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18321 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18322 if ${ac_cv_search_clock_gettime+:} false; then :
18323   $as_echo_n "(cached) " >&6
18324 else
18325   ac_func_search_save_LIBS=$LIBS
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h.  */
18328
18329 /* Override any GCC internal prototype to avoid an error.
18330    Use char because int might match the return type of a GCC
18331    builtin and then its argument prototype would still apply.  */
18332 #ifdef __cplusplus
18333 extern "C"
18334 #endif
18335 char clock_gettime ();
18336 int
18337 main ()
18338 {
18339 return clock_gettime ();
18340   ;
18341   return 0;
18342 }
18343 _ACEOF
18344 for ac_lib in '' rt; do
18345   if test -z "$ac_lib"; then
18346     ac_res="none required"
18347   else
18348     ac_res=-l$ac_lib
18349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18350   fi
18351   if ac_fn_c_try_link "$LINENO"; then :
18352   ac_cv_search_clock_gettime=$ac_res
18353 fi
18354 rm -f core conftest.err conftest.$ac_objext \
18355     conftest$ac_exeext
18356   if ${ac_cv_search_clock_gettime+:} false; then :
18357   break
18358 fi
18359 done
18360 if ${ac_cv_search_clock_gettime+:} false; then :
18361
18362 else
18363   ac_cv_search_clock_gettime=no
18364 fi
18365 rm conftest.$ac_ext
18366 LIBS=$ac_func_search_save_LIBS
18367 fi
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18369 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18370 ac_res=$ac_cv_search_clock_gettime
18371 if test "$ac_res" != no; then :
18372   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18373
18374 fi
18375
18376
18377         # is the event.h header libev or libevent?
18378         for ac_header in event.h
18379 do :
18380   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18381 "
18382 if test "x$ac_cv_header_event_h" = xyes; then :
18383   cat >>confdefs.h <<_ACEOF
18384 #define HAVE_EVENT_H 1
18385 _ACEOF
18386
18387 fi
18388
18389 done
18390
18391         ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18392 #include <event.h>
18393
18394 "
18395 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18396
18397                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18398 $as_echo_n "checking for library containing event_set... " >&6; }
18399 if ${ac_cv_search_event_set+:} false; then :
18400   $as_echo_n "(cached) " >&6
18401 else
18402   ac_func_search_save_LIBS=$LIBS
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h.  */
18405
18406 /* Override any GCC internal prototype to avoid an error.
18407    Use char because int might match the return type of a GCC
18408    builtin and then its argument prototype would still apply.  */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 char event_set ();
18413 int
18414 main ()
18415 {
18416 return event_set ();
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 for ac_lib in '' ev; do
18422   if test -z "$ac_lib"; then
18423     ac_res="none required"
18424   else
18425     ac_res=-l$ac_lib
18426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18427   fi
18428   if ac_fn_c_try_link "$LINENO"; then :
18429   ac_cv_search_event_set=$ac_res
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext \
18432     conftest$ac_exeext
18433   if ${ac_cv_search_event_set+:} false; then :
18434   break
18435 fi
18436 done
18437 if ${ac_cv_search_event_set+:} false; then :
18438
18439 else
18440   ac_cv_search_event_set=no
18441 fi
18442 rm conftest.$ac_ext
18443 LIBS=$ac_func_search_save_LIBS
18444 fi
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18446 $as_echo "$ac_cv_search_event_set" >&6; }
18447 ac_res=$ac_cv_search_event_set
18448 if test "$ac_res" != no; then :
18449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18450
18451 fi
18452
18453
18454 else
18455
18456                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18457 $as_echo_n "checking for library containing event_set... " >&6; }
18458 if ${ac_cv_search_event_set+:} false; then :
18459   $as_echo_n "(cached) " >&6
18460 else
18461   ac_func_search_save_LIBS=$LIBS
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h.  */
18464
18465 /* Override any GCC internal prototype to avoid an error.
18466    Use char because int might match the return type of a GCC
18467    builtin and then its argument prototype would still apply.  */
18468 #ifdef __cplusplus
18469 extern "C"
18470 #endif
18471 char event_set ();
18472 int
18473 main ()
18474 {
18475 return event_set ();
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 for ac_lib in '' event; do
18481   if test -z "$ac_lib"; then
18482     ac_res="none required"
18483   else
18484     ac_res=-l$ac_lib
18485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18486   fi
18487   if ac_fn_c_try_link "$LINENO"; then :
18488   ac_cv_search_event_set=$ac_res
18489 fi
18490 rm -f core conftest.err conftest.$ac_objext \
18491     conftest$ac_exeext
18492   if ${ac_cv_search_event_set+:} false; then :
18493   break
18494 fi
18495 done
18496 if ${ac_cv_search_event_set+:} false; then :
18497
18498 else
18499   ac_cv_search_event_set=no
18500 fi
18501 rm conftest.$ac_ext
18502 LIBS=$ac_func_search_save_LIBS
18503 fi
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18505 $as_echo "$ac_cv_search_event_set" >&6; }
18506 ac_res=$ac_cv_search_event_set
18507 if test "$ac_res" != no; then :
18508   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18509
18510 fi
18511
18512
18513 fi
18514
18515         for ac_func in event_base_free
18516 do :
18517   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18518 if test "x$ac_cv_func_event_base_free" = xyes; then :
18519   cat >>confdefs.h <<_ACEOF
18520 #define HAVE_EVENT_BASE_FREE 1
18521 _ACEOF
18522
18523 fi
18524 done
18525  # only in libevent 1.2 and later
18526         for ac_func in event_base_once
18527 do :
18528   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18529 if test "x$ac_cv_func_event_base_once" = xyes; then :
18530   cat >>confdefs.h <<_ACEOF
18531 #define HAVE_EVENT_BASE_ONCE 1
18532 _ACEOF
18533
18534 fi
18535 done
18536  # only in libevent 1.4.1 and later
18537         for ac_func in event_base_new
18538 do :
18539   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18540 if test "x$ac_cv_func_event_base_new" = xyes; then :
18541   cat >>confdefs.h <<_ACEOF
18542 #define HAVE_EVENT_BASE_NEW 1
18543 _ACEOF
18544
18545 fi
18546 done
18547  # only in libevent 1.4.1 and later
18548         for ac_func in event_base_get_method
18549 do :
18550   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18551 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18552   cat >>confdefs.h <<_ACEOF
18553 #define HAVE_EVENT_BASE_GET_METHOD 1
18554 _ACEOF
18555
18556 fi
18557 done
18558  # only in libevent 1.4.3 and later
18559         for ac_func in ev_loop
18560 do :
18561   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18562 if test "x$ac_cv_func_ev_loop" = xyes; then :
18563   cat >>confdefs.h <<_ACEOF
18564 #define HAVE_EV_LOOP 1
18565 _ACEOF
18566
18567 fi
18568 done
18569  # only in libev. (tested on 3.51)
18570         for ac_func in ev_default_loop
18571 do :
18572   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18573 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18574   cat >>confdefs.h <<_ACEOF
18575 #define HAVE_EV_DEFAULT_LOOP 1
18576 _ACEOF
18577
18578 fi
18579 done
18580  # only in libev. (tested on 4.00)
18581         PC_LIBEVENT_DEPENDENCY="libevent"
18582
18583         if test -n "$BAK_LDFLAGS_SET"; then
18584                 LDFLAGS="$BAK_LDFLAGS"
18585         fi
18586 else
18587
18588 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18589
18590 fi
18591
18592 # check for libexpat
18593
18594 # Check whether --with-libexpat was given.
18595 if test "${with_libexpat+set}" = set; then :
18596   withval=$with_libexpat;
18597 else
18598    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18599 fi
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18602 $as_echo_n "checking for libexpat... " >&6; }
18603 found_libexpat="no"
18604 for dir in $withval ; do
18605             if test -f "$dir/include/expat.h"; then
18606                 found_libexpat="yes"
18607                                 if test "$dir" != "/usr"; then
18608                     CPPFLAGS="$CPPFLAGS -I$dir/include"
18609                     LDFLAGS="$LDFLAGS -L$dir/lib"
18610                 fi
18611                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18612 $as_echo "found in $dir" >&6; }
18613                 break;
18614             fi
18615 done
18616 if test x_$found_libexpat != x_yes; then
18617         as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18618 fi
18619 for ac_header in expat.h
18620 do :
18621   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18622 "
18623 if test "x$ac_cv_header_expat_h" = xyes; then :
18624   cat >>confdefs.h <<_ACEOF
18625 #define HAVE_EXPAT_H 1
18626 _ACEOF
18627
18628 fi
18629
18630 done
18631
18632 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18633 #include <expat.h>
18634
18635 "
18636 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18637   ac_have_decl=1
18638 else
18639   ac_have_decl=0
18640 fi
18641
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18644 _ACEOF
18645
18646
18647 # set static linking if requested
18648
18649 staticexe=""
18650 # Check whether --enable-static-exe was given.
18651 if test "${enable_static_exe+set}" = set; then :
18652   enableval=$enable_static_exe;
18653 fi
18654
18655 if test x_$enable_static_exe = x_yes; then
18656         staticexe="-static"
18657         if test "$on_mingw" = yes; then
18658                 staticexe="-all-static"
18659                 # for static compile, include gdi32 and zlib here.
18660                 if echo $LIBS | grep 'lgdi32' >/dev/null; then
18661                         :
18662                 else
18663                         LIBS="$LIBS -lgdi32"
18664                 fi
18665                 LIBS="$LIBS -lz"
18666         fi
18667 fi
18668
18669 # Include systemd.m4 - begin
18670 #   macros for configuring systemd
18671 #   Copyright 2015, Sami Kerola, CloudFlare.
18672 #   BSD licensed.
18673 # Check whether --enable-systemd was given.
18674 if test "${enable_systemd+set}" = set; then :
18675   enableval=$enable_systemd;
18676 else
18677   enable_systemd=no
18678 fi
18679
18680 have_systemd=no
18681
18682
18683
18684
18685
18686
18687
18688 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18689         if test -n "$ac_tool_prefix"; then
18690   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18691 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18693 $as_echo_n "checking for $ac_word... " >&6; }
18694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18695   $as_echo_n "(cached) " >&6
18696 else
18697   case $PKG_CONFIG in
18698   [\\/]* | ?:[\\/]*)
18699   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18700   ;;
18701   *)
18702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18703 for as_dir in $PATH
18704 do
18705   IFS=$as_save_IFS
18706   test -z "$as_dir" && as_dir=.
18707     for ac_exec_ext in '' $ac_executable_extensions; do
18708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18709     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18711     break 2
18712   fi
18713 done
18714   done
18715 IFS=$as_save_IFS
18716
18717   ;;
18718 esac
18719 fi
18720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18721 if test -n "$PKG_CONFIG"; then
18722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18723 $as_echo "$PKG_CONFIG" >&6; }
18724 else
18725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18726 $as_echo "no" >&6; }
18727 fi
18728
18729
18730 fi
18731 if test -z "$ac_cv_path_PKG_CONFIG"; then
18732   ac_pt_PKG_CONFIG=$PKG_CONFIG
18733   # Extract the first word of "pkg-config", so it can be a program name with args.
18734 set dummy pkg-config; ac_word=$2
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 $as_echo_n "checking for $ac_word... " >&6; }
18737 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18738   $as_echo_n "(cached) " >&6
18739 else
18740   case $ac_pt_PKG_CONFIG in
18741   [\\/]* | ?:[\\/]*)
18742   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18743   ;;
18744   *)
18745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746 for as_dir in $PATH
18747 do
18748   IFS=$as_save_IFS
18749   test -z "$as_dir" && as_dir=.
18750     for ac_exec_ext in '' $ac_executable_extensions; do
18751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18754     break 2
18755   fi
18756 done
18757   done
18758 IFS=$as_save_IFS
18759
18760   ;;
18761 esac
18762 fi
18763 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18764 if test -n "$ac_pt_PKG_CONFIG"; then
18765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18766 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18767 else
18768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18770 fi
18771
18772   if test "x$ac_pt_PKG_CONFIG" = x; then
18773     PKG_CONFIG=""
18774   else
18775     case $cross_compiling:$ac_tool_warned in
18776 yes:)
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18779 ac_tool_warned=yes ;;
18780 esac
18781     PKG_CONFIG=$ac_pt_PKG_CONFIG
18782   fi
18783 else
18784   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18785 fi
18786
18787 fi
18788 if test -n "$PKG_CONFIG"; then
18789         _pkg_min_version=0.9.0
18790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18791 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18792         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18793                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18794 $as_echo "yes" >&6; }
18795         else
18796                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797 $as_echo "no" >&6; }
18798                 PKG_CONFIG=""
18799         fi
18800 fi
18801 if test "x$enable_systemd" != xno; then :
18802
18803
18804
18805 pkg_failed=no
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
18807 $as_echo_n "checking for SYSTEMD... " >&6; }
18808
18809 if test -n "$SYSTEMD_CFLAGS"; then
18810     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18811  elif test -n "$PKG_CONFIG"; then
18812     if test -n "$PKG_CONFIG" && \
18813     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18814   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18815   ac_status=$?
18816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18817   test $ac_status = 0; }; then
18818   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18819                       test "x$?" != "x0" && pkg_failed=yes
18820 else
18821   pkg_failed=yes
18822 fi
18823  else
18824     pkg_failed=untried
18825 fi
18826 if test -n "$SYSTEMD_LIBS"; then
18827     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18828  elif test -n "$PKG_CONFIG"; then
18829     if test -n "$PKG_CONFIG" && \
18830     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18831   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18832   ac_status=$?
18833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18834   test $ac_status = 0; }; then
18835   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
18836                       test "x$?" != "x0" && pkg_failed=yes
18837 else
18838   pkg_failed=yes
18839 fi
18840  else
18841     pkg_failed=untried
18842 fi
18843
18844
18845
18846 if test $pkg_failed = yes; then
18847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18848 $as_echo "no" >&6; }
18849
18850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18851         _pkg_short_errors_supported=yes
18852 else
18853         _pkg_short_errors_supported=no
18854 fi
18855         if test $_pkg_short_errors_supported = yes; then
18856                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
18857         else
18858                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
18859         fi
18860         # Put the nasty error message in config.log where it belongs
18861         echo "$SYSTEMD_PKG_ERRORS" >&5
18862
18863         have_systemd=no
18864 elif test $pkg_failed = untried; then
18865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18866 $as_echo "no" >&6; }
18867         have_systemd=no
18868 else
18869         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18870         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18872 $as_echo "yes" >&6; }
18873         have_systemd=yes
18874 fi
18875                 if test "x$have_systemd" != "xyes"; then :
18876
18877
18878 pkg_failed=no
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
18880 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
18881
18882 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
18883     pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
18884  elif test -n "$PKG_CONFIG"; then
18885     if test -n "$PKG_CONFIG" && \
18886     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18887   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18888   ac_status=$?
18889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18890   test $ac_status = 0; }; then
18891   pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
18892                       test "x$?" != "x0" && pkg_failed=yes
18893 else
18894   pkg_failed=yes
18895 fi
18896  else
18897     pkg_failed=untried
18898 fi
18899 if test -n "$SYSTEMD_DAEMON_LIBS"; then
18900     pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
18901  elif test -n "$PKG_CONFIG"; then
18902     if test -n "$PKG_CONFIG" && \
18903     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18904   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18905   ac_status=$?
18906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18907   test $ac_status = 0; }; then
18908   pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
18909                       test "x$?" != "x0" && pkg_failed=yes
18910 else
18911   pkg_failed=yes
18912 fi
18913  else
18914     pkg_failed=untried
18915 fi
18916
18917
18918
18919 if test $pkg_failed = yes; then
18920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18921 $as_echo "no" >&6; }
18922
18923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18924         _pkg_short_errors_supported=yes
18925 else
18926         _pkg_short_errors_supported=no
18927 fi
18928         if test $_pkg_short_errors_supported = yes; then
18929                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18930         else
18931                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18932         fi
18933         # Put the nasty error message in config.log where it belongs
18934         echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
18935
18936         have_systemd_daemon=no
18937 elif test $pkg_failed = untried; then
18938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18939 $as_echo "no" >&6; }
18940         have_systemd_daemon=no
18941 else
18942         SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
18943         SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
18944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18945 $as_echo "yes" >&6; }
18946         have_systemd_daemon=yes
18947 fi
18948                 if test "x$have_systemd_daemon" = "xyes"; then :
18949   have_systemd=yes
18950 fi
18951
18952 fi
18953         case $enable_systemd:$have_systemd in #(
18954   yes:no) :
18955     as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
18956   *:yes) :
18957
18958 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
18959
18960                 LIBS="$LIBS $SYSTEMD_LIBS"
18961
18962          ;; #(
18963   *) :
18964      ;;
18965 esac
18966
18967
18968 fi
18969  if test "x$have_systemd" = xyes; then
18970   USE_SYSTEMD_TRUE=
18971   USE_SYSTEMD_FALSE='#'
18972 else
18973   USE_SYSTEMD_TRUE='#'
18974   USE_SYSTEMD_FALSE=
18975 fi
18976
18977
18978 # Include systemd.m4 - end
18979
18980 # set lock checking if requested
18981 # Check whether --enable-lock_checks was given.
18982 if test "${enable_lock_checks+set}" = set; then :
18983   enableval=$enable_lock_checks;
18984 fi
18985
18986 if test x_$enable_lock_checks = x_yes; then
18987
18988 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18989
18990         CHECKLOCK_OBJ="checklocks.lo"
18991
18992 fi
18993
18994
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18996 $as_echo_n "checking for getaddrinfo... " >&6; }
18997 ac_cv_func_getaddrinfo=no
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h.  */
19000
19001 #ifdef __cplusplus
19002 extern "C"
19003 {
19004 #endif
19005 char* getaddrinfo();
19006 char* (*f) () = getaddrinfo;
19007 #ifdef __cplusplus
19008 }
19009 #endif
19010 int main() {
19011         ;
19012         return 0;
19013 }
19014
19015 _ACEOF
19016 if ac_fn_c_try_link "$LINENO"; then :
19017   ac_cv_func_getaddrinfo="yes"
19018 if test "$ac_cv_header_windows_h" = "yes"; then
19019
19020 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19021
19022         USE_WINSOCK="1"
19023         if echo $LIBS | grep 'lws2_32' >/dev/null; then
19024                 :
19025         else
19026                 LIBS="$LIBS -lws2_32"
19027         fi
19028 fi
19029
19030 else
19031   ORIGLIBS="$LIBS"
19032 LIBS="$LIBS -lws2_32"
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h.  */
19035
19036 #ifdef HAVE_WS2TCPIP_H
19037 #include <ws2tcpip.h>
19038 #endif
19039
19040 int
19041 main ()
19042 {
19043
19044         (void)getaddrinfo(NULL, NULL, NULL, NULL);
19045
19046
19047   ;
19048   return 0;
19049 }
19050 _ACEOF
19051 if ac_fn_c_try_link "$LINENO"; then :
19052
19053 ac_cv_func_getaddrinfo="yes"
19054
19055 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19056
19057 USE_WINSOCK="1"
19058
19059 else
19060
19061 ac_cv_func_getaddrinfo="no"
19062 LIBS="$ORIGLIBS"
19063
19064 fi
19065 rm -f core conftest.err conftest.$ac_objext \
19066     conftest$ac_exeext conftest.$ac_ext
19067
19068 fi
19069 rm -f core conftest.err conftest.$ac_objext \
19070     conftest$ac_exeext conftest.$ac_ext
19071
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19073 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19074 if test $ac_cv_func_getaddrinfo = yes; then
19075
19076 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19077
19078 fi
19079
19080 if test "$USE_WINSOCK" = 1; then
19081
19082 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19083
19084         for ac_header in iphlpapi.h
19085 do :
19086   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19087 #include <windows.h>
19088
19089 "
19090 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19091   cat >>confdefs.h <<_ACEOF
19092 #define HAVE_IPHLPAPI_H 1
19093 _ACEOF
19094
19095 fi
19096
19097 done
19098
19099         if test -n "$ac_tool_prefix"; then
19100   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19101 set dummy ${ac_tool_prefix}windres; ac_word=$2
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19103 $as_echo_n "checking for $ac_word... " >&6; }
19104 if ${ac_cv_prog_WINDRES+:} false; then :
19105   $as_echo_n "(cached) " >&6
19106 else
19107   if test -n "$WINDRES"; then
19108   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19109 else
19110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19111 for as_dir in $PATH
19112 do
19113   IFS=$as_save_IFS
19114   test -z "$as_dir" && as_dir=.
19115     for ac_exec_ext in '' $ac_executable_extensions; do
19116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19117     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19119     break 2
19120   fi
19121 done
19122   done
19123 IFS=$as_save_IFS
19124
19125 fi
19126 fi
19127 WINDRES=$ac_cv_prog_WINDRES
19128 if test -n "$WINDRES"; then
19129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19130 $as_echo "$WINDRES" >&6; }
19131 else
19132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19134 fi
19135
19136
19137 fi
19138 if test -z "$ac_cv_prog_WINDRES"; then
19139   ac_ct_WINDRES=$WINDRES
19140   # Extract the first word of "windres", so it can be a program name with args.
19141 set dummy windres; ac_word=$2
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19143 $as_echo_n "checking for $ac_word... " >&6; }
19144 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19145   $as_echo_n "(cached) " >&6
19146 else
19147   if test -n "$ac_ct_WINDRES"; then
19148   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19149 else
19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19152 do
19153   IFS=$as_save_IFS
19154   test -z "$as_dir" && as_dir=.
19155     for ac_exec_ext in '' $ac_executable_extensions; do
19156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19157     ac_cv_prog_ac_ct_WINDRES="windres"
19158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19159     break 2
19160   fi
19161 done
19162   done
19163 IFS=$as_save_IFS
19164
19165 fi
19166 fi
19167 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19168 if test -n "$ac_ct_WINDRES"; then
19169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19170 $as_echo "$ac_ct_WINDRES" >&6; }
19171 else
19172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173 $as_echo "no" >&6; }
19174 fi
19175
19176   if test "x$ac_ct_WINDRES" = x; then
19177     WINDRES=""
19178   else
19179     case $cross_compiling:$ac_tool_warned in
19180 yes:)
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19183 ac_tool_warned=yes ;;
19184 esac
19185     WINDRES=$ac_ct_WINDRES
19186   fi
19187 else
19188   WINDRES="$ac_cv_prog_WINDRES"
19189 fi
19190
19191         LIBS="$LIBS -liphlpapi"
19192         WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19193
19194         WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19195
19196         WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19197
19198         WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19199
19200         WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19201
19202         WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19203
19204         WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19205
19206         WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19207
19208 fi
19209 if test $ac_cv_func_getaddrinfo = no; then
19210         case " $LIBOBJS " in
19211   *" fake-rfc2553.$ac_objext "* ) ;;
19212   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19213  ;;
19214 esac
19215
19216 fi
19217 # check after getaddrinfo for its libraries
19218
19219 # check ioctlsocket
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19221 $as_echo_n "checking for ioctlsocket... " >&6; }
19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223 /* end confdefs.h.  */
19224
19225 #ifdef HAVE_WINSOCK2_H
19226 #include <winsock2.h>
19227 #endif
19228
19229 int
19230 main ()
19231 {
19232
19233         (void)ioctlsocket(0, 0, NULL);
19234
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 if ac_fn_c_try_link "$LINENO"; then :
19240
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242 $as_echo "yes" >&6; }
19243
19244 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19245
19246
19247 else
19248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19250 fi
19251 rm -f core conftest.err conftest.$ac_objext \
19252     conftest$ac_exeext conftest.$ac_ext
19253
19254
19255 # see if daemon(3) exists, and if it is deprecated.
19256 for ac_func in daemon
19257 do :
19258   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19259 if test "x$ac_cv_func_daemon" = xyes; then :
19260   cat >>confdefs.h <<_ACEOF
19261 #define HAVE_DAEMON 1
19262 _ACEOF
19263
19264 fi
19265 done
19266
19267 if test $ac_cv_func_daemon = yes; then
19268
19269
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19271 $as_echo_n "checking if daemon is deprecated... " >&6; }
19272 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19273 if eval \${cv_cc_deprecated_$cache+:} false; then :
19274   $as_echo_n "(cached) " >&6
19275 else
19276
19277 echo '
19278 #include <stdlib.h>
19279 ' >conftest.c
19280 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19281 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19282 eval "cv_cc_deprecated_$cache=no"
19283 else
19284 eval "cv_cc_deprecated_$cache=yes"
19285 fi
19286 rm -f conftest conftest.o conftest.c
19287
19288 fi
19289
19290 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292 $as_echo "yes" >&6; }
19293
19294 cat >>confdefs.h <<_ACEOF
19295 #define DEPRECATED_DAEMON 1
19296 _ACEOF
19297
19298 :
19299
19300 else
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19302 $as_echo "no" >&6; }
19303 :
19304
19305 fi
19306
19307 fi
19308
19309 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19310 $ac_includes_default
19311 #ifdef HAVE_SYS_UN_H
19312 #include <sys/un.h>
19313 #endif
19314
19315 "
19316 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19317
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19320 _ACEOF
19321
19322
19323 fi
19324
19325 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19326 $ac_includes_default
19327 #if HAVE_SYS_PARAM_H
19328 #include <sys/param.h>
19329 #endif
19330
19331 #ifdef HAVE_SYS_SOCKET_H
19332 #include <sys/socket.h>
19333 #endif
19334
19335 #ifdef HAVE_SYS_UIO_H
19336 #include <sys/uio.h>
19337 #endif
19338
19339 #ifdef HAVE_NETINET_IN_H
19340 #include <netinet/in.h>
19341 #endif
19342
19343 #ifdef HAVE_NETINET_TCP_H
19344 #include <netinet/tcp.h>
19345 #endif
19346
19347 #ifdef HAVE_ARPA_INET_H
19348 #include <arpa/inet.h>
19349 #endif
19350
19351 #ifdef HAVE_WINSOCK2_H
19352 #include <winsock2.h>
19353 #endif
19354
19355 #ifdef HAVE_WS2TCPIP_H
19356 #include <ws2tcpip.h>
19357 #endif
19358
19359 "
19360 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19361
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19364 _ACEOF
19365
19366
19367 fi
19368
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19370 $as_echo_n "checking for library containing setusercontext... " >&6; }
19371 if ${ac_cv_search_setusercontext+:} false; then :
19372   $as_echo_n "(cached) " >&6
19373 else
19374   ac_func_search_save_LIBS=$LIBS
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h.  */
19377
19378 /* Override any GCC internal prototype to avoid an error.
19379    Use char because int might match the return type of a GCC
19380    builtin and then its argument prototype would still apply.  */
19381 #ifdef __cplusplus
19382 extern "C"
19383 #endif
19384 char setusercontext ();
19385 int
19386 main ()
19387 {
19388 return setusercontext ();
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 for ac_lib in '' util; do
19394   if test -z "$ac_lib"; then
19395     ac_res="none required"
19396   else
19397     ac_res=-l$ac_lib
19398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19399   fi
19400   if ac_fn_c_try_link "$LINENO"; then :
19401   ac_cv_search_setusercontext=$ac_res
19402 fi
19403 rm -f core conftest.err conftest.$ac_objext \
19404     conftest$ac_exeext
19405   if ${ac_cv_search_setusercontext+:} false; then :
19406   break
19407 fi
19408 done
19409 if ${ac_cv_search_setusercontext+:} false; then :
19410
19411 else
19412   ac_cv_search_setusercontext=no
19413 fi
19414 rm conftest.$ac_ext
19415 LIBS=$ac_func_search_save_LIBS
19416 fi
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19418 $as_echo "$ac_cv_search_setusercontext" >&6; }
19419 ac_res=$ac_cv_search_setusercontext
19420 if test "$ac_res" != no; then :
19421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19422
19423 fi
19424
19425 for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget
19426 do :
19427   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19428 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19429 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19430   cat >>confdefs.h <<_ACEOF
19431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19432 _ACEOF
19433
19434 fi
19435 done
19436
19437 for ac_func in setresuid
19438 do :
19439   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19440 if test "x$ac_cv_func_setresuid" = xyes; then :
19441   cat >>confdefs.h <<_ACEOF
19442 #define HAVE_SETRESUID 1
19443 _ACEOF
19444
19445 else
19446   for ac_func in setreuid
19447 do :
19448   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19449 if test "x$ac_cv_func_setreuid" = xyes; then :
19450   cat >>confdefs.h <<_ACEOF
19451 #define HAVE_SETREUID 1
19452 _ACEOF
19453
19454 fi
19455 done
19456
19457 fi
19458 done
19459
19460 for ac_func in setresgid
19461 do :
19462   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19463 if test "x$ac_cv_func_setresgid" = xyes; then :
19464   cat >>confdefs.h <<_ACEOF
19465 #define HAVE_SETRESGID 1
19466 _ACEOF
19467
19468 else
19469   for ac_func in setregid
19470 do :
19471   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19472 if test "x$ac_cv_func_setregid" = xyes; then :
19473   cat >>confdefs.h <<_ACEOF
19474 #define HAVE_SETREGID 1
19475 _ACEOF
19476
19477 fi
19478 done
19479
19480 fi
19481 done
19482
19483
19484 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
19485 if echo $build_os | grep darwin8 > /dev/null; then
19486
19487 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
19488
19489 fi
19490 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
19491 $ac_includes_default
19492 #ifdef HAVE_NETINET_IN_H
19493 #include <netinet/in.h>
19494 #endif
19495
19496 #ifdef HAVE_NETINET_TCP_H
19497 #include <netinet/tcp.h>
19498 #endif
19499
19500 #ifdef HAVE_ARPA_INET_H
19501 #include <arpa/inet.h>
19502 #endif
19503
19504 #ifdef HAVE_WINSOCK2_H
19505 #include <winsock2.h>
19506 #endif
19507
19508 #ifdef HAVE_WS2TCPIP_H
19509 #include <ws2tcpip.h>
19510 #endif
19511
19512 "
19513 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19514   ac_have_decl=1
19515 else
19516   ac_have_decl=0
19517 fi
19518
19519 cat >>confdefs.h <<_ACEOF
19520 #define HAVE_DECL_INET_PTON $ac_have_decl
19521 _ACEOF
19522 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
19523 $ac_includes_default
19524 #ifdef HAVE_NETINET_IN_H
19525 #include <netinet/in.h>
19526 #endif
19527
19528 #ifdef HAVE_NETINET_TCP_H
19529 #include <netinet/tcp.h>
19530 #endif
19531
19532 #ifdef HAVE_ARPA_INET_H
19533 #include <arpa/inet.h>
19534 #endif
19535
19536 #ifdef HAVE_WINSOCK2_H
19537 #include <winsock2.h>
19538 #endif
19539
19540 #ifdef HAVE_WS2TCPIP_H
19541 #include <ws2tcpip.h>
19542 #endif
19543
19544 "
19545 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19546   ac_have_decl=1
19547 else
19548   ac_have_decl=0
19549 fi
19550
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_DECL_INET_NTOP $ac_have_decl
19553 _ACEOF
19554
19555 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
19556 if test "x$ac_cv_func_inet_aton" = xyes; then :
19557   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
19558
19559 else
19560   case " $LIBOBJS " in
19561   *" inet_aton.$ac_objext "* ) ;;
19562   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19563  ;;
19564 esac
19565
19566 fi
19567
19568
19569 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19570 if test "x$ac_cv_func_inet_pton" = xyes; then :
19571   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19572
19573 else
19574   case " $LIBOBJS " in
19575   *" inet_pton.$ac_objext "* ) ;;
19576   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19577  ;;
19578 esac
19579
19580 fi
19581
19582
19583 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19584 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19585   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19586
19587 else
19588   case " $LIBOBJS " in
19589   *" inet_ntop.$ac_objext "* ) ;;
19590   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19591  ;;
19592 esac
19593
19594 fi
19595
19596
19597 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19598 if test "x$ac_cv_func_snprintf" = xyes; then :
19599   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19600
19601 else
19602   case " $LIBOBJS " in
19603   *" snprintf.$ac_objext "* ) ;;
19604   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19605  ;;
19606 esac
19607
19608 fi
19609
19610
19611 # test if snprintf return the proper length
19612 if test "x$ac_cv_func_snprintf" = xyes; then
19613     if test c${cross_compiling} = cno; then
19614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
19615 $as_echo_n "checking for correct snprintf return value... " >&6; }
19616         if test "$cross_compiling" = yes; then :
19617   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19619 as_fn_error $? "cannot run test program while cross compiling
19620 See \`config.log' for more details" "$LINENO" 5; }
19621 else
19622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h.  */
19624 $ac_includes_default
19625
19626 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
19627
19628 _ACEOF
19629 if ac_fn_c_try_run "$LINENO"; then :
19630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19631 $as_echo "yes" >&6; }
19632 else
19633
19634                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635 $as_echo "no" >&6; }
19636
19637 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
19638
19639                 case " $LIBOBJS " in
19640   *" snprintf.$ac_objext "* ) ;;
19641   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19642  ;;
19643 esac
19644
19645
19646 fi
19647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19648   conftest.$ac_objext conftest.beam conftest.$ac_ext
19649 fi
19650
19651     fi
19652 fi
19653 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19654 if test "x$ac_cv_func_strlcat" = xyes; then :
19655   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19656
19657 else
19658   case " $LIBOBJS " in
19659   *" strlcat.$ac_objext "* ) ;;
19660   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19661  ;;
19662 esac
19663
19664 fi
19665
19666
19667 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19668 if test "x$ac_cv_func_strlcpy" = xyes; then :
19669   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19670
19671 else
19672   case " $LIBOBJS " in
19673   *" strlcpy.$ac_objext "* ) ;;
19674   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19675  ;;
19676 esac
19677
19678 fi
19679
19680
19681 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19682 if test "x$ac_cv_func_memmove" = xyes; then :
19683   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
19684
19685 else
19686   case " $LIBOBJS " in
19687   *" memmove.$ac_objext "* ) ;;
19688   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19689  ;;
19690 esac
19691
19692 fi
19693
19694
19695 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19696 if test "x$ac_cv_func_gmtime_r" = xyes; then :
19697   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19698
19699 else
19700   case " $LIBOBJS " in
19701   *" gmtime_r.$ac_objext "* ) ;;
19702   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19703  ;;
19704 esac
19705
19706 fi
19707
19708
19709 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19710 if test "x$ac_cv_func_isblank" = xyes; then :
19711   $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19712
19713 else
19714   case " $LIBOBJS " in
19715   *" isblank.$ac_objext "* ) ;;
19716   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19717  ;;
19718 esac
19719
19720 fi
19721
19722
19723 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19724
19725 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19726 if test "x$ac_cv_func_reallocarray" = xyes; then :
19727   $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19728
19729 else
19730   case " $LIBOBJS " in
19731   *" reallocarray.$ac_objext "* ) ;;
19732   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19733  ;;
19734 esac
19735
19736 fi
19737
19738
19739 if test "$USE_NSS" = "no"; then
19740         ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19741 if test "x$ac_cv_func_arc4random" = xyes; then :
19742   $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19743
19744 else
19745   case " $LIBOBJS " in
19746   *" arc4random.$ac_objext "* ) ;;
19747   *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19748  ;;
19749 esac
19750
19751 fi
19752
19753
19754         ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19755 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19756   $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19757
19758 else
19759   case " $LIBOBJS " in
19760   *" arc4random_uniform.$ac_objext "* ) ;;
19761   *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19762  ;;
19763 esac
19764
19765 fi
19766
19767
19768         if test "$ac_cv_func_arc4random" = "no"; then
19769                 case " $LIBOBJS " in
19770   *" explicit_bzero.$ac_objext "* ) ;;
19771   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19772  ;;
19773 esac
19774
19775                 case " $LIBOBJS " in
19776   *" arc4_lock.$ac_objext "* ) ;;
19777   *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19778  ;;
19779 esac
19780
19781                 for ac_func in getentropy
19782 do :
19783   ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19784 if test "x$ac_cv_func_getentropy" = xyes; then :
19785   cat >>confdefs.h <<_ACEOF
19786 #define HAVE_GETENTROPY 1
19787 _ACEOF
19788
19789 else
19790
19791                     if test "$USE_WINSOCK" = 1; then
19792                         case " $LIBOBJS " in
19793   *" getentropy_win.$ac_objext "* ) ;;
19794   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19795  ;;
19796 esac
19797
19798                     else
19799                         case "$host" in
19800                         Darwin|*darwin*)
19801                                 case " $LIBOBJS " in
19802   *" getentropy_osx.$ac_objext "* ) ;;
19803   *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19804  ;;
19805 esac
19806
19807                         ;;
19808                         *solaris*|*sunos*|SunOS)
19809                                 case " $LIBOBJS " in
19810   *" getentropy_solaris.$ac_objext "* ) ;;
19811   *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19812  ;;
19813 esac
19814
19815                                 for ac_header in sys/sha2.h
19816 do :
19817   ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19818 "
19819 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19820   cat >>confdefs.h <<_ACEOF
19821 #define HAVE_SYS_SHA2_H 1
19822 _ACEOF
19823
19824 else
19825
19826                                         for ac_func in SHA512_Update
19827 do :
19828   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19829 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19830   cat >>confdefs.h <<_ACEOF
19831 #define HAVE_SHA512_UPDATE 1
19832 _ACEOF
19833
19834 else
19835
19836                                                 case " $LIBOBJS " in
19837   *" sha512.$ac_objext "* ) ;;
19838   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19839  ;;
19840 esac
19841
19842
19843 fi
19844 done
19845
19846
19847 fi
19848
19849 done
19850
19851                                 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19852                                         # this lib needed for sha2 on solaris
19853                                         LIBS="$LIBS -lmd"
19854                                 fi
19855                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19856 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19857 if ${ac_cv_search_clock_gettime+:} false; then :
19858   $as_echo_n "(cached) " >&6
19859 else
19860   ac_func_search_save_LIBS=$LIBS
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h.  */
19863
19864 /* Override any GCC internal prototype to avoid an error.
19865    Use char because int might match the return type of a GCC
19866    builtin and then its argument prototype would still apply.  */
19867 #ifdef __cplusplus
19868 extern "C"
19869 #endif
19870 char clock_gettime ();
19871 int
19872 main ()
19873 {
19874 return clock_gettime ();
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 for ac_lib in '' rt; do
19880   if test -z "$ac_lib"; then
19881     ac_res="none required"
19882   else
19883     ac_res=-l$ac_lib
19884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19885   fi
19886   if ac_fn_c_try_link "$LINENO"; then :
19887   ac_cv_search_clock_gettime=$ac_res
19888 fi
19889 rm -f core conftest.err conftest.$ac_objext \
19890     conftest$ac_exeext
19891   if ${ac_cv_search_clock_gettime+:} false; then :
19892   break
19893 fi
19894 done
19895 if ${ac_cv_search_clock_gettime+:} false; then :
19896
19897 else
19898   ac_cv_search_clock_gettime=no
19899 fi
19900 rm conftest.$ac_ext
19901 LIBS=$ac_func_search_save_LIBS
19902 fi
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19904 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19905 ac_res=$ac_cv_search_clock_gettime
19906 if test "$ac_res" != no; then :
19907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19908
19909 fi
19910
19911                         ;;
19912                         *linux*|Linux|*)
19913                                 case " $LIBOBJS " in
19914   *" getentropy_linux.$ac_objext "* ) ;;
19915   *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19916  ;;
19917 esac
19918
19919                                 for ac_func in SHA512_Update
19920 do :
19921   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19922 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19923   cat >>confdefs.h <<_ACEOF
19924 #define HAVE_SHA512_UPDATE 1
19925 _ACEOF
19926
19927 else
19928
19929
19930 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19931
19932                                         case " $LIBOBJS " in
19933   *" sha512.$ac_objext "* ) ;;
19934   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19935  ;;
19936 esac
19937
19938
19939 fi
19940 done
19941
19942                                 for ac_header in sys/sysctl.h
19943 do :
19944   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19945 "
19946 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19947   cat >>confdefs.h <<_ACEOF
19948 #define HAVE_SYS_SYSCTL_H 1
19949 _ACEOF
19950
19951 fi
19952
19953 done
19954
19955                                 for ac_func in getauxval
19956 do :
19957   ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19958 if test "x$ac_cv_func_getauxval" = xyes; then :
19959   cat >>confdefs.h <<_ACEOF
19960 #define HAVE_GETAUXVAL 1
19961 _ACEOF
19962
19963 fi
19964 done
19965
19966                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19967 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19968 if ${ac_cv_search_clock_gettime+:} false; then :
19969   $as_echo_n "(cached) " >&6
19970 else
19971   ac_func_search_save_LIBS=$LIBS
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h.  */
19974
19975 /* Override any GCC internal prototype to avoid an error.
19976    Use char because int might match the return type of a GCC
19977    builtin and then its argument prototype would still apply.  */
19978 #ifdef __cplusplus
19979 extern "C"
19980 #endif
19981 char clock_gettime ();
19982 int
19983 main ()
19984 {
19985 return clock_gettime ();
19986   ;
19987   return 0;
19988 }
19989 _ACEOF
19990 for ac_lib in '' rt; do
19991   if test -z "$ac_lib"; then
19992     ac_res="none required"
19993   else
19994     ac_res=-l$ac_lib
19995     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19996   fi
19997   if ac_fn_c_try_link "$LINENO"; then :
19998   ac_cv_search_clock_gettime=$ac_res
19999 fi
20000 rm -f core conftest.err conftest.$ac_objext \
20001     conftest$ac_exeext
20002   if ${ac_cv_search_clock_gettime+:} false; then :
20003   break
20004 fi
20005 done
20006 if ${ac_cv_search_clock_gettime+:} false; then :
20007
20008 else
20009   ac_cv_search_clock_gettime=no
20010 fi
20011 rm conftest.$ac_ext
20012 LIBS=$ac_func_search_save_LIBS
20013 fi
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20015 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20016 ac_res=$ac_cv_search_clock_gettime
20017 if test "$ac_res" != no; then :
20018   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20019
20020 fi
20021
20022                         ;;
20023                         esac
20024                     fi
20025
20026 fi
20027 done
20028
20029         fi
20030 fi
20031 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20032
20033 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20034 if test "x$ac_cv_func_ctime_r" = xyes; then :
20035   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20036
20037 else
20038   case " $LIBOBJS " in
20039   *" ctime_r.$ac_objext "* ) ;;
20040   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20041  ;;
20042 esac
20043
20044 fi
20045
20046
20047 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20048 if test "x$ac_cv_func_strsep" = xyes; then :
20049   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20050
20051 else
20052   case " $LIBOBJS " in
20053   *" strsep.$ac_objext "* ) ;;
20054   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20055  ;;
20056 esac
20057
20058 fi
20059
20060
20061
20062 # Check whether --enable-allsymbols was given.
20063 if test "${enable_allsymbols+set}" = set; then :
20064   enableval=$enable_allsymbols;
20065 fi
20066
20067 case "$enable_allsymbols" in
20068         yes)
20069         COMMON_OBJ_ALL_SYMBOLS=""
20070         UBSYMS=""
20071         EXTRALINK="-L. -L.libs -lunbound"
20072
20073 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20074
20075         ;;
20076         no|*)
20077         COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20078         UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20079         EXTRALINK=""
20080         ;;
20081 esac
20082
20083
20084
20085 if test x_$enable_lock_checks = x_yes; then
20086         UBSYMS="-export-symbols clubsyms.def"
20087         cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20088         echo lock_protect >> clubsyms.def
20089         echo lock_unprotect >> clubsyms.def
20090         echo lock_get_mem >> clubsyms.def
20091         echo checklock_start >> clubsyms.def
20092         echo checklock_stop >> clubsyms.def
20093         echo checklock_lock >> clubsyms.def
20094         echo checklock_unlock >> clubsyms.def
20095         echo checklock_init >> clubsyms.def
20096         echo checklock_thrcreate >> clubsyms.def
20097         echo checklock_thrjoin >> clubsyms.def
20098 fi
20099
20100 # check for dnstap if requested
20101
20102   # Check whether --enable-dnstap was given.
20103 if test "${enable_dnstap+set}" = set; then :
20104   enableval=$enable_dnstap; opt_dnstap=$enableval
20105 else
20106   opt_dnstap=no
20107 fi
20108
20109
20110
20111 # Check whether --with-dnstap-socket-path was given.
20112 if test "${with_dnstap_socket_path+set}" = set; then :
20113   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20114 else
20115   opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20116 fi
20117
20118
20119   if test "x$opt_dnstap" != "xno"; then
20120     # Extract the first word of "protoc-c", so it can be a program name with args.
20121 set dummy protoc-c; ac_word=$2
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20123 $as_echo_n "checking for $ac_word... " >&6; }
20124 if ${ac_cv_path_PROTOC_C+:} false; then :
20125   $as_echo_n "(cached) " >&6
20126 else
20127   case $PROTOC_C in
20128   [\\/]* | ?:[\\/]*)
20129   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20130   ;;
20131   *)
20132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20134 do
20135   IFS=$as_save_IFS
20136   test -z "$as_dir" && as_dir=.
20137     for ac_exec_ext in '' $ac_executable_extensions; do
20138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20139     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20141     break 2
20142   fi
20143 done
20144   done
20145 IFS=$as_save_IFS
20146
20147   ;;
20148 esac
20149 fi
20150 PROTOC_C=$ac_cv_path_PROTOC_C
20151 if test -n "$PROTOC_C"; then
20152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20153 $as_echo "$PROTOC_C" >&6; }
20154 else
20155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20157 fi
20158
20159
20160     if test -z "$PROTOC_C"; then
20161       as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20162     fi
20163
20164 # Check whether --with-protobuf-c was given.
20165 if test "${with_protobuf_c+set}" = set; then :
20166   withval=$with_protobuf_c;
20167           # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20168           if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20169             CFLAGS="$CFLAGS -I$withval/include/google"
20170           else
20171             CFLAGS="$CFLAGS -I$withval/include"
20172           fi
20173           LDFLAGS="$LDFLAGS -L$withval/lib"
20174
20175 else
20176
20177           # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20178           if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20179             CFLAGS="$CFLAGS -I/usr/include/google"
20180           else
20181             if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20182               CFLAGS="$CFLAGS -I/usr/local/include/google"
20183               LDFLAGS="$LDFLAGS -L/usr/local/lib"
20184             fi
20185           fi
20186
20187 fi
20188
20189
20190 # Check whether --with-libfstrm was given.
20191 if test "${with_libfstrm+set}" = set; then :
20192   withval=$with_libfstrm;
20193         CFLAGS="$CFLAGS -I$withval/include"
20194         LDFLAGS="$LDFLAGS -L$withval/lib"
20195
20196 fi
20197
20198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20199 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20200 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20201   $as_echo_n "(cached) " >&6
20202 else
20203   ac_func_search_save_LIBS=$LIBS
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h.  */
20206
20207 /* Override any GCC internal prototype to avoid an error.
20208    Use char because int might match the return type of a GCC
20209    builtin and then its argument prototype would still apply.  */
20210 #ifdef __cplusplus
20211 extern "C"
20212 #endif
20213 char fstrm_iothr_init ();
20214 int
20215 main ()
20216 {
20217 return fstrm_iothr_init ();
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 for ac_lib in '' fstrm; do
20223   if test -z "$ac_lib"; then
20224     ac_res="none required"
20225   else
20226     ac_res=-l$ac_lib
20227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20228   fi
20229   if ac_fn_c_try_link "$LINENO"; then :
20230   ac_cv_search_fstrm_iothr_init=$ac_res
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext \
20233     conftest$ac_exeext
20234   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20235   break
20236 fi
20237 done
20238 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20239
20240 else
20241   ac_cv_search_fstrm_iothr_init=no
20242 fi
20243 rm conftest.$ac_ext
20244 LIBS=$ac_func_search_save_LIBS
20245 fi
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20247 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20248 ac_res=$ac_cv_search_fstrm_iothr_init
20249 if test "$ac_res" != no; then :
20250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20251
20252 else
20253   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20254 fi
20255
20256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20257 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20258 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20259   $as_echo_n "(cached) " >&6
20260 else
20261   ac_func_search_save_LIBS=$LIBS
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h.  */
20264
20265 /* Override any GCC internal prototype to avoid an error.
20266    Use char because int might match the return type of a GCC
20267    builtin and then its argument prototype would still apply.  */
20268 #ifdef __cplusplus
20269 extern "C"
20270 #endif
20271 char protobuf_c_message_pack ();
20272 int
20273 main ()
20274 {
20275 return protobuf_c_message_pack ();
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 for ac_lib in '' protobuf-c; do
20281   if test -z "$ac_lib"; then
20282     ac_res="none required"
20283   else
20284     ac_res=-l$ac_lib
20285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20286   fi
20287   if ac_fn_c_try_link "$LINENO"; then :
20288   ac_cv_search_protobuf_c_message_pack=$ac_res
20289 fi
20290 rm -f core conftest.err conftest.$ac_objext \
20291     conftest$ac_exeext
20292   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20293   break
20294 fi
20295 done
20296 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20297
20298 else
20299   ac_cv_search_protobuf_c_message_pack=no
20300 fi
20301 rm conftest.$ac_ext
20302 LIBS=$ac_func_search_save_LIBS
20303 fi
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20305 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20306 ac_res=$ac_cv_search_protobuf_c_message_pack
20307 if test "$ac_res" != no; then :
20308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20309
20310 else
20311   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20312 fi
20313
20314
20315
20316 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
20317
20318         ENABLE_DNSTAP=1
20319
20320
20321
20322         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20323
20324
20325 cat >>confdefs.h <<_ACEOF
20326 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20327 _ACEOF
20328
20329
20330         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20331
20332         DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20333
20334
20335   else
20336
20337         ENABLE_DNSTAP=0
20338
20339
20340
20341   fi
20342
20343
20344 # check for dnscrypt if requested
20345
20346   # Check whether --enable-dnscrypt was given.
20347 if test "${enable_dnscrypt+set}" = set; then :
20348   enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20349 else
20350   opt_dnscrypt=no
20351 fi
20352
20353
20354   if test "x$opt_dnscrypt" != "xno"; then
20355
20356 # Check whether --with-libsodium was given.
20357 if test "${with_libsodium+set}" = set; then :
20358   withval=$with_libsodium;
20359         CFLAGS="$CFLAGS -I$withval/include"
20360         LDFLAGS="$LDFLAGS -L$withval/lib"
20361
20362 fi
20363
20364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20365 $as_echo_n "checking for library containing sodium_init... " >&6; }
20366 if ${ac_cv_search_sodium_init+:} false; then :
20367   $as_echo_n "(cached) " >&6
20368 else
20369   ac_func_search_save_LIBS=$LIBS
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h.  */
20372
20373 /* Override any GCC internal prototype to avoid an error.
20374    Use char because int might match the return type of a GCC
20375    builtin and then its argument prototype would still apply.  */
20376 #ifdef __cplusplus
20377 extern "C"
20378 #endif
20379 char sodium_init ();
20380 int
20381 main ()
20382 {
20383 return sodium_init ();
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 for ac_lib in '' sodium; do
20389   if test -z "$ac_lib"; then
20390     ac_res="none required"
20391   else
20392     ac_res=-l$ac_lib
20393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20394   fi
20395   if ac_fn_c_try_link "$LINENO"; then :
20396   ac_cv_search_sodium_init=$ac_res
20397 fi
20398 rm -f core conftest.err conftest.$ac_objext \
20399     conftest$ac_exeext
20400   if ${ac_cv_search_sodium_init+:} false; then :
20401   break
20402 fi
20403 done
20404 if ${ac_cv_search_sodium_init+:} false; then :
20405
20406 else
20407   ac_cv_search_sodium_init=no
20408 fi
20409 rm conftest.$ac_ext
20410 LIBS=$ac_func_search_save_LIBS
20411 fi
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
20413 $as_echo "$ac_cv_search_sodium_init" >&6; }
20414 ac_res=$ac_cv_search_sodium_init
20415 if test "$ac_res" != no; then :
20416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20417
20418 else
20419   as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
20420 fi
20421
20422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20423 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
20424 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20425   $as_echo_n "(cached) " >&6
20426 else
20427   ac_func_search_save_LIBS=$LIBS
20428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h.  */
20430
20431 /* Override any GCC internal prototype to avoid an error.
20432    Use char because int might match the return type of a GCC
20433    builtin and then its argument prototype would still apply.  */
20434 #ifdef __cplusplus
20435 extern "C"
20436 #endif
20437 char crypto_box_curve25519xchacha20poly1305_beforenm ();
20438 int
20439 main ()
20440 {
20441 return crypto_box_curve25519xchacha20poly1305_beforenm ();
20442   ;
20443   return 0;
20444 }
20445 _ACEOF
20446 for ac_lib in '' sodium; do
20447   if test -z "$ac_lib"; then
20448     ac_res="none required"
20449   else
20450     ac_res=-l$ac_lib
20451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20452   fi
20453   if ac_fn_c_try_link "$LINENO"; then :
20454   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
20455 fi
20456 rm -f core conftest.err conftest.$ac_objext \
20457     conftest$ac_exeext
20458   if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20459   break
20460 fi
20461 done
20462 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20463
20464 else
20465   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
20466 fi
20467 rm conftest.$ac_ext
20468 LIBS=$ac_func_search_save_LIBS
20469 fi
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20471 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
20472 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
20473 if test "$ac_res" != no; then :
20474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20475
20476             ENABLE_DNSCRYPT_XCHACHA20=1
20477
20478
20479 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
20480
20481
20482 else
20483
20484             ENABLE_DNSCRYPT_XCHACHA20=0
20485
20486
20487 fi
20488
20489
20490
20491 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
20492
20493         ENABLE_DNSCRYPT=1
20494
20495
20496         DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
20497
20498         DNSCRYPT_OBJ="dnscrypt.lo"
20499
20500
20501   else
20502     ENABLE_DNSCRYPT_XCHACHA20=0
20503
20504
20505         ENABLE_DNSCRYPT=0
20506
20507
20508
20509   fi
20510
20511
20512 # check for cachedb if requested
20513 # Check whether --enable-cachedb was given.
20514 if test "${enable_cachedb+set}" = set; then :
20515   enableval=$enable_cachedb;
20516 fi
20517
20518 case "$enable_cachedb" in
20519     yes)
20520
20521 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
20522
20523         ;;
20524     no|*)
20525         # nothing
20526         ;;
20527 esac
20528
20529 # check for ipsecmod if requested
20530 # Check whether --enable-ipsecmod was given.
20531 if test "${enable_ipsecmod+set}" = set; then :
20532   enableval=$enable_ipsecmod;
20533 fi
20534
20535 case "$enable_ipsecmod" in
20536         yes)
20537
20538 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
20539
20540                 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
20541
20542                 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
20543
20544                 ;;
20545         no|*)
20546                 # nothing
20547                 ;;
20548 esac
20549
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
20551 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
20552 # on openBSD, the implicit rule make $< work.
20553 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
20554 # gmake works.
20555 cat >conftest.make <<EOF
20556 all:    conftest.lo
20557
20558 conftest.lo foo.lo bla.lo:
20559         if test -f "\$<"; then touch \$@; fi
20560
20561 .SUFFIXES: .lo
20562 .c.lo:
20563         if test -f "\$<"; then touch \$@; fi
20564
20565 conftest.lo:        conftest.dir/conftest.c
20566 EOF
20567 mkdir conftest.dir
20568 touch conftest.dir/conftest.c
20569 rm -f conftest.lo conftest.c
20570 ${MAKE:-make} -f conftest.make >/dev/null
20571 rm -f conftest.make conftest.c conftest.dir/conftest.c
20572 rm -rf conftest.dir
20573 if test ! -f conftest.lo; then
20574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575 $as_echo "no" >&6; }
20576         SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
20577         SOURCEFILE='`cat .source`'
20578 else
20579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20580 $as_echo "yes" >&6; }
20581         SOURCEDETERMINE=':'
20582         SOURCEFILE='$<'
20583 fi
20584 rm -f conftest.lo
20585
20586
20587
20588 # see if we want to build the library or everything
20589 ALLTARGET="alltargets"
20590 INSTALLTARGET="install-all"
20591
20592 # Check whether --with-libunbound-only was given.
20593 if test "${with_libunbound_only+set}" = set; then :
20594   withval=$with_libunbound_only;
20595         if test "$withval" = "yes"; then
20596                 ALLTARGET="lib"
20597                 INSTALLTARGET="install-lib"
20598         fi
20599
20600 fi
20601
20602
20603
20604
20605
20606   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
20607 $as_echo "$as_me: Stripping extension flags..." >&6;}
20608
20609   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
20610     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
20611
20612 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
20613
20614   fi
20615
20616
20617   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
20618     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
20619
20620 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
20621
20622   fi
20623
20624
20625   if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
20626     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
20627
20628 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
20629
20630   fi
20631
20632
20633   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
20634     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
20635
20636 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
20637
20638   fi
20639
20640
20641   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
20642     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
20643
20644 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
20645
20646   fi
20647
20648
20649   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
20650     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
20651
20652 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
20653
20654   fi
20655
20656
20657   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
20658     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
20659
20660 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
20661
20662   fi
20663
20664
20665   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
20666     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
20667
20668 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
20669
20670   fi
20671
20672
20673   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
20674     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
20675
20676 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
20677
20678   fi
20679
20680
20681 if test -n "$LATE_LDFLAGS"; then
20682   LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
20683 fi
20684 # remove start spaces
20685 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
20686 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
20687
20688
20689 cat >>confdefs.h <<_ACEOF
20690 #define MAXSYSLOGMSGLEN 10240
20691 _ACEOF
20692
20693
20694
20695
20696 version=1.6.6
20697
20698 date=`date +'%b %e, %Y'`
20699
20700
20701 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service"
20702
20703 ac_config_headers="$ac_config_headers config.h"
20704
20705 cat >confcache <<\_ACEOF
20706 # This file is a shell script that caches the results of configure
20707 # tests run on this system so they can be shared between configure
20708 # scripts and configure runs, see configure's option --config-cache.
20709 # It is not useful on other systems.  If it contains results you don't
20710 # want to keep, you may remove or edit it.
20711 #
20712 # config.status only pays attention to the cache file if you give it
20713 # the --recheck option to rerun configure.
20714 #
20715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20717 # following values.
20718
20719 _ACEOF
20720
20721 # The following way of writing the cache mishandles newlines in values,
20722 # but we know of no workaround that is simple, portable, and efficient.
20723 # So, we kill variables containing newlines.
20724 # Ultrix sh set writes to stderr and can't be redirected directly,
20725 # and sets the high bit in the cache file unless we assign to the vars.
20726 (
20727   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20728     eval ac_val=\$$ac_var
20729     case $ac_val in #(
20730     *${as_nl}*)
20731       case $ac_var in #(
20732       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20734       esac
20735       case $ac_var in #(
20736       _ | IFS | as_nl) ;; #(
20737       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20738       *) { eval $ac_var=; unset $ac_var;} ;;
20739       esac ;;
20740     esac
20741   done
20742
20743   (set) 2>&1 |
20744     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20745     *${as_nl}ac_space=\ *)
20746       # `set' does not quote correctly, so add quotes: double-quote
20747       # substitution turns \\\\ into \\, and sed turns \\ into \.
20748       sed -n \
20749         "s/'/'\\\\''/g;
20750           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20751       ;; #(
20752     *)
20753       # `set' quotes correctly as required by POSIX, so do not add quotes.
20754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20755       ;;
20756     esac |
20757     sort
20758 ) |
20759   sed '
20760      /^ac_cv_env_/b end
20761      t clear
20762      :clear
20763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20764      t end
20765      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20766      :end' >>confcache
20767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20768   if test -w "$cache_file"; then
20769     if test "x$cache_file" != "x/dev/null"; then
20770       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20771 $as_echo "$as_me: updating cache $cache_file" >&6;}
20772       if test ! -f "$cache_file" || test -h "$cache_file"; then
20773         cat confcache >"$cache_file"
20774       else
20775         case $cache_file in #(
20776         */* | ?:*)
20777           mv -f confcache "$cache_file"$$ &&
20778           mv -f "$cache_file"$$ "$cache_file" ;; #(
20779         *)
20780           mv -f confcache "$cache_file" ;;
20781         esac
20782       fi
20783     fi
20784   else
20785     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20786 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20787   fi
20788 fi
20789 rm -f confcache
20790
20791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20792 # Let make expand exec_prefix.
20793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20794
20795 DEFS=-DHAVE_CONFIG_H
20796
20797 ac_libobjs=
20798 ac_ltlibobjs=
20799 U=
20800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20801   # 1. Remove the extension, and $U if already installed.
20802   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20803   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20804   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20805   #    will be set to the directory where LIBOBJS objects are built.
20806   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20807   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20808 done
20809 LIBOBJS=$ac_libobjs
20810
20811 LTLIBOBJS=$ac_ltlibobjs
20812
20813
20814 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
20815   as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
20816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20817 fi
20818
20819 : "${CONFIG_STATUS=./config.status}"
20820 ac_write_fail=0
20821 ac_clean_files_save=$ac_clean_files
20822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20825 as_write_fail=0
20826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20827 #! $SHELL
20828 # Generated by $as_me.
20829 # Run this file to recreate the current configuration.
20830 # Compiler output produced by configure, useful for debugging
20831 # configure, is in config.log if it exists.
20832
20833 debug=false
20834 ac_cs_recheck=false
20835 ac_cs_silent=false
20836
20837 SHELL=\${CONFIG_SHELL-$SHELL}
20838 export SHELL
20839 _ASEOF
20840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20841 ## -------------------- ##
20842 ## M4sh Initialization. ##
20843 ## -------------------- ##
20844
20845 # Be more Bourne compatible
20846 DUALCASE=1; export DUALCASE # for MKS sh
20847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20848   emulate sh
20849   NULLCMD=:
20850   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20851   # is contrary to our usage.  Disable this feature.
20852   alias -g '${1+"$@"}'='"$@"'
20853   setopt NO_GLOB_SUBST
20854 else
20855   case `(set -o) 2>/dev/null` in #(
20856   *posix*) :
20857     set -o posix ;; #(
20858   *) :
20859      ;;
20860 esac
20861 fi
20862
20863
20864 as_nl='
20865 '
20866 export as_nl
20867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20871 # Prefer a ksh shell builtin over an external printf program on Solaris,
20872 # but without wasting forks for bash or zsh.
20873 if test -z "$BASH_VERSION$ZSH_VERSION" \
20874     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20875   as_echo='print -r --'
20876   as_echo_n='print -rn --'
20877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20878   as_echo='printf %s\n'
20879   as_echo_n='printf %s'
20880 else
20881   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20882     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20883     as_echo_n='/usr/ucb/echo -n'
20884   else
20885     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20886     as_echo_n_body='eval
20887       arg=$1;
20888       case $arg in #(
20889       *"$as_nl"*)
20890         expr "X$arg" : "X\\(.*\\)$as_nl";
20891         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20892       esac;
20893       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20894     '
20895     export as_echo_n_body
20896     as_echo_n='sh -c $as_echo_n_body as_echo'
20897   fi
20898   export as_echo_body
20899   as_echo='sh -c $as_echo_body as_echo'
20900 fi
20901
20902 # The user is always right.
20903 if test "${PATH_SEPARATOR+set}" != set; then
20904   PATH_SEPARATOR=:
20905   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20906     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20907       PATH_SEPARATOR=';'
20908   }
20909 fi
20910
20911
20912 # IFS
20913 # We need space, tab and new line, in precisely that order.  Quoting is
20914 # there to prevent editors from complaining about space-tab.
20915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20916 # splitting by setting IFS to empty value.)
20917 IFS=" ""        $as_nl"
20918
20919 # Find who we are.  Look in the path if we contain no directory separator.
20920 as_myself=
20921 case $0 in #((
20922   *[\\/]* ) as_myself=$0 ;;
20923   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20924 for as_dir in $PATH
20925 do
20926   IFS=$as_save_IFS
20927   test -z "$as_dir" && as_dir=.
20928     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20929   done
20930 IFS=$as_save_IFS
20931
20932      ;;
20933 esac
20934 # We did not find ourselves, most probably we were run as `sh COMMAND'
20935 # in which case we are not to be found in the path.
20936 if test "x$as_myself" = x; then
20937   as_myself=$0
20938 fi
20939 if test ! -f "$as_myself"; then
20940   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20941   exit 1
20942 fi
20943
20944 # Unset variables that we do not need and which cause bugs (e.g. in
20945 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20946 # suppresses any "Segmentation fault" message there.  '((' could
20947 # trigger a bug in pdksh 5.2.14.
20948 for as_var in BASH_ENV ENV MAIL MAILPATH
20949 do eval test x\${$as_var+set} = xset \
20950   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20951 done
20952 PS1='$ '
20953 PS2='> '
20954 PS4='+ '
20955
20956 # NLS nuisances.
20957 LC_ALL=C
20958 export LC_ALL
20959 LANGUAGE=C
20960 export LANGUAGE
20961
20962 # CDPATH.
20963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20964
20965
20966 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20967 # ----------------------------------------
20968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20970 # script with STATUS, using 1 if that was 0.
20971 as_fn_error ()
20972 {
20973   as_status=$1; test $as_status -eq 0 && as_status=1
20974   if test "$4"; then
20975     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20976     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20977   fi
20978   $as_echo "$as_me: error: $2" >&2
20979   as_fn_exit $as_status
20980 } # as_fn_error
20981
20982
20983 # as_fn_set_status STATUS
20984 # -----------------------
20985 # Set $? to STATUS, without forking.
20986 as_fn_set_status ()
20987 {
20988   return $1
20989 } # as_fn_set_status
20990
20991 # as_fn_exit STATUS
20992 # -----------------
20993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20994 as_fn_exit ()
20995 {
20996   set +e
20997   as_fn_set_status $1
20998   exit $1
20999 } # as_fn_exit
21000
21001 # as_fn_unset VAR
21002 # ---------------
21003 # Portably unset VAR.
21004 as_fn_unset ()
21005 {
21006   { eval $1=; unset $1;}
21007 }
21008 as_unset=as_fn_unset
21009 # as_fn_append VAR VALUE
21010 # ----------------------
21011 # Append the text in VALUE to the end of the definition contained in VAR. Take
21012 # advantage of any shell optimizations that allow amortized linear growth over
21013 # repeated appends, instead of the typical quadratic growth present in naive
21014 # implementations.
21015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21016   eval 'as_fn_append ()
21017   {
21018     eval $1+=\$2
21019   }'
21020 else
21021   as_fn_append ()
21022   {
21023     eval $1=\$$1\$2
21024   }
21025 fi # as_fn_append
21026
21027 # as_fn_arith ARG...
21028 # ------------------
21029 # Perform arithmetic evaluation on the ARGs, and store the result in the
21030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21031 # must be portable across $(()) and expr.
21032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21033   eval 'as_fn_arith ()
21034   {
21035     as_val=$(( $* ))
21036   }'
21037 else
21038   as_fn_arith ()
21039   {
21040     as_val=`expr "$@" || test $? -eq 1`
21041   }
21042 fi # as_fn_arith
21043
21044
21045 if expr a : '\(a\)' >/dev/null 2>&1 &&
21046    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21047   as_expr=expr
21048 else
21049   as_expr=false
21050 fi
21051
21052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21053   as_basename=basename
21054 else
21055   as_basename=false
21056 fi
21057
21058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21059   as_dirname=dirname
21060 else
21061   as_dirname=false
21062 fi
21063
21064 as_me=`$as_basename -- "$0" ||
21065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21066          X"$0" : 'X\(//\)$' \| \
21067          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21068 $as_echo X/"$0" |
21069     sed '/^.*\/\([^/][^/]*\)\/*$/{
21070             s//\1/
21071             q
21072           }
21073           /^X\/\(\/\/\)$/{
21074             s//\1/
21075             q
21076           }
21077           /^X\/\(\/\).*/{
21078             s//\1/
21079             q
21080           }
21081           s/.*/./; q'`
21082
21083 # Avoid depending upon Character Ranges.
21084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087 as_cr_digits='0123456789'
21088 as_cr_alnum=$as_cr_Letters$as_cr_digits
21089
21090 ECHO_C= ECHO_N= ECHO_T=
21091 case `echo -n x` in #(((((
21092 -n*)
21093   case `echo 'xy\c'` in
21094   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21095   xy)  ECHO_C='\c';;
21096   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21097        ECHO_T=' ';;
21098   esac;;
21099 *)
21100   ECHO_N='-n';;
21101 esac
21102
21103 rm -f conf$$ conf$$.exe conf$$.file
21104 if test -d conf$$.dir; then
21105   rm -f conf$$.dir/conf$$.file
21106 else
21107   rm -f conf$$.dir
21108   mkdir conf$$.dir 2>/dev/null
21109 fi
21110 if (echo >conf$$.file) 2>/dev/null; then
21111   if ln -s conf$$.file conf$$ 2>/dev/null; then
21112     as_ln_s='ln -s'
21113     # ... but there are two gotchas:
21114     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21115     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21116     # In both cases, we have to default to `cp -pR'.
21117     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21118       as_ln_s='cp -pR'
21119   elif ln conf$$.file conf$$ 2>/dev/null; then
21120     as_ln_s=ln
21121   else
21122     as_ln_s='cp -pR'
21123   fi
21124 else
21125   as_ln_s='cp -pR'
21126 fi
21127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21128 rmdir conf$$.dir 2>/dev/null
21129
21130
21131 # as_fn_mkdir_p
21132 # -------------
21133 # Create "$as_dir" as a directory, including parents if necessary.
21134 as_fn_mkdir_p ()
21135 {
21136
21137   case $as_dir in #(
21138   -*) as_dir=./$as_dir;;
21139   esac
21140   test -d "$as_dir" || eval $as_mkdir_p || {
21141     as_dirs=
21142     while :; do
21143       case $as_dir in #(
21144       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21145       *) as_qdir=$as_dir;;
21146       esac
21147       as_dirs="'$as_qdir' $as_dirs"
21148       as_dir=`$as_dirname -- "$as_dir" ||
21149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21150          X"$as_dir" : 'X\(//\)[^/]' \| \
21151          X"$as_dir" : 'X\(//\)$' \| \
21152          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21153 $as_echo X"$as_dir" |
21154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21155             s//\1/
21156             q
21157           }
21158           /^X\(\/\/\)[^/].*/{
21159             s//\1/
21160             q
21161           }
21162           /^X\(\/\/\)$/{
21163             s//\1/
21164             q
21165           }
21166           /^X\(\/\).*/{
21167             s//\1/
21168             q
21169           }
21170           s/.*/./; q'`
21171       test -d "$as_dir" && break
21172     done
21173     test -z "$as_dirs" || eval "mkdir $as_dirs"
21174   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21175
21176
21177 } # as_fn_mkdir_p
21178 if mkdir -p . 2>/dev/null; then
21179   as_mkdir_p='mkdir -p "$as_dir"'
21180 else
21181   test -d ./-p && rmdir ./-p
21182   as_mkdir_p=false
21183 fi
21184
21185
21186 # as_fn_executable_p FILE
21187 # -----------------------
21188 # Test if FILE is an executable regular file.
21189 as_fn_executable_p ()
21190 {
21191   test -f "$1" && test -x "$1"
21192 } # as_fn_executable_p
21193 as_test_x='test -x'
21194 as_executable_p=as_fn_executable_p
21195
21196 # Sed expression to map a string onto a valid CPP name.
21197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21198
21199 # Sed expression to map a string onto a valid variable name.
21200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21201
21202
21203 exec 6>&1
21204 ## ----------------------------------- ##
21205 ## Main body of $CONFIG_STATUS script. ##
21206 ## ----------------------------------- ##
21207 _ASEOF
21208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21209
21210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21211 # Save the log message, to keep $0 and so on meaningful, and to
21212 # report actual input values of CONFIG_FILES etc. instead of their
21213 # values after options handling.
21214 ac_log="
21215 This file was extended by unbound $as_me 1.6.6, which was
21216 generated by GNU Autoconf 2.69.  Invocation command line was
21217
21218   CONFIG_FILES    = $CONFIG_FILES
21219   CONFIG_HEADERS  = $CONFIG_HEADERS
21220   CONFIG_LINKS    = $CONFIG_LINKS
21221   CONFIG_COMMANDS = $CONFIG_COMMANDS
21222   $ $0 $@
21223
21224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21225 "
21226
21227 _ACEOF
21228
21229 case $ac_config_files in *"
21230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21231 esac
21232
21233 case $ac_config_headers in *"
21234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21235 esac
21236
21237
21238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21239 # Files that config.status was made for.
21240 config_files="$ac_config_files"
21241 config_headers="$ac_config_headers"
21242 config_commands="$ac_config_commands"
21243
21244 _ACEOF
21245
21246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21247 ac_cs_usage="\
21248 \`$as_me' instantiates files and other configuration actions
21249 from templates according to the current configuration.  Unless the files
21250 and actions are specified as TAGs, all are instantiated by default.
21251
21252 Usage: $0 [OPTION]... [TAG]...
21253
21254   -h, --help       print this help, then exit
21255   -V, --version    print version number and configuration settings, then exit
21256       --config     print configuration, then exit
21257   -q, --quiet, --silent
21258                    do not print progress messages
21259   -d, --debug      don't remove temporary files
21260       --recheck    update $as_me by reconfiguring in the same conditions
21261       --file=FILE[:TEMPLATE]
21262                    instantiate the configuration file FILE
21263       --header=FILE[:TEMPLATE]
21264                    instantiate the configuration header FILE
21265
21266 Configuration files:
21267 $config_files
21268
21269 Configuration headers:
21270 $config_headers
21271
21272 Configuration commands:
21273 $config_commands
21274
21275 Report bugs to <unbound-bugs@nlnetlabs.nl>."
21276
21277 _ACEOF
21278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21279 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21280 ac_cs_version="\\
21281 unbound config.status 1.6.6
21282 configured by $0, generated by GNU Autoconf 2.69,
21283   with options \\"\$ac_cs_config\\"
21284
21285 Copyright (C) 2012 Free Software Foundation, Inc.
21286 This config.status script is free software; the Free Software Foundation
21287 gives unlimited permission to copy, distribute and modify it."
21288
21289 ac_pwd='$ac_pwd'
21290 srcdir='$srcdir'
21291 AWK='$AWK'
21292 test -n "\$AWK" || AWK=awk
21293 _ACEOF
21294
21295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21296 # The default lists apply if the user does not specify any file.
21297 ac_need_defaults=:
21298 while test $# != 0
21299 do
21300   case $1 in
21301   --*=?*)
21302     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21303     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21304     ac_shift=:
21305     ;;
21306   --*=)
21307     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21308     ac_optarg=
21309     ac_shift=:
21310     ;;
21311   *)
21312     ac_option=$1
21313     ac_optarg=$2
21314     ac_shift=shift
21315     ;;
21316   esac
21317
21318   case $ac_option in
21319   # Handling of the options.
21320   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21321     ac_cs_recheck=: ;;
21322   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21323     $as_echo "$ac_cs_version"; exit ;;
21324   --config | --confi | --conf | --con | --co | --c )
21325     $as_echo "$ac_cs_config"; exit ;;
21326   --debug | --debu | --deb | --de | --d | -d )
21327     debug=: ;;
21328   --file | --fil | --fi | --f )
21329     $ac_shift
21330     case $ac_optarg in
21331     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21332     '') as_fn_error $? "missing file argument" ;;
21333     esac
21334     as_fn_append CONFIG_FILES " '$ac_optarg'"
21335     ac_need_defaults=false;;
21336   --header | --heade | --head | --hea )
21337     $ac_shift
21338     case $ac_optarg in
21339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21340     esac
21341     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21342     ac_need_defaults=false;;
21343   --he | --h)
21344     # Conflict between --help and --header
21345     as_fn_error $? "ambiguous option: \`$1'
21346 Try \`$0 --help' for more information.";;
21347   --help | --hel | -h )
21348     $as_echo "$ac_cs_usage"; exit ;;
21349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21350   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21351     ac_cs_silent=: ;;
21352
21353   # This is an error.
21354   -*) as_fn_error $? "unrecognized option: \`$1'
21355 Try \`$0 --help' for more information." ;;
21356
21357   *) as_fn_append ac_config_targets " $1"
21358      ac_need_defaults=false ;;
21359
21360   esac
21361   shift
21362 done
21363
21364 ac_configure_extra_args=
21365
21366 if $ac_cs_silent; then
21367   exec 6>/dev/null
21368   ac_configure_extra_args="$ac_configure_extra_args --silent"
21369 fi
21370
21371 _ACEOF
21372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21373 if \$ac_cs_recheck; then
21374   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21375   shift
21376   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21377   CONFIG_SHELL='$SHELL'
21378   export CONFIG_SHELL
21379   exec "\$@"
21380 fi
21381
21382 _ACEOF
21383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384 exec 5>>config.log
21385 {
21386   echo
21387   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21388 ## Running $as_me. ##
21389 _ASBOX
21390   $as_echo "$ac_log"
21391 } >&5
21392
21393 _ACEOF
21394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21395 #
21396 # INIT-COMMANDS
21397 #
21398
21399
21400 # The HP-UX ksh and POSIX shell print the target directory to stdout
21401 # if CDPATH is set.
21402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21403
21404 sed_quote_subst='$sed_quote_subst'
21405 double_quote_subst='$double_quote_subst'
21406 delay_variable_subst='$delay_variable_subst'
21407 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21408 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21409 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21410 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21411 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21412 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21413 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21416 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21437 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21438 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21439 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21440 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21441 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21442 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21443 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21444 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21445 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21446 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21447 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21448 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21449 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21450 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21451 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21452 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21453 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21454 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21455 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21456 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21457 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21458 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21459 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21460 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21461 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21462 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21463 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21464 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21466 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21467 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21468 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21469 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21470 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21471 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21472 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21473 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21474 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21475 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21476 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21477 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21478 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21479 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21480 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21481 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21482 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21483 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21484 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21485 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21486 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21487 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21488 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21489 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21490 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21491 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21492 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21493 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21494 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21495 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21496 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21497 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21498 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21499 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21500 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21501 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21502 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21503 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21504 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21505 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21506 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21507 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21508 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21509 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21510 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21511 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21512 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21513 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21514 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21515 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21516 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21517 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21518 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21519 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21520 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21521 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21522 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21523 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21524 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21525 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21526 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21527 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21528 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21529 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21530 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21531 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21532 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21533 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21534 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21535 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21536 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21537 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21538 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21539 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21540 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21541 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21542
21543 LTCC='$LTCC'
21544 LTCFLAGS='$LTCFLAGS'
21545 compiler='$compiler_DEFAULT'
21546
21547 # A function that is used when there is no print builtin or printf.
21548 func_fallback_echo ()
21549 {
21550   eval 'cat <<_LTECHO_EOF
21551 \$1
21552 _LTECHO_EOF'
21553 }
21554
21555 # Quote evaled strings.
21556 for var in SHELL \
21557 ECHO \
21558 PATH_SEPARATOR \
21559 SED \
21560 GREP \
21561 EGREP \
21562 FGREP \
21563 LD \
21564 NM \
21565 LN_S \
21566 lt_SP2NL \
21567 lt_NL2SP \
21568 reload_flag \
21569 OBJDUMP \
21570 deplibs_check_method \
21571 file_magic_cmd \
21572 file_magic_glob \
21573 want_nocaseglob \
21574 DLLTOOL \
21575 sharedlib_from_linklib_cmd \
21576 AR \
21577 AR_FLAGS \
21578 archiver_list_spec \
21579 STRIP \
21580 RANLIB \
21581 CC \
21582 CFLAGS \
21583 compiler \
21584 lt_cv_sys_global_symbol_pipe \
21585 lt_cv_sys_global_symbol_to_cdecl \
21586 lt_cv_sys_global_symbol_to_import \
21587 lt_cv_sys_global_symbol_to_c_name_address \
21588 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21589 lt_cv_nm_interface \
21590 nm_file_list_spec \
21591 lt_cv_truncate_bin \
21592 lt_prog_compiler_no_builtin_flag \
21593 lt_prog_compiler_pic \
21594 lt_prog_compiler_wl \
21595 lt_prog_compiler_static \
21596 lt_cv_prog_compiler_c_o \
21597 need_locks \
21598 MANIFEST_TOOL \
21599 DSYMUTIL \
21600 NMEDIT \
21601 LIPO \
21602 OTOOL \
21603 OTOOL64 \
21604 shrext_cmds \
21605 export_dynamic_flag_spec \
21606 whole_archive_flag_spec \
21607 compiler_needs_object \
21608 with_gnu_ld \
21609 allow_undefined_flag \
21610 no_undefined_flag \
21611 hardcode_libdir_flag_spec \
21612 hardcode_libdir_separator \
21613 exclude_expsyms \
21614 include_expsyms \
21615 file_list_spec \
21616 variables_saved_for_relink \
21617 libname_spec \
21618 library_names_spec \
21619 soname_spec \
21620 install_override_mode \
21621 finish_eval \
21622 old_striplib \
21623 striplib; do
21624     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21625     *[\\\\\\\`\\"\\\$]*)
21626       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21627       ;;
21628     *)
21629       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21630       ;;
21631     esac
21632 done
21633
21634 # Double-quote double-evaled strings.
21635 for var in reload_cmds \
21636 old_postinstall_cmds \
21637 old_postuninstall_cmds \
21638 old_archive_cmds \
21639 extract_expsyms_cmds \
21640 old_archive_from_new_cmds \
21641 old_archive_from_expsyms_cmds \
21642 archive_cmds \
21643 archive_expsym_cmds \
21644 module_cmds \
21645 module_expsym_cmds \
21646 export_symbols_cmds \
21647 prelink_cmds \
21648 postlink_cmds \
21649 postinstall_cmds \
21650 postuninstall_cmds \
21651 finish_cmds \
21652 sys_lib_search_path_spec \
21653 configure_time_dlsearch_path \
21654 configure_time_lt_sys_library_path; do
21655     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21656     *[\\\\\\\`\\"\\\$]*)
21657       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21658       ;;
21659     *)
21660       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21661       ;;
21662     esac
21663 done
21664
21665 ac_aux_dir='$ac_aux_dir'
21666
21667 # See if we are running on zsh, and set the options that allow our
21668 # commands through without removal of \ escapes INIT.
21669 if test -n "\${ZSH_VERSION+set}"; then
21670    setopt NO_GLOB_SUBST
21671 fi
21672
21673
21674     PACKAGE='$PACKAGE'
21675     VERSION='$VERSION'
21676     RM='$RM'
21677     ofile='$ofile'
21678
21679
21680
21681
21682 _ACEOF
21683
21684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21685
21686 # Handling of arguments.
21687 for ac_config_target in $ac_config_targets
21688 do
21689   case $ac_config_target in
21690     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21691     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
21692     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21693     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
21694     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
21695     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
21696     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
21697     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
21698     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
21699     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
21700     "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
21701     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
21702     "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
21703     "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
21704     "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
21705     "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
21706     "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
21707     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21708
21709   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21710   esac
21711 done
21712
21713
21714 # If the user did not use the arguments to specify the items to instantiate,
21715 # then the envvar interface is used.  Set only those that are not.
21716 # We use the long form for the default assignment because of an extremely
21717 # bizarre bug on SunOS 4.1.3.
21718 if $ac_need_defaults; then
21719   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21720   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21721   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21722 fi
21723
21724 # Have a temporary directory for convenience.  Make it in the build tree
21725 # simply because there is no reason against having it here, and in addition,
21726 # creating and moving files from /tmp can sometimes cause problems.
21727 # Hook for its removal unless debugging.
21728 # Note that there is a small window in which the directory will not be cleaned:
21729 # after its creation but before its name has been assigned to `$tmp'.
21730 $debug ||
21731 {
21732   tmp= ac_tmp=
21733   trap 'exit_status=$?
21734   : "${ac_tmp:=$tmp}"
21735   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21736 ' 0
21737   trap 'as_fn_exit 1' 1 2 13 15
21738 }
21739 # Create a (secure) tmp directory for tmp files.
21740
21741 {
21742   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21743   test -d "$tmp"
21744 }  ||
21745 {
21746   tmp=./conf$$-$RANDOM
21747   (umask 077 && mkdir "$tmp")
21748 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21749 ac_tmp=$tmp
21750
21751 # Set up the scripts for CONFIG_FILES section.
21752 # No need to generate them if there are no CONFIG_FILES.
21753 # This happens for instance with `./config.status config.h'.
21754 if test -n "$CONFIG_FILES"; then
21755
21756
21757 ac_cr=`echo X | tr X '\015'`
21758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21759 # But we know of no other shell where ac_cr would be empty at this
21760 # point, so we can use a bashism as a fallback.
21761 if test "x$ac_cr" = x; then
21762   eval ac_cr=\$\'\\r\'
21763 fi
21764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21766   ac_cs_awk_cr='\\r'
21767 else
21768   ac_cs_awk_cr=$ac_cr
21769 fi
21770
21771 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21772 _ACEOF
21773
21774
21775 {
21776   echo "cat >conf$$subs.awk <<_ACEOF" &&
21777   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21778   echo "_ACEOF"
21779 } >conf$$subs.sh ||
21780   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21782 ac_delim='%!_!# '
21783 for ac_last_try in false false false false false :; do
21784   . ./conf$$subs.sh ||
21785     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21786
21787   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21788   if test $ac_delim_n = $ac_delim_num; then
21789     break
21790   elif $ac_last_try; then
21791     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21792   else
21793     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21794   fi
21795 done
21796 rm -f conf$$subs.sh
21797
21798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21799 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21800 _ACEOF
21801 sed -n '
21802 h
21803 s/^/S["/; s/!.*/"]=/
21804 p
21805 g
21806 s/^[^!]*!//
21807 :repl
21808 t repl
21809 s/'"$ac_delim"'$//
21810 t delim
21811 :nl
21812 h
21813 s/\(.\{148\}\)..*/\1/
21814 t more1
21815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21816 p
21817 n
21818 b repl
21819 :more1
21820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21821 p
21822 g
21823 s/.\{148\}//
21824 t nl
21825 :delim
21826 h
21827 s/\(.\{148\}\)..*/\1/
21828 t more2
21829 s/["\\]/\\&/g; s/^/"/; s/$/"/
21830 p
21831 b
21832 :more2
21833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21834 p
21835 g
21836 s/.\{148\}//
21837 t delim
21838 ' <conf$$subs.awk | sed '
21839 /^[^""]/{
21840   N
21841   s/\n//
21842 }
21843 ' >>$CONFIG_STATUS || ac_write_fail=1
21844 rm -f conf$$subs.awk
21845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21846 _ACAWK
21847 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21848   for (key in S) S_is_set[key] = 1
21849   FS = "\a"
21850
21851 }
21852 {
21853   line = $ 0
21854   nfields = split(line, field, "@")
21855   substed = 0
21856   len = length(field[1])
21857   for (i = 2; i < nfields; i++) {
21858     key = field[i]
21859     keylen = length(key)
21860     if (S_is_set[key]) {
21861       value = S[key]
21862       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21863       len += length(value) + length(field[++i])
21864       substed = 1
21865     } else
21866       len += 1 + keylen
21867   }
21868
21869   print line
21870 }
21871
21872 _ACAWK
21873 _ACEOF
21874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21875 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21876   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21877 else
21878   cat
21879 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21880   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21881 _ACEOF
21882
21883 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21884 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21885 # trailing colons and then remove the whole line if VPATH becomes empty
21886 # (actually we leave an empty line to preserve line numbers).
21887 if test "x$srcdir" = x.; then
21888   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21889 h
21890 s///
21891 s/^/:/
21892 s/[      ]*$/:/
21893 s/:\$(srcdir):/:/g
21894 s/:\${srcdir}:/:/g
21895 s/:@srcdir@:/:/g
21896 s/^:*//
21897 s/:*$//
21898 x
21899 s/\(=[   ]*\).*/\1/
21900 G
21901 s/\n//
21902 s/^[^=]*=[       ]*$//
21903 }'
21904 fi
21905
21906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21907 fi # test -n "$CONFIG_FILES"
21908
21909 # Set up the scripts for CONFIG_HEADERS section.
21910 # No need to generate them if there are no CONFIG_HEADERS.
21911 # This happens for instance with `./config.status Makefile'.
21912 if test -n "$CONFIG_HEADERS"; then
21913 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21914 BEGIN {
21915 _ACEOF
21916
21917 # Transform confdefs.h into an awk script `defines.awk', embedded as
21918 # here-document in config.status, that substitutes the proper values into
21919 # config.h.in to produce config.h.
21920
21921 # Create a delimiter string that does not exist in confdefs.h, to ease
21922 # handling of long lines.
21923 ac_delim='%!_!# '
21924 for ac_last_try in false false :; do
21925   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21926   if test -z "$ac_tt"; then
21927     break
21928   elif $ac_last_try; then
21929     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21930   else
21931     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21932   fi
21933 done
21934
21935 # For the awk script, D is an array of macro values keyed by name,
21936 # likewise P contains macro parameters if any.  Preserve backslash
21937 # newline sequences.
21938
21939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21940 sed -n '
21941 s/.\{148\}/&'"$ac_delim"'/g
21942 t rset
21943 :rset
21944 s/^[     ]*#[    ]*define[       ][      ]*/ /
21945 t def
21946 d
21947 :def
21948 s/\\$//
21949 t bsnl
21950 s/["\\]/\\&/g
21951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21952 D["\1"]=" \3"/p
21953 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21954 d
21955 :bsnl
21956 s/["\\]/\\&/g
21957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21958 D["\1"]=" \3\\\\\\n"\\/p
21959 t cont
21960 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21961 t cont
21962 d
21963 :cont
21964 n
21965 s/.\{148\}/&'"$ac_delim"'/g
21966 t clear
21967 :clear
21968 s/\\$//
21969 t bsnlc
21970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21971 d
21972 :bsnlc
21973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21974 b cont
21975 ' <confdefs.h | sed '
21976 s/'"$ac_delim"'/"\\\
21977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21978
21979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21980   for (key in D) D_is_set[key] = 1
21981   FS = "\a"
21982 }
21983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21984   line = \$ 0
21985   split(line, arg, " ")
21986   if (arg[1] == "#") {
21987     defundef = arg[2]
21988     mac1 = arg[3]
21989   } else {
21990     defundef = substr(arg[1], 2)
21991     mac1 = arg[2]
21992   }
21993   split(mac1, mac2, "(") #)
21994   macro = mac2[1]
21995   prefix = substr(line, 1, index(line, defundef) - 1)
21996   if (D_is_set[macro]) {
21997     # Preserve the white space surrounding the "#".
21998     print prefix "define", macro P[macro] D[macro]
21999     next
22000   } else {
22001     # Replace #undef with comments.  This is necessary, for example,
22002     # in the case of _POSIX_SOURCE, which is predefined and required
22003     # on some systems where configure will not decide to define it.
22004     if (defundef == "undef") {
22005       print "/*", prefix defundef, macro, "*/"
22006       next
22007     }
22008   }
22009 }
22010 { print }
22011 _ACAWK
22012 _ACEOF
22013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22014   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22015 fi # test -n "$CONFIG_HEADERS"
22016
22017
22018 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22019 shift
22020 for ac_tag
22021 do
22022   case $ac_tag in
22023   :[FHLC]) ac_mode=$ac_tag; continue;;
22024   esac
22025   case $ac_mode$ac_tag in
22026   :[FHL]*:*);;
22027   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22028   :[FH]-) ac_tag=-:-;;
22029   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22030   esac
22031   ac_save_IFS=$IFS
22032   IFS=:
22033   set x $ac_tag
22034   IFS=$ac_save_IFS
22035   shift
22036   ac_file=$1
22037   shift
22038
22039   case $ac_mode in
22040   :L) ac_source=$1;;
22041   :[FH])
22042     ac_file_inputs=
22043     for ac_f
22044     do
22045       case $ac_f in
22046       -) ac_f="$ac_tmp/stdin";;
22047       *) # Look for the file first in the build tree, then in the source tree
22048          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22049          # because $ac_f cannot contain `:'.
22050          test -f "$ac_f" ||
22051            case $ac_f in
22052            [\\/$]*) false;;
22053            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22054            esac ||
22055            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22056       esac
22057       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22058       as_fn_append ac_file_inputs " '$ac_f'"
22059     done
22060
22061     # Let's still pretend it is `configure' which instantiates (i.e., don't
22062     # use $as_me), people would be surprised to read:
22063     #    /* config.h.  Generated by config.status.  */
22064     configure_input='Generated from '`
22065           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22066         `' by configure.'
22067     if test x"$ac_file" != x-; then
22068       configure_input="$ac_file.  $configure_input"
22069       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22070 $as_echo "$as_me: creating $ac_file" >&6;}
22071     fi
22072     # Neutralize special characters interpreted by sed in replacement strings.
22073     case $configure_input in #(
22074     *\&* | *\|* | *\\* )
22075        ac_sed_conf_input=`$as_echo "$configure_input" |
22076        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22077     *) ac_sed_conf_input=$configure_input;;
22078     esac
22079
22080     case $ac_tag in
22081     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22082       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22083     esac
22084     ;;
22085   esac
22086
22087   ac_dir=`$as_dirname -- "$ac_file" ||
22088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22089          X"$ac_file" : 'X\(//\)[^/]' \| \
22090          X"$ac_file" : 'X\(//\)$' \| \
22091          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22092 $as_echo X"$ac_file" |
22093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22094             s//\1/
22095             q
22096           }
22097           /^X\(\/\/\)[^/].*/{
22098             s//\1/
22099             q
22100           }
22101           /^X\(\/\/\)$/{
22102             s//\1/
22103             q
22104           }
22105           /^X\(\/\).*/{
22106             s//\1/
22107             q
22108           }
22109           s/.*/./; q'`
22110   as_dir="$ac_dir"; as_fn_mkdir_p
22111   ac_builddir=.
22112
22113 case "$ac_dir" in
22114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22115 *)
22116   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22117   # A ".." for each directory in $ac_dir_suffix.
22118   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22119   case $ac_top_builddir_sub in
22120   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22121   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22122   esac ;;
22123 esac
22124 ac_abs_top_builddir=$ac_pwd
22125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22126 # for backward compatibility:
22127 ac_top_builddir=$ac_top_build_prefix
22128
22129 case $srcdir in
22130   .)  # We are building in place.
22131     ac_srcdir=.
22132     ac_top_srcdir=$ac_top_builddir_sub
22133     ac_abs_top_srcdir=$ac_pwd ;;
22134   [\\/]* | ?:[\\/]* )  # Absolute name.
22135     ac_srcdir=$srcdir$ac_dir_suffix;
22136     ac_top_srcdir=$srcdir
22137     ac_abs_top_srcdir=$srcdir ;;
22138   *) # Relative name.
22139     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22140     ac_top_srcdir=$ac_top_build_prefix$srcdir
22141     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22142 esac
22143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22144
22145
22146   case $ac_mode in
22147   :F)
22148   #
22149   # CONFIG_FILE
22150   #
22151
22152 _ACEOF
22153
22154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22155 # If the template does not know about datarootdir, expand it.
22156 # FIXME: This hack should be removed a few years after 2.60.
22157 ac_datarootdir_hack=; ac_datarootdir_seen=
22158 ac_sed_dataroot='
22159 /datarootdir/ {
22160   p
22161   q
22162 }
22163 /@datadir@/p
22164 /@docdir@/p
22165 /@infodir@/p
22166 /@localedir@/p
22167 /@mandir@/p'
22168 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22169 *datarootdir*) ac_datarootdir_seen=yes;;
22170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22171   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22172 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22173 _ACEOF
22174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22175   ac_datarootdir_hack='
22176   s&@datadir@&$datadir&g
22177   s&@docdir@&$docdir&g
22178   s&@infodir@&$infodir&g
22179   s&@localedir@&$localedir&g
22180   s&@mandir@&$mandir&g
22181   s&\\\${datarootdir}&$datarootdir&g' ;;
22182 esac
22183 _ACEOF
22184
22185 # Neutralize VPATH when `$srcdir' = `.'.
22186 # Shell code in configure.ac might set extrasub.
22187 # FIXME: do we really want to maintain this feature?
22188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22189 ac_sed_extra="$ac_vpsub
22190 $extrasub
22191 _ACEOF
22192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22193 :t
22194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22195 s|@configure_input@|$ac_sed_conf_input|;t t
22196 s&@top_builddir@&$ac_top_builddir_sub&;t t
22197 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22198 s&@srcdir@&$ac_srcdir&;t t
22199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22200 s&@top_srcdir@&$ac_top_srcdir&;t t
22201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22202 s&@builddir@&$ac_builddir&;t t
22203 s&@abs_builddir@&$ac_abs_builddir&;t t
22204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22205 $ac_datarootdir_hack
22206 "
22207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22208   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22209
22210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22211   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22212   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22213       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22214   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22215 which seems to be undefined.  Please make sure it is defined" >&5
22216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22217 which seems to be undefined.  Please make sure it is defined" >&2;}
22218
22219   rm -f "$ac_tmp/stdin"
22220   case $ac_file in
22221   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22222   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22223   esac \
22224   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22225  ;;
22226   :H)
22227   #
22228   # CONFIG_HEADER
22229   #
22230   if test x"$ac_file" != x-; then
22231     {
22232       $as_echo "/* $configure_input  */" \
22233       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22234     } >"$ac_tmp/config.h" \
22235       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22236     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22237       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22239     else
22240       rm -f "$ac_file"
22241       mv "$ac_tmp/config.h" "$ac_file" \
22242         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22243     fi
22244   else
22245     $as_echo "/* $configure_input  */" \
22246       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22247       || as_fn_error $? "could not create -" "$LINENO" 5
22248   fi
22249  ;;
22250
22251   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22252 $as_echo "$as_me: executing $ac_file commands" >&6;}
22253  ;;
22254   esac
22255
22256
22257   case $ac_file$ac_mode in
22258     "libtool":C)
22259
22260     # See if we are running on zsh, and set the options that allow our
22261     # commands through without removal of \ escapes.
22262     if test -n "${ZSH_VERSION+set}"; then
22263       setopt NO_GLOB_SUBST
22264     fi
22265
22266     cfgfile=${ofile}T
22267     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22268     $RM "$cfgfile"
22269
22270     cat <<_LT_EOF >> "$cfgfile"
22271 #! $SHELL
22272 # Generated automatically by $as_me ($PACKAGE) $VERSION
22273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22275
22276 # Provide generalized library-building support services.
22277 # Written by Gordon Matzigkeit, 1996
22278
22279 # Copyright (C) 2014 Free Software Foundation, Inc.
22280 # This is free software; see the source for copying conditions.  There is NO
22281 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22282
22283 # GNU Libtool is free software; you can redistribute it and/or modify
22284 # it under the terms of the GNU General Public License as published by
22285 # the Free Software Foundation; either version 2 of of the License, or
22286 # (at your option) any later version.
22287 #
22288 # As a special exception to the GNU General Public License, if you
22289 # distribute this file as part of a program or library that is built
22290 # using GNU Libtool, you may include this file under the  same
22291 # distribution terms that you use for the rest of that program.
22292 #
22293 # GNU Libtool is distributed in the hope that it will be useful, but
22294 # WITHOUT ANY WARRANTY; without even the implied warranty of
22295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22296 # GNU General Public License for more details.
22297 #
22298 # You should have received a copy of the GNU General Public License
22299 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22300
22301
22302 # The names of the tagged configurations supported by this script.
22303 available_tags=''
22304
22305 # Configured defaults for sys_lib_dlsearch_path munging.
22306 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22307
22308 # ### BEGIN LIBTOOL CONFIG
22309
22310 # Which release of libtool.m4 was used?
22311 macro_version=$macro_version
22312 macro_revision=$macro_revision
22313
22314 # Whether or not to build shared libraries.
22315 build_libtool_libs=$enable_shared
22316
22317 # Whether or not to build static libraries.
22318 build_old_libs=$enable_static
22319
22320 # What type of objects to build.
22321 pic_mode=$pic_mode
22322
22323 # Whether or not to optimize for fast installation.
22324 fast_install=$enable_fast_install
22325
22326 # Shared archive member basename,for filename based shared library versioning on AIX.
22327 shared_archive_member_spec=$shared_archive_member_spec
22328
22329 # Shell to use when invoking shell scripts.
22330 SHELL=$lt_SHELL
22331
22332 # An echo program that protects backslashes.
22333 ECHO=$lt_ECHO
22334
22335 # The PATH separator for the build system.
22336 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22337
22338 # The host system.
22339 host_alias=$host_alias
22340 host=$host
22341 host_os=$host_os
22342
22343 # The build system.
22344 build_alias=$build_alias
22345 build=$build
22346 build_os=$build_os
22347
22348 # A sed program that does not truncate output.
22349 SED=$lt_SED
22350
22351 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22352 Xsed="\$SED -e 1s/^X//"
22353
22354 # A grep program that handles long lines.
22355 GREP=$lt_GREP
22356
22357 # An ERE matcher.
22358 EGREP=$lt_EGREP
22359
22360 # A literal string matcher.
22361 FGREP=$lt_FGREP
22362
22363 # A BSD- or MS-compatible name lister.
22364 NM=$lt_NM
22365
22366 # Whether we need soft or hard links.
22367 LN_S=$lt_LN_S
22368
22369 # What is the maximum length of a command?
22370 max_cmd_len=$max_cmd_len
22371
22372 # Object file suffix (normally "o").
22373 objext=$ac_objext
22374
22375 # Executable file suffix (normally "").
22376 exeext=$exeext
22377
22378 # whether the shell understands "unset".
22379 lt_unset=$lt_unset
22380
22381 # turn spaces into newlines.
22382 SP2NL=$lt_lt_SP2NL
22383
22384 # turn newlines into spaces.
22385 NL2SP=$lt_lt_NL2SP
22386
22387 # convert \$build file names to \$host format.
22388 to_host_file_cmd=$lt_cv_to_host_file_cmd
22389
22390 # convert \$build files to toolchain format.
22391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22392
22393 # An object symbol dumper.
22394 OBJDUMP=$lt_OBJDUMP
22395
22396 # Method to check whether dependent libraries are shared objects.
22397 deplibs_check_method=$lt_deplibs_check_method
22398
22399 # Command to use when deplibs_check_method = "file_magic".
22400 file_magic_cmd=$lt_file_magic_cmd
22401
22402 # How to find potential files when deplibs_check_method = "file_magic".
22403 file_magic_glob=$lt_file_magic_glob
22404
22405 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22406 want_nocaseglob=$lt_want_nocaseglob
22407
22408 # DLL creation program.
22409 DLLTOOL=$lt_DLLTOOL
22410
22411 # Command to associate shared and link libraries.
22412 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22413
22414 # The archiver.
22415 AR=$lt_AR
22416
22417 # Flags to create an archive.
22418 AR_FLAGS=$lt_AR_FLAGS
22419
22420 # How to feed a file listing to the archiver.
22421 archiver_list_spec=$lt_archiver_list_spec
22422
22423 # A symbol stripping program.
22424 STRIP=$lt_STRIP
22425
22426 # Commands used to install an old-style archive.
22427 RANLIB=$lt_RANLIB
22428 old_postinstall_cmds=$lt_old_postinstall_cmds
22429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22430
22431 # Whether to use a lock for old archive extraction.
22432 lock_old_archive_extraction=$lock_old_archive_extraction
22433
22434 # A C compiler.
22435 LTCC=$lt_CC
22436
22437 # LTCC compiler flags.
22438 LTCFLAGS=$lt_CFLAGS
22439
22440 # Take the output of nm and produce a listing of raw symbols and C names.
22441 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22442
22443 # Transform the output of nm in a proper C declaration.
22444 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22445
22446 # Transform the output of nm into a list of symbols to manually relocate.
22447 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22448
22449 # Transform the output of nm in a C name address pair.
22450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22451
22452 # Transform the output of nm in a C name address pair when lib prefix is needed.
22453 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22454
22455 # The name lister interface.
22456 nm_interface=$lt_lt_cv_nm_interface
22457
22458 # Specify filename containing input files for \$NM.
22459 nm_file_list_spec=$lt_nm_file_list_spec
22460
22461 # The root where to search for dependent libraries,and where our libraries should be installed.
22462 lt_sysroot=$lt_sysroot
22463
22464 # Command to truncate a binary pipe.
22465 lt_truncate_bin=$lt_lt_cv_truncate_bin
22466
22467 # The name of the directory that contains temporary libtool files.
22468 objdir=$objdir
22469
22470 # Used to examine libraries when file_magic_cmd begins with "file".
22471 MAGIC_CMD=$MAGIC_CMD
22472
22473 # Must we lock files when doing compilation?
22474 need_locks=$lt_need_locks
22475
22476 # Manifest tool.
22477 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22478
22479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22480 DSYMUTIL=$lt_DSYMUTIL
22481
22482 # Tool to change global to local symbols on Mac OS X.
22483 NMEDIT=$lt_NMEDIT
22484
22485 # Tool to manipulate fat objects and archives on Mac OS X.
22486 LIPO=$lt_LIPO
22487
22488 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22489 OTOOL=$lt_OTOOL
22490
22491 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22492 OTOOL64=$lt_OTOOL64
22493
22494 # Old archive suffix (normally "a").
22495 libext=$libext
22496
22497 # Shared library suffix (normally ".so").
22498 shrext_cmds=$lt_shrext_cmds
22499
22500 # The commands to extract the exported symbol list from a shared archive.
22501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22502
22503 # Variables whose values should be saved in libtool wrapper scripts and
22504 # restored at link time.
22505 variables_saved_for_relink=$lt_variables_saved_for_relink
22506
22507 # Do we need the "lib" prefix for modules?
22508 need_lib_prefix=$need_lib_prefix
22509
22510 # Do we need a version for libraries?
22511 need_version=$need_version
22512
22513 # Library versioning type.
22514 version_type=$version_type
22515
22516 # Shared library runtime path variable.
22517 runpath_var=$runpath_var
22518
22519 # Shared library path variable.
22520 shlibpath_var=$shlibpath_var
22521
22522 # Is shlibpath searched before the hard-coded library search path?
22523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22524
22525 # Format of library name prefix.
22526 libname_spec=$lt_libname_spec
22527
22528 # List of archive names.  First name is the real one, the rest are links.
22529 # The last name is the one that the linker finds with -lNAME
22530 library_names_spec=$lt_library_names_spec
22531
22532 # The coded name of the library, if different from the real name.
22533 soname_spec=$lt_soname_spec
22534
22535 # Permission mode override for installation of shared libraries.
22536 install_override_mode=$lt_install_override_mode
22537
22538 # Command to use after installation of a shared archive.
22539 postinstall_cmds=$lt_postinstall_cmds
22540
22541 # Command to use after uninstallation of a shared archive.
22542 postuninstall_cmds=$lt_postuninstall_cmds
22543
22544 # Commands used to finish a libtool library installation in a directory.
22545 finish_cmds=$lt_finish_cmds
22546
22547 # As "finish_cmds", except a single script fragment to be evaled but
22548 # not shown.
22549 finish_eval=$lt_finish_eval
22550
22551 # Whether we should hardcode library paths into libraries.
22552 hardcode_into_libs=$hardcode_into_libs
22553
22554 # Compile-time system search path for libraries.
22555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22556
22557 # Detected run-time system search path for libraries.
22558 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22559
22560 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22561 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22562
22563 # Whether dlopen is supported.
22564 dlopen_support=$enable_dlopen
22565
22566 # Whether dlopen of programs is supported.
22567 dlopen_self=$enable_dlopen_self
22568
22569 # Whether dlopen of statically linked programs is supported.
22570 dlopen_self_static=$enable_dlopen_self_static
22571
22572 # Commands to strip libraries.
22573 old_striplib=$lt_old_striplib
22574 striplib=$lt_striplib
22575
22576
22577 # The linker used to build libraries.
22578 LD=$lt_LD
22579
22580 # How to create reloadable object files.
22581 reload_flag=$lt_reload_flag
22582 reload_cmds=$lt_reload_cmds
22583
22584 # Commands used to build an old-style archive.
22585 old_archive_cmds=$lt_old_archive_cmds
22586
22587 # A language specific compiler.
22588 CC=$lt_compiler
22589
22590 # Is the compiler the GNU compiler?
22591 with_gcc=$GCC
22592
22593 # Compiler flag to turn off builtin functions.
22594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22595
22596 # Additional compiler flags for building library objects.
22597 pic_flag=$lt_lt_prog_compiler_pic
22598
22599 # How to pass a linker flag through the compiler.
22600 wl=$lt_lt_prog_compiler_wl
22601
22602 # Compiler flag to prevent dynamic linking.
22603 link_static_flag=$lt_lt_prog_compiler_static
22604
22605 # Does compiler simultaneously support -c and -o options?
22606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22607
22608 # Whether or not to add -lc for building shared libraries.
22609 build_libtool_need_lc=$archive_cmds_need_lc
22610
22611 # Whether or not to disallow shared libs when runtime libs are static.
22612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22613
22614 # Compiler flag to allow reflexive dlopens.
22615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22616
22617 # Compiler flag to generate shared objects directly from archives.
22618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22619
22620 # Whether the compiler copes with passing no objects directly.
22621 compiler_needs_object=$lt_compiler_needs_object
22622
22623 # Create an old-style archive from a shared archive.
22624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22625
22626 # Create a temporary old-style archive to link instead of a shared archive.
22627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22628
22629 # Commands used to build a shared archive.
22630 archive_cmds=$lt_archive_cmds
22631 archive_expsym_cmds=$lt_archive_expsym_cmds
22632
22633 # Commands used to build a loadable module if different from building
22634 # a shared archive.
22635 module_cmds=$lt_module_cmds
22636 module_expsym_cmds=$lt_module_expsym_cmds
22637
22638 # Whether we are building with GNU ld or not.
22639 with_gnu_ld=$lt_with_gnu_ld
22640
22641 # Flag that allows shared libraries with undefined symbols to be built.
22642 allow_undefined_flag=$lt_allow_undefined_flag
22643
22644 # Flag that enforces no undefined symbols.
22645 no_undefined_flag=$lt_no_undefined_flag
22646
22647 # Flag to hardcode \$libdir into a binary during linking.
22648 # This must work even if \$libdir does not exist
22649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22650
22651 # Whether we need a single "-rpath" flag with a separated argument.
22652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22653
22654 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22655 # DIR into the resulting binary.
22656 hardcode_direct=$hardcode_direct
22657
22658 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22659 # DIR into the resulting binary and the resulting library dependency is
22660 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22661 # library is relocated.
22662 hardcode_direct_absolute=$hardcode_direct_absolute
22663
22664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22665 # into the resulting binary.
22666 hardcode_minus_L=$hardcode_minus_L
22667
22668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22669 # into the resulting binary.
22670 hardcode_shlibpath_var=$hardcode_shlibpath_var
22671
22672 # Set to "yes" if building a shared library automatically hardcodes DIR
22673 # into the library and all subsequent libraries and executables linked
22674 # against it.
22675 hardcode_automatic=$hardcode_automatic
22676
22677 # Set to yes if linker adds runtime paths of dependent libraries
22678 # to runtime path list.
22679 inherit_rpath=$inherit_rpath
22680
22681 # Whether libtool must link a program against all its dependency libraries.
22682 link_all_deplibs=$link_all_deplibs
22683
22684 # Set to "yes" if exported symbols are required.
22685 always_export_symbols=$always_export_symbols
22686
22687 # The commands to list exported symbols.
22688 export_symbols_cmds=$lt_export_symbols_cmds
22689
22690 # Symbols that should not be listed in the preloaded symbols.
22691 exclude_expsyms=$lt_exclude_expsyms
22692
22693 # Symbols that must always be exported.
22694 include_expsyms=$lt_include_expsyms
22695
22696 # Commands necessary for linking programs (against libraries) with templates.
22697 prelink_cmds=$lt_prelink_cmds
22698
22699 # Commands necessary for finishing linking programs.
22700 postlink_cmds=$lt_postlink_cmds
22701
22702 # Specify filename containing input files.
22703 file_list_spec=$lt_file_list_spec
22704
22705 # How to hardcode a shared library path into an executable.
22706 hardcode_action=$hardcode_action
22707
22708 # ### END LIBTOOL CONFIG
22709
22710 _LT_EOF
22711
22712     cat <<'_LT_EOF' >> "$cfgfile"
22713
22714 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22715
22716 # func_munge_path_list VARIABLE PATH
22717 # -----------------------------------
22718 # VARIABLE is name of variable containing _space_ separated list of
22719 # directories to be munged by the contents of PATH, which is string
22720 # having a format:
22721 # "DIR[:DIR]:"
22722 #       string "DIR[ DIR]" will be prepended to VARIABLE
22723 # ":DIR[:DIR]"
22724 #       string "DIR[ DIR]" will be appended to VARIABLE
22725 # "DIRP[:DIRP]::[DIRA:]DIRA"
22726 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22727 #       "DIRA[ DIRA]" will be appended to VARIABLE
22728 # "DIR[:DIR]"
22729 #       VARIABLE will be replaced by "DIR[ DIR]"
22730 func_munge_path_list ()
22731 {
22732     case x$2 in
22733     x)
22734         ;;
22735     *:)
22736         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22737         ;;
22738     x:*)
22739         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22740         ;;
22741     *::*)
22742         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22743         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22744         ;;
22745     *)
22746         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22747         ;;
22748     esac
22749 }
22750
22751
22752 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22753 func_cc_basename ()
22754 {
22755     for cc_temp in $*""; do
22756       case $cc_temp in
22757         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22758         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22759         \-*) ;;
22760         *) break;;
22761       esac
22762     done
22763     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22764 }
22765
22766
22767 # ### END FUNCTIONS SHARED WITH CONFIGURE
22768
22769 _LT_EOF
22770
22771   case $host_os in
22772   aix3*)
22773     cat <<\_LT_EOF >> "$cfgfile"
22774 # AIX sometimes has problems with the GCC collect2 program.  For some
22775 # reason, if we set the COLLECT_NAMES environment variable, the problems
22776 # vanish in a puff of smoke.
22777 if test set != "${COLLECT_NAMES+set}"; then
22778   COLLECT_NAMES=
22779   export COLLECT_NAMES
22780 fi
22781 _LT_EOF
22782     ;;
22783   esac
22784
22785
22786 ltmain=$ac_aux_dir/ltmain.sh
22787
22788
22789   # We use sed instead of cat because bash on DJGPP gets confused if
22790   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22791   # text mode, it properly converts lines to CR/LF.  This bash problem
22792   # is reportedly fixed, but why not run on old versions too?
22793   sed '$q' "$ltmain" >> "$cfgfile" \
22794      || (rm -f "$cfgfile"; exit 1)
22795
22796    mv -f "$cfgfile" "$ofile" ||
22797     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22798   chmod +x "$ofile"
22799
22800  ;;
22801     "disable-rpath":C)
22802         sed < libtool > libtool-2 \
22803         's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
22804         mv libtool-2 libtool
22805         chmod 755 libtool
22806         libtool="./libtool"
22807          ;;
22808
22809   esac
22810 done # for ac_tag
22811
22812
22813 as_fn_exit 0
22814 _ACEOF
22815 ac_clean_files=$ac_clean_files_save
22816
22817 test $ac_write_fail = 0 ||
22818   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22819
22820
22821 # configure is writing to config.log, and then calls config.status.
22822 # config.status does its own redirection, appending to config.log.
22823 # Unfortunately, on DOS this fails, as config.log is still kept open
22824 # by configure, so config.status won't be able to write to it; its
22825 # output is simply discarded.  So we exec the FD to /dev/null,
22826 # effectively closing config.log, so it can be properly (re)opened and
22827 # appended to by config.status.  When coming back to configure, we
22828 # need to make the FD available again.
22829 if test "$no_create" != yes; then
22830   ac_cs_success=:
22831   ac_config_status_args=
22832   test "$silent" = yes &&
22833     ac_config_status_args="$ac_config_status_args --quiet"
22834   exec 5>/dev/null
22835   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22836   exec 5>>config.log
22837   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22838   # would make configure fail if this is the last instruction.
22839   $ac_cs_success || as_fn_exit 1
22840 fi
22841 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22842   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22843 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22844 fi
22845