]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/unbound/configure
Merge lldb man page from r188801 to contrib/llvm/tools/lldb/docs/
[FreeBSD/FreeBSD.git] / contrib / unbound / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.4.20.
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.4.20'
594 PACKAGE_STRING='unbound 1.4.20'
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 ldnsdir
636 ALLTARGET
637 SOURCEFILE
638 SOURCEDETERMINE
639 UBSYMS
640 EXTRALINK
641 COMMON_OBJ_ALL_SYMBOLS
642 LIBOBJ_WITHOUT_CTIME
643 WIN_CHECKCONF_OBJ_LINK
644 WIN_CONTROL_OBJ_LINK
645 WIN_UBANCHOR_OBJ_LINK
646 WIN_HOST_OBJ_LINK
647 WIN_DAEMON_OBJ_LINK
648 WIN_DAEMON_OBJ
649 WIN_DAEMON_SRC
650 WINAPPS
651 WINDRES
652 CHECKLOCK_OBJ
653 staticexe
654 HAVE_SSL
655 CONFIG_DATE
656 NETBSD_LINTFLAGS
657 PYUNBOUND_UNINSTALL
658 PYUNBOUND_INSTALL
659 PYUNBOUND_TARGET
660 PYUNBOUND_OBJ
661 WITH_PYUNBOUND
662 PYTHONMOD_UNINSTALL
663 PYTHONMOD_INSTALL
664 PYTHONMOD_HEADER
665 PYTHONMOD_OBJ
666 WITH_PYTHONMODULE
667 swig
668 SWIG_LIB
669 SWIG
670 PYTHON_EXTRA_LDFLAGS
671 PYTHON_EXTRA_LIBS
672 PYTHON_SITE_PKG
673 PYTHON_LDFLAGS
674 PYTHON_CPPFLAGS
675 PYTHON
676 PYTHON_VERSION
677 PTHREAD_CFLAGS
678 PTHREAD_LIBS
679 PTHREAD_CC
680 acx_pthread_config
681 RUNTIME_PATH
682 LIBOBJS
683 OTOOL64
684 OTOOL
685 LIPO
686 NMEDIT
687 DSYMUTIL
688 MANIFEST_TOOL
689 AWK
690 RANLIB
691 ac_ct_AR
692 DLLTOOL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 SED
701 LIBTOOL
702 AR
703 libtool
704 STRIP
705 doxygen
706 YFLAGS
707 YACC
708 LEXLIB
709 LEX_OUTPUT_ROOT
710 LEX
711 debug_enabled
712 DEPFLAG
713 UNBOUND_USERNAME
714 UNBOUND_ROOTCERT_FILE
715 UNBOUND_ROOTKEY_FILE
716 UNBOUND_PIDFILE
717 UNBOUND_SHARE_DIR
718 UNBOUND_CHROOT_DIR
719 UNBOUND_RUN_DIR
720 ub_conf_file
721 EGREP
722 GREP
723 CPP
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 target_os
732 target_vendor
733 target_cpu
734 target
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 LIBUNBOUND_AGE
744 LIBUNBOUND_REVISION
745 LIBUNBOUND_CURRENT
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 with_conf_file
788 with_run_dir
789 with_chroot_dir
790 with_share_dir
791 with_pidfile
792 with_rootkey_file
793 with_rootcert_file
794 with_username
795 enable_checking
796 enable_debug
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 enable_rpath
805 enable_largefile
806 enable_alloc_checks
807 enable_alloc_lite
808 enable_alloc_nonregional
809 with_pthreads
810 with_solaris_threads
811 with_pyunbound
812 with_pythonmodule
813 with_nss
814 with_ssl
815 enable_sha2
816 enable_gost
817 enable_ecdsa
818 with_libevent
819 with_libexpat
820 enable_static_exe
821 enable_lock_checks
822 enable_allsymbols
823 with_libunbound_only
824 with_ldns
825 '
826       ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CPP
835 YACC
836 YFLAGS
837 PYTHON_VERSION'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892   # If the previous option needs an argument, assign it.
893   if test -n "$ac_prev"; then
894     eval $ac_prev=\$ac_option
895     ac_prev=
896     continue
897   fi
898
899   case $ac_option in
900   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901   *=)   ac_optarg= ;;
902   *)    ac_optarg=yes ;;
903   esac
904
905   # Accept the important Cygnus configure options, so we can diagnose typos.
906
907   case $ac_dashdash$ac_option in
908   --)
909     ac_dashdash=yes ;;
910
911   -bindir | --bindir | --bindi | --bind | --bin | --bi)
912     ac_prev=bindir ;;
913   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914     bindir=$ac_optarg ;;
915
916   -build | --build | --buil | --bui | --bu)
917     ac_prev=build_alias ;;
918   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919     build_alias=$ac_optarg ;;
920
921   -cache-file | --cache-file | --cache-fil | --cache-fi \
922   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923     ac_prev=cache_file ;;
924   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926     cache_file=$ac_optarg ;;
927
928   --config-cache | -C)
929     cache_file=config.cache ;;
930
931   -datadir | --datadir | --datadi | --datad)
932     ac_prev=datadir ;;
933   -datadir=* | --datadir=* | --datadi=* | --datad=*)
934     datadir=$ac_optarg ;;
935
936   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937   | --dataroo | --dataro | --datar)
938     ac_prev=datarootdir ;;
939   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941     datarootdir=$ac_optarg ;;
942
943   -disable-* | --disable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=no ;;
958
959   -docdir | --docdir | --docdi | --doc | --do)
960     ac_prev=docdir ;;
961   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962     docdir=$ac_optarg ;;
963
964   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965     ac_prev=dvidir ;;
966   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967     dvidir=$ac_optarg ;;
968
969   -enable-* | --enable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error $? "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=\$ac_optarg ;;
1188
1189   -without-* | --without-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=no ;;
1204
1205   --x)
1206     # Obsolete; use --with-x.
1207     with_x=yes ;;
1208
1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210   | --x-incl | --x-inc | --x-in | --x-i)
1211     ac_prev=x_includes ;;
1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214     x_includes=$ac_optarg ;;
1215
1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218     ac_prev=x_libraries ;;
1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221     x_libraries=$ac_optarg ;;
1222
1223   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225     ;;
1226
1227   *=*)
1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229     # Reject names that are not valid shell variable names.
1230     case $ac_envvar in #(
1231       '' | [0-9]* | *[!_$as_cr_alnum]* )
1232       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233     esac
1234     eval $ac_envvar=\$ac_optarg
1235     export $ac_envvar ;;
1236
1237   *)
1238     # FIXME: should be removed in autoconf 3.0.
1239     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243     ;;
1244
1245   esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250   as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254   case $enable_option_checking in
1255     no) ;;
1256     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258   esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   # Remove trailing slashes.
1269   case $ac_val in
1270     */ )
1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272       eval $ac_var=\$ac_val;;
1273   esac
1274   # Be sure to have absolute directory names.
1275   case $ac_val in
1276     [\\/$]* | ?:[\\/]* )  continue;;
1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278   esac
1279   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking ...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438   --target=TARGET   configure for building compilers for TARGET [HOST]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443   case $ac_init_help in
1444      short | recursive ) echo "Configuration of unbound 1.4.20:";;
1445    esac
1446   cat <<\_ACEOF
1447
1448 Optional Features:
1449   --disable-option-checking  ignore unrecognized --enable/--with options
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --enable-checking       Enable warnings, asserts, makefile-dependencies
1453   --enable-debug          same as enable-checking
1454   --enable-shared[=PKGS]  build shared libraries [default=yes]
1455   --enable-static[=PKGS]  build static libraries [default=yes]
1456   --enable-fast-install[=PKGS]
1457                           optimize for fast installation [default=yes]
1458   --disable-libtool-lock  avoid locking (might break parallel builds)
1459   --disable-rpath         disable hardcoded rpath (default=enabled)
1460   --disable-largefile     omit support for large files
1461   --enable-alloc-checks   enable to memory allocation statistics, for debug
1462                           purposes
1463   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1464                           purposes
1465   --enable-alloc-nonregional
1466                           enable nonregional allocs, slow but exposes regional
1467                           allocations to other memory purifiers, for debug
1468                           purposes
1469   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1470   --disable-gost          Disable GOST support
1471   --disable-ecdsa         Disable ECDSA support
1472   --enable-static-exe     enable to compile executables statically against
1473                           event, ldns libs, for debug purposes
1474   --enable-lock-checks    enable to check lock and unlock calls, for debug
1475                           purposes
1476   --enable-allsymbols     export all symbols from libunbound and link binaries
1477                           to it, smaller install size but libunbound export
1478                           table is polluted by internal symbols
1479
1480 Optional Packages:
1481   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483   --with-conf-file=path   Pathname to the Unbound configuration file
1484   --with-run-dir=path     set default directory to chdir to (by default dir
1485                           part of cfg file)
1486   --with-chroot-dir=path  set default directory to chroot to (by default same
1487                           as run-dir)
1488   --with-share-dir=path   set default directory with shared data (by default
1489                           same as share/unbound)
1490   --with-pidfile=filename set default pathname to unbound pidfile (default
1491                           run-dir/unbound.pid)
1492   --with-rootkey-file=filename
1493                           set default pathname to root key file (default
1494                           run-dir/root.key). This file is read and written.
1495   --with-rootcert-file=filename
1496                           set default pathname to root update certificate file
1497                           (default run-dir/icannbundle.pem). This file need
1498                           not exist if you are content with the builtin.
1499   --with-username=user    set default user that unbound changes to (default
1500                           user is unbound)
1501   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                           both]
1503   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1504   --with-sysroot=DIR Search for dependent libraries within DIR
1505                         (or the compiler's sysroot if not specified).
1506   --with-pthreads         use pthreads library, or --without-pthreads to
1507                           disable threading support.
1508   --with-solaris-threads  use solaris native thread library.
1509   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1510                           (default=no)
1511   --with-pythonmodule     build Python module, or --without-pythonmodule to
1512                           disable script engine. (default=no)
1513   --with-nss=path         use libnss instead of openssl, installed at path.
1514   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1515                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1516                           /usr)
1517   --with-libevent=pathname
1518                           use libevent (will check /usr/local /opt/local
1519                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1520                           an explicit path). Slower, but allows use of large
1521                           outgoing port ranges.
1522   --with-libexpat=path    specify explicit path for libexpat.
1523   --with-libunbound-only  do not build daemon and tool programs
1524   --with-ldns=PATH        specify prefix of path of ldns library to use
1525
1526 Some influential environment variables:
1527   CC          C compiler command
1528   CFLAGS      C compiler flags
1529   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530               nonstandard directory <lib dir>
1531   LIBS        libraries to pass to the linker, e.g. -l<library>
1532   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533               you have headers in a nonstandard directory <include dir>
1534   CPP         C preprocessor
1535   YACC        The `Yet Another Compiler Compiler' implementation to use.
1536               Defaults to the first program found out of: `bison -y', `byacc',
1537               `yacc'.
1538   YFLAGS      The list of arguments that will be passed by default to $YACC.
1539               This script will default YFLAGS to the empty string to avoid a
1540               default value of `-d' given by some make applications.
1541   PYTHON_VERSION
1542               The installed Python version to use, for example '2.3'. This
1543               string will be appended to the Python interpreter canonical
1544               name.
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555   # If there are subdirs, report their specific --help.
1556   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557     test -d "$ac_dir" ||
1558       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559       continue
1560     ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566   # A ".." for each directory in $ac_dir_suffix.
1567   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568   case $ac_top_builddir_sub in
1569   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571   esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579   .)  # We are building in place.
1580     ac_srcdir=.
1581     ac_top_srcdir=$ac_top_builddir_sub
1582     ac_abs_top_srcdir=$ac_pwd ;;
1583   [\\/]* | ?:[\\/]* )  # Absolute name.
1584     ac_srcdir=$srcdir$ac_dir_suffix;
1585     ac_top_srcdir=$srcdir
1586     ac_abs_top_srcdir=$srcdir ;;
1587   *) # Relative name.
1588     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589     ac_top_srcdir=$ac_top_build_prefix$srcdir
1590     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594     cd "$ac_dir" || { ac_status=$?; continue; }
1595     # Check for guested configure.
1596     if test -f "$ac_srcdir/configure.gnu"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599     elif test -f "$ac_srcdir/configure"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure" --help=recursive
1602     else
1603       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604     fi || ac_status=$?
1605     cd "$ac_pwd" || { ac_status=$?; break; }
1606   done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611   cat <<\_ACEOF
1612 unbound configure 1.4.20
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619   exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext
1633   if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_compile") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest.$ac_objext; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657         ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673   *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678   ac_status=$?
1679   if test -s conftest.err; then
1680     grep -v '^ *+' conftest.err >conftest.er1
1681     cat conftest.er1 >&5
1682     mv -f conftest.er1 conftest.err
1683   fi
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; } > conftest.i && {
1686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687          test ! -s conftest.err
1688        }; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694     ac_retval=1
1695 fi
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697   as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1705 # accordingly.
1706 ac_fn_c_check_header_mongrel ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   if eval \${$3+:} false; then :
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 fi
1715 eval ac_res=\$$3
1716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 else
1719   # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h.  */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728   ac_header_compiler=yes
1729 else
1730   ac_header_compiler=no
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1735
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h.  */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744   ac_header_preproc=yes
1745 else
1746   ac_header_preproc=no
1747 fi
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1751
1752 # So?  What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754   yes:no: )
1755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759     ;;
1760   no:yes:* )
1761     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ( $as_echo "## ---------------------------------------- ##
1772 ## Report this to unbound-bugs@nlnetlabs.nl ##
1773 ## ---------------------------------------- ##"
1774      ) | sed "s/^/$as_me: WARNING:     /" >&2
1775     ;;
1776 esac
1777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780   $as_echo_n "(cached) " >&6
1781 else
1782   eval "$3=\$ac_header_compiler"
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 fi
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_mongrel
1791
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_link") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810   { { case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_try") 2>&5
1817   ac_status=$?
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; }; }; then :
1820   ac_retval=0
1821 else
1822   $as_echo "$as_me: program exited with status $ac_status" >&5
1823        $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826        ac_retval=$ac_status
1827 fi
1828   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830   as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_run
1833
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h.  */
1848 $4
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852   eval "$3=yes"
1853 else
1854   eval "$3=no"
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 fi
1858 eval ac_res=\$$3
1859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863 } # ac_fn_c_check_header_compile
1864
1865 # ac_fn_c_try_link LINENO
1866 # -----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_link ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   rm -f conftest.$ac_objext conftest$ac_exeext
1872   if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_link") 2>conftest.err
1880   ac_status=$?
1881   if test -s conftest.err; then
1882     grep -v '^ *+' conftest.err >conftest.er1
1883     cat conftest.er1 >&5
1884     mv -f conftest.er1 conftest.err
1885   fi
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; } && {
1888          test -z "$ac_c_werror_flag" ||
1889          test ! -s conftest.err
1890        } && test -s conftest$ac_exeext && {
1891          test "$cross_compiling" = yes ||
1892          test -x conftest$ac_exeext
1893        }; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899         ac_retval=1
1900 fi
1901   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903   # interfere with the next link command; also delete a directory that is
1904   # left behind by Apple's compiler.  We do this before executing the actions.
1905   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907   as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_link
1910
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926 #define $2 innocuous_$2
1927
1928 /* System header to define __stub macros and hopefully few prototypes,
1929     which can conflict with char $2 (); below.
1930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931     <limits.h> exists even on freestanding compilers.  */
1932
1933 #ifdef __STDC__
1934 # include <limits.h>
1935 #else
1936 # include <assert.h>
1937 #endif
1938
1939 #undef $2
1940
1941 /* Override any GCC internal prototype to avoid an error.
1942    Use char because int might match the return type of a GCC
1943    builtin and then its argument prototype would still apply.  */
1944 #ifdef __cplusplus
1945 extern "C"
1946 #endif
1947 char $2 ();
1948 /* The GNU C library defines this for functions which it implements
1949     to always fail with ENOSYS.  Some functions are actually named
1950     something starting with __ and the normal name is an alias.  */
1951 #if defined __stub_$2 || defined __stub___$2
1952 choke me
1953 #endif
1954
1955 int
1956 main ()
1957 {
1958 return $2 ();
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_link "$LINENO"; then :
1964   eval "$3=yes"
1965 else
1966   eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext \
1969     conftest$ac_exeext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_func
1977
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988   $as_echo_n "(cached) " >&6
1989 else
1990   eval "$3=no"
1991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h.  */
1993 $4
1994 int
1995 main ()
1996 {
1997 if (sizeof ($2))
1998          return 0;
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 int
2008 main ()
2009 {
2010 if (sizeof (($2)))
2011             return 0;
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017
2018 else
2019   eval "$3=yes"
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030 } # ac_fn_c_check_type
2031
2032 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2033 # ---------------------------------------------
2034 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2035 # accordingly.
2036 ac_fn_c_check_decl ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   as_decl_name=`echo $2|sed 's/ *(.*//'`
2040   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2042 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2043 if eval \${$3+:} false; then :
2044   $as_echo_n "(cached) " >&6
2045 else
2046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 int
2050 main ()
2051 {
2052 #ifndef $as_decl_name
2053 #ifdef __cplusplus
2054   (void) $as_decl_use;
2055 #else
2056   (void) $as_decl_name;
2057 #endif
2058 #endif
2059
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   eval "$3=yes"
2066 else
2067   eval "$3=no"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_decl
2077
2078 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079 # ----------------------------------------------------
2080 # Tries to find if the field MEMBER exists in type AGGR, after including
2081 # INCLUDES, setting cache variable VAR accordingly.
2082 ac_fn_c_check_member ()
2083 {
2084   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086 $as_echo_n "checking for $2.$3... " >&6; }
2087 if eval \${$4+:} false; then :
2088   $as_echo_n "(cached) " >&6
2089 else
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $5
2093 int
2094 main ()
2095 {
2096 static $2 ac_aggr;
2097 if (ac_aggr.$3)
2098 return 0;
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104   eval "$4=yes"
2105 else
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $5
2109 int
2110 main ()
2111 {
2112 static $2 ac_aggr;
2113 if (sizeof ac_aggr.$3)
2114 return 0;
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   eval "$4=yes"
2121 else
2122   eval "$4=no"
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$4
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_member
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2137
2138 It was created by unbound $as_me 1.4.20, which was
2139 generated by GNU Autoconf 2.69.  Invocation command line was
2140
2141   $ $0 $@
2142
2143 _ACEOF
2144 exec 5>>config.log
2145 {
2146 cat <<_ASUNAME
2147 ## --------- ##
2148 ## Platform. ##
2149 ## --------- ##
2150
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2159
2160 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2161 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2164 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2165 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2166 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2167
2168 _ASUNAME
2169
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175     $as_echo "PATH: $as_dir"
2176   done
2177 IFS=$as_save_IFS
2178
2179 } >&5
2180
2181 cat >&5 <<_ACEOF
2182
2183
2184 ## ----------- ##
2185 ## Core tests. ##
2186 ## ----------- ##
2187
2188 _ACEOF
2189
2190
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2196 ac_configure_args=
2197 ac_configure_args0=
2198 ac_configure_args1=
2199 ac_must_keep_next=false
2200 for ac_pass in 1 2
2201 do
2202   for ac_arg
2203   do
2204     case $ac_arg in
2205     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207     | -silent | --silent | --silen | --sile | --sil)
2208       continue ;;
2209     *\'*)
2210       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211     esac
2212     case $ac_pass in
2213     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214     2)
2215       as_fn_append ac_configure_args1 " '$ac_arg'"
2216       if test $ac_must_keep_next = true; then
2217         ac_must_keep_next=false # Got value, back to normal.
2218       else
2219         case $ac_arg in
2220           *=* | --config-cache | -C | -disable-* | --disable-* \
2221           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223           | -with-* | --with-* | -without-* | --without-* | --x)
2224             case "$ac_configure_args0 " in
2225               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226             esac
2227             ;;
2228           -* ) ac_must_keep_next=true ;;
2229         esac
2230       fi
2231       as_fn_append ac_configure_args " '$ac_arg'"
2232       ;;
2233     esac
2234   done
2235 done
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2238
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log.  We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245   # Save into config.log some information that might help in debugging.
2246   {
2247     echo
2248
2249     $as_echo "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2252     echo
2253     # The following way of writing the cache mishandles newlines in values,
2254 (
2255   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256     eval ac_val=\$$ac_var
2257     case $ac_val in #(
2258     *${as_nl}*)
2259       case $ac_var in #(
2260       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262       esac
2263       case $ac_var in #(
2264       _ | IFS | as_nl) ;; #(
2265       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266       *) { eval $ac_var=; unset $ac_var;} ;;
2267       esac ;;
2268     esac
2269   done
2270   (set) 2>&1 |
2271     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272     *${as_nl}ac_space=\ *)
2273       sed -n \
2274         "s/'\''/'\''\\\\'\'''\''/g;
2275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276       ;; #(
2277     *)
2278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279       ;;
2280     esac |
2281     sort
2282 )
2283     echo
2284
2285     $as_echo "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2288     echo
2289     for ac_var in $ac_subst_vars
2290     do
2291       eval ac_val=\$$ac_var
2292       case $ac_val in
2293       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294       esac
2295       $as_echo "$ac_var='\''$ac_val'\''"
2296     done | sort
2297     echo
2298
2299     if test -n "$ac_subst_files"; then
2300       $as_echo "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2303       echo
2304       for ac_var in $ac_subst_files
2305       do
2306         eval ac_val=\$$ac_var
2307         case $ac_val in
2308         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309         esac
2310         $as_echo "$ac_var='\''$ac_val'\''"
2311       done | sort
2312       echo
2313     fi
2314
2315     if test -s confdefs.h; then
2316       $as_echo "## ----------- ##
2317 ## confdefs.h. ##
2318 ## ----------- ##"
2319       echo
2320       cat confdefs.h
2321       echo
2322     fi
2323     test "$ac_signal" != 0 &&
2324       $as_echo "$as_me: caught signal $ac_signal"
2325     $as_echo "$as_me: exit $exit_status"
2326   } >&5
2327   rm -f core *.core core.conftest.* &&
2328     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329     exit $exit_status
2330 ' 0
2331 for ac_signal in 1 2 13 15; do
2332   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333 done
2334 ac_signal=0
2335
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2338
2339 $as_echo "/* confdefs.h */" > confdefs.h
2340
2341 # Predefined preprocessor variables.
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2365 _ACEOF
2366
2367
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2370 ac_site_file1=NONE
2371 ac_site_file2=NONE
2372 if test -n "$CONFIG_SITE"; then
2373   # We do not want a PATH search for config.site.
2374   case $CONFIG_SITE in #((
2375     -*)  ac_site_file1=./$CONFIG_SITE;;
2376     */*) ac_site_file1=$CONFIG_SITE;;
2377     *)   ac_site_file1=./$CONFIG_SITE;;
2378   esac
2379 elif test "x$prefix" != xNONE; then
2380   ac_site_file1=$prefix/share/config.site
2381   ac_site_file2=$prefix/etc/config.site
2382 else
2383   ac_site_file1=$ac_default_prefix/share/config.site
2384   ac_site_file2=$ac_default_prefix/etc/config.site
2385 fi
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387 do
2388   test "x$ac_site_file" = xNONE && continue
2389   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392     sed 's/^/| /' "$ac_site_file" >&5
2393     . "$ac_site_file" \
2394       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 as_fn_error $? "failed to load site script $ac_site_file
2397 See \`config.log' for more details" "$LINENO" 5; }
2398   fi
2399 done
2400
2401 if test -r "$cache_file"; then
2402   # Some versions of bash will fail to source /dev/null (special files
2403   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2404   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407     case $cache_file in
2408       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409       *)                      . "./$cache_file";;
2410     esac
2411   fi
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415   >$cache_file
2416 fi
2417
2418 # Check that the precious variables saved in the cache have kept the same
2419 # value.
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423   eval ac_new_set=\$ac_env_${ac_var}_set
2424   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425   eval ac_new_val=\$ac_env_${ac_var}_value
2426   case $ac_old_set,$ac_new_set in
2427     set,)
2428       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430       ac_cache_corrupted=: ;;
2431     ,set)
2432       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434       ac_cache_corrupted=: ;;
2435     ,);;
2436     *)
2437       if test "x$ac_old_val" != "x$ac_new_val"; then
2438         # differences in whitespace do not lead to failure.
2439         ac_old_val_w=`echo x $ac_old_val`
2440         ac_new_val_w=`echo x $ac_new_val`
2441         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444           ac_cache_corrupted=:
2445         else
2446           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448           eval $ac_var=\$ac_old_val
2449         fi
2450         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2451 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2452         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2454       fi;;
2455   esac
2456   # Pass precious variables to config.status.
2457   if test "$ac_new_set" = set; then
2458     case $ac_new_val in
2459     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460     *) ac_arg=$ac_var=$ac_new_val ;;
2461     esac
2462     case " $ac_configure_args " in
2463       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2464       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2465     esac
2466   fi
2467 done
2468 if $ac_cache_corrupted; then
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474 fi
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2478
2479 ac_ext=c
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484
2485
2486
2487 LIBUNBOUND_CURRENT=3
2488 LIBUNBOUND_REVISION=5
2489 LIBUNBOUND_AGE=1
2490 # 1.0.0 had 0:12:0
2491 # 1.0.1 had 0:13:0
2492 # 1.0.2 had 0:14:0
2493 # 1.1.0 had 0:15:0
2494 # 1.1.1 had 0:16:0
2495 # 1.2.0 had 0:17:0
2496 # 1.2.1 had 0:18:0
2497 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2498 # 1.3.1 had 1:1:0
2499 # 1.3.2 had 1:2:0
2500 # 1.3.3 had 1:3:0
2501 # 1.3.4 had 1:4:0
2502 # 1.4.0-snapshots had 1:5:0
2503 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2504 # 1.4.1 had 2:1:0
2505 # 1.4.2 had 2:2:0
2506 # 1.4.3 had 2:3:0
2507 # 1.4.4 had 2:4:0
2508 # 1.4.5 had 2:5:0
2509 # 1.4.6 had 2:6:0
2510 # 1.4.7 had 2:7:0
2511 # 1.4.8 had 2:8:0
2512 # 1.4.9 had 2:9:0
2513 # 1.4.10 had 2:10:0
2514 # 1.4.11 had 2:11:0
2515 # 1.4.12 had 2:12:0
2516 # 1.4.13 had 2:13:0
2517 # and 1.4.13p1 and 1.4.13.p2
2518 # 1.4.14 had 2:14:0
2519 # 1.4.15 had 3:0:1 # adds ub_version()
2520 # 1.4.16 had 3:1:1
2521 # 1.4.17 had 3:2:1
2522 # 1.4.18 had 3:3:1
2523 # 1.4.19 had 3:4:1
2524 # 1.4.20 had 4:0:2 # adds libunbound.ttl
2525
2526 #   Current  -- the number of the binary API that we're implementing
2527 #   Revision -- which iteration of the implementation of the binary
2528 #               API are we supplying?
2529 #   Age      -- How many previous binary API versions do we also
2530 #               support?
2531 #
2532 # If we release a new version that does not change the binary API,
2533 # increment Revision.
2534 #
2535 # If we release a new version that changes the binary API, but does
2536 # not break programs compiled against the old binary API, increment
2537 # Current and Age.  Set Revision to 0, since this is the first
2538 # implementation of the new API.
2539 #
2540 # Otherwise, we're changing the binary API and breaking bakward
2541 # compatibility with old binaries.  Increment Current.  Set Age to 0,
2542 # since we're backward compatible with no previous APIs.  Set Revision
2543 # to 0 too.
2544
2545
2546
2547
2548 pretty_cmdline() {
2549         cmdline=""
2550         while test -n "$1"; do
2551                 cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'"
2552                 shift
2553         done
2554 }
2555 pretty_cmdline $@
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define CONFIGURE_BUILD_WITH "$cmdline"
2559 _ACEOF
2560
2561 ac_aux_dir=
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563   if test -f "$ac_dir/install-sh"; then
2564     ac_aux_dir=$ac_dir
2565     ac_install_sh="$ac_aux_dir/install-sh -c"
2566     break
2567   elif test -f "$ac_dir/install.sh"; then
2568     ac_aux_dir=$ac_dir
2569     ac_install_sh="$ac_aux_dir/install.sh -c"
2570     break
2571   elif test -f "$ac_dir/shtool"; then
2572     ac_aux_dir=$ac_dir
2573     ac_install_sh="$ac_aux_dir/shtool install -c"
2574     break
2575   fi
2576 done
2577 if test -z "$ac_aux_dir"; then
2578   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2579 fi
2580
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2588
2589
2590 # Make sure we can run config.sub.
2591 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2592   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2595 $as_echo_n "checking build system type... " >&6; }
2596 if ${ac_cv_build+:} false; then :
2597   $as_echo_n "(cached) " >&6
2598 else
2599   ac_build_alias=$build_alias
2600 test "x$ac_build_alias" = x &&
2601   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2602 test "x$ac_build_alias" = x &&
2603   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2604 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2605   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2606
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2609 $as_echo "$ac_cv_build" >&6; }
2610 case $ac_cv_build in
2611 *-*-*) ;;
2612 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2613 esac
2614 build=$ac_cv_build
2615 ac_save_IFS=$IFS; IFS='-'
2616 set x $ac_cv_build
2617 shift
2618 build_cpu=$1
2619 build_vendor=$2
2620 shift; shift
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2623 build_os=$*
2624 IFS=$ac_save_IFS
2625 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2626
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2629 $as_echo_n "checking host system type... " >&6; }
2630 if ${ac_cv_host+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   if test "x$host_alias" = x; then
2634   ac_cv_host=$ac_cv_build
2635 else
2636   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2637     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2638 fi
2639
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2642 $as_echo "$ac_cv_host" >&6; }
2643 case $ac_cv_host in
2644 *-*-*) ;;
2645 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2646 esac
2647 host=$ac_cv_host
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_host
2650 shift
2651 host_cpu=$1
2652 host_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 host_os=$*
2657 IFS=$ac_save_IFS
2658 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2659
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2662 $as_echo_n "checking target system type... " >&6; }
2663 if ${ac_cv_target+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test "x$target_alias" = x; then
2667   ac_cv_target=$ac_cv_host
2668 else
2669   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2670     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2671 fi
2672
2673 fi
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2675 $as_echo "$ac_cv_target" >&6; }
2676 case $ac_cv_target in
2677 *-*-*) ;;
2678 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2679 esac
2680 target=$ac_cv_target
2681 ac_save_IFS=$IFS; IFS='-'
2682 set x $ac_cv_target
2683 shift
2684 target_cpu=$1
2685 target_vendor=$2
2686 shift; shift
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2689 target_os=$*
2690 IFS=$ac_save_IFS
2691 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2692
2693
2694 # The aliases save the names the user supplied, while $host etc.
2695 # will get canonicalized.
2696 test -n "$target_alias" &&
2697   test "$program_prefix$program_suffix$program_transform_name" = \
2698     NONENONEs,x,x, &&
2699   program_prefix=${target_alias}-
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define CONFIGURE_TARGET "$target"
2703 _ACEOF
2704
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define CONFIGURE_DATE "`date`"
2708 _ACEOF
2709
2710
2711 CFLAGS="$CFLAGS"
2712 ac_ext=c
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 if test -n "$ac_tool_prefix"; then
2718   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_CC+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   if test -n "$CC"; then
2726   ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733     for ac_exec_ext in '' $ac_executable_extensions; do
2734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737     break 2
2738   fi
2739 done
2740   done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2749 else
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754
2755 fi
2756 if test -z "$ac_cv_prog_CC"; then
2757   ac_ct_CC=$CC
2758   # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$ac_ct_CC"; then
2766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_exec_ext in '' $ac_executable_extensions; do
2774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775     ac_cv_prog_ac_ct_CC="gcc"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794   if test "x$ac_ct_CC" = x; then
2795     CC=""
2796   else
2797     case $cross_compiling:$ac_tool_warned in
2798 yes:)
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2802 esac
2803     CC=$ac_ct_CC
2804   fi
2805 else
2806   CC="$ac_cv_prog_CC"
2807 fi
2808
2809 if test -z "$CC"; then
2810           if test -n "$ac_tool_prefix"; then
2811     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$CC"; then
2819   ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_CC="${ac_tool_prefix}cc"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848   fi
2849 fi
2850 if test -z "$CC"; then
2851   # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$CC"; then
2859   ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861   ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867     for ac_exec_ext in '' $ac_executable_extensions; do
2868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870        ac_prog_rejected=yes
2871        continue
2872      fi
2873     ac_cv_prog_CC="cc"
2874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875     break 2
2876   fi
2877 done
2878   done
2879 IFS=$as_save_IFS
2880
2881 if test $ac_prog_rejected = yes; then
2882   # We found a bogon in the path, so make sure we never use it.
2883   set dummy $ac_cv_prog_CC
2884   shift
2885   if test $# != 0; then
2886     # We chose a different compiler from the bogus one.
2887     # However, it has the same basename, so the bogon will be chosen
2888     # first if we set CC to just the basename; use the full file name.
2889     shift
2890     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891   fi
2892 fi
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$CC"; then
2907   if test -n "$ac_tool_prefix"; then
2908   for ac_prog in cl.exe
2909   do
2910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947     test -n "$CC" && break
2948   done
2949 fi
2950 if test -z "$CC"; then
2951   ac_ct_CC=$CC
2952   for ac_prog in cl.exe
2953 do
2954   # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   if test -n "$ac_ct_CC"; then
2962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967   IFS=$as_save_IFS
2968   test -z "$as_dir" && as_dir=.
2969     for ac_exec_ext in '' $ac_executable_extensions; do
2970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971     ac_cv_prog_ac_ct_CC="$ac_prog"
2972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973     break 2
2974   fi
2975 done
2976   done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2985 else
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991   test -n "$ac_ct_CC" && break
2992 done
2993
2994   if test "x$ac_ct_CC" = x; then
2995     CC=""
2996   else
2997     case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003     CC=$ac_ct_CC
3004   fi
3005 fi
3006
3007 fi
3008
3009
3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error $? "no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details" "$LINENO" 5; }
3014
3015 # Provide some information about the compiler.
3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017 set X $ac_compile
3018 ac_compiler=$2
3019 for ac_option in --version -v -V -qversion; do
3020   { { ac_try="$ac_compiler $ac_option >&5"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3028   ac_status=$?
3029   if test -s conftest.err; then
3030     sed '10a\
3031 ... rest of stderr output deleted ...
3032          10q' conftest.err >conftest.er1
3033     cat conftest.er1 >&5
3034   fi
3035   rm -f conftest.er1 conftest.err
3036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037   test $ac_status = 0; }
3038 done
3039
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h.  */
3042
3043 int
3044 main ()
3045 {
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 ac_clean_files_save=$ac_clean_files
3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3053 # Try to create an executable without -o first, disregard a.out.
3054 # It will help us diagnose broken compilers, and finding out an intuition
3055 # of exeext.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057 $as_echo_n "checking whether the C compiler works... " >&6; }
3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3059
3060 # The possible output files:
3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3062
3063 ac_rmfiles=
3064 for ac_file in $ac_files
3065 do
3066   case $ac_file in
3067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069   esac
3070 done
3071 rm -f $ac_rmfiles
3072
3073 if { { ac_try="$ac_link_default"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080   (eval "$ac_link_default") 2>&5
3081   ac_status=$?
3082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083   test $ac_status = 0; }; then :
3084   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3087 # so that the user can short-circuit this test for compilers unknown to
3088 # Autoconf.
3089 for ac_file in $ac_files ''
3090 do
3091   test -f "$ac_file" || continue
3092   case $ac_file in
3093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094         ;;
3095     [ab].out )
3096         # We found the default executable, but exeext='' is most
3097         # certainly right.
3098         break;;
3099     *.* )
3100         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3101         then :; else
3102            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103         fi
3104         # We set ac_cv_exeext here because the later test for it is not
3105         # safe: cross compilers may not add the suffix if given an `-o'
3106         # argument, so we may need to know it at that point already.
3107         # Even if this section looks crufty: it has the advantage of
3108         # actually working.
3109         break;;
3110     * )
3111         break;;
3112   esac
3113 done
3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
3115
3116 else
3117   ac_file=''
3118 fi
3119 if test -z "$ac_file"; then :
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 $as_echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error 77 "C compiler cannot create executables
3128 See \`config.log' for more details" "$LINENO" 5; }
3129 else
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3136 $as_echo "$ac_file" >&6; }
3137 ac_exeext=$ac_cv_exeext
3138
3139 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3140 ac_clean_files=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142 $as_echo_n "checking for suffix of executables... " >&6; }
3143 if { { ac_try="$ac_link"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150   (eval "$ac_link") 2>&5
3151   ac_status=$?
3152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153   test $ac_status = 0; }; then :
3154   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3157 # `rm'.
3158 for ac_file in conftest.exe conftest conftest.*; do
3159   test -f "$ac_file" || continue
3160   case $ac_file in
3161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163           break;;
3164     * ) break;;
3165   esac
3166 done
3167 else
3168   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details" "$LINENO" 5; }
3172 fi
3173 rm -f conftest conftest$ac_cv_exeext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175 $as_echo "$ac_cv_exeext" >&6; }
3176
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h.  */
3182 #include <stdio.h>
3183 int
3184 main ()
3185 {
3186 FILE *f = fopen ("conftest.out", "w");
3187  return ferror (f) || fclose (f) != 0;
3188
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 ac_clean_files="$ac_clean_files conftest.out"
3194 # Check that the compiler produces executables we can run.  If not, either
3195 # the compiler is broken, or we cross compile.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197 $as_echo_n "checking whether we are cross compiling... " >&6; }
3198 if test "$cross_compiling" != yes; then
3199   { { ac_try="$ac_link"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206   (eval "$ac_link") 2>&5
3207   ac_status=$?
3208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209   test $ac_status = 0; }
3210   if { ac_try='./conftest$ac_cv_exeext'
3211   { { case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217   (eval "$ac_try") 2>&5
3218   ac_status=$?
3219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220   test $ac_status = 0; }; }; then
3221     cross_compiling=no
3222   else
3223     if test "$cross_compiling" = maybe; then
3224         cross_compiling=yes
3225     else
3226         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error $? "cannot run C compiled programs.
3229 If you meant to cross compile, use \`--host'.
3230 See \`config.log' for more details" "$LINENO" 5; }
3231     fi
3232   fi
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235 $as_echo "$cross_compiling" >&6; }
3236
3237 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3238 ac_clean_files=$ac_clean_files_save
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240 $as_echo_n "checking for suffix of object files... " >&6; }
3241 if ${ac_cv_objext+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.o conftest.obj
3256 if { { ac_try="$ac_compile"
3257 case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263   (eval "$ac_compile") 2>&5
3264   ac_status=$?
3265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266   test $ac_status = 0; }; then :
3267   for ac_file in conftest.o conftest.obj conftest.*; do
3268   test -f "$ac_file" || continue;
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3271     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272        break;;
3273   esac
3274 done
3275 else
3276   $as_echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details" "$LINENO" 5; }
3283 fi
3284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287 $as_echo "$ac_cv_objext" >&6; }
3288 OBJEXT=$ac_cv_objext
3289 ac_objext=$OBJEXT
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3292 if ${ac_cv_c_compiler_gnu+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h.  */
3297
3298 int
3299 main ()
3300 {
3301 #ifndef __GNUC__
3302        choke me
3303 #endif
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 if ac_fn_c_try_compile "$LINENO"; then :
3310   ac_compiler_gnu=yes
3311 else
3312   ac_compiler_gnu=no
3313 fi
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3316
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320 if test $ac_compiler_gnu = yes; then
3321   GCC=yes
3322 else
3323   GCC=
3324 fi
3325 ac_test_CFLAGS=${CFLAGS+set}
3326 ac_save_CFLAGS=$CFLAGS
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3329 if ${ac_cv_prog_cc_g+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   ac_save_c_werror_flag=$ac_c_werror_flag
3333    ac_c_werror_flag=yes
3334    ac_cv_prog_cc_g=no
3335    CFLAGS="-g"
3336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 if ac_fn_c_try_compile "$LINENO"; then :
3348   ac_cv_prog_cc_g=yes
3349 else
3350   CFLAGS=""
3351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h.  */
3353
3354 int
3355 main ()
3356 {
3357
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363
3364 else
3365   ac_c_werror_flag=$ac_save_c_werror_flag
3366          CFLAGS="-g"
3367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379   ac_cv_prog_cc_g=yes
3380 fi
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386    ac_c_werror_flag=$ac_save_c_werror_flag
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389 $as_echo "$ac_cv_prog_cc_g" >&6; }
3390 if test "$ac_test_CFLAGS" = set; then
3391   CFLAGS=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393   if test "$GCC" = yes; then
3394     CFLAGS="-g -O2"
3395   else
3396     CFLAGS="-g"
3397   fi
3398 else
3399   if test "$GCC" = yes; then
3400     CFLAGS="-O2"
3401   else
3402     CFLAGS=
3403   fi
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3407 if ${ac_cv_prog_cc_c89+:} false; then :
3408   $as_echo_n "(cached) " >&6
3409 else
3410   ac_cv_prog_cc_c89=no
3411 ac_save_CC=$CC
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h.  */
3414 #include <stdarg.h>
3415 #include <stdio.h>
3416 struct stat;
3417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3418 struct buf { int x; };
3419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420 static char *e (p, i)
3421      char **p;
3422      int i;
3423 {
3424   return p[i];
3425 }
3426 static char *f (char * (*g) (char **, int), char **p, ...)
3427 {
3428   char *s;
3429   va_list v;
3430   va_start (v,p);
3431   s = g (p, va_arg (v,int));
3432   va_end (v);
3433   return s;
3434 }
3435
3436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3437    function prototypes and stuff, but not '\xHH' hex character constants.
3438    These don't provoke an error unfortunately, instead are silently treated
3439    as 'x'.  The following induces an error, until -std is added to get
3440    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3441    array size at least.  It's necessary to write '\x00'==0 to get something
3442    that's true only with -std.  */
3443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444
3445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446    inside strings and character constants.  */
3447 #define FOO(x) 'x'
3448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449
3450 int test (int i, double x);
3451 struct s1 {int (*f) (int a);};
3452 struct s2 {int (*f) (double a);};
3453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454 int argc;
3455 char **argv;
3456 int
3457 main ()
3458 {
3459 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466 do
3467   CC="$ac_save_CC $ac_arg"
3468   if ac_fn_c_try_compile "$LINENO"; then :
3469   ac_cv_prog_cc_c89=$ac_arg
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext
3472   test "x$ac_cv_prog_cc_c89" != "xno" && break
3473 done
3474 rm -f conftest.$ac_ext
3475 CC=$ac_save_CC
3476
3477 fi
3478 # AC_CACHE_VAL
3479 case "x$ac_cv_prog_cc_c89" in
3480   x)
3481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482 $as_echo "none needed" >&6; } ;;
3483   xno)
3484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485 $as_echo "unsupported" >&6; } ;;
3486   *)
3487     CC="$CC $ac_cv_prog_cc_c89"
3488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3490 esac
3491 if test "x$ac_cv_prog_cc_c89" != xno; then :
3492
3493 fi
3494
3495 ac_ext=c
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
3501
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3509 # On Suns, sometimes $CPP names a directory.
3510 if test -n "$CPP" && test -d "$CPP"; then
3511   CPP=
3512 fi
3513 if test -z "$CPP"; then
3514   if ${ac_cv_prog_CPP+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517       # Double quotes because CPP needs to be expanded
3518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3519     do
3520       ac_preproc_ok=false
3521 for ac_c_preproc_warn_flag in '' yes
3522 do
3523   # Use a header file that comes with gcc, so configuring glibc
3524   # with a fresh cross-compiler works.
3525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526   # <limits.h> exists even on freestanding compilers.
3527   # On the NeXT, cc -E runs the code through the compiler's parser,
3528   # not just through cpp. "Syntax error" is here to catch this case.
3529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531 #ifdef __STDC__
3532 # include <limits.h>
3533 #else
3534 # include <assert.h>
3535 #endif
3536                      Syntax error
3537 _ACEOF
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539
3540 else
3541   # Broken: fails on valid input.
3542 continue
3543 fi
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3545
3546   # OK, works on sane cases.  Now check whether nonexistent headers
3547   # can be detected and how.
3548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550 #include <ac_nonexistent.h>
3551 _ACEOF
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553   # Broken: success on invalid input.
3554 continue
3555 else
3556   # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3559 fi
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.i conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then :
3566   break
3567 fi
3568
3569     done
3570     ac_cv_prog_CPP=$CPP
3571
3572 fi
3573   CPP=$ac_cv_prog_CPP
3574 else
3575   ac_cv_prog_CPP=$CPP
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3578 $as_echo "$CPP" >&6; }
3579 ac_preproc_ok=false
3580 for ac_c_preproc_warn_flag in '' yes
3581 do
3582   # Use a header file that comes with gcc, so configuring glibc
3583   # with a fresh cross-compiler works.
3584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585   # <limits.h> exists even on freestanding compilers.
3586   # On the NeXT, cc -E runs the code through the compiler's parser,
3587   # not just through cpp. "Syntax error" is here to catch this case.
3588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h.  */
3590 #ifdef __STDC__
3591 # include <limits.h>
3592 #else
3593 # include <assert.h>
3594 #endif
3595                      Syntax error
3596 _ACEOF
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3598
3599 else
3600   # Broken: fails on valid input.
3601 continue
3602 fi
3603 rm -f conftest.err conftest.i conftest.$ac_ext
3604
3605   # OK, works on sane cases.  Now check whether nonexistent headers
3606   # can be detected and how.
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609 #include <ac_nonexistent.h>
3610 _ACEOF
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3612   # Broken: success on invalid input.
3613 continue
3614 else
3615   # Passes both tests.
3616 ac_preproc_ok=:
3617 break
3618 fi
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3620
3621 done
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.i conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then :
3625
3626 else
3627   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details" "$LINENO" 5; }
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3642 if ${ac_cv_path_GREP+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if test -z "$GREP"; then
3646   ac_path_GREP_found=false
3647   # Loop through the user's path and test for each of PROGNAME-LIST
3648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653     for ac_prog in grep ggrep; do
3654     for ac_exec_ext in '' $ac_executable_extensions; do
3655       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3656       as_fn_executable_p "$ac_path_GREP" || continue
3657 # Check for GNU ac_path_GREP and select it if it is found.
3658   # Check for GNU $ac_path_GREP
3659 case `"$ac_path_GREP" --version 2>&1` in
3660 *GNU*)
3661   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3662 *)
3663   ac_count=0
3664   $as_echo_n 0123456789 >"conftest.in"
3665   while :
3666   do
3667     cat "conftest.in" "conftest.in" >"conftest.tmp"
3668     mv "conftest.tmp" "conftest.in"
3669     cp "conftest.in" "conftest.nl"
3670     $as_echo 'GREP' >> "conftest.nl"
3671     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673     as_fn_arith $ac_count + 1 && ac_count=$as_val
3674     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3675       # Best one so far, save it but keep looking for a better one
3676       ac_cv_path_GREP="$ac_path_GREP"
3677       ac_path_GREP_max=$ac_count
3678     fi
3679     # 10*(2^10) chars as input seems more than enough
3680     test $ac_count -gt 10 && break
3681   done
3682   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3683 esac
3684
3685       $ac_path_GREP_found && break 3
3686     done
3687   done
3688   done
3689 IFS=$as_save_IFS
3690   if test -z "$ac_cv_path_GREP"; then
3691     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3692   fi
3693 else
3694   ac_cv_path_GREP=$GREP
3695 fi
3696
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3699 $as_echo "$ac_cv_path_GREP" >&6; }
3700  GREP="$ac_cv_path_GREP"
3701
3702
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3704 $as_echo_n "checking for egrep... " >&6; }
3705 if ${ac_cv_path_EGREP+:} false; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3709    then ac_cv_path_EGREP="$GREP -E"
3710    else
3711      if test -z "$EGREP"; then
3712   ac_path_EGREP_found=false
3713   # Loop through the user's path and test for each of PROGNAME-LIST
3714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719     for ac_prog in egrep; do
3720     for ac_exec_ext in '' $ac_executable_extensions; do
3721       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722       as_fn_executable_p "$ac_path_EGREP" || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724   # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3726 *GNU*)
3727   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728 *)
3729   ac_count=0
3730   $as_echo_n 0123456789 >"conftest.in"
3731   while :
3732   do
3733     cat "conftest.in" "conftest.in" >"conftest.tmp"
3734     mv "conftest.tmp" "conftest.in"
3735     cp "conftest.in" "conftest.nl"
3736     $as_echo 'EGREP' >> "conftest.nl"
3737     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739     as_fn_arith $ac_count + 1 && ac_count=$as_val
3740     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741       # Best one so far, save it but keep looking for a better one
3742       ac_cv_path_EGREP="$ac_path_EGREP"
3743       ac_path_EGREP_max=$ac_count
3744     fi
3745     # 10*(2^10) chars as input seems more than enough
3746     test $ac_count -gt 10 && break
3747   done
3748   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749 esac
3750
3751       $ac_path_EGREP_found && break 3
3752     done
3753   done
3754   done
3755 IFS=$as_save_IFS
3756   if test -z "$ac_cv_path_EGREP"; then
3757     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3758   fi
3759 else
3760   ac_cv_path_EGREP=$EGREP
3761 fi
3762
3763    fi
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3766 $as_echo "$ac_cv_path_EGREP" >&6; }
3767  EGREP="$ac_cv_path_EGREP"
3768
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3771 $as_echo_n "checking for ANSI C header files... " >&6; }
3772 if ${ac_cv_header_stdc+:} false; then :
3773   $as_echo_n "(cached) " >&6
3774 else
3775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777 #include <stdlib.h>
3778 #include <stdarg.h>
3779 #include <string.h>
3780 #include <float.h>
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791   ac_cv_header_stdc=yes
3792 else
3793   ac_cv_header_stdc=no
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796
3797 if test $ac_cv_header_stdc = yes; then
3798   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801 #include <string.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805   $EGREP "memchr" >/dev/null 2>&1; then :
3806
3807 else
3808   ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818 #include <stdlib.h>
3819
3820 _ACEOF
3821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822   $EGREP "free" >/dev/null 2>&1; then :
3823
3824 else
3825   ac_cv_header_stdc=no
3826 fi
3827 rm -f conftest*
3828
3829 fi
3830
3831 if test $ac_cv_header_stdc = yes; then
3832   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3833   if test "$cross_compiling" = yes; then :
3834   :
3835 else
3836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838 #include <ctype.h>
3839 #include <stdlib.h>
3840 #if ((' ' & 0x0FF) == 0x020)
3841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3843 #else
3844 # define ISLOWER(c) \
3845                    (('a' <= (c) && (c) <= 'i') \
3846                      || ('j' <= (c) && (c) <= 'r') \
3847                      || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3849 #endif
3850
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3852 int
3853 main ()
3854 {
3855   int i;
3856   for (i = 0; i < 256; i++)
3857     if (XOR (islower (i), ISLOWER (i))
3858         || toupper (i) != TOUPPER (i))
3859       return 2;
3860   return 0;
3861 }
3862 _ACEOF
3863 if ac_fn_c_try_run "$LINENO"; then :
3864
3865 else
3866   ac_cv_header_stdc=no
3867 fi
3868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3869   conftest.$ac_objext conftest.beam conftest.$ac_ext
3870 fi
3871
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3875 $as_echo "$ac_cv_header_stdc" >&6; }
3876 if test $ac_cv_header_stdc = yes; then
3877
3878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3879
3880 fi
3881
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884                   inttypes.h stdint.h unistd.h
3885 do :
3886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3888 "
3889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3890   cat >>confdefs.h <<_ACEOF
3891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3892 _ACEOF
3893
3894 fi
3895
3896 done
3897
3898
3899
3900   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3901 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3902   MINIX=yes
3903 else
3904   MINIX=
3905 fi
3906
3907
3908   if test "$MINIX" = yes; then
3909
3910 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3911
3912
3913 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3914
3915
3916 $as_echo "#define _MINIX 1" >>confdefs.h
3917
3918   fi
3919
3920
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 #         define __EXTENSIONS__ 1
3930           $ac_includes_default
3931 int
3932 main ()
3933 {
3934
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940   ac_cv_safe_to_define___extensions__=yes
3941 else
3942   ac_cv_safe_to_define___extensions__=no
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3948   test $ac_cv_safe_to_define___extensions__ = yes &&
3949     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3950
3951   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3952
3953   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3954
3955   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3956
3957   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3958
3959
3960
3961
3962 case "$prefix" in
3963         NONE)
3964                 prefix="/usr/local"
3965         ;;
3966 esac
3967
3968 # are we on MinGW?
3969 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3970 else
3971         if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3972         else on_mingw="no"; fi
3973 fi
3974
3975 #
3976 # Determine configuration file
3977 # the eval is to evaluate shell expansion twice
3978 if test $on_mingw = "no"; then
3979   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3980 else
3981   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3982 fi
3983
3984 # Check whether --with-conf_file was given.
3985 if test "${with_conf_file+set}" = set; then :
3986   withval=$with_conf_file; ub_conf_file="$withval"
3987 fi
3988
3989
3990 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3991
3992
3993 cat >>confdefs.h <<_ACEOF
3994 #define CONFIGFILE "$hdr_config"
3995 _ACEOF
3996
3997
3998 # Determine run, chroot directory and pidfile locations
3999
4000 # Check whether --with-run-dir was given.
4001 if test "${with_run_dir+set}" = set; then :
4002   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4003 else
4004   if test $on_mingw = no; then
4005     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4006 else
4007     UNBOUND_RUN_DIR=""
4008 fi
4009
4010 fi
4011
4012
4013 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4014
4015
4016 cat >>confdefs.h <<_ACEOF
4017 #define RUN_DIR "$hdr_run"
4018 _ACEOF
4019
4020
4021
4022 # Check whether --with-chroot-dir was given.
4023 if test "${with_chroot_dir+set}" = set; then :
4024   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4025 else
4026   if test $on_mingw = no; then
4027     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4028 else
4029     UNBOUND_CHROOT_DIR=""
4030 fi
4031
4032 fi
4033
4034
4035 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4036
4037
4038 cat >>confdefs.h <<_ACEOF
4039 #define CHROOT_DIR "$hdr_chroot"
4040 _ACEOF
4041
4042
4043
4044 # Check whether --with-share-dir was given.
4045 if test "${with_share_dir+set}" = set; then :
4046   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4047 else
4048   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4049 fi
4050
4051
4052
4053 cat >>confdefs.h <<_ACEOF
4054 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4055 _ACEOF
4056
4057
4058
4059 # Check whether --with-pidfile was given.
4060 if test "${with_pidfile+set}" = set; then :
4061   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4062 else
4063   if test $on_mingw = no; then
4064     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4065 else
4066     UNBOUND_PIDFILE=""
4067 fi
4068
4069 fi
4070
4071
4072 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4073
4074
4075 cat >>confdefs.h <<_ACEOF
4076 #define PIDFILE "$hdr_pid"
4077 _ACEOF
4078
4079
4080
4081 # Check whether --with-rootkey-file was given.
4082 if test "${with_rootkey_file+set}" = set; then :
4083   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4084 else
4085   if test $on_mingw = no; then
4086     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4087 else
4088     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4089 fi
4090
4091 fi
4092
4093
4094 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4095
4096
4097 cat >>confdefs.h <<_ACEOF
4098 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4099 _ACEOF
4100
4101
4102
4103 # Check whether --with-rootcert-file was given.
4104 if test "${with_rootcert_file+set}" = set; then :
4105   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4106 else
4107   if test $on_mingw = no; then
4108     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4109 else
4110     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4111 fi
4112
4113 fi
4114
4115
4116 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4117
4118
4119 cat >>confdefs.h <<_ACEOF
4120 #define ROOT_CERT_FILE "$hdr_rpem"
4121 _ACEOF
4122
4123
4124
4125 # Check whether --with-username was given.
4126 if test "${with_username+set}" = set; then :
4127   withval=$with_username; UNBOUND_USERNAME="$withval"
4128 else
4129   UNBOUND_USERNAME="unbound"
4130 fi
4131
4132
4133
4134 cat >>confdefs.h <<_ACEOF
4135 #define UB_USERNAME "$UNBOUND_USERNAME"
4136 _ACEOF
4137
4138
4139
4140 $as_echo "#define WINVER 0x0502" >>confdefs.h
4141
4142 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^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]*$/\1,\2,\3,0/' `
4143
4144
4145 cat >>confdefs.h <<_ACEOF
4146 #define RSRC_PACKAGE_VERSION $wnvs
4147 _ACEOF
4148
4149
4150 # Checks for typedefs, structures, and compiler characteristics.
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4152 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4153 if ${ac_cv_c_const+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h.  */
4158
4159 int
4160 main ()
4161 {
4162
4163 #ifndef __cplusplus
4164   /* Ultrix mips cc rejects this sort of thing.  */
4165   typedef int charset[2];
4166   const charset cs = { 0, 0 };
4167   /* SunOS 4.1.1 cc rejects this.  */
4168   char const *const *pcpcc;
4169   char **ppc;
4170   /* NEC SVR4.0.2 mips cc rejects this.  */
4171   struct point {int x, y;};
4172   static struct point const zero = {0,0};
4173   /* AIX XL C 1.02.0.0 rejects this.
4174      It does not let you subtract one const X* pointer from another in
4175      an arm of an if-expression whose if-part is not a constant
4176      expression */
4177   const char *g = "string";
4178   pcpcc = &g + (g ? g-g : 0);
4179   /* HPUX 7.0 cc rejects these. */
4180   ++pcpcc;
4181   ppc = (char**) pcpcc;
4182   pcpcc = (char const *const *) ppc;
4183   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4184     char tx;
4185     char *t = &tx;
4186     char const *s = 0 ? (char *) 0 : (char const *) 0;
4187
4188     *t++ = 0;
4189     if (s) return 0;
4190   }
4191   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4192     int x[] = {25, 17};
4193     const int *foo = &x[0];
4194     ++foo;
4195   }
4196   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4197     typedef const int *iptr;
4198     iptr p = 0;
4199     ++p;
4200   }
4201   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4202        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4203     struct s { int j; const int *ap[3]; } bx;
4204     struct s *b = &bx; b->j = 5;
4205   }
4206   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4207     const int foo = 10;
4208     if (!foo) return 0;
4209   }
4210   return !cs[0] && !zero.x;
4211 #endif
4212
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218   ac_cv_c_const=yes
4219 else
4220   ac_cv_c_const=no
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4225 $as_echo "$ac_cv_c_const" >&6; }
4226 if test $ac_cv_c_const = no; then
4227
4228 $as_echo "#define const /**/" >>confdefs.h
4229
4230 fi
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238 # allow user to override the -g -O2 flags.
4239 if test "x$CFLAGS" = "x" ; then
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4243 $as_echo_n "checking whether $CC supports -g... " >&6; }
4244 cache=`echo g | sed 'y%.=/+-%___p_%'`
4245 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248
4249 echo 'void f(){}' >conftest.c
4250 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4251 eval "cv_prog_cc_flag_$cache=yes"
4252 else
4253 eval "cv_prog_cc_flag_$cache=no"
4254 fi
4255 rm -f conftest conftest.o conftest.c
4256
4257 fi
4258
4259 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261 $as_echo "yes" >&6; }
4262 :
4263 CFLAGS="$CFLAGS -g"
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 :
4268
4269 fi
4270
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4274 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4275 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4276 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279
4280 echo 'void f(){}' >conftest.c
4281 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4282 eval "cv_prog_cc_flag_$cache=yes"
4283 else
4284 eval "cv_prog_cc_flag_$cache=no"
4285 fi
4286 rm -f conftest conftest.o conftest.c
4287
4288 fi
4289
4290 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4293 :
4294 CFLAGS="$CFLAGS -O2"
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 :
4299
4300 fi
4301
4302 fi
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 if test -n "$ac_tool_prefix"; then
4309   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CC+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -n "$CC"; then
4317   ac_cv_prog_CC="$CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331   done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 CC=$ac_cv_prog_CC
4337 if test -n "$CC"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339 $as_echo "$CC" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346 fi
4347 if test -z "$ac_cv_prog_CC"; then
4348   ac_ct_CC=$CC
4349   # Extract the first word of "gcc", so it can be a program name with args.
4350 set dummy gcc; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   if test -n "$ac_ct_CC"; then
4357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364     for ac_exec_ext in '' $ac_executable_extensions; do
4365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366     ac_cv_prog_ac_ct_CC="gcc"
4367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369   fi
4370 done
4371   done
4372 IFS=$as_save_IFS
4373
4374 fi
4375 fi
4376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4377 if test -n "$ac_ct_CC"; then
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4379 $as_echo "$ac_ct_CC" >&6; }
4380 else
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385   if test "x$ac_ct_CC" = x; then
4386     CC=""
4387   else
4388     case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394     CC=$ac_ct_CC
4395   fi
4396 else
4397   CC="$ac_cv_prog_CC"
4398 fi
4399
4400 if test -z "$CC"; then
4401           if test -n "$ac_tool_prefix"; then
4402     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}cc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_CC+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$CC"; then
4410   ac_cv_prog_CC="$CC" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419     ac_cv_prog_CC="${ac_tool_prefix}cc"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 CC=$ac_cv_prog_CC
4430 if test -n "$CC"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432 $as_echo "$CC" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   fi
4440 fi
4441 if test -z "$CC"; then
4442   # Extract the first word of "cc", so it can be a program name with args.
4443 set dummy cc; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_CC+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if test -n "$CC"; then
4450   ac_cv_prog_CC="$CC" # Let the user override the test.
4451 else
4452   ac_prog_rejected=no
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458     for ac_exec_ext in '' $ac_executable_extensions; do
4459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4461        ac_prog_rejected=yes
4462        continue
4463      fi
4464     ac_cv_prog_CC="cc"
4465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469   done
4470 IFS=$as_save_IFS
4471
4472 if test $ac_prog_rejected = yes; then
4473   # We found a bogon in the path, so make sure we never use it.
4474   set dummy $ac_cv_prog_CC
4475   shift
4476   if test $# != 0; then
4477     # We chose a different compiler from the bogus one.
4478     # However, it has the same basename, so the bogon will be chosen
4479     # first if we set CC to just the basename; use the full file name.
4480     shift
4481     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4482   fi
4483 fi
4484 fi
4485 fi
4486 CC=$ac_cv_prog_CC
4487 if test -n "$CC"; then
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4489 $as_echo "$CC" >&6; }
4490 else
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 fi
4494
4495
4496 fi
4497 if test -z "$CC"; then
4498   if test -n "$ac_tool_prefix"; then
4499   for ac_prog in cl.exe
4500   do
4501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CC+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   if test -n "$CC"; then
4509   ac_cv_prog_CC="$CC" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516     for ac_exec_ext in '' $ac_executable_extensions; do
4517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523   done
4524 IFS=$as_save_IFS
4525
4526 fi
4527 fi
4528 CC=$ac_cv_prog_CC
4529 if test -n "$CC"; then
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531 $as_echo "$CC" >&6; }
4532 else
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537
4538     test -n "$CC" && break
4539   done
4540 fi
4541 if test -z "$CC"; then
4542   ac_ct_CC=$CC
4543   for ac_prog in cl.exe
4544 do
4545   # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -n "$ac_ct_CC"; then
4553   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     ac_cv_prog_ac_ct_CC="$ac_prog"
4563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567   done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4573 if test -n "$ac_ct_CC"; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4575 $as_echo "$ac_ct_CC" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582   test -n "$ac_ct_CC" && break
4583 done
4584
4585   if test "x$ac_ct_CC" = x; then
4586     CC=""
4587   else
4588     case $cross_compiling:$ac_tool_warned in
4589 yes:)
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592 ac_tool_warned=yes ;;
4593 esac
4594     CC=$ac_ct_CC
4595   fi
4596 fi
4597
4598 fi
4599
4600
4601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "no acceptable C compiler found in \$PATH
4604 See \`config.log' for more details" "$LINENO" 5; }
4605
4606 # Provide some information about the compiler.
4607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4608 set X $ac_compile
4609 ac_compiler=$2
4610 for ac_option in --version -v -V -qversion; do
4611   { { ac_try="$ac_compiler $ac_option >&5"
4612 case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 $as_echo "$ac_try_echo"; } >&5
4618   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619   ac_status=$?
4620   if test -s conftest.err; then
4621     sed '10a\
4622 ... rest of stderr output deleted ...
4623          10q' conftest.err >conftest.er1
4624     cat conftest.er1 >&5
4625   fi
4626   rm -f conftest.er1 conftest.err
4627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628   test $ac_status = 0; }
4629 done
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4633 if ${ac_cv_c_compiler_gnu+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638
4639 int
4640 main ()
4641 {
4642 #ifndef __GNUC__
4643        choke me
4644 #endif
4645
4646   ;
4647   return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651   ac_compiler_gnu=yes
4652 else
4653   ac_compiler_gnu=no
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661 if test $ac_compiler_gnu = yes; then
4662   GCC=yes
4663 else
4664   GCC=
4665 fi
4666 ac_test_CFLAGS=${CFLAGS+set}
4667 ac_save_CFLAGS=$CFLAGS
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4670 if ${ac_cv_prog_cc_g+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673   ac_save_c_werror_flag=$ac_c_werror_flag
4674    ac_c_werror_flag=yes
4675    ac_cv_prog_cc_g=no
4676    CFLAGS="-g"
4677    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679
4680 int
4681 main ()
4682 {
4683
4684   ;
4685   return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689   ac_cv_prog_cc_g=yes
4690 else
4691   CFLAGS=""
4692       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h.  */
4694
4695 int
4696 main ()
4697 {
4698
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704
4705 else
4706   ac_c_werror_flag=$ac_save_c_werror_flag
4707          CFLAGS="-g"
4708          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720   ac_cv_prog_cc_g=yes
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727    ac_c_werror_flag=$ac_save_c_werror_flag
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730 $as_echo "$ac_cv_prog_cc_g" >&6; }
4731 if test "$ac_test_CFLAGS" = set; then
4732   CFLAGS=$ac_save_CFLAGS
4733 elif test $ac_cv_prog_cc_g = yes; then
4734   if test "$GCC" = yes; then
4735     CFLAGS="-g -O2"
4736   else
4737     CFLAGS="-g"
4738   fi
4739 else
4740   if test "$GCC" = yes; then
4741     CFLAGS="-O2"
4742   else
4743     CFLAGS=
4744   fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4748 if ${ac_cv_prog_cc_c89+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   ac_cv_prog_cc_c89=no
4752 ac_save_CC=$CC
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h.  */
4755 #include <stdarg.h>
4756 #include <stdio.h>
4757 struct stat;
4758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4759 struct buf { int x; };
4760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761 static char *e (p, i)
4762      char **p;
4763      int i;
4764 {
4765   return p[i];
4766 }
4767 static char *f (char * (*g) (char **, int), char **p, ...)
4768 {
4769   char *s;
4770   va_list v;
4771   va_start (v,p);
4772   s = g (p, va_arg (v,int));
4773   va_end (v);
4774   return s;
4775 }
4776
4777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4778    function prototypes and stuff, but not '\xHH' hex character constants.
4779    These don't provoke an error unfortunately, instead are silently treated
4780    as 'x'.  The following induces an error, until -std is added to get
4781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4782    array size at least.  It's necessary to write '\x00'==0 to get something
4783    that's true only with -std.  */
4784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785
4786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4787    inside strings and character constants.  */
4788 #define FOO(x) 'x'
4789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4790
4791 int test (int i, double x);
4792 struct s1 {int (*f) (int a);};
4793 struct s2 {int (*f) (double a);};
4794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795 int argc;
4796 char **argv;
4797 int
4798 main ()
4799 {
4800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4801   ;
4802   return 0;
4803 }
4804 _ACEOF
4805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4806         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4807 do
4808   CC="$ac_save_CC $ac_arg"
4809   if ac_fn_c_try_compile "$LINENO"; then :
4810   ac_cv_prog_cc_c89=$ac_arg
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext
4813   test "x$ac_cv_prog_cc_c89" != "xno" && break
4814 done
4815 rm -f conftest.$ac_ext
4816 CC=$ac_save_CC
4817
4818 fi
4819 # AC_CACHE_VAL
4820 case "x$ac_cv_prog_cc_c89" in
4821   x)
4822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4823 $as_echo "none needed" >&6; } ;;
4824   xno)
4825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4826 $as_echo "unsupported" >&6; } ;;
4827   *)
4828     CC="$CC $ac_cv_prog_cc_c89"
4829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4831 esac
4832 if test "x$ac_cv_prog_cc_c89" != xno; then :
4833
4834 fi
4835
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4844 $as_echo_n "checking $CC dependency flag... " >&6; }
4845 echo 'void f(){}' >conftest.c
4846 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4847         DEPFLAG="-MM"
4848 else
4849   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4850         DEPFLAG="-xM1"
4851   else
4852         DEPFLAG="-MM"  # dunno do something
4853   fi
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4856 $as_echo "$DEPFLAG" >&6; }
4857 rm -f conftest.c
4858
4859
4860
4861
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4864 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4865 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4866 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869
4870 echo 'void f(){}' >conftest.c
4871 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4872 eval "cv_prog_cc_flag_$cache=yes"
4873 else
4874 eval "cv_prog_cc_flag_$cache=no"
4875 fi
4876 rm -f conftest conftest.o conftest.c
4877
4878 fi
4879
4880 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882 $as_echo "yes" >&6; }
4883 :
4884 ERRFLAG="-Werror"
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 :
4889 ERRFLAG="-errwarn"
4890 fi
4891
4892
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4895 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4896 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4897 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900
4901 echo 'void f(){}' >conftest.c
4902 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4903 eval "cv_prog_cc_flag_$cache=yes"
4904 else
4905 eval "cv_prog_cc_flag_$cache=no"
4906 fi
4907 rm -f conftest conftest.o conftest.c
4908
4909 fi
4910
4911 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4913 $as_echo "yes" >&6; }
4914 :
4915 ERRFLAG="$ERRFLAG -Wall"
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 :
4920 ERRFLAG="$ERRFLAG -errfmt"
4921 fi
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4928 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4929 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4930 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933
4934 echo 'void f(){}' >conftest.c
4935 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4936 eval "cv_prog_cc_flag_$cache=yes"
4937 else
4938 eval "cv_prog_cc_flag_$cache=no"
4939 fi
4940 rm -f conftest conftest.o conftest.c
4941
4942 fi
4943
4944 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946 $as_echo "yes" >&6; }
4947 :
4948 C99FLAG="-std=c99"
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 :
4953
4954 fi
4955
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4959 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4960 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4961 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4962   $as_echo_n "(cached) " >&6
4963 else
4964
4965 echo 'void f(){}' >conftest.c
4966 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4967 eval "cv_prog_cc_flag_$cache=yes"
4968 else
4969 eval "cv_prog_cc_flag_$cache=no"
4970 fi
4971 rm -f conftest conftest.o conftest.c
4972
4973 fi
4974
4975 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977 $as_echo "yes" >&6; }
4978 :
4979 C99FLAG="-xc99"
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 :
4984
4985 fi
4986
4987
4988 for ac_header in getopt.h time.h
4989 do :
4990   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4992 "
4993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4994   cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4996 _ACEOF
4997
4998 fi
4999
5000 done
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5007 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5008 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5009 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012
5013 echo '
5014 #include "confdefs.h"
5015 #include <stdlib.h>
5016 #include <ctype.h>
5017 #include <sys/time.h>
5018 #ifdef HAVE_TIME_H
5019 #include <time.h>
5020 #endif
5021 #include <unistd.h>
5022 #include <netdb.h>
5023 #ifdef HAVE_GETOPT_H
5024 #include <getopt.h>
5025 #endif
5026
5027 int test() {
5028         int a;
5029         char **opts = NULL;
5030         struct timeval tv;
5031         char *t;
5032         time_t time = 0;
5033         char *buf = NULL;
5034         const char* str = NULL;
5035         struct msghdr msg;
5036         msg.msg_control = 0;
5037         t = ctime_r(&time, buf);
5038         tv.tv_usec = 10;
5039         srandom(32);
5040         a = getopt(2, opts, "a");
5041         a = isascii(32);
5042         str = gai_strerror(0);
5043         if(str && t && tv.tv_usec && msg.msg_control)
5044                 a = 0;
5045         return a;
5046 }
5047 ' > conftest.c
5048 echo 'void f(){}' >>conftest.c
5049 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5050 eval "cv_prog_cc_flag_needed_$cache=no"
5051 else
5052
5053 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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
5054 eval "cv_prog_cc_flag_needed_$cache=yes"
5055 else
5056 eval "cv_prog_cc_flag_needed_$cache=fail"
5057 #echo 'Test with flag fails too!'
5058 #cat conftest.c
5059 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5060 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5061 #exit 1
5062 fi
5063
5064 fi
5065 rm -f conftest conftest.c conftest.o
5066
5067 fi
5068
5069 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5072 :
5073 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5074 else
5075 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 #echo 'Test with flag is no!'
5079 #cat conftest.c
5080 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5081 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5082 #exit 1
5083 :
5084
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5087 $as_echo "failed" >&6; }
5088 :
5089
5090 fi
5091 fi
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5098 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5099 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5100 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103
5104 echo '
5105 #include "confdefs.h"
5106 #include <stdlib.h>
5107 #include <ctype.h>
5108 #include <sys/time.h>
5109 #ifdef HAVE_TIME_H
5110 #include <time.h>
5111 #endif
5112 #include <unistd.h>
5113 #include <netdb.h>
5114 #ifdef HAVE_GETOPT_H
5115 #include <getopt.h>
5116 #endif
5117
5118 int test() {
5119         int a;
5120         char **opts = NULL;
5121         struct timeval tv;
5122         char *t;
5123         time_t time = 0;
5124         char *buf = NULL;
5125         const char* str = NULL;
5126         struct msghdr msg;
5127         msg.msg_control = 0;
5128         t = ctime_r(&time, buf);
5129         tv.tv_usec = 10;
5130         srandom(32);
5131         a = getopt(2, opts, "a");
5132         a = isascii(32);
5133         str = gai_strerror(0);
5134         if(str && t && tv.tv_usec && msg.msg_control)
5135                 a = 0;
5136         return a;
5137 }
5138 ' > conftest.c
5139 echo 'void f(){}' >>conftest.c
5140 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5141 eval "cv_prog_cc_flag_needed_$cache=no"
5142 else
5143
5144 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5145 eval "cv_prog_cc_flag_needed_$cache=yes"
5146 else
5147 eval "cv_prog_cc_flag_needed_$cache=fail"
5148 #echo 'Test with flag fails too!'
5149 #cat conftest.c
5150 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5151 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5152 #exit 1
5153 fi
5154
5155 fi
5156 rm -f conftest conftest.c conftest.o
5157
5158 fi
5159
5160 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 $as_echo "yes" >&6; }
5163 :
5164 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5165 else
5166 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 #echo 'Test with flag is no!'
5170 #cat conftest.c
5171 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5172 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5173 #exit 1
5174 :
5175
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5178 $as_echo "failed" >&6; }
5179 :
5180
5181 fi
5182 fi
5183
5184
5185
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5189 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5190 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5191 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194
5195 echo '
5196 #include <stdbool.h>
5197 #include <ctype.h>
5198 int test() {
5199         int a = 0;
5200         return a;
5201 }
5202 ' > conftest.c
5203 echo 'void f(){}' >>conftest.c
5204 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5205 eval "cv_prog_cc_flag_needed_$cache=no"
5206 else
5207
5208 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5209 eval "cv_prog_cc_flag_needed_$cache=yes"
5210 else
5211 eval "cv_prog_cc_flag_needed_$cache=fail"
5212 #echo 'Test with flag fails too!'
5213 #cat conftest.c
5214 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5215 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5216 #exit 1
5217 fi
5218
5219 fi
5220 rm -f conftest conftest.c conftest.o
5221
5222 fi
5223
5224 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5227 :
5228 CFLAGS="$CFLAGS $C99FLAG"
5229 else
5230 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 #echo 'Test with flag is no!'
5234 #cat conftest.c
5235 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5236 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5237 #exit 1
5238 :
5239
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5242 $as_echo "failed" >&6; }
5243 :
5244
5245 fi
5246 fi
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5253 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5254 cache=_D_BSD_SOURCE
5255 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258
5259 echo '
5260 #include <ctype.h>
5261
5262 int test() {
5263         int a;
5264         a = isascii(32);
5265         return a;
5266 }
5267 ' > conftest.c
5268 echo 'void f(){}' >>conftest.c
5269 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5270 eval "cv_prog_cc_flag_needed_$cache=no"
5271 else
5272
5273 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5274 eval "cv_prog_cc_flag_needed_$cache=yes"
5275 else
5276 eval "cv_prog_cc_flag_needed_$cache=fail"
5277 #echo 'Test with flag fails too!'
5278 #cat conftest.c
5279 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5280 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5281 #exit 1
5282 fi
5283
5284 fi
5285 rm -f conftest conftest.c conftest.o
5286
5287 fi
5288
5289 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 $as_echo "yes" >&6; }
5292 :
5293 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5294 else
5295 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 #echo 'Test with flag is no!'
5299 #cat conftest.c
5300 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5301 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5302 #exit 1
5303 :
5304
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5307 $as_echo "failed" >&6; }
5308 :
5309
5310 fi
5311 fi
5312
5313
5314
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5318 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5319 cache=_D_GNU_SOURCE
5320 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323
5324 echo '
5325 #include <netinet/in.h>
5326
5327 int test() {
5328         struct in6_pktinfo inf;
5329         int a = (int)sizeof(inf);
5330         return a;
5331 }
5332 ' > conftest.c
5333 echo 'void f(){}' >>conftest.c
5334 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5335 eval "cv_prog_cc_flag_needed_$cache=no"
5336 else
5337
5338 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5339 eval "cv_prog_cc_flag_needed_$cache=yes"
5340 else
5341 eval "cv_prog_cc_flag_needed_$cache=fail"
5342 #echo 'Test with flag fails too!'
5343 #cat conftest.c
5344 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5345 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5346 #exit 1
5347 fi
5348
5349 fi
5350 rm -f conftest conftest.c conftest.o
5351
5352 fi
5353
5354 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }
5357 :
5358 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5359 else
5360 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 #echo 'Test with flag is no!'
5364 #cat conftest.c
5365 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5366 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5367 #exit 1
5368 :
5369
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5372 $as_echo "failed" >&6; }
5373 :
5374
5375 fi
5376 fi
5377
5378
5379 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5380 # is not available at all. -D_FRSRESGID is to make this check unique.
5381 # otherwise we would get the previous cached result.
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5386 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5387 cache=_D_GNU_SOURCE__D_FRSRESGID
5388 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391
5392 echo '
5393 #include <unistd.h>
5394
5395 int test() {
5396         int a = setresgid(0,0,0);
5397         a = setresuid(0,0,0);
5398         return a;
5399 }
5400 ' > conftest.c
5401 echo 'void f(){}' >>conftest.c
5402 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5403 eval "cv_prog_cc_flag_needed_$cache=no"
5404 else
5405
5406 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5407 eval "cv_prog_cc_flag_needed_$cache=yes"
5408 else
5409 eval "cv_prog_cc_flag_needed_$cache=fail"
5410 #echo 'Test with flag fails too!'
5411 #cat conftest.c
5412 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5413 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5414 #exit 1
5415 fi
5416
5417 fi
5418 rm -f conftest conftest.c conftest.o
5419
5420 fi
5421
5422 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5424 $as_echo "yes" >&6; }
5425 :
5426 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5427 else
5428 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 #echo 'Test with flag is no!'
5432 #cat conftest.c
5433 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5434 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5435 #exit 1
5436 :
5437
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5440 $as_echo "failed" >&6; }
5441 :
5442
5443 fi
5444 fi
5445
5446
5447
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5451 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5452 cache=_D_POSIX_C_SOURCE_200112
5453 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456
5457 echo '
5458 #include "confdefs.h"
5459 #ifdef HAVE_TIME_H
5460 #include <time.h>
5461 #endif
5462 #include <netdb.h>
5463
5464 int test() {
5465         int a = 0;
5466         char *t;
5467         time_t time = 0;
5468         char *buf = NULL;
5469         const char* str = NULL;
5470         t = ctime_r(&time, buf);
5471         str = gai_strerror(0);
5472         if(t && str)
5473                 a = 0;
5474         return a;
5475 }
5476 ' > conftest.c
5477 echo 'void f(){}' >>conftest.c
5478 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5479 eval "cv_prog_cc_flag_needed_$cache=no"
5480 else
5481
5482 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5483 eval "cv_prog_cc_flag_needed_$cache=yes"
5484 else
5485 eval "cv_prog_cc_flag_needed_$cache=fail"
5486 #echo 'Test with flag fails too!'
5487 #cat conftest.c
5488 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5489 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5490 #exit 1
5491 fi
5492
5493 fi
5494 rm -f conftest conftest.c conftest.o
5495
5496 fi
5497
5498 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5501 :
5502 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5503 else
5504 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 #echo 'Test with flag is no!'
5508 #cat conftest.c
5509 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5510 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5511 #exit 1
5512 :
5513
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5516 $as_echo "failed" >&6; }
5517 :
5518
5519 fi
5520 fi
5521
5522
5523
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5527 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5528 cache=_D__EXTENSIONS__
5529 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532
5533 echo '
5534 #include "confdefs.h"
5535 #include <stdlib.h>
5536 #include <ctype.h>
5537 #include <sys/time.h>
5538 #ifdef HAVE_TIME_H
5539 #include <time.h>
5540 #endif
5541 #include <unistd.h>
5542 #ifdef HAVE_GETOPT_H
5543 #include <getopt.h>
5544 #endif
5545
5546 int test() {
5547         int a;
5548         char **opts = NULL;
5549         struct timeval tv;
5550         tv.tv_usec = 10;
5551         srandom(32);
5552         a = getopt(2, opts, "a");
5553         a = isascii(32);
5554         if(tv.tv_usec)
5555                 a = 0;
5556         return a;
5557 }
5558 ' > conftest.c
5559 echo 'void f(){}' >>conftest.c
5560 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5561 eval "cv_prog_cc_flag_needed_$cache=no"
5562 else
5563
5564 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5565 eval "cv_prog_cc_flag_needed_$cache=yes"
5566 else
5567 eval "cv_prog_cc_flag_needed_$cache=fail"
5568 #echo 'Test with flag fails too!'
5569 #cat conftest.c
5570 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5571 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5572 #exit 1
5573 fi
5574
5575 fi
5576 rm -f conftest conftest.c conftest.o
5577
5578 fi
5579
5580 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582 $as_echo "yes" >&6; }
5583 :
5584 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5585 else
5586 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 #echo 'Test with flag is no!'
5590 #cat conftest.c
5591 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5592 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5593 #exit 1
5594 :
5595
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5598 $as_echo "failed" >&6; }
5599 :
5600
5601 fi
5602 fi
5603
5604
5605
5606
5607 # debug mode flags warnings
5608 # Check whether --enable-checking was given.
5609 if test "${enable_checking+set}" = set; then :
5610   enableval=$enable_checking;
5611 fi
5612
5613 # Check whether --enable-debug was given.
5614 if test "${enable_debug+set}" = set; then :
5615   enableval=$enable_debug;
5616 fi
5617
5618 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5619 else debug_enabled="$enable_checking"; fi
5620
5621 case "$debug_enabled" in
5622         yes)
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5626 $as_echo_n "checking whether $CC supports -W... " >&6; }
5627 cache=`echo W | sed 'y%.=/+-%___p_%'`
5628 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631
5632 echo 'void f(){}' >conftest.c
5633 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5634 eval "cv_prog_cc_flag_$cache=yes"
5635 else
5636 eval "cv_prog_cc_flag_$cache=no"
5637 fi
5638 rm -f conftest conftest.o conftest.c
5639
5640 fi
5641
5642 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644 $as_echo "yes" >&6; }
5645 :
5646 CFLAGS="$CFLAGS -W"
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 :
5651
5652 fi
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5657 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5658 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5659 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662
5663 echo 'void f(){}' >conftest.c
5664 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5665 eval "cv_prog_cc_flag_$cache=yes"
5666 else
5667 eval "cv_prog_cc_flag_$cache=no"
5668 fi
5669 rm -f conftest conftest.o conftest.c
5670
5671 fi
5672
5673 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676 :
5677 CFLAGS="$CFLAGS -Wall"
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 :
5682
5683 fi
5684
5685
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5688 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5689 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5690 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693
5694 echo 'void f(){}' >conftest.c
5695 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5696 eval "cv_prog_cc_flag_$cache=yes"
5697 else
5698 eval "cv_prog_cc_flag_$cache=no"
5699 fi
5700 rm -f conftest conftest.o conftest.c
5701
5702 fi
5703
5704 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5707 :
5708 CFLAGS="$CFLAGS -Wextra"
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 :
5713
5714 fi
5715
5716
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5719 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5720 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5721 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724
5725 echo 'void f(){}' >conftest.c
5726 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5727 eval "cv_prog_cc_flag_$cache=yes"
5728 else
5729 eval "cv_prog_cc_flag_$cache=no"
5730 fi
5731 rm -f conftest conftest.o conftest.c
5732
5733 fi
5734
5735 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737 $as_echo "yes" >&6; }
5738 :
5739 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 :
5744
5745 fi
5746
5747
5748 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5749
5750                 ;;
5751         no|*)
5752                 # nothing to do.
5753                 ;;
5754 esac
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5756 $as_echo_n "checking if $CC supports -flto... " >&6; }
5757 BAKCFLAGS="$CFLAGS"
5758 CFLAGS="$CFLAGS -flto"
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761
5762 int
5763 main ()
5764 {
5765
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_link "$LINENO"; then :
5771
5772     if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5773         CFLAGS="$BAKCFLAGS"
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776     else
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778 $as_echo "yes" >&6; }
5779     fi
5780     rm -f conftest conftest.c conftest.o
5781
5782 else
5783   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext \
5787     conftest$ac_exeext conftest.$ac_ext
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5791 $as_echo_n "checking for inline... " >&6; }
5792 if ${ac_cv_c_inline+:} false; then :
5793   $as_echo_n "(cached) " >&6
5794 else
5795   ac_cv_c_inline=no
5796 for ac_kw in inline __inline__ __inline; do
5797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h.  */
5799 #ifndef __cplusplus
5800 typedef int foo_t;
5801 static $ac_kw foo_t static_foo () {return 0; }
5802 $ac_kw foo_t foo () {return 0; }
5803 #endif
5804
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807   ac_cv_c_inline=$ac_kw
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810   test "$ac_cv_c_inline" != no && break
5811 done
5812
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5815 $as_echo "$ac_cv_c_inline" >&6; }
5816
5817 case $ac_cv_c_inline in
5818   inline | yes) ;;
5819   *)
5820     case $ac_cv_c_inline in
5821       no) ac_val=;;
5822       *) ac_val=$ac_cv_c_inline;;
5823     esac
5824     cat >>confdefs.h <<_ACEOF
5825 #ifndef __cplusplus
5826 #define inline $ac_val
5827 #endif
5828 _ACEOF
5829     ;;
5830 esac
5831
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5834 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5835 if ${ac_cv_c_format_attribute+:} false; then :
5836   $as_echo_n "(cached) " >&6
5837 else
5838   ac_cv_c_format_attribute=no
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h.  */
5841 #include <stdio.h>
5842 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5843 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5844
5845 int
5846 main ()
5847 {
5848
5849    f ("%s", "str");
5850
5851   ;
5852   return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856   ac_cv_c_format_attribute="yes"
5857 else
5858   ac_cv_c_format_attribute="no"
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861
5862 fi
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5866 $as_echo "$ac_cv_c_format_attribute" >&6; }
5867 if test $ac_cv_c_format_attribute = yes; then
5868
5869 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5870
5871 fi
5872
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5875 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5876 if ${ac_cv_c_unused_attribute+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   ac_cv_c_unused_attribute=no
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h.  */
5882 #include <stdio.h>
5883 void f (char *u __attribute__((unused)));
5884
5885 int
5886 main ()
5887 {
5888
5889    f ("x");
5890
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896   ac_cv_c_unused_attribute="yes"
5897 else
5898   ac_cv_c_unused_attribute="no"
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901
5902 fi
5903
5904
5905
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5908 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5909 if test $ac_cv_c_unused_attribute = yes; then
5910
5911 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5912
5913 fi
5914
5915
5916 if test "$srcdir" != "."; then
5917         CPPFLAGS="$CPPFLAGS -I$srcdir"
5918 fi
5919
5920
5921
5922 for ac_prog in flex lex
5923 do
5924   # Extract the first word of "$ac_prog", so it can be a program name with args.
5925 set dummy $ac_prog; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_LEX+:} false; then :
5929   $as_echo_n "(cached) " >&6
5930 else
5931   if test -n "$LEX"; then
5932   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_prog_LEX="$ac_prog"
5942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946   done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 LEX=$ac_cv_prog_LEX
5952 if test -n "$LEX"; then
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5954 $as_echo "$LEX" >&6; }
5955 else
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961   test -n "$LEX" && break
5962 done
5963 test -n "$LEX" || LEX=":"
5964
5965 if test "x$LEX" != "x:"; then
5966   cat >conftest.l <<_ACEOF
5967 %%
5968 a { ECHO; }
5969 b { REJECT; }
5970 c { yymore (); }
5971 d { yyless (1); }
5972 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5973     yyless ((input () != 0)); }
5974 f { unput (yytext[0]); }
5975 . { BEGIN INITIAL; }
5976 %%
5977 #ifdef YYTEXT_POINTER
5978 extern char *yytext;
5979 #endif
5980 int
5981 main (void)
5982 {
5983   return ! yylex () + ! yywrap ();
5984 }
5985 _ACEOF
5986 { { ac_try="$LEX conftest.l"
5987 case "(($ac_try" in
5988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989   *) ac_try_echo=$ac_try;;
5990 esac
5991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5992 $as_echo "$ac_try_echo"; } >&5
5993   (eval "$LEX conftest.l") 2>&5
5994   ac_status=$?
5995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996   test $ac_status = 0; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5998 $as_echo_n "checking lex output file root... " >&6; }
5999 if ${ac_cv_prog_lex_root+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002
6003 if test -f lex.yy.c; then
6004   ac_cv_prog_lex_root=lex.yy
6005 elif test -f lexyy.c; then
6006   ac_cv_prog_lex_root=lexyy
6007 else
6008   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6009 fi
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6012 $as_echo "$ac_cv_prog_lex_root" >&6; }
6013 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6014
6015 if test -z "${LEXLIB+set}"; then
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6017 $as_echo_n "checking lex library... " >&6; }
6018 if ${ac_cv_lib_lex+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021
6022     ac_save_LIBS=$LIBS
6023     ac_cv_lib_lex='none needed'
6024     for ac_lib in '' -lfl -ll; do
6025       LIBS="$ac_lib $ac_save_LIBS"
6026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h.  */
6028 `cat $LEX_OUTPUT_ROOT.c`
6029 _ACEOF
6030 if ac_fn_c_try_link "$LINENO"; then :
6031   ac_cv_lib_lex=$ac_lib
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext \
6034     conftest$ac_exeext conftest.$ac_ext
6035       test "$ac_cv_lib_lex" != 'none needed' && break
6036     done
6037     LIBS=$ac_save_LIBS
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6041 $as_echo "$ac_cv_lib_lex" >&6; }
6042   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6043 fi
6044
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6047 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6048 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   # POSIX says lex can declare yytext either as a pointer or an array; the
6052 # default is implementation-dependent.  Figure out which it is, since
6053 # not all implementations provide the %pointer and %array declarations.
6054 ac_cv_prog_lex_yytext_pointer=no
6055 ac_save_LIBS=$LIBS
6056 LIBS="$LEXLIB $ac_save_LIBS"
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h.  */
6059
6060   #define YYTEXT_POINTER 1
6061 `cat $LEX_OUTPUT_ROOT.c`
6062 _ACEOF
6063 if ac_fn_c_try_link "$LINENO"; then :
6064   ac_cv_prog_lex_yytext_pointer=yes
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext \
6067     conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_save_LIBS
6069
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6072 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6073 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6074
6075 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6076
6077 fi
6078 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6079
6080 fi
6081
6082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6083 $as_echo_n "checking for yylex_destroy... " >&6; }
6084         if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6085
6086 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6087
6088                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6089 $as_echo "yes" >&6; }
6090         else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }; fi
6092
6093 for ac_prog in 'bison -y' byacc
6094 do
6095   # Extract the first word of "$ac_prog", so it can be a program name with args.
6096 set dummy $ac_prog; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_YACC+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   if test -n "$YACC"; then
6103   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110     for ac_exec_ext in '' $ac_executable_extensions; do
6111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112     ac_cv_prog_YACC="$ac_prog"
6113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117   done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 YACC=$ac_cv_prog_YACC
6123 if test -n "$YACC"; then
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6125 $as_echo "$YACC" >&6; }
6126 else
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130
6131
6132   test -n "$YACC" && break
6133 done
6134 test -n "$YACC" || YACC="yacc"
6135
6136 # Extract the first word of "doxygen", so it can be a program name with args.
6137 set dummy doxygen; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_doxygen+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   if test -n "$doxygen"; then
6144   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_prog_doxygen="doxygen"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 doxygen=$ac_cv_prog_doxygen
6164 if test -n "$doxygen"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6166 $as_echo "$doxygen" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 if test -n "$ac_tool_prefix"; then
6174   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}strip; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_STRIP+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181   if test -n "$STRIP"; then
6182   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189     for ac_exec_ext in '' $ac_executable_extensions; do
6190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196   done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 STRIP=$ac_cv_prog_STRIP
6202 if test -n "$STRIP"; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6204 $as_echo "$STRIP" >&6; }
6205 else
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209
6210
6211 fi
6212 if test -z "$ac_cv_prog_STRIP"; then
6213   ac_ct_STRIP=$STRIP
6214   # Extract the first word of "strip", so it can be a program name with args.
6215 set dummy strip; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6219   $as_echo_n "(cached) " >&6
6220 else
6221   if test -n "$ac_ct_STRIP"; then
6222   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229     for ac_exec_ext in '' $ac_executable_extensions; do
6230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231     ac_cv_prog_ac_ct_STRIP="strip"
6232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236   done
6237 IFS=$as_save_IFS
6238
6239 fi
6240 fi
6241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6242 if test -n "$ac_ct_STRIP"; then
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6244 $as_echo "$ac_ct_STRIP" >&6; }
6245 else
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6248 fi
6249
6250   if test "x$ac_ct_STRIP" = x; then
6251     STRIP=""
6252   else
6253     case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259     STRIP=$ac_ct_STRIP
6260   fi
6261 else
6262   STRIP="$ac_cv_prog_STRIP"
6263 fi
6264
6265
6266 # skip these tests, we do not need them.
6267
6268
6269
6270
6271
6272
6273
6274
6275 # always use ./libtool unless override from commandline (libtool=mylibtool)
6276 if test -z "$libtool"; then
6277         libtool="./libtool"
6278 fi
6279
6280 # avoid libtool max commandline length test on systems that fork slowly.
6281
6282 if echo "$host_os" | grep "sunos4" >/dev/null; then
6283         lt_cv_sys_max_cmd_len=32750;
6284 fi
6285 if test -n "$ac_tool_prefix"; then
6286   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}ar; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_path_AR+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   case $AR in
6294   [\\/]* | ?:[\\/]*)
6295   ac_cv_path_AR="$AR" # Let the user override the test with a path.
6296   ;;
6297   *)
6298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303     for ac_exec_ext in '' $ac_executable_extensions; do
6304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310   done
6311 IFS=$as_save_IFS
6312
6313   ;;
6314 esac
6315 fi
6316 AR=$ac_cv_path_AR
6317 if test -n "$AR"; then
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6319 $as_echo "$AR" >&6; }
6320 else
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325
6326 fi
6327 if test -z "$ac_cv_path_AR"; then
6328   ac_pt_AR=$AR
6329   # Extract the first word of "ar", so it can be a program name with args.
6330 set dummy ar; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_path_ac_pt_AR+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   case $ac_pt_AR in
6337   [\\/]* | ?:[\\/]*)
6338   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6339   ;;
6340   *)
6341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353   done
6354 IFS=$as_save_IFS
6355
6356   ;;
6357 esac
6358 fi
6359 ac_pt_AR=$ac_cv_path_ac_pt_AR
6360 if test -n "$ac_pt_AR"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6362 $as_echo "$ac_pt_AR" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368   if test "x$ac_pt_AR" = x; then
6369     AR="false"
6370   else
6371     case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377     AR=$ac_pt_AR
6378   fi
6379 else
6380   AR="$ac_cv_path_AR"
6381 fi
6382
6383 if test $AR = false; then
6384         as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6385 fi
6386
6387 case `pwd` in
6388   *\ * | *\     *)
6389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6390 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6391 esac
6392
6393
6394
6395 macro_version='2.4.2'
6396 macro_revision='1.3337'
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 ltmain="$ac_aux_dir/ltmain.sh"
6411
6412 # Backslashify metacharacters that are still active within
6413 # double-quoted strings.
6414 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6415
6416 # Same as above, but do not quote variable references.
6417 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6418
6419 # Sed substitution to delay expansion of an escaped shell variable in a
6420 # double_quote_subst'ed string.
6421 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6422
6423 # Sed substitution to delay expansion of an escaped single quote.
6424 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6425
6426 # Sed substitution to avoid accidental globbing in evaled expressions
6427 no_glob_subst='s/\*/\\\*/g'
6428
6429 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6430 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6434 $as_echo_n "checking how to print strings... " >&6; }
6435 # Test print first, because it will be a builtin if present.
6436 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6437    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6438   ECHO='print -r --'
6439 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6440   ECHO='printf %s\n'
6441 else
6442   # Use this function as a fallback that always works.
6443   func_fallback_echo ()
6444   {
6445     eval 'cat <<_LTECHO_EOF
6446 $1
6447 _LTECHO_EOF'
6448   }
6449   ECHO='func_fallback_echo'
6450 fi
6451
6452 # func_echo_all arg...
6453 # Invoke $ECHO with all args, space-separated.
6454 func_echo_all ()
6455 {
6456     $ECHO ""
6457 }
6458
6459 case "$ECHO" in
6460   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6461 $as_echo "printf" >&6; } ;;
6462   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6463 $as_echo "print -r" >&6; } ;;
6464   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6465 $as_echo "cat" >&6; } ;;
6466 esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6483 if ${ac_cv_path_SED+:} false; then :
6484   $as_echo_n "(cached) " >&6
6485 else
6486             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6487      for ac_i in 1 2 3 4 5 6 7; do
6488        ac_script="$ac_script$as_nl$ac_script"
6489      done
6490      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6491      { ac_script=; unset ac_script;}
6492      if test -z "$SED"; then
6493   ac_path_SED_found=false
6494   # Loop through the user's path and test for each of PROGNAME-LIST
6495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_prog in sed gsed; do
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6503       as_fn_executable_p "$ac_path_SED" || continue
6504 # Check for GNU ac_path_SED and select it if it is found.
6505   # Check for GNU $ac_path_SED
6506 case `"$ac_path_SED" --version 2>&1` in
6507 *GNU*)
6508   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6509 *)
6510   ac_count=0
6511   $as_echo_n 0123456789 >"conftest.in"
6512   while :
6513   do
6514     cat "conftest.in" "conftest.in" >"conftest.tmp"
6515     mv "conftest.tmp" "conftest.in"
6516     cp "conftest.in" "conftest.nl"
6517     $as_echo '' >> "conftest.nl"
6518     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6519     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6520     as_fn_arith $ac_count + 1 && ac_count=$as_val
6521     if test $ac_count -gt ${ac_path_SED_max-0}; then
6522       # Best one so far, save it but keep looking for a better one
6523       ac_cv_path_SED="$ac_path_SED"
6524       ac_path_SED_max=$ac_count
6525     fi
6526     # 10*(2^10) chars as input seems more than enough
6527     test $ac_count -gt 10 && break
6528   done
6529   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6530 esac
6531
6532       $ac_path_SED_found && break 3
6533     done
6534   done
6535   done
6536 IFS=$as_save_IFS
6537   if test -z "$ac_cv_path_SED"; then
6538     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6539   fi
6540 else
6541   ac_cv_path_SED=$SED
6542 fi
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6546 $as_echo "$ac_cv_path_SED" >&6; }
6547  SED="$ac_cv_path_SED"
6548   rm -f conftest.sed
6549
6550 test -z "$SED" && SED=sed
6551 Xsed="$SED -e 1s/^X//"
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6564 $as_echo_n "checking for fgrep... " >&6; }
6565 if ${ac_cv_path_FGREP+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6569    then ac_cv_path_FGREP="$GREP -F"
6570    else
6571      if test -z "$FGREP"; then
6572   ac_path_FGREP_found=false
6573   # Loop through the user's path and test for each of PROGNAME-LIST
6574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_prog in fgrep; do
6580     for ac_exec_ext in '' $ac_executable_extensions; do
6581       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6582       as_fn_executable_p "$ac_path_FGREP" || continue
6583 # Check for GNU ac_path_FGREP and select it if it is found.
6584   # Check for GNU $ac_path_FGREP
6585 case `"$ac_path_FGREP" --version 2>&1` in
6586 *GNU*)
6587   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6588 *)
6589   ac_count=0
6590   $as_echo_n 0123456789 >"conftest.in"
6591   while :
6592   do
6593     cat "conftest.in" "conftest.in" >"conftest.tmp"
6594     mv "conftest.tmp" "conftest.in"
6595     cp "conftest.in" "conftest.nl"
6596     $as_echo 'FGREP' >> "conftest.nl"
6597     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6599     as_fn_arith $ac_count + 1 && ac_count=$as_val
6600     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6601       # Best one so far, save it but keep looking for a better one
6602       ac_cv_path_FGREP="$ac_path_FGREP"
6603       ac_path_FGREP_max=$ac_count
6604     fi
6605     # 10*(2^10) chars as input seems more than enough
6606     test $ac_count -gt 10 && break
6607   done
6608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6609 esac
6610
6611       $ac_path_FGREP_found && break 3
6612     done
6613   done
6614   done
6615 IFS=$as_save_IFS
6616   if test -z "$ac_cv_path_FGREP"; then
6617     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6618   fi
6619 else
6620   ac_cv_path_FGREP=$FGREP
6621 fi
6622
6623    fi
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6626 $as_echo "$ac_cv_path_FGREP" >&6; }
6627  FGREP="$ac_cv_path_FGREP"
6628
6629
6630 test -z "$GREP" && GREP=grep
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650 # Check whether --with-gnu-ld was given.
6651 if test "${with_gnu_ld+set}" = set; then :
6652   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6653 else
6654   with_gnu_ld=no
6655 fi
6656
6657 ac_prog=ld
6658 if test "$GCC" = yes; then
6659   # Check if gcc -print-prog-name=ld gives a path.
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6661 $as_echo_n "checking for ld used by $CC... " >&6; }
6662   case $host in
6663   *-*-mingw*)
6664     # gcc leaves a trailing carriage return which upsets mingw
6665     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6666   *)
6667     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6668   esac
6669   case $ac_prog in
6670     # Accept absolute paths.
6671     [\\/]* | ?:[\\/]*)
6672       re_direlt='/[^/][^/]*/\.\./'
6673       # Canonicalize the pathname of ld
6674       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6675       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6676         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6677       done
6678       test -z "$LD" && LD="$ac_prog"
6679       ;;
6680   "")
6681     # If it fails, then pretend we aren't using GCC.
6682     ac_prog=ld
6683     ;;
6684   *)
6685     # If it is relative, then search for the first ld in PATH.
6686     with_gnu_ld=unknown
6687     ;;
6688   esac
6689 elif test "$with_gnu_ld" = yes; then
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6691 $as_echo_n "checking for GNU ld... " >&6; }
6692 else
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6694 $as_echo_n "checking for non-GNU ld... " >&6; }
6695 fi
6696 if ${lt_cv_path_LD+:} false; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -z "$LD"; then
6700   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6701   for ac_dir in $PATH; do
6702     IFS="$lt_save_ifs"
6703     test -z "$ac_dir" && ac_dir=.
6704     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6705       lt_cv_path_LD="$ac_dir/$ac_prog"
6706       # Check to see if the program is GNU ld.  I'd rather use --version,
6707       # but apparently some variants of GNU ld only accept -v.
6708       # Break only if it was the GNU/non-GNU ld that we prefer.
6709       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6710       *GNU* | *'with BFD'*)
6711         test "$with_gnu_ld" != no && break
6712         ;;
6713       *)
6714         test "$with_gnu_ld" != yes && break
6715         ;;
6716       esac
6717     fi
6718   done
6719   IFS="$lt_save_ifs"
6720 else
6721   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6722 fi
6723 fi
6724
6725 LD="$lt_cv_path_LD"
6726 if test -n "$LD"; then
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6728 $as_echo "$LD" >&6; }
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6736 if ${lt_cv_prog_gnu_ld+:} false; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6740 case `$LD -v 2>&1 </dev/null` in
6741 *GNU* | *'with BFD'*)
6742   lt_cv_prog_gnu_ld=yes
6743   ;;
6744 *)
6745   lt_cv_prog_gnu_ld=no
6746   ;;
6747 esac
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6751 with_gnu_ld=$lt_cv_prog_gnu_ld
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6762 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6763 if ${lt_cv_path_NM+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   if test -n "$NM"; then
6767   # Let the user override the test.
6768   lt_cv_path_NM="$NM"
6769 else
6770   lt_nm_to_check="${ac_tool_prefix}nm"
6771   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6772     lt_nm_to_check="$lt_nm_to_check nm"
6773   fi
6774   for lt_tmp_nm in $lt_nm_to_check; do
6775     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6776     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6777       IFS="$lt_save_ifs"
6778       test -z "$ac_dir" && ac_dir=.
6779       tmp_nm="$ac_dir/$lt_tmp_nm"
6780       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6781         # Check to see if the nm accepts a BSD-compat flag.
6782         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6783         #   nm: unknown option "B" ignored
6784         # Tru64's nm complains that /dev/null is an invalid object file
6785         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6786         */dev/null* | *'Invalid file or object type'*)
6787           lt_cv_path_NM="$tmp_nm -B"
6788           break
6789           ;;
6790         *)
6791           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6792           */dev/null*)
6793             lt_cv_path_NM="$tmp_nm -p"
6794             break
6795             ;;
6796           *)
6797             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6798             continue # so that we can try to find one that supports BSD flags
6799             ;;
6800           esac
6801           ;;
6802         esac
6803       fi
6804     done
6805     IFS="$lt_save_ifs"
6806   done
6807   : ${lt_cv_path_NM=no}
6808 fi
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6811 $as_echo "$lt_cv_path_NM" >&6; }
6812 if test "$lt_cv_path_NM" != "no"; then
6813   NM="$lt_cv_path_NM"
6814 else
6815   # Didn't find any BSD compatible name lister, look for dumpbin.
6816   if test -n "$DUMPBIN"; then :
6817     # Let the user override the test.
6818   else
6819     if test -n "$ac_tool_prefix"; then
6820   for ac_prog in dumpbin "link -dump"
6821   do
6822     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_DUMPBIN+:} false; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   if test -n "$DUMPBIN"; then
6830   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837     for ac_exec_ext in '' $ac_executable_extensions; do
6838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844   done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 DUMPBIN=$ac_cv_prog_DUMPBIN
6850 if test -n "$DUMPBIN"; then
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6852 $as_echo "$DUMPBIN" >&6; }
6853 else
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859     test -n "$DUMPBIN" && break
6860   done
6861 fi
6862 if test -z "$DUMPBIN"; then
6863   ac_ct_DUMPBIN=$DUMPBIN
6864   for ac_prog in dumpbin "link -dump"
6865 do
6866   # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6871   $as_echo_n "(cached) " >&6
6872 else
6873   if test -n "$ac_ct_DUMPBIN"; then
6874   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888   done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6894 if test -n "$ac_ct_DUMPBIN"; then
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6896 $as_echo "$ac_ct_DUMPBIN" >&6; }
6897 else
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903   test -n "$ac_ct_DUMPBIN" && break
6904 done
6905
6906   if test "x$ac_ct_DUMPBIN" = x; then
6907     DUMPBIN=":"
6908   else
6909     case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915     DUMPBIN=$ac_ct_DUMPBIN
6916   fi
6917 fi
6918
6919     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6920     *COFF*)
6921       DUMPBIN="$DUMPBIN -symbols"
6922       ;;
6923     *)
6924       DUMPBIN=:
6925       ;;
6926     esac
6927   fi
6928
6929   if test "$DUMPBIN" != ":"; then
6930     NM="$DUMPBIN"
6931   fi
6932 fi
6933 test -z "$NM" && NM=nm
6934
6935
6936
6937
6938
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6941 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6942 if ${lt_cv_nm_interface+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   lt_cv_nm_interface="BSD nm"
6946   echo "int some_variable = 0;" > conftest.$ac_ext
6947   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6948   (eval "$ac_compile" 2>conftest.err)
6949   cat conftest.err >&5
6950   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6951   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6952   cat conftest.err >&5
6953   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6954   cat conftest.out >&5
6955   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6956     lt_cv_nm_interface="MS dumpbin"
6957   fi
6958   rm -f conftest*
6959 fi
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6961 $as_echo "$lt_cv_nm_interface" >&6; }
6962
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6964 $as_echo_n "checking whether ln -s works... " >&6; }
6965 LN_S=$as_ln_s
6966 if test "$LN_S" = "ln -s"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6968 $as_echo "yes" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6971 $as_echo "no, using $LN_S" >&6; }
6972 fi
6973
6974 # find the maximum length of command line arguments
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6976 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6977 if ${lt_cv_sys_max_cmd_len+:} false; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980     i=0
6981   teststring="ABCD"
6982
6983   case $build_os in
6984   msdosdjgpp*)
6985     # On DJGPP, this test can blow up pretty badly due to problems in libc
6986     # (any single argument exceeding 2000 bytes causes a buffer overrun
6987     # during glob expansion).  Even if it were fixed, the result of this
6988     # check would be larger than it should be.
6989     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6990     ;;
6991
6992   gnu*)
6993     # Under GNU Hurd, this test is not required because there is
6994     # no limit to the length of command line arguments.
6995     # Libtool will interpret -1 as no limit whatsoever
6996     lt_cv_sys_max_cmd_len=-1;
6997     ;;
6998
6999   cygwin* | mingw* | cegcc*)
7000     # On Win9x/ME, this test blows up -- it succeeds, but takes
7001     # about 5 minutes as the teststring grows exponentially.
7002     # Worse, since 9x/ME are not pre-emptively multitasking,
7003     # you end up with a "frozen" computer, even though with patience
7004     # the test eventually succeeds (with a max line length of 256k).
7005     # Instead, let's just punt: use the minimum linelength reported by
7006     # all of the supported platforms: 8192 (on NT/2K/XP).
7007     lt_cv_sys_max_cmd_len=8192;
7008     ;;
7009
7010   mint*)
7011     # On MiNT this can take a long time and run out of memory.
7012     lt_cv_sys_max_cmd_len=8192;
7013     ;;
7014
7015   amigaos*)
7016     # On AmigaOS with pdksh, this test takes hours, literally.
7017     # So we just punt and use a minimum line length of 8192.
7018     lt_cv_sys_max_cmd_len=8192;
7019     ;;
7020
7021   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7022     # This has been around since 386BSD, at least.  Likely further.
7023     if test -x /sbin/sysctl; then
7024       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7025     elif test -x /usr/sbin/sysctl; then
7026       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7027     else
7028       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7029     fi
7030     # And add a safety zone
7031     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7032     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7033     ;;
7034
7035   interix*)
7036     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7037     lt_cv_sys_max_cmd_len=196608
7038     ;;
7039
7040   os2*)
7041     # The test takes a long time on OS/2.
7042     lt_cv_sys_max_cmd_len=8192
7043     ;;
7044
7045   osf*)
7046     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7047     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7048     # nice to cause kernel panics so lets avoid the loop below.
7049     # First set a reasonable default.
7050     lt_cv_sys_max_cmd_len=16384
7051     #
7052     if test -x /sbin/sysconfig; then
7053       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7054         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7055       esac
7056     fi
7057     ;;
7058   sco3.2v5*)
7059     lt_cv_sys_max_cmd_len=102400
7060     ;;
7061   sysv5* | sco5v6* | sysv4.2uw2*)
7062     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7063     if test -n "$kargmax"; then
7064       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7065     else
7066       lt_cv_sys_max_cmd_len=32768
7067     fi
7068     ;;
7069   *)
7070     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7071     if test -n "$lt_cv_sys_max_cmd_len"; then
7072       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7073       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7074     else
7075       # Make teststring a little bigger before we do anything with it.
7076       # a 1K string should be a reasonable start.
7077       for i in 1 2 3 4 5 6 7 8 ; do
7078         teststring=$teststring$teststring
7079       done
7080       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7081       # If test is not a shell built-in, we'll probably end up computing a
7082       # maximum length that is only half of the actual maximum length, but
7083       # we can't tell.
7084       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7085                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7086               test $i != 17 # 1/2 MB should be enough
7087       do
7088         i=`expr $i + 1`
7089         teststring=$teststring$teststring
7090       done
7091       # Only check the string length outside the loop.
7092       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7093       teststring=
7094       # Add a significant safety factor because C++ compilers can tack on
7095       # massive amounts of additional arguments before passing them to the
7096       # linker.  It appears as though 1/2 is a usable value.
7097       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7098     fi
7099     ;;
7100   esac
7101
7102 fi
7103
7104 if test -n $lt_cv_sys_max_cmd_len ; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7109 $as_echo "none" >&6; }
7110 fi
7111 max_cmd_len=$lt_cv_sys_max_cmd_len
7112
7113
7114
7115
7116
7117
7118 : ${CP="cp -f"}
7119 : ${MV="mv -f"}
7120 : ${RM="rm -f"}
7121
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7123 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7124 # Try some XSI features
7125 xsi_shell=no
7126 ( _lt_dummy="a/b/c"
7127   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7128       = c,a/b,b/c, \
7129     && eval 'test $(( 1 + 1 )) -eq 2 \
7130     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7131   && xsi_shell=yes
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7133 $as_echo "$xsi_shell" >&6; }
7134
7135
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7137 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7138 lt_shell_append=no
7139 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7140     >/dev/null 2>&1 \
7141   && lt_shell_append=yes
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7143 $as_echo "$lt_shell_append" >&6; }
7144
7145
7146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7147   lt_unset=unset
7148 else
7149   lt_unset=false
7150 fi
7151
7152
7153
7154
7155
7156 # test EBCDIC or ASCII
7157 case `echo X|tr X '\101'` in
7158  A) # ASCII based system
7159     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7160   lt_SP2NL='tr \040 \012'
7161   lt_NL2SP='tr \015\012 \040\040'
7162   ;;
7163  *) # EBCDIC based system
7164   lt_SP2NL='tr \100 \n'
7165   lt_NL2SP='tr \r\n \100\100'
7166   ;;
7167 esac
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7178 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7179 if ${lt_cv_to_host_file_cmd+:} false; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   case $host in
7183   *-*-mingw* )
7184     case $build in
7185       *-*-mingw* ) # actually msys
7186         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7187         ;;
7188       *-*-cygwin* )
7189         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7190         ;;
7191       * ) # otherwise, assume *nix
7192         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7193         ;;
7194     esac
7195     ;;
7196   *-*-cygwin* )
7197     case $build in
7198       *-*-mingw* ) # actually msys
7199         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7200         ;;
7201       *-*-cygwin* )
7202         lt_cv_to_host_file_cmd=func_convert_file_noop
7203         ;;
7204       * ) # otherwise, assume *nix
7205         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7206         ;;
7207     esac
7208     ;;
7209   * ) # unhandled hosts (and "normal" native builds)
7210     lt_cv_to_host_file_cmd=func_convert_file_noop
7211     ;;
7212 esac
7213
7214 fi
7215
7216 to_host_file_cmd=$lt_cv_to_host_file_cmd
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7218 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7219
7220
7221
7222
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7225 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7226 if ${lt_cv_to_tool_file_cmd+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   #assume ordinary cross tools, or native build.
7230 lt_cv_to_tool_file_cmd=func_convert_file_noop
7231 case $host in
7232   *-*-mingw* )
7233     case $build in
7234       *-*-mingw* ) # actually msys
7235         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7236         ;;
7237     esac
7238     ;;
7239 esac
7240
7241 fi
7242
7243 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7245 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7246
7247
7248
7249
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7253 if ${lt_cv_ld_reload_flag+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   lt_cv_ld_reload_flag='-r'
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7260 reload_flag=$lt_cv_ld_reload_flag
7261 case $reload_flag in
7262 "" | " "*) ;;
7263 *) reload_flag=" $reload_flag" ;;
7264 esac
7265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7266 case $host_os in
7267   cygwin* | mingw* | pw32* | cegcc*)
7268     if test "$GCC" != yes; then
7269       reload_cmds=false
7270     fi
7271     ;;
7272   darwin*)
7273     if test "$GCC" = yes; then
7274       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7275     else
7276       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7277     fi
7278     ;;
7279 esac
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 if test -n "$ac_tool_prefix"; then
7290   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_OBJDUMP+:} false; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -n "$OBJDUMP"; then
7298   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 OBJDUMP=$ac_cv_prog_OBJDUMP
7318 if test -n "$OBJDUMP"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7320 $as_echo "$OBJDUMP" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326
7327 fi
7328 if test -z "$ac_cv_prog_OBJDUMP"; then
7329   ac_ct_OBJDUMP=$OBJDUMP
7330   # Extract the first word of "objdump", so it can be a program name with args.
7331 set dummy objdump; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$ac_ct_OBJDUMP"; then
7338   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7358 if test -n "$ac_ct_OBJDUMP"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7360 $as_echo "$ac_ct_OBJDUMP" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366   if test "x$ac_ct_OBJDUMP" = x; then
7367     OBJDUMP="false"
7368   else
7369     case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375     OBJDUMP=$ac_ct_OBJDUMP
7376   fi
7377 else
7378   OBJDUMP="$ac_cv_prog_OBJDUMP"
7379 fi
7380
7381 test -z "$OBJDUMP" && OBJDUMP=objdump
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7392 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7393 if ${lt_cv_deplibs_check_method+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   lt_cv_file_magic_cmd='$MAGIC_CMD'
7397 lt_cv_file_magic_test_file=
7398 lt_cv_deplibs_check_method='unknown'
7399 # Need to set the preceding variable on all platforms that support
7400 # interlibrary dependencies.
7401 # 'none' -- dependencies not supported.
7402 # `unknown' -- same as none, but documents that we really don't know.
7403 # 'pass_all' -- all dependencies passed with no checks.
7404 # 'test_compile' -- check by making test program.
7405 # 'file_magic [[regex]]' -- check by looking for files in library path
7406 # which responds to the $file_magic_cmd with a given extended regex.
7407 # If you have `file' or equivalent on your system and you're not sure
7408 # whether `pass_all' will *always* work, you probably want this one.
7409
7410 case $host_os in
7411 aix[4-9]*)
7412   lt_cv_deplibs_check_method=pass_all
7413   ;;
7414
7415 beos*)
7416   lt_cv_deplibs_check_method=pass_all
7417   ;;
7418
7419 bsdi[45]*)
7420   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7421   lt_cv_file_magic_cmd='/usr/bin/file -L'
7422   lt_cv_file_magic_test_file=/shlib/libc.so
7423   ;;
7424
7425 cygwin*)
7426   # func_win32_libid is a shell function defined in ltmain.sh
7427   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7428   lt_cv_file_magic_cmd='func_win32_libid'
7429   ;;
7430
7431 mingw* | pw32*)
7432   # Base MSYS/MinGW do not provide the 'file' command needed by
7433   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7434   # unless we find 'file', for example because we are cross-compiling.
7435   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7436   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7437     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7438     lt_cv_file_magic_cmd='func_win32_libid'
7439   else
7440     # Keep this pattern in sync with the one in func_win32_libid.
7441     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7442     lt_cv_file_magic_cmd='$OBJDUMP -f'
7443   fi
7444   ;;
7445
7446 cegcc*)
7447   # use the weaker test based on 'objdump'. See mingw*.
7448   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7449   lt_cv_file_magic_cmd='$OBJDUMP -f'
7450   ;;
7451
7452 darwin* | rhapsody*)
7453   lt_cv_deplibs_check_method=pass_all
7454   ;;
7455
7456 freebsd* | dragonfly*)
7457   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7458     case $host_cpu in
7459     i*86 )
7460       # Not sure whether the presence of OpenBSD here was a mistake.
7461       # Let's accept both of them until this is cleared up.
7462       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7463       lt_cv_file_magic_cmd=/usr/bin/file
7464       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7465       ;;
7466     esac
7467   else
7468     lt_cv_deplibs_check_method=pass_all
7469   fi
7470   ;;
7471
7472 gnu*)
7473   lt_cv_deplibs_check_method=pass_all
7474   ;;
7475
7476 haiku*)
7477   lt_cv_deplibs_check_method=pass_all
7478   ;;
7479
7480 hpux10.20* | hpux11*)
7481   lt_cv_file_magic_cmd=/usr/bin/file
7482   case $host_cpu in
7483   ia64*)
7484     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7485     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7486     ;;
7487   hppa*64*)
7488     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]'
7489     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7490     ;;
7491   *)
7492     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7493     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7494     ;;
7495   esac
7496   ;;
7497
7498 interix[3-9]*)
7499   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7500   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7501   ;;
7502
7503 irix5* | irix6* | nonstopux*)
7504   case $LD in
7505   *-32|*"-32 ") libmagic=32-bit;;
7506   *-n32|*"-n32 ") libmagic=N32;;
7507   *-64|*"-64 ") libmagic=64-bit;;
7508   *) libmagic=never-match;;
7509   esac
7510   lt_cv_deplibs_check_method=pass_all
7511   ;;
7512
7513 # This must be glibc/ELF.
7514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7515   lt_cv_deplibs_check_method=pass_all
7516   ;;
7517
7518 netbsd*)
7519   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7520     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7521   else
7522     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7523   fi
7524   ;;
7525
7526 newos6*)
7527   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7528   lt_cv_file_magic_cmd=/usr/bin/file
7529   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7530   ;;
7531
7532 *nto* | *qnx*)
7533   lt_cv_deplibs_check_method=pass_all
7534   ;;
7535
7536 openbsd*)
7537   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7538     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7539   else
7540     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7541   fi
7542   ;;
7543
7544 osf3* | osf4* | osf5*)
7545   lt_cv_deplibs_check_method=pass_all
7546   ;;
7547
7548 rdos*)
7549   lt_cv_deplibs_check_method=pass_all
7550   ;;
7551
7552 solaris*)
7553   lt_cv_deplibs_check_method=pass_all
7554   ;;
7555
7556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7557   lt_cv_deplibs_check_method=pass_all
7558   ;;
7559
7560 sysv4 | sysv4.3*)
7561   case $host_vendor in
7562   motorola)
7563     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]'
7564     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7565     ;;
7566   ncr)
7567     lt_cv_deplibs_check_method=pass_all
7568     ;;
7569   sequent)
7570     lt_cv_file_magic_cmd='/bin/file'
7571     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7572     ;;
7573   sni)
7574     lt_cv_file_magic_cmd='/bin/file'
7575     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7576     lt_cv_file_magic_test_file=/lib/libc.so
7577     ;;
7578   siemens)
7579     lt_cv_deplibs_check_method=pass_all
7580     ;;
7581   pc)
7582     lt_cv_deplibs_check_method=pass_all
7583     ;;
7584   esac
7585   ;;
7586
7587 tpf*)
7588   lt_cv_deplibs_check_method=pass_all
7589   ;;
7590 esac
7591
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7595
7596 file_magic_glob=
7597 want_nocaseglob=no
7598 if test "$build" = "$host"; then
7599   case $host_os in
7600   mingw* | pw32*)
7601     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7602       want_nocaseglob=yes
7603     else
7604       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7605     fi
7606     ;;
7607   esac
7608 fi
7609
7610 file_magic_cmd=$lt_cv_file_magic_cmd
7611 deplibs_check_method=$lt_cv_deplibs_check_method
7612 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 if test -n "$ac_tool_prefix"; then
7636   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_DLLTOOL+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   if test -n "$DLLTOOL"; then
7644   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651     for ac_exec_ext in '' $ac_executable_extensions; do
7652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658   done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 DLLTOOL=$ac_cv_prog_DLLTOOL
7664 if test -n "$DLLTOOL"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7666 $as_echo "$DLLTOOL" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672
7673 fi
7674 if test -z "$ac_cv_prog_DLLTOOL"; then
7675   ac_ct_DLLTOOL=$DLLTOOL
7676   # Extract the first word of "dlltool", so it can be a program name with args.
7677 set dummy dlltool; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7681   $as_echo_n "(cached) " >&6
7682 else
7683   if test -n "$ac_ct_DLLTOOL"; then
7684   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7685 else
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691     for ac_exec_ext in '' $ac_executable_extensions; do
7692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698   done
7699 IFS=$as_save_IFS
7700
7701 fi
7702 fi
7703 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7704 if test -n "$ac_ct_DLLTOOL"; then
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7706 $as_echo "$ac_ct_DLLTOOL" >&6; }
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711
7712   if test "x$ac_ct_DLLTOOL" = x; then
7713     DLLTOOL="false"
7714   else
7715     case $cross_compiling:$ac_tool_warned in
7716 yes:)
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7720 esac
7721     DLLTOOL=$ac_ct_DLLTOOL
7722   fi
7723 else
7724   DLLTOOL="$ac_cv_prog_DLLTOOL"
7725 fi
7726
7727 test -z "$DLLTOOL" && DLLTOOL=dlltool
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7739 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7740 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   lt_cv_sharedlib_from_linklib_cmd='unknown'
7744
7745 case $host_os in
7746 cygwin* | mingw* | pw32* | cegcc*)
7747   # two different shell functions defined in ltmain.sh
7748   # decide which to use based on capabilities of $DLLTOOL
7749   case `$DLLTOOL --help 2>&1` in
7750   *--identify-strict*)
7751     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7752     ;;
7753   *)
7754     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7755     ;;
7756   esac
7757   ;;
7758 *)
7759   # fallback: assume linklib IS sharedlib
7760   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7761   ;;
7762 esac
7763
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7766 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7767 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7768 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7769
7770
7771
7772
7773
7774
7775
7776 if test -n "$ac_tool_prefix"; then
7777   for ac_prog in ar
7778   do
7779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_AR+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   if test -n "$AR"; then
7787   ac_cv_prog_AR="$AR" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 AR=$ac_cv_prog_AR
7807 if test -n "$AR"; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7809 $as_echo "$AR" >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816     test -n "$AR" && break
7817   done
7818 fi
7819 if test -z "$AR"; then
7820   ac_ct_AR=$AR
7821   for ac_prog in ar
7822 do
7823   # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   if test -n "$ac_ct_AR"; then
7831   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838     for ac_exec_ext in '' $ac_executable_extensions; do
7839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840     ac_cv_prog_ac_ct_AR="$ac_prog"
7841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845   done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7851 if test -n "$ac_ct_AR"; then
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7853 $as_echo "$ac_ct_AR" >&6; }
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860   test -n "$ac_ct_AR" && break
7861 done
7862
7863   if test "x$ac_ct_AR" = x; then
7864     AR="false"
7865   else
7866     case $cross_compiling:$ac_tool_warned in
7867 yes:)
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned=yes ;;
7871 esac
7872     AR=$ac_ct_AR
7873   fi
7874 fi
7875
7876 : ${AR=ar}
7877 : ${AR_FLAGS=cru}
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7890 $as_echo_n "checking for archiver @FILE support... " >&6; }
7891 if ${lt_cv_ar_at_file+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   lt_cv_ar_at_file=no
7895    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h.  */
7897
7898 int
7899 main ()
7900 {
7901
7902   ;
7903   return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907   echo conftest.$ac_objext > conftest.lst
7908       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7909       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7910   (eval $lt_ar_try) 2>&5
7911   ac_status=$?
7912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913   test $ac_status = 0; }
7914       if test "$ac_status" -eq 0; then
7915         # Ensure the archiver fails upon bogus file names.
7916         rm -f conftest.$ac_objext libconftest.a
7917         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7918   (eval $lt_ar_try) 2>&5
7919   ac_status=$?
7920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921   test $ac_status = 0; }
7922         if test "$ac_status" -ne 0; then
7923           lt_cv_ar_at_file=@
7924         fi
7925       fi
7926       rm -f conftest.* libconftest.a
7927
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7933 $as_echo "$lt_cv_ar_at_file" >&6; }
7934
7935 if test "x$lt_cv_ar_at_file" = xno; then
7936   archiver_list_spec=
7937 else
7938   archiver_list_spec=$lt_cv_ar_at_file
7939 fi
7940
7941
7942
7943
7944
7945
7946
7947 if test -n "$ac_tool_prefix"; then
7948   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}strip; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_STRIP+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   if test -n "$STRIP"; then
7956   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963     for ac_exec_ext in '' $ac_executable_extensions; do
7964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970   done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 STRIP=$ac_cv_prog_STRIP
7976 if test -n "$STRIP"; then
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7978 $as_echo "$STRIP" >&6; }
7979 else
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986 if test -z "$ac_cv_prog_STRIP"; then
7987   ac_ct_STRIP=$STRIP
7988   # Extract the first word of "strip", so it can be a program name with args.
7989 set dummy strip; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$ac_ct_STRIP"; then
7996   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005     ac_cv_prog_ac_ct_STRIP="strip"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8016 if test -n "$ac_ct_STRIP"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8018 $as_echo "$ac_ct_STRIP" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024   if test "x$ac_ct_STRIP" = x; then
8025     STRIP=":"
8026   else
8027     case $cross_compiling:$ac_tool_warned in
8028 yes:)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8032 esac
8033     STRIP=$ac_ct_STRIP
8034   fi
8035 else
8036   STRIP="$ac_cv_prog_STRIP"
8037 fi
8038
8039 test -z "$STRIP" && STRIP=:
8040
8041
8042
8043
8044
8045
8046 if test -n "$ac_tool_prefix"; then
8047   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_RANLIB+:} false; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   if test -n "$RANLIB"; then
8055   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060   IFS=$as_save_IFS
8061   test -z "$as_dir" && as_dir=.
8062     for ac_exec_ext in '' $ac_executable_extensions; do
8063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066     break 2
8067   fi
8068 done
8069   done
8070 IFS=$as_save_IFS
8071
8072 fi
8073 fi
8074 RANLIB=$ac_cv_prog_RANLIB
8075 if test -n "$RANLIB"; then
8076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8077 $as_echo "$RANLIB" >&6; }
8078 else
8079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083
8084 fi
8085 if test -z "$ac_cv_prog_RANLIB"; then
8086   ac_ct_RANLIB=$RANLIB
8087   # Extract the first word of "ranlib", so it can be a program name with args.
8088 set dummy ranlib; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$ac_ct_RANLIB"; then
8095   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104     ac_cv_prog_ac_ct_RANLIB="ranlib"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8115 if test -n "$ac_ct_RANLIB"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8117 $as_echo "$ac_ct_RANLIB" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123   if test "x$ac_ct_RANLIB" = x; then
8124     RANLIB=":"
8125   else
8126     case $cross_compiling:$ac_tool_warned in
8127 yes:)
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130 ac_tool_warned=yes ;;
8131 esac
8132     RANLIB=$ac_ct_RANLIB
8133   fi
8134 else
8135   RANLIB="$ac_cv_prog_RANLIB"
8136 fi
8137
8138 test -z "$RANLIB" && RANLIB=:
8139
8140
8141
8142
8143
8144
8145 # Determine commands to create old-style static archives.
8146 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8147 old_postinstall_cmds='chmod 644 $oldlib'
8148 old_postuninstall_cmds=
8149
8150 if test -n "$RANLIB"; then
8151   case $host_os in
8152   openbsd*)
8153     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8154     ;;
8155   *)
8156     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8157     ;;
8158   esac
8159   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8160 fi
8161
8162 case $host_os in
8163   darwin*)
8164     lock_old_archive_extraction=yes ;;
8165   *)
8166     lock_old_archive_extraction=no ;;
8167 esac
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189 for ac_prog in gawk mawk nawk awk
8190 do
8191   # Extract the first word of "$ac_prog", so it can be a program name with args.
8192 set dummy $ac_prog; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_AWK+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   if test -n "$AWK"; then
8199   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206     for ac_exec_ext in '' $ac_executable_extensions; do
8207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208     ac_cv_prog_AWK="$ac_prog"
8209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213   done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 AWK=$ac_cv_prog_AWK
8219 if test -n "$AWK"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8221 $as_echo "$AWK" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228   test -n "$AWK" && break
8229 done
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 # If no C compiler was specified, use CC.
8250 LTCC=${LTCC-"$CC"}
8251
8252 # If no C compiler flags were specified, use CFLAGS.
8253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8254
8255 # Allow CC to be a program name with arguments.
8256 compiler=$CC
8257
8258
8259 # Check for command to grab the raw symbol name followed by C symbol from nm.
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8262 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265
8266 # These are sane defaults that work on at least a few old systems.
8267 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8268
8269 # Character class describing NM global symbol codes.
8270 symcode='[BCDEGRST]'
8271
8272 # Regexp to match symbols that can be accessed directly from C.
8273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8274
8275 # Define system-specific variables.
8276 case $host_os in
8277 aix*)
8278   symcode='[BCDT]'
8279   ;;
8280 cygwin* | mingw* | pw32* | cegcc*)
8281   symcode='[ABCDGISTW]'
8282   ;;
8283 hpux*)
8284   if test "$host_cpu" = ia64; then
8285     symcode='[ABCDEGRST]'
8286   fi
8287   ;;
8288 irix* | nonstopux*)
8289   symcode='[BCDEGRST]'
8290   ;;
8291 osf*)
8292   symcode='[BCDEGQRST]'
8293   ;;
8294 solaris*)
8295   symcode='[BDRT]'
8296   ;;
8297 sco3.2v5*)
8298   symcode='[DT]'
8299   ;;
8300 sysv4.2uw2*)
8301   symcode='[DT]'
8302   ;;
8303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8304   symcode='[ABDT]'
8305   ;;
8306 sysv4)
8307   symcode='[DFNSTU]'
8308   ;;
8309 esac
8310
8311 # If we're using GNU nm, then use its standard symbol codes.
8312 case `$NM -V 2>&1` in
8313 *GNU* | *'with BFD'*)
8314   symcode='[ABCDGIRSTW]' ;;
8315 esac
8316
8317 # Transform an extracted symbol line into a proper C declaration.
8318 # Some systems (esp. on ia64) link data and code symbols differently,
8319 # so use this general approach.
8320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8321
8322 # Transform an extracted symbol line into symbol name and symbol address
8323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8324 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8325
8326 # Handle CRLF in mingw tool chain
8327 opt_cr=
8328 case $build_os in
8329 mingw*)
8330   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8331   ;;
8332 esac
8333
8334 # Try without a prefix underscore, then with it.
8335 for ac_symprfx in "" "_"; do
8336
8337   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8338   symxfrm="\\1 $ac_symprfx\\2 \\2"
8339
8340   # Write the raw and C identifiers.
8341   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8342     # Fake it for dumpbin and say T for any non-static function
8343     # and D for any global variable.
8344     # Also find C++ and __fastcall symbols from MSVC++,
8345     # which start with @ or ?.
8346     lt_cv_sys_global_symbol_pipe="$AWK '"\
8347 "     {last_section=section; section=\$ 3};"\
8348 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8349 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8350 "     \$ 0!~/External *\|/{next};"\
8351 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8352 "     {if(hide[section]) next};"\
8353 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8354 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8355 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8356 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8357 "     ' prfx=^$ac_symprfx"
8358   else
8359     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8360   fi
8361   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8362
8363   # Check to see that the pipe works correctly.
8364   pipe_works=no
8365
8366   rm -f conftest*
8367   cat > conftest.$ac_ext <<_LT_EOF
8368 #ifdef __cplusplus
8369 extern "C" {
8370 #endif
8371 char nm_test_var;
8372 void nm_test_func(void);
8373 void nm_test_func(void){}
8374 #ifdef __cplusplus
8375 }
8376 #endif
8377 int main(){nm_test_var='a';nm_test_func();return(0);}
8378 _LT_EOF
8379
8380   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8381   (eval $ac_compile) 2>&5
8382   ac_status=$?
8383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384   test $ac_status = 0; }; then
8385     # Now try to grab the symbols.
8386     nlist=conftest.nm
8387     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8388   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8389   ac_status=$?
8390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391   test $ac_status = 0; } && test -s "$nlist"; then
8392       # Try sorting and uniquifying the output.
8393       if sort "$nlist" | uniq > "$nlist"T; then
8394         mv -f "$nlist"T "$nlist"
8395       else
8396         rm -f "$nlist"T
8397       fi
8398
8399       # Make sure that we snagged all the symbols we need.
8400       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8401         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8402           cat <<_LT_EOF > conftest.$ac_ext
8403 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8404 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8405 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8406    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8407 # define LT_DLSYM_CONST
8408 #elif defined(__osf__)
8409 /* This system does not cope well with relocations in const data.  */
8410 # define LT_DLSYM_CONST
8411 #else
8412 # define LT_DLSYM_CONST const
8413 #endif
8414
8415 #ifdef __cplusplus
8416 extern "C" {
8417 #endif
8418
8419 _LT_EOF
8420           # Now generate the symbol file.
8421           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8422
8423           cat <<_LT_EOF >> conftest.$ac_ext
8424
8425 /* The mapping between symbol names and symbols.  */
8426 LT_DLSYM_CONST struct {
8427   const char *name;
8428   void       *address;
8429 }
8430 lt__PROGRAM__LTX_preloaded_symbols[] =
8431 {
8432   { "@PROGRAM@", (void *) 0 },
8433 _LT_EOF
8434           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8435           cat <<\_LT_EOF >> conftest.$ac_ext
8436   {0, (void *) 0}
8437 };
8438
8439 /* This works around a problem in FreeBSD linker */
8440 #ifdef FREEBSD_WORKAROUND
8441 static const void *lt_preloaded_setup() {
8442   return lt__PROGRAM__LTX_preloaded_symbols;
8443 }
8444 #endif
8445
8446 #ifdef __cplusplus
8447 }
8448 #endif
8449 _LT_EOF
8450           # Now try linking the two files.
8451           mv conftest.$ac_objext conftstm.$ac_objext
8452           lt_globsym_save_LIBS=$LIBS
8453           lt_globsym_save_CFLAGS=$CFLAGS
8454           LIBS="conftstm.$ac_objext"
8455           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8456           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8457   (eval $ac_link) 2>&5
8458   ac_status=$?
8459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8461             pipe_works=yes
8462           fi
8463           LIBS=$lt_globsym_save_LIBS
8464           CFLAGS=$lt_globsym_save_CFLAGS
8465         else
8466           echo "cannot find nm_test_func in $nlist" >&5
8467         fi
8468       else
8469         echo "cannot find nm_test_var in $nlist" >&5
8470       fi
8471     else
8472       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8473     fi
8474   else
8475     echo "$progname: failed program was:" >&5
8476     cat conftest.$ac_ext >&5
8477   fi
8478   rm -rf conftest* conftst*
8479
8480   # Do not use the global_symbol_pipe unless it works.
8481   if test "$pipe_works" = yes; then
8482     break
8483   else
8484     lt_cv_sys_global_symbol_pipe=
8485   fi
8486 done
8487
8488 fi
8489
8490 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8491   lt_cv_sys_global_symbol_to_cdecl=
8492 fi
8493 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8495 $as_echo "failed" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8498 $as_echo "ok" >&6; }
8499 fi
8500
8501 # Response file support.
8502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8503   nm_file_list_spec='@'
8504 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8505   nm_file_list_spec='@'
8506 fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8535 $as_echo_n "checking for sysroot... " >&6; }
8536
8537 # Check whether --with-sysroot was given.
8538 if test "${with_sysroot+set}" = set; then :
8539   withval=$with_sysroot;
8540 else
8541   with_sysroot=no
8542 fi
8543
8544
8545 lt_sysroot=
8546 case ${with_sysroot} in #(
8547  yes)
8548    if test "$GCC" = yes; then
8549      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8550    fi
8551    ;; #(
8552  /*)
8553    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8554    ;; #(
8555  no|'')
8556    ;; #(
8557  *)
8558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8559 $as_echo "${with_sysroot}" >&6; }
8560    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8561    ;;
8562 esac
8563
8564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8565 $as_echo "${lt_sysroot:-no}" >&6; }
8566
8567
8568
8569
8570
8571 # Check whether --enable-libtool-lock was given.
8572 if test "${enable_libtool_lock+set}" = set; then :
8573   enableval=$enable_libtool_lock;
8574 fi
8575
8576 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8577
8578 # Some flags need to be propagated to the compiler or linker for good
8579 # libtool support.
8580 case $host in
8581 ia64-*-hpux*)
8582   # Find out which ABI we are using.
8583   echo 'int i;' > conftest.$ac_ext
8584   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8585   (eval $ac_compile) 2>&5
8586   ac_status=$?
8587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588   test $ac_status = 0; }; then
8589     case `/usr/bin/file conftest.$ac_objext` in
8590       *ELF-32*)
8591         HPUX_IA64_MODE="32"
8592         ;;
8593       *ELF-64*)
8594         HPUX_IA64_MODE="64"
8595         ;;
8596     esac
8597   fi
8598   rm -rf conftest*
8599   ;;
8600 *-*-irix6*)
8601   # Find out which ABI we are using.
8602   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8603   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8604   (eval $ac_compile) 2>&5
8605   ac_status=$?
8606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8607   test $ac_status = 0; }; then
8608     if test "$lt_cv_prog_gnu_ld" = yes; then
8609       case `/usr/bin/file conftest.$ac_objext` in
8610         *32-bit*)
8611           LD="${LD-ld} -melf32bsmip"
8612           ;;
8613         *N32*)
8614           LD="${LD-ld} -melf32bmipn32"
8615           ;;
8616         *64-bit*)
8617           LD="${LD-ld} -melf64bmip"
8618         ;;
8619       esac
8620     else
8621       case `/usr/bin/file conftest.$ac_objext` in
8622         *32-bit*)
8623           LD="${LD-ld} -32"
8624           ;;
8625         *N32*)
8626           LD="${LD-ld} -n32"
8627           ;;
8628         *64-bit*)
8629           LD="${LD-ld} -64"
8630           ;;
8631       esac
8632     fi
8633   fi
8634   rm -rf conftest*
8635   ;;
8636
8637 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8638 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8639   # Find out which ABI we are using.
8640   echo 'int i;' > conftest.$ac_ext
8641   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8642   (eval $ac_compile) 2>&5
8643   ac_status=$?
8644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8645   test $ac_status = 0; }; then
8646     case `/usr/bin/file conftest.o` in
8647       *32-bit*)
8648         case $host in
8649           x86_64-*kfreebsd*-gnu)
8650             LD="${LD-ld} -m elf_i386_fbsd"
8651             ;;
8652           x86_64-*linux*)
8653             LD="${LD-ld} -m elf_i386"
8654             ;;
8655           ppc64-*linux*|powerpc64-*linux*)
8656             LD="${LD-ld} -m elf32ppclinux"
8657             ;;
8658           s390x-*linux*)
8659             LD="${LD-ld} -m elf_s390"
8660             ;;
8661           sparc64-*linux*)
8662             LD="${LD-ld} -m elf32_sparc"
8663             ;;
8664         esac
8665         ;;
8666       *64-bit*)
8667         case $host in
8668           x86_64-*kfreebsd*-gnu)
8669             LD="${LD-ld} -m elf_x86_64_fbsd"
8670             ;;
8671           x86_64-*linux*)
8672             LD="${LD-ld} -m elf_x86_64"
8673             ;;
8674           ppc*-*linux*|powerpc*-*linux*)
8675             LD="${LD-ld} -m elf64ppc"
8676             ;;
8677           s390*-*linux*|s390*-*tpf*)
8678             LD="${LD-ld} -m elf64_s390"
8679             ;;
8680           sparc*-*linux*)
8681             LD="${LD-ld} -m elf64_sparc"
8682             ;;
8683         esac
8684         ;;
8685     esac
8686   fi
8687   rm -rf conftest*
8688   ;;
8689
8690 *-*-sco3.2v5*)
8691   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8692   SAVE_CFLAGS="$CFLAGS"
8693   CFLAGS="$CFLAGS -belf"
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8695 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8696 if ${lt_cv_cc_needs_belf+:} false; then :
8697   $as_echo_n "(cached) " >&6
8698 else
8699   ac_ext=c
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704
8705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h.  */
8707
8708 int
8709 main ()
8710 {
8711
8712   ;
8713   return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_c_try_link "$LINENO"; then :
8717   lt_cv_cc_needs_belf=yes
8718 else
8719   lt_cv_cc_needs_belf=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext \
8722     conftest$ac_exeext conftest.$ac_ext
8723      ac_ext=c
8724 ac_cpp='$CPP $CPPFLAGS'
8725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8728
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8731 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8732   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8733     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8734     CFLAGS="$SAVE_CFLAGS"
8735   fi
8736   ;;
8737 *-*solaris*)
8738   # Find out which ABI we are using.
8739   echo 'int i;' > conftest.$ac_ext
8740   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8741   (eval $ac_compile) 2>&5
8742   ac_status=$?
8743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744   test $ac_status = 0; }; then
8745     case `/usr/bin/file conftest.o` in
8746     *64-bit*)
8747       case $lt_cv_prog_gnu_ld in
8748       yes*)
8749         case $host in
8750         i?86-*-solaris*)
8751           LD="${LD-ld} -m elf_x86_64"
8752           ;;
8753         sparc*-*-solaris*)
8754           LD="${LD-ld} -m elf64_sparc"
8755           ;;
8756         esac
8757         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8758         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8759           LD="${LD-ld}_sol2"
8760         fi
8761         ;;
8762       *)
8763         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8764           LD="${LD-ld} -64"
8765         fi
8766         ;;
8767       esac
8768       ;;
8769     esac
8770   fi
8771   rm -rf conftest*
8772   ;;
8773 esac
8774
8775 need_locks="$enable_libtool_lock"
8776
8777 if test -n "$ac_tool_prefix"; then
8778   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}mt; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   if test -n "$MANIFEST_TOOL"; then
8786   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8790 do
8791   IFS=$as_save_IFS
8792   test -z "$as_dir" && as_dir=.
8793     for ac_exec_ext in '' $ac_executable_extensions; do
8794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797     break 2
8798   fi
8799 done
8800   done
8801 IFS=$as_save_IFS
8802
8803 fi
8804 fi
8805 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8806 if test -n "$MANIFEST_TOOL"; then
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8808 $as_echo "$MANIFEST_TOOL" >&6; }
8809 else
8810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8812 fi
8813
8814
8815 fi
8816 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8817   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8818   # Extract the first word of "mt", so it can be a program name with args.
8819 set dummy mt; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8823   $as_echo_n "(cached) " >&6
8824 else
8825   if test -n "$ac_ct_MANIFEST_TOOL"; then
8826   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831   IFS=$as_save_IFS
8832   test -z "$as_dir" && as_dir=.
8833     for ac_exec_ext in '' $ac_executable_extensions; do
8834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837     break 2
8838   fi
8839 done
8840   done
8841 IFS=$as_save_IFS
8842
8843 fi
8844 fi
8845 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8846 if test -n "$ac_ct_MANIFEST_TOOL"; then
8847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8848 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8849 else
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8852 fi
8853
8854   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8855     MANIFEST_TOOL=":"
8856   else
8857     case $cross_compiling:$ac_tool_warned in
8858 yes:)
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8862 esac
8863     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8864   fi
8865 else
8866   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8867 fi
8868
8869 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8871 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8872 if ${lt_cv_path_mainfest_tool+:} false; then :
8873   $as_echo_n "(cached) " >&6
8874 else
8875   lt_cv_path_mainfest_tool=no
8876   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8877   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8878   cat conftest.err >&5
8879   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8880     lt_cv_path_mainfest_tool=yes
8881   fi
8882   rm -f conftest*
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8885 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8886 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8887   MANIFEST_TOOL=:
8888 fi
8889
8890
8891
8892
8893
8894
8895   case $host_os in
8896     rhapsody* | darwin*)
8897     if test -n "$ac_tool_prefix"; then
8898   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8899 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8903   $as_echo_n "(cached) " >&6
8904 else
8905   if test -n "$DSYMUTIL"; then
8906   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911   IFS=$as_save_IFS
8912   test -z "$as_dir" && as_dir=.
8913     for ac_exec_ext in '' $ac_executable_extensions; do
8914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917     break 2
8918   fi
8919 done
8920   done
8921 IFS=$as_save_IFS
8922
8923 fi
8924 fi
8925 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8926 if test -n "$DSYMUTIL"; then
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8928 $as_echo "$DSYMUTIL" >&6; }
8929 else
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933
8934
8935 fi
8936 if test -z "$ac_cv_prog_DSYMUTIL"; then
8937   ac_ct_DSYMUTIL=$DSYMUTIL
8938   # Extract the first word of "dsymutil", so it can be a program name with args.
8939 set dummy dsymutil; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8943   $as_echo_n "(cached) " >&6
8944 else
8945   if test -n "$ac_ct_DSYMUTIL"; then
8946   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951   IFS=$as_save_IFS
8952   test -z "$as_dir" && as_dir=.
8953     for ac_exec_ext in '' $ac_executable_extensions; do
8954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957     break 2
8958   fi
8959 done
8960   done
8961 IFS=$as_save_IFS
8962
8963 fi
8964 fi
8965 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8966 if test -n "$ac_ct_DSYMUTIL"; then
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8968 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8969 else
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8972 fi
8973
8974   if test "x$ac_ct_DSYMUTIL" = x; then
8975     DSYMUTIL=":"
8976   else
8977     case $cross_compiling:$ac_tool_warned in
8978 yes:)
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8981 ac_tool_warned=yes ;;
8982 esac
8983     DSYMUTIL=$ac_ct_DSYMUTIL
8984   fi
8985 else
8986   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8987 fi
8988
8989     if test -n "$ac_tool_prefix"; then
8990   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8991 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_prog_NMEDIT+:} false; then :
8995   $as_echo_n "(cached) " >&6
8996 else
8997   if test -n "$NMEDIT"; then
8998   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005     for ac_exec_ext in '' $ac_executable_extensions; do
9006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012   done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 NMEDIT=$ac_cv_prog_NMEDIT
9018 if test -n "$NMEDIT"; then
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9020 $as_echo "$NMEDIT" >&6; }
9021 else
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9024 fi
9025
9026
9027 fi
9028 if test -z "$ac_cv_prog_NMEDIT"; then
9029   ac_ct_NMEDIT=$NMEDIT
9030   # Extract the first word of "nmedit", so it can be a program name with args.
9031 set dummy nmedit; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   if test -n "$ac_ct_NMEDIT"; then
9038   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9039 else
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9042 do
9043   IFS=$as_save_IFS
9044   test -z "$as_dir" && as_dir=.
9045     for ac_exec_ext in '' $ac_executable_extensions; do
9046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049     break 2
9050   fi
9051 done
9052   done
9053 IFS=$as_save_IFS
9054
9055 fi
9056 fi
9057 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9058 if test -n "$ac_ct_NMEDIT"; then
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9060 $as_echo "$ac_ct_NMEDIT" >&6; }
9061 else
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9064 fi
9065
9066   if test "x$ac_ct_NMEDIT" = x; then
9067     NMEDIT=":"
9068   else
9069     case $cross_compiling:$ac_tool_warned in
9070 yes:)
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073 ac_tool_warned=yes ;;
9074 esac
9075     NMEDIT=$ac_ct_NMEDIT
9076   fi
9077 else
9078   NMEDIT="$ac_cv_prog_NMEDIT"
9079 fi
9080
9081     if test -n "$ac_tool_prefix"; then
9082   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_LIPO+:} false; then :
9087   $as_echo_n "(cached) " >&6
9088 else
9089   if test -n "$LIPO"; then
9090   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095   IFS=$as_save_IFS
9096   test -z "$as_dir" && as_dir=.
9097     for ac_exec_ext in '' $ac_executable_extensions; do
9098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101     break 2
9102   fi
9103 done
9104   done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 LIPO=$ac_cv_prog_LIPO
9110 if test -n "$LIPO"; then
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9112 $as_echo "$LIPO" >&6; }
9113 else
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9116 fi
9117
9118
9119 fi
9120 if test -z "$ac_cv_prog_LIPO"; then
9121   ac_ct_LIPO=$LIPO
9122   # Extract the first word of "lipo", so it can be a program name with args.
9123 set dummy lipo; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9127   $as_echo_n "(cached) " >&6
9128 else
9129   if test -n "$ac_ct_LIPO"; then
9130   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135   IFS=$as_save_IFS
9136   test -z "$as_dir" && as_dir=.
9137     for ac_exec_ext in '' $ac_executable_extensions; do
9138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139     ac_cv_prog_ac_ct_LIPO="lipo"
9140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141     break 2
9142   fi
9143 done
9144   done
9145 IFS=$as_save_IFS
9146
9147 fi
9148 fi
9149 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9150 if test -n "$ac_ct_LIPO"; then
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9152 $as_echo "$ac_ct_LIPO" >&6; }
9153 else
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9156 fi
9157
9158   if test "x$ac_ct_LIPO" = x; then
9159     LIPO=":"
9160   else
9161     case $cross_compiling:$ac_tool_warned in
9162 yes:)
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9165 ac_tool_warned=yes ;;
9166 esac
9167     LIPO=$ac_ct_LIPO
9168   fi
9169 else
9170   LIPO="$ac_cv_prog_LIPO"
9171 fi
9172
9173     if test -n "$ac_tool_prefix"; then
9174   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9175 set dummy ${ac_tool_prefix}otool; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if ${ac_cv_prog_OTOOL+:} false; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   if test -n "$OTOOL"; then
9182   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189     for ac_exec_ext in '' $ac_executable_extensions; do
9190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196   done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 OTOOL=$ac_cv_prog_OTOOL
9202 if test -n "$OTOOL"; then
9203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9204 $as_echo "$OTOOL" >&6; }
9205 else
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9208 fi
9209
9210
9211 fi
9212 if test -z "$ac_cv_prog_OTOOL"; then
9213   ac_ct_OTOOL=$OTOOL
9214   # Extract the first word of "otool", so it can be a program name with args.
9215 set dummy otool; ac_word=$2
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 $as_echo_n "checking for $ac_word... " >&6; }
9218 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9219   $as_echo_n "(cached) " >&6
9220 else
9221   if test -n "$ac_ct_OTOOL"; then
9222   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9223 else
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 for as_dir in $PATH
9226 do
9227   IFS=$as_save_IFS
9228   test -z "$as_dir" && as_dir=.
9229     for ac_exec_ext in '' $ac_executable_extensions; do
9230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231     ac_cv_prog_ac_ct_OTOOL="otool"
9232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233     break 2
9234   fi
9235 done
9236   done
9237 IFS=$as_save_IFS
9238
9239 fi
9240 fi
9241 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9242 if test -n "$ac_ct_OTOOL"; then
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9244 $as_echo "$ac_ct_OTOOL" >&6; }
9245 else
9246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9248 fi
9249
9250   if test "x$ac_ct_OTOOL" = x; then
9251     OTOOL=":"
9252   else
9253     case $cross_compiling:$ac_tool_warned in
9254 yes:)
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257 ac_tool_warned=yes ;;
9258 esac
9259     OTOOL=$ac_ct_OTOOL
9260   fi
9261 else
9262   OTOOL="$ac_cv_prog_OTOOL"
9263 fi
9264
9265     if test -n "$ac_tool_prefix"; then
9266   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9267 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_OTOOL64+:} false; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   if test -n "$OTOOL64"; then
9274   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290
9291 fi
9292 fi
9293 OTOOL64=$ac_cv_prog_OTOOL64
9294 if test -n "$OTOOL64"; then
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9296 $as_echo "$OTOOL64" >&6; }
9297 else
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302
9303 fi
9304 if test -z "$ac_cv_prog_OTOOL64"; then
9305   ac_ct_OTOOL64=$OTOOL64
9306   # Extract the first word of "otool64", so it can be a program name with args.
9307 set dummy otool64; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9311   $as_echo_n "(cached) " >&6
9312 else
9313   if test -n "$ac_ct_OTOOL64"; then
9314   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9315 else
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319   IFS=$as_save_IFS
9320   test -z "$as_dir" && as_dir=.
9321     for ac_exec_ext in '' $ac_executable_extensions; do
9322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323     ac_cv_prog_ac_ct_OTOOL64="otool64"
9324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325     break 2
9326   fi
9327 done
9328   done
9329 IFS=$as_save_IFS
9330
9331 fi
9332 fi
9333 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9334 if test -n "$ac_ct_OTOOL64"; then
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9336 $as_echo "$ac_ct_OTOOL64" >&6; }
9337 else
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341
9342   if test "x$ac_ct_OTOOL64" = x; then
9343     OTOOL64=":"
9344   else
9345     case $cross_compiling:$ac_tool_warned in
9346 yes:)
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9349 ac_tool_warned=yes ;;
9350 esac
9351     OTOOL64=$ac_ct_OTOOL64
9352   fi
9353 else
9354   OTOOL64="$ac_cv_prog_OTOOL64"
9355 fi
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9384 $as_echo_n "checking for -single_module linker flag... " >&6; }
9385 if ${lt_cv_apple_cc_single_mod+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   lt_cv_apple_cc_single_mod=no
9389       if test -z "${LT_MULTI_MODULE}"; then
9390         # By default we will add the -single_module flag. You can override
9391         # by either setting the environment variable LT_MULTI_MODULE
9392         # non-empty at configure time, or by adding -multi_module to the
9393         # link flags.
9394         rm -rf libconftest.dylib*
9395         echo "int foo(void){return 1;}" > conftest.c
9396         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9397 -dynamiclib -Wl,-single_module conftest.c" >&5
9398         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9399           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9400         _lt_result=$?
9401         # If there is a non-empty error log, and "single_module"
9402         # appears in it, assume the flag caused a linker warning
9403         if test -s conftest.err && $GREP single_module conftest.err; then
9404           cat conftest.err >&5
9405         # Otherwise, if the output was created with a 0 exit code from
9406         # the compiler, it worked.
9407         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9408           lt_cv_apple_cc_single_mod=yes
9409         else
9410           cat conftest.err >&5
9411         fi
9412         rm -rf libconftest.dylib*
9413         rm -f conftest.*
9414       fi
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9417 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9418
9419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9420 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9421 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   lt_cv_ld_exported_symbols_list=no
9425       save_LDFLAGS=$LDFLAGS
9426       echo "_main" > conftest.sym
9427       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9428       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h.  */
9430
9431 int
9432 main ()
9433 {
9434
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"; then :
9440   lt_cv_ld_exported_symbols_list=yes
9441 else
9442   lt_cv_ld_exported_symbols_list=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext \
9445     conftest$ac_exeext conftest.$ac_ext
9446         LDFLAGS="$save_LDFLAGS"
9447
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9450 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9451
9452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9453 $as_echo_n "checking for -force_load linker flag... " >&6; }
9454 if ${lt_cv_ld_force_load+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   lt_cv_ld_force_load=no
9458       cat > conftest.c << _LT_EOF
9459 int forced_loaded() { return 2;}
9460 _LT_EOF
9461       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9462       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9463       echo "$AR cru libconftest.a conftest.o" >&5
9464       $AR cru libconftest.a conftest.o 2>&5
9465       echo "$RANLIB libconftest.a" >&5
9466       $RANLIB libconftest.a 2>&5
9467       cat > conftest.c << _LT_EOF
9468 int main() { return 0;}
9469 _LT_EOF
9470       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9471       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9472       _lt_result=$?
9473       if test -s conftest.err && $GREP force_load conftest.err; then
9474         cat conftest.err >&5
9475       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9476         lt_cv_ld_force_load=yes
9477       else
9478         cat conftest.err >&5
9479       fi
9480         rm -f conftest.err libconftest.a conftest conftest.c
9481         rm -rf conftest.dSYM
9482
9483 fi
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9485 $as_echo "$lt_cv_ld_force_load" >&6; }
9486     case $host_os in
9487     rhapsody* | darwin1.[012])
9488       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9489     darwin1.*)
9490       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9491     darwin*) # darwin 5.x on
9492       # if running on 10.5 or later, the deployment target defaults
9493       # to the OS version, if on x86, and 10.4, the deployment
9494       # target defaults to 10.4. Don't you love it?
9495       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9496         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9497           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9498         10.[012]*)
9499           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9500         10.*)
9501           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9502       esac
9503     ;;
9504   esac
9505     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9506       _lt_dar_single_mod='$single_module'
9507     fi
9508     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9509       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9510     else
9511       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9512     fi
9513     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9514       _lt_dsymutil='~$DSYMUTIL $lib || :'
9515     else
9516       _lt_dsymutil=
9517     fi
9518     ;;
9519   esac
9520
9521 for ac_header in dlfcn.h
9522 do :
9523   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9524 "
9525 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9526   cat >>confdefs.h <<_ACEOF
9527 #define HAVE_DLFCN_H 1
9528 _ACEOF
9529
9530 fi
9531
9532 done
9533
9534
9535
9536
9537
9538
9539
9540 # Set options
9541
9542
9543
9544         enable_dlopen=no
9545
9546
9547   enable_win32_dll=no
9548
9549
9550             # Check whether --enable-shared was given.
9551 if test "${enable_shared+set}" = set; then :
9552   enableval=$enable_shared; p=${PACKAGE-default}
9553     case $enableval in
9554     yes) enable_shared=yes ;;
9555     no) enable_shared=no ;;
9556     *)
9557       enable_shared=no
9558       # Look at the argument we got.  We use all the common list separators.
9559       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9560       for pkg in $enableval; do
9561         IFS="$lt_save_ifs"
9562         if test "X$pkg" = "X$p"; then
9563           enable_shared=yes
9564         fi
9565       done
9566       IFS="$lt_save_ifs"
9567       ;;
9568     esac
9569 else
9570   enable_shared=yes
9571 fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581   # Check whether --enable-static was given.
9582 if test "${enable_static+set}" = set; then :
9583   enableval=$enable_static; p=${PACKAGE-default}
9584     case $enableval in
9585     yes) enable_static=yes ;;
9586     no) enable_static=no ;;
9587     *)
9588      enable_static=no
9589       # Look at the argument we got.  We use all the common list separators.
9590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9591       for pkg in $enableval; do
9592         IFS="$lt_save_ifs"
9593         if test "X$pkg" = "X$p"; then
9594           enable_static=yes
9595         fi
9596       done
9597       IFS="$lt_save_ifs"
9598       ;;
9599     esac
9600 else
9601   enable_static=yes
9602 fi
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613 # Check whether --with-pic was given.
9614 if test "${with_pic+set}" = set; then :
9615   withval=$with_pic; lt_p=${PACKAGE-default}
9616     case $withval in
9617     yes|no) pic_mode=$withval ;;
9618     *)
9619       pic_mode=default
9620       # Look at the argument we got.  We use all the common list separators.
9621       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9622       for lt_pkg in $withval; do
9623         IFS="$lt_save_ifs"
9624         if test "X$lt_pkg" = "X$lt_p"; then
9625           pic_mode=yes
9626         fi
9627       done
9628       IFS="$lt_save_ifs"
9629       ;;
9630     esac
9631 else
9632   pic_mode=default
9633 fi
9634
9635
9636 test -z "$pic_mode" && pic_mode=default
9637
9638
9639
9640
9641
9642
9643
9644   # Check whether --enable-fast-install was given.
9645 if test "${enable_fast_install+set}" = set; then :
9646   enableval=$enable_fast_install; p=${PACKAGE-default}
9647     case $enableval in
9648     yes) enable_fast_install=yes ;;
9649     no) enable_fast_install=no ;;
9650     *)
9651       enable_fast_install=no
9652       # Look at the argument we got.  We use all the common list separators.
9653       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9654       for pkg in $enableval; do
9655         IFS="$lt_save_ifs"
9656         if test "X$pkg" = "X$p"; then
9657           enable_fast_install=yes
9658         fi
9659       done
9660       IFS="$lt_save_ifs"
9661       ;;
9662     esac
9663 else
9664   enable_fast_install=yes
9665 fi
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 # This can be used to rebuild libtool when needed
9678 LIBTOOL_DEPS="$ltmain"
9679
9680 # Always use our own libtool.
9681 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712 test -z "$LN_S" && LN_S="ln -s"
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727 if test -n "${ZSH_VERSION+set}" ; then
9728    setopt NO_GLOB_SUBST
9729 fi
9730
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9732 $as_echo_n "checking for objdir... " >&6; }
9733 if ${lt_cv_objdir+:} false; then :
9734   $as_echo_n "(cached) " >&6
9735 else
9736   rm -f .libs 2>/dev/null
9737 mkdir .libs 2>/dev/null
9738 if test -d .libs; then
9739   lt_cv_objdir=.libs
9740 else
9741   # MS-DOS does not allow filenames that begin with a dot.
9742   lt_cv_objdir=_libs
9743 fi
9744 rmdir .libs 2>/dev/null
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9747 $as_echo "$lt_cv_objdir" >&6; }
9748 objdir=$lt_cv_objdir
9749
9750
9751
9752
9753
9754 cat >>confdefs.h <<_ACEOF
9755 #define LT_OBJDIR "$lt_cv_objdir/"
9756 _ACEOF
9757
9758
9759
9760
9761 case $host_os in
9762 aix3*)
9763   # AIX sometimes has problems with the GCC collect2 program.  For some
9764   # reason, if we set the COLLECT_NAMES environment variable, the problems
9765   # vanish in a puff of smoke.
9766   if test "X${COLLECT_NAMES+set}" != Xset; then
9767     COLLECT_NAMES=
9768     export COLLECT_NAMES
9769   fi
9770   ;;
9771 esac
9772
9773 # Global variables:
9774 ofile=libtool
9775 can_build_shared=yes
9776
9777 # All known linkers require a `.a' archive for static linking (except MSVC,
9778 # which needs '.lib').
9779 libext=a
9780
9781 with_gnu_ld="$lt_cv_prog_gnu_ld"
9782
9783 old_CC="$CC"
9784 old_CFLAGS="$CFLAGS"
9785
9786 # Set sane defaults for various variables
9787 test -z "$CC" && CC=cc
9788 test -z "$LTCC" && LTCC=$CC
9789 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9790 test -z "$LD" && LD=ld
9791 test -z "$ac_objext" && ac_objext=o
9792
9793 for cc_temp in $compiler""; do
9794   case $cc_temp in
9795     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9796     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9797     \-*) ;;
9798     *) break;;
9799   esac
9800 done
9801 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9802
9803
9804 # Only perform the check for file, if the check method requires it
9805 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9806 case $deplibs_check_method in
9807 file_magic*)
9808   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9810 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9811 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   case $MAGIC_CMD in
9815 [\\/*] |  ?:[\\/]*)
9816   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9817   ;;
9818 *)
9819   lt_save_MAGIC_CMD="$MAGIC_CMD"
9820   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9821   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9822   for ac_dir in $ac_dummy; do
9823     IFS="$lt_save_ifs"
9824     test -z "$ac_dir" && ac_dir=.
9825     if test -f $ac_dir/${ac_tool_prefix}file; then
9826       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9827       if test -n "$file_magic_test_file"; then
9828         case $deplibs_check_method in
9829         "file_magic "*)
9830           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9831           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9832           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9833             $EGREP "$file_magic_regex" > /dev/null; then
9834             :
9835           else
9836             cat <<_LT_EOF 1>&2
9837
9838 *** Warning: the command libtool uses to detect shared libraries,
9839 *** $file_magic_cmd, produces output that libtool cannot recognize.
9840 *** The result is that libtool may fail to recognize shared libraries
9841 *** as such.  This will affect the creation of libtool libraries that
9842 *** depend on shared libraries, but programs linked with such libtool
9843 *** libraries will work regardless of this problem.  Nevertheless, you
9844 *** may want to report the problem to your system manager and/or to
9845 *** bug-libtool@gnu.org
9846
9847 _LT_EOF
9848           fi ;;
9849         esac
9850       fi
9851       break
9852     fi
9853   done
9854   IFS="$lt_save_ifs"
9855   MAGIC_CMD="$lt_save_MAGIC_CMD"
9856   ;;
9857 esac
9858 fi
9859
9860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9861 if test -n "$MAGIC_CMD"; then
9862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9863 $as_echo "$MAGIC_CMD" >&6; }
9864 else
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9867 fi
9868
9869
9870
9871
9872
9873 if test -z "$lt_cv_path_MAGIC_CMD"; then
9874   if test -n "$ac_tool_prefix"; then
9875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9876 $as_echo_n "checking for file... " >&6; }
9877 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9878   $as_echo_n "(cached) " >&6
9879 else
9880   case $MAGIC_CMD in
9881 [\\/*] |  ?:[\\/]*)
9882   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9883   ;;
9884 *)
9885   lt_save_MAGIC_CMD="$MAGIC_CMD"
9886   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9887   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9888   for ac_dir in $ac_dummy; do
9889     IFS="$lt_save_ifs"
9890     test -z "$ac_dir" && ac_dir=.
9891     if test -f $ac_dir/file; then
9892       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9893       if test -n "$file_magic_test_file"; then
9894         case $deplibs_check_method in
9895         "file_magic "*)
9896           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9897           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9898           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9899             $EGREP "$file_magic_regex" > /dev/null; then
9900             :
9901           else
9902             cat <<_LT_EOF 1>&2
9903
9904 *** Warning: the command libtool uses to detect shared libraries,
9905 *** $file_magic_cmd, produces output that libtool cannot recognize.
9906 *** The result is that libtool may fail to recognize shared libraries
9907 *** as such.  This will affect the creation of libtool libraries that
9908 *** depend on shared libraries, but programs linked with such libtool
9909 *** libraries will work regardless of this problem.  Nevertheless, you
9910 *** may want to report the problem to your system manager and/or to
9911 *** bug-libtool@gnu.org
9912
9913 _LT_EOF
9914           fi ;;
9915         esac
9916       fi
9917       break
9918     fi
9919   done
9920   IFS="$lt_save_ifs"
9921   MAGIC_CMD="$lt_save_MAGIC_CMD"
9922   ;;
9923 esac
9924 fi
9925
9926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9927 if test -n "$MAGIC_CMD"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9929 $as_echo "$MAGIC_CMD" >&6; }
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935
9936   else
9937     MAGIC_CMD=:
9938   fi
9939 fi
9940
9941   fi
9942   ;;
9943 esac
9944
9945 # Use C for the default configuration in the libtool script
9946
9947 lt_save_CC="$CC"
9948 ac_ext=c
9949 ac_cpp='$CPP $CPPFLAGS'
9950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9953
9954
9955 # Source file extension for C test sources.
9956 ac_ext=c
9957
9958 # Object file extension for compiled C test sources.
9959 objext=o
9960 objext=$objext
9961
9962 # Code to be used in simple compile tests
9963 lt_simple_compile_test_code="int some_variable = 0;"
9964
9965 # Code to be used in simple link tests
9966 lt_simple_link_test_code='int main(){return(0);}'
9967
9968
9969
9970
9971
9972
9973
9974 # If no C compiler was specified, use CC.
9975 LTCC=${LTCC-"$CC"}
9976
9977 # If no C compiler flags were specified, use CFLAGS.
9978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9979
9980 # Allow CC to be a program name with arguments.
9981 compiler=$CC
9982
9983 # Save the default compiler, since it gets overwritten when the other
9984 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9985 compiler_DEFAULT=$CC
9986
9987 # save warnings/boilerplate of simple test code
9988 ac_outfile=conftest.$ac_objext
9989 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9991 _lt_compiler_boilerplate=`cat conftest.err`
9992 $RM conftest*
9993
9994 ac_outfile=conftest.$ac_objext
9995 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9997 _lt_linker_boilerplate=`cat conftest.err`
9998 $RM -r conftest*
9999
10000
10001 if test -n "$compiler"; then
10002
10003 lt_prog_compiler_no_builtin_flag=
10004
10005 if test "$GCC" = yes; then
10006   case $cc_basename in
10007   nvcc*)
10008     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10009   *)
10010     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10011   esac
10012
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10014 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10015 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   lt_cv_prog_compiler_rtti_exceptions=no
10019    ac_outfile=conftest.$ac_objext
10020    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021    lt_compiler_flag="-fno-rtti -fno-exceptions"
10022    # Insert the option either (1) after the last *FLAGS variable, or
10023    # (2) before a word containing "conftest.", or (3) at the end.
10024    # Note that $ac_compile itself does not contain backslashes and begins
10025    # with a dollar sign (not a hyphen), so the echo should work correctly.
10026    # The option is referenced via a variable to avoid confusing sed.
10027    lt_compile=`echo "$ac_compile" | $SED \
10028    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10030    -e 's:$: $lt_compiler_flag:'`
10031    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10032    (eval "$lt_compile" 2>conftest.err)
10033    ac_status=$?
10034    cat conftest.err >&5
10035    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036    if (exit $ac_status) && test -s "$ac_outfile"; then
10037      # The compiler can only warn and ignore the option if not recognized
10038      # So say no if there are warnings other than the usual output.
10039      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10040      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10041      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10042        lt_cv_prog_compiler_rtti_exceptions=yes
10043      fi
10044    fi
10045    $RM conftest*
10046
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10049 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10050
10051 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10052     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10053 else
10054     :
10055 fi
10056
10057 fi
10058
10059
10060
10061
10062
10063
10064   lt_prog_compiler_wl=
10065 lt_prog_compiler_pic=
10066 lt_prog_compiler_static=
10067
10068
10069   if test "$GCC" = yes; then
10070     lt_prog_compiler_wl='-Wl,'
10071     lt_prog_compiler_static='-static'
10072
10073     case $host_os in
10074       aix*)
10075       # All AIX code is PIC.
10076       if test "$host_cpu" = ia64; then
10077         # AIX 5 now supports IA64 processor
10078         lt_prog_compiler_static='-Bstatic'
10079       fi
10080       ;;
10081
10082     amigaos*)
10083       case $host_cpu in
10084       powerpc)
10085             # see comment about AmigaOS4 .so support
10086             lt_prog_compiler_pic='-fPIC'
10087         ;;
10088       m68k)
10089             # FIXME: we need at least 68020 code to build shared libraries, but
10090             # adding the `-m68020' flag to GCC prevents building anything better,
10091             # like `-m68040'.
10092             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10093         ;;
10094       esac
10095       ;;
10096
10097     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10098       # PIC is the default for these OSes.
10099       ;;
10100
10101     mingw* | cygwin* | pw32* | os2* | cegcc*)
10102       # This hack is so that the source file can tell whether it is being
10103       # built for inclusion in a dll (and should export symbols for example).
10104       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10105       # (--disable-auto-import) libraries
10106       lt_prog_compiler_pic='-DDLL_EXPORT'
10107       ;;
10108
10109     darwin* | rhapsody*)
10110       # PIC is the default on this platform
10111       # Common symbols not allowed in MH_DYLIB files
10112       lt_prog_compiler_pic='-fno-common'
10113       ;;
10114
10115     haiku*)
10116       # PIC is the default for Haiku.
10117       # The "-static" flag exists, but is broken.
10118       lt_prog_compiler_static=
10119       ;;
10120
10121     hpux*)
10122       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10123       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10124       # sets the default TLS model and affects inlining.
10125       case $host_cpu in
10126       hppa*64*)
10127         # +Z the default
10128         ;;
10129       *)
10130         lt_prog_compiler_pic='-fPIC'
10131         ;;
10132       esac
10133       ;;
10134
10135     interix[3-9]*)
10136       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10137       # Instead, we relocate shared libraries at runtime.
10138       ;;
10139
10140     msdosdjgpp*)
10141       # Just because we use GCC doesn't mean we suddenly get shared libraries
10142       # on systems that don't support them.
10143       lt_prog_compiler_can_build_shared=no
10144       enable_shared=no
10145       ;;
10146
10147     *nto* | *qnx*)
10148       # QNX uses GNU C++, but need to define -shared option too, otherwise
10149       # it will coredump.
10150       lt_prog_compiler_pic='-fPIC -shared'
10151       ;;
10152
10153     sysv4*MP*)
10154       if test -d /usr/nec; then
10155         lt_prog_compiler_pic=-Kconform_pic
10156       fi
10157       ;;
10158
10159     *)
10160       lt_prog_compiler_pic='-fPIC'
10161       ;;
10162     esac
10163
10164     case $cc_basename in
10165     nvcc*) # Cuda Compiler Driver 2.2
10166       lt_prog_compiler_wl='-Xlinker '
10167       if test -n "$lt_prog_compiler_pic"; then
10168         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10169       fi
10170       ;;
10171     esac
10172   else
10173     # PORTME Check for flag to pass linker flags through the system compiler.
10174     case $host_os in
10175     aix*)
10176       lt_prog_compiler_wl='-Wl,'
10177       if test "$host_cpu" = ia64; then
10178         # AIX 5 now supports IA64 processor
10179         lt_prog_compiler_static='-Bstatic'
10180       else
10181         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10182       fi
10183       ;;
10184
10185     mingw* | cygwin* | pw32* | os2* | cegcc*)
10186       # This hack is so that the source file can tell whether it is being
10187       # built for inclusion in a dll (and should export symbols for example).
10188       lt_prog_compiler_pic='-DDLL_EXPORT'
10189       ;;
10190
10191     hpux9* | hpux10* | hpux11*)
10192       lt_prog_compiler_wl='-Wl,'
10193       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10194       # not for PA HP-UX.
10195       case $host_cpu in
10196       hppa*64*|ia64*)
10197         # +Z the default
10198         ;;
10199       *)
10200         lt_prog_compiler_pic='+Z'
10201         ;;
10202       esac
10203       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10204       lt_prog_compiler_static='${wl}-a ${wl}archive'
10205       ;;
10206
10207     irix5* | irix6* | nonstopux*)
10208       lt_prog_compiler_wl='-Wl,'
10209       # PIC (with -KPIC) is the default.
10210       lt_prog_compiler_static='-non_shared'
10211       ;;
10212
10213     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10214       case $cc_basename in
10215       # old Intel for x86_64 which still supported -KPIC.
10216       ecc*)
10217         lt_prog_compiler_wl='-Wl,'
10218         lt_prog_compiler_pic='-KPIC'
10219         lt_prog_compiler_static='-static'
10220         ;;
10221       # icc used to be incompatible with GCC.
10222       # ICC 10 doesn't accept -KPIC any more.
10223       icc* | ifort*)
10224         lt_prog_compiler_wl='-Wl,'
10225         lt_prog_compiler_pic='-fPIC'
10226         lt_prog_compiler_static='-static'
10227         ;;
10228       # Lahey Fortran 8.1.
10229       lf95*)
10230         lt_prog_compiler_wl='-Wl,'
10231         lt_prog_compiler_pic='--shared'
10232         lt_prog_compiler_static='--static'
10233         ;;
10234       nagfor*)
10235         # NAG Fortran compiler
10236         lt_prog_compiler_wl='-Wl,-Wl,,'
10237         lt_prog_compiler_pic='-PIC'
10238         lt_prog_compiler_static='-Bstatic'
10239         ;;
10240       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10241         # Portland Group compilers (*not* the Pentium gcc compiler,
10242         # which looks to be a dead project)
10243         lt_prog_compiler_wl='-Wl,'
10244         lt_prog_compiler_pic='-fpic'
10245         lt_prog_compiler_static='-Bstatic'
10246         ;;
10247       ccc*)
10248         lt_prog_compiler_wl='-Wl,'
10249         # All Alpha code is PIC.
10250         lt_prog_compiler_static='-non_shared'
10251         ;;
10252       xl* | bgxl* | bgf* | mpixl*)
10253         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10254         lt_prog_compiler_wl='-Wl,'
10255         lt_prog_compiler_pic='-qpic'
10256         lt_prog_compiler_static='-qstaticlink'
10257         ;;
10258       *)
10259         case `$CC -V 2>&1 | sed 5q` in
10260         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10261           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10262           lt_prog_compiler_pic='-KPIC'
10263           lt_prog_compiler_static='-Bstatic'
10264           lt_prog_compiler_wl=''
10265           ;;
10266         *Sun\ F* | *Sun*Fortran*)
10267           lt_prog_compiler_pic='-KPIC'
10268           lt_prog_compiler_static='-Bstatic'
10269           lt_prog_compiler_wl='-Qoption ld '
10270           ;;
10271         *Sun\ C*)
10272           # Sun C 5.9
10273           lt_prog_compiler_pic='-KPIC'
10274           lt_prog_compiler_static='-Bstatic'
10275           lt_prog_compiler_wl='-Wl,'
10276           ;;
10277         *Intel*\ [CF]*Compiler*)
10278           lt_prog_compiler_wl='-Wl,'
10279           lt_prog_compiler_pic='-fPIC'
10280           lt_prog_compiler_static='-static'
10281           ;;
10282         *Portland\ Group*)
10283           lt_prog_compiler_wl='-Wl,'
10284           lt_prog_compiler_pic='-fpic'
10285           lt_prog_compiler_static='-Bstatic'
10286           ;;
10287         esac
10288         ;;
10289       esac
10290       ;;
10291
10292     newsos6)
10293       lt_prog_compiler_pic='-KPIC'
10294       lt_prog_compiler_static='-Bstatic'
10295       ;;
10296
10297     *nto* | *qnx*)
10298       # QNX uses GNU C++, but need to define -shared option too, otherwise
10299       # it will coredump.
10300       lt_prog_compiler_pic='-fPIC -shared'
10301       ;;
10302
10303     osf3* | osf4* | osf5*)
10304       lt_prog_compiler_wl='-Wl,'
10305       # All OSF/1 code is PIC.
10306       lt_prog_compiler_static='-non_shared'
10307       ;;
10308
10309     rdos*)
10310       lt_prog_compiler_static='-non_shared'
10311       ;;
10312
10313     solaris*)
10314       lt_prog_compiler_pic='-KPIC'
10315       lt_prog_compiler_static='-Bstatic'
10316       case $cc_basename in
10317       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10318         lt_prog_compiler_wl='-Qoption ld ';;
10319       *)
10320         lt_prog_compiler_wl='-Wl,';;
10321       esac
10322       ;;
10323
10324     sunos4*)
10325       lt_prog_compiler_wl='-Qoption ld '
10326       lt_prog_compiler_pic='-PIC'
10327       lt_prog_compiler_static='-Bstatic'
10328       ;;
10329
10330     sysv4 | sysv4.2uw2* | sysv4.3*)
10331       lt_prog_compiler_wl='-Wl,'
10332       lt_prog_compiler_pic='-KPIC'
10333       lt_prog_compiler_static='-Bstatic'
10334       ;;
10335
10336     sysv4*MP*)
10337       if test -d /usr/nec ;then
10338         lt_prog_compiler_pic='-Kconform_pic'
10339         lt_prog_compiler_static='-Bstatic'
10340       fi
10341       ;;
10342
10343     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10344       lt_prog_compiler_wl='-Wl,'
10345       lt_prog_compiler_pic='-KPIC'
10346       lt_prog_compiler_static='-Bstatic'
10347       ;;
10348
10349     unicos*)
10350       lt_prog_compiler_wl='-Wl,'
10351       lt_prog_compiler_can_build_shared=no
10352       ;;
10353
10354     uts4*)
10355       lt_prog_compiler_pic='-pic'
10356       lt_prog_compiler_static='-Bstatic'
10357       ;;
10358
10359     *)
10360       lt_prog_compiler_can_build_shared=no
10361       ;;
10362     esac
10363   fi
10364
10365 case $host_os in
10366   # For platforms which do not support PIC, -DPIC is meaningless:
10367   *djgpp*)
10368     lt_prog_compiler_pic=
10369     ;;
10370   *)
10371     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10372     ;;
10373 esac
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10377 if ${lt_cv_prog_compiler_pic+:} false; then :
10378   $as_echo_n "(cached) " >&6
10379 else
10380   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10381 fi
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10383 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10384 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10385
10386 #
10387 # Check to make sure the PIC flag actually works.
10388 #
10389 if test -n "$lt_prog_compiler_pic"; then
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10391 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10392 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   lt_cv_prog_compiler_pic_works=no
10396    ac_outfile=conftest.$ac_objext
10397    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10398    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10399    # Insert the option either (1) after the last *FLAGS variable, or
10400    # (2) before a word containing "conftest.", or (3) at the end.
10401    # Note that $ac_compile itself does not contain backslashes and begins
10402    # with a dollar sign (not a hyphen), so the echo should work correctly.
10403    # The option is referenced via a variable to avoid confusing sed.
10404    lt_compile=`echo "$ac_compile" | $SED \
10405    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10406    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10407    -e 's:$: $lt_compiler_flag:'`
10408    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10409    (eval "$lt_compile" 2>conftest.err)
10410    ac_status=$?
10411    cat conftest.err >&5
10412    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413    if (exit $ac_status) && test -s "$ac_outfile"; then
10414      # The compiler can only warn and ignore the option if not recognized
10415      # So say no if there are warnings other than the usual output.
10416      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10417      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10418      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10419        lt_cv_prog_compiler_pic_works=yes
10420      fi
10421    fi
10422    $RM conftest*
10423
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10426 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10427
10428 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10429     case $lt_prog_compiler_pic in
10430      "" | " "*) ;;
10431      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10432      esac
10433 else
10434     lt_prog_compiler_pic=
10435      lt_prog_compiler_can_build_shared=no
10436 fi
10437
10438 fi
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 #
10451 # Check to make sure the static flag actually works.
10452 #
10453 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10455 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10456 if ${lt_cv_prog_compiler_static_works+:} false; then :
10457   $as_echo_n "(cached) " >&6
10458 else
10459   lt_cv_prog_compiler_static_works=no
10460    save_LDFLAGS="$LDFLAGS"
10461    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10462    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10463    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10464      # The linker can only warn and ignore the option if not recognized
10465      # So say no if there are warnings
10466      if test -s conftest.err; then
10467        # Append any errors to the config.log.
10468        cat conftest.err 1>&5
10469        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10470        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10471        if diff conftest.exp conftest.er2 >/dev/null; then
10472          lt_cv_prog_compiler_static_works=yes
10473        fi
10474      else
10475        lt_cv_prog_compiler_static_works=yes
10476      fi
10477    fi
10478    $RM -r conftest*
10479    LDFLAGS="$save_LDFLAGS"
10480
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10483 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10484
10485 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10486     :
10487 else
10488     lt_prog_compiler_static=
10489 fi
10490
10491
10492
10493
10494
10495
10496
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10498 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10499 if ${lt_cv_prog_compiler_c_o+:} false; then :
10500   $as_echo_n "(cached) " >&6
10501 else
10502   lt_cv_prog_compiler_c_o=no
10503    $RM -r conftest 2>/dev/null
10504    mkdir conftest
10505    cd conftest
10506    mkdir out
10507    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10508
10509    lt_compiler_flag="-o out/conftest2.$ac_objext"
10510    # Insert the option either (1) after the last *FLAGS variable, or
10511    # (2) before a word containing "conftest.", or (3) at the end.
10512    # Note that $ac_compile itself does not contain backslashes and begins
10513    # with a dollar sign (not a hyphen), so the echo should work correctly.
10514    lt_compile=`echo "$ac_compile" | $SED \
10515    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10516    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10517    -e 's:$: $lt_compiler_flag:'`
10518    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10519    (eval "$lt_compile" 2>out/conftest.err)
10520    ac_status=$?
10521    cat out/conftest.err >&5
10522    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10524    then
10525      # The compiler can only warn and ignore the option if not recognized
10526      # So say no if there are warnings
10527      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10528      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10529      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10530        lt_cv_prog_compiler_c_o=yes
10531      fi
10532    fi
10533    chmod u+w . 2>&5
10534    $RM conftest*
10535    # SGI C++ compiler will create directory out/ii_files/ for
10536    # template instantiation
10537    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10538    $RM out/* && rmdir out
10539    cd ..
10540    $RM -r conftest
10541    $RM conftest*
10542
10543 fi
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10545 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10546
10547
10548
10549
10550
10551
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10554 if ${lt_cv_prog_compiler_c_o+:} false; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   lt_cv_prog_compiler_c_o=no
10558    $RM -r conftest 2>/dev/null
10559    mkdir conftest
10560    cd conftest
10561    mkdir out
10562    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10563
10564    lt_compiler_flag="-o out/conftest2.$ac_objext"
10565    # Insert the option either (1) after the last *FLAGS variable, or
10566    # (2) before a word containing "conftest.", or (3) at the end.
10567    # Note that $ac_compile itself does not contain backslashes and begins
10568    # with a dollar sign (not a hyphen), so the echo should work correctly.
10569    lt_compile=`echo "$ac_compile" | $SED \
10570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10572    -e 's:$: $lt_compiler_flag:'`
10573    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10574    (eval "$lt_compile" 2>out/conftest.err)
10575    ac_status=$?
10576    cat out/conftest.err >&5
10577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10579    then
10580      # The compiler can only warn and ignore the option if not recognized
10581      # So say no if there are warnings
10582      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10583      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10584      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10585        lt_cv_prog_compiler_c_o=yes
10586      fi
10587    fi
10588    chmod u+w . 2>&5
10589    $RM conftest*
10590    # SGI C++ compiler will create directory out/ii_files/ for
10591    # template instantiation
10592    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10593    $RM out/* && rmdir out
10594    cd ..
10595    $RM -r conftest
10596    $RM conftest*
10597
10598 fi
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10600 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10601
10602
10603
10604
10605 hard_links="nottested"
10606 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10607   # do not overwrite the value of need_locks provided by the user
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10609 $as_echo_n "checking if we can lock with hard links... " >&6; }
10610   hard_links=yes
10611   $RM conftest*
10612   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10613   touch conftest.a
10614   ln conftest.a conftest.b 2>&5 || hard_links=no
10615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10617 $as_echo "$hard_links" >&6; }
10618   if test "$hard_links" = no; then
10619     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10620 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10621     need_locks=warn
10622   fi
10623 else
10624   need_locks=no
10625 fi
10626
10627
10628
10629
10630
10631
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10633 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10634
10635   runpath_var=
10636   allow_undefined_flag=
10637   always_export_symbols=no
10638   archive_cmds=
10639   archive_expsym_cmds=
10640   compiler_needs_object=no
10641   enable_shared_with_static_runtimes=no
10642   export_dynamic_flag_spec=
10643   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10644   hardcode_automatic=no
10645   hardcode_direct=no
10646   hardcode_direct_absolute=no
10647   hardcode_libdir_flag_spec=
10648   hardcode_libdir_separator=
10649   hardcode_minus_L=no
10650   hardcode_shlibpath_var=unsupported
10651   inherit_rpath=no
10652   link_all_deplibs=unknown
10653   module_cmds=
10654   module_expsym_cmds=
10655   old_archive_from_new_cmds=
10656   old_archive_from_expsyms_cmds=
10657   thread_safe_flag_spec=
10658   whole_archive_flag_spec=
10659   # include_expsyms should be a list of space-separated symbols to be *always*
10660   # included in the symbol list
10661   include_expsyms=
10662   # exclude_expsyms can be an extended regexp of symbols to exclude
10663   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10664   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10665   # as well as any symbol that contains `d'.
10666   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10667   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10668   # platforms (ab)use it in PIC code, but their linkers get confused if
10669   # the symbol is explicitly referenced.  Since portable code cannot
10670   # rely on this symbol name, it's probably fine to never include it in
10671   # preloaded symbol tables.
10672   # Exclude shared library initialization/finalization symbols.
10673   extract_expsyms_cmds=
10674
10675   case $host_os in
10676   cygwin* | mingw* | pw32* | cegcc*)
10677     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10678     # When not using gcc, we currently assume that we are using
10679     # Microsoft Visual C++.
10680     if test "$GCC" != yes; then
10681       with_gnu_ld=no
10682     fi
10683     ;;
10684   interix*)
10685     # we just hope/assume this is gcc and not c89 (= MSVC++)
10686     with_gnu_ld=yes
10687     ;;
10688   openbsd*)
10689     with_gnu_ld=no
10690     ;;
10691   esac
10692
10693   ld_shlibs=yes
10694
10695   # On some targets, GNU ld is compatible enough with the native linker
10696   # that we're better off using the native interface for both.
10697   lt_use_gnu_ld_interface=no
10698   if test "$with_gnu_ld" = yes; then
10699     case $host_os in
10700       aix*)
10701         # The AIX port of GNU ld has always aspired to compatibility
10702         # with the native linker.  However, as the warning in the GNU ld
10703         # block says, versions before 2.19.5* couldn't really create working
10704         # shared libraries, regardless of the interface used.
10705         case `$LD -v 2>&1` in
10706           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10707           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10708           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10709           *)
10710             lt_use_gnu_ld_interface=yes
10711             ;;
10712         esac
10713         ;;
10714       *)
10715         lt_use_gnu_ld_interface=yes
10716         ;;
10717     esac
10718   fi
10719
10720   if test "$lt_use_gnu_ld_interface" = yes; then
10721     # If archive_cmds runs LD, not CC, wlarc should be empty
10722     wlarc='${wl}'
10723
10724     # Set some defaults for GNU ld with shared library support. These
10725     # are reset later if shared libraries are not supported. Putting them
10726     # here allows them to be overridden if necessary.
10727     runpath_var=LD_RUN_PATH
10728     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729     export_dynamic_flag_spec='${wl}--export-dynamic'
10730     # ancient GNU ld didn't support --whole-archive et. al.
10731     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10732       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10733     else
10734       whole_archive_flag_spec=
10735     fi
10736     supports_anon_versioning=no
10737     case `$LD -v 2>&1` in
10738       *GNU\ gold*) supports_anon_versioning=yes ;;
10739       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10740       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10741       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10742       *\ 2.11.*) ;; # other 2.11 versions
10743       *) supports_anon_versioning=yes ;;
10744     esac
10745
10746     # See if GNU ld supports shared libraries.
10747     case $host_os in
10748     aix[3-9]*)
10749       # On AIX/PPC, the GNU linker is very broken
10750       if test "$host_cpu" != ia64; then
10751         ld_shlibs=no
10752         cat <<_LT_EOF 1>&2
10753
10754 *** Warning: the GNU linker, at least up to release 2.19, is reported
10755 *** to be unable to reliably create shared libraries on AIX.
10756 *** Therefore, libtool is disabling shared libraries support.  If you
10757 *** really care for shared libraries, you may want to install binutils
10758 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10759 *** You will then need to restart the configuration process.
10760
10761 _LT_EOF
10762       fi
10763       ;;
10764
10765     amigaos*)
10766       case $host_cpu in
10767       powerpc)
10768             # see comment about AmigaOS4 .so support
10769             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770             archive_expsym_cmds=''
10771         ;;
10772       m68k)
10773             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)'
10774             hardcode_libdir_flag_spec='-L$libdir'
10775             hardcode_minus_L=yes
10776         ;;
10777       esac
10778       ;;
10779
10780     beos*)
10781       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10782         allow_undefined_flag=unsupported
10783         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10784         # support --undefined.  This deserves some investigation.  FIXME
10785         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786       else
10787         ld_shlibs=no
10788       fi
10789       ;;
10790
10791     cygwin* | mingw* | pw32* | cegcc*)
10792       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10793       # as there is no search path for DLLs.
10794       hardcode_libdir_flag_spec='-L$libdir'
10795       export_dynamic_flag_spec='${wl}--export-all-symbols'
10796       allow_undefined_flag=unsupported
10797       always_export_symbols=no
10798       enable_shared_with_static_runtimes=yes
10799       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'
10800       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10801
10802       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10803         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10804         # If the export-symbols file already is a .def file (1st line
10805         # is EXPORTS), use it as is; otherwise, prepend...
10806         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10807           cp $export_symbols $output_objdir/$soname.def;
10808         else
10809           echo EXPORTS > $output_objdir/$soname.def;
10810           cat $export_symbols >> $output_objdir/$soname.def;
10811         fi~
10812         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10813       else
10814         ld_shlibs=no
10815       fi
10816       ;;
10817
10818     haiku*)
10819       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820       link_all_deplibs=yes
10821       ;;
10822
10823     interix[3-9]*)
10824       hardcode_direct=no
10825       hardcode_shlibpath_var=no
10826       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10827       export_dynamic_flag_spec='${wl}-E'
10828       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10829       # Instead, shared libraries are loaded at an image base (0x10000000 by
10830       # default) and relocated if they conflict, which is a slow very memory
10831       # consuming and fragmenting process.  To avoid this, we pick a random,
10832       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10833       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10834       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10835       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'
10836       ;;
10837
10838     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10839       tmp_diet=no
10840       if test "$host_os" = linux-dietlibc; then
10841         case $cc_basename in
10842           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10843         esac
10844       fi
10845       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10846          && test "$tmp_diet" = no
10847       then
10848         tmp_addflag=' $pic_flag'
10849         tmp_sharedflag='-shared'
10850         case $cc_basename,$host_cpu in
10851         pgcc*)                          # Portland Group C compiler
10852           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'
10853           tmp_addflag=' $pic_flag'
10854           ;;
10855         pgf77* | pgf90* | pgf95* | pgfortran*)
10856                                         # Portland Group f77 and f90 compilers
10857           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'
10858           tmp_addflag=' $pic_flag -Mnomain' ;;
10859         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10860           tmp_addflag=' -i_dynamic' ;;
10861         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10862           tmp_addflag=' -i_dynamic -nofor_main' ;;
10863         ifc* | ifort*)                  # Intel Fortran compiler
10864           tmp_addflag=' -nofor_main' ;;
10865         lf95*)                          # Lahey Fortran 8.1
10866           whole_archive_flag_spec=
10867           tmp_sharedflag='--shared' ;;
10868         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10869           tmp_sharedflag='-qmkshrobj'
10870           tmp_addflag= ;;
10871         nvcc*)  # Cuda Compiler Driver 2.2
10872           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'
10873           compiler_needs_object=yes
10874           ;;
10875         esac
10876         case `$CC -V 2>&1 | sed 5q` in
10877         *Sun\ C*)                       # Sun C 5.9
10878           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'
10879           compiler_needs_object=yes
10880           tmp_sharedflag='-G' ;;
10881         *Sun\ F*)                       # Sun Fortran 8.3
10882           tmp_sharedflag='-G' ;;
10883         esac
10884         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885
10886         if test "x$supports_anon_versioning" = xyes; then
10887           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889             echo "local: *; };" >> $output_objdir/$libname.ver~
10890             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10891         fi
10892
10893         case $cc_basename in
10894         xlf* | bgf* | bgxlf* | mpixlf*)
10895           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10896           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10897           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10899           if test "x$supports_anon_versioning" = xyes; then
10900             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10901               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10902               echo "local: *; };" >> $output_objdir/$libname.ver~
10903               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10904           fi
10905           ;;
10906         esac
10907       else
10908         ld_shlibs=no
10909       fi
10910       ;;
10911
10912     netbsd*)
10913       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10914         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10915         wlarc=
10916       else
10917         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10919       fi
10920       ;;
10921
10922     solaris*)
10923       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10924         ld_shlibs=no
10925         cat <<_LT_EOF 1>&2
10926
10927 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10928 *** create shared libraries on Solaris systems.  Therefore, libtool
10929 *** is disabling shared libraries support.  We urge you to upgrade GNU
10930 *** binutils to release 2.9.1 or newer.  Another option is to modify
10931 *** your PATH or compiler configuration so that the native linker is
10932 *** used, and then restart.
10933
10934 _LT_EOF
10935       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10936         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10937         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10938       else
10939         ld_shlibs=no
10940       fi
10941       ;;
10942
10943     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10944       case `$LD -v 2>&1` in
10945         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10946         ld_shlibs=no
10947         cat <<_LT_EOF 1>&2
10948
10949 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10950 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10951 *** is disabling shared libraries support.  We urge you to upgrade GNU
10952 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10953 *** your PATH or compiler configuration so that the native linker is
10954 *** used, and then restart.
10955
10956 _LT_EOF
10957         ;;
10958         *)
10959           # For security reasons, it is highly recommended that you always
10960           # use absolute paths for naming shared libraries, and exclude the
10961           # DT_RUNPATH tag from executables and libraries.  But doing so
10962           # requires that you compile everything twice, which is a pain.
10963           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10964             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10967           else
10968             ld_shlibs=no
10969           fi
10970         ;;
10971       esac
10972       ;;
10973
10974     sunos4*)
10975       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10976       wlarc=
10977       hardcode_direct=yes
10978       hardcode_shlibpath_var=no
10979       ;;
10980
10981     *)
10982       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10983         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10985       else
10986         ld_shlibs=no
10987       fi
10988       ;;
10989     esac
10990
10991     if test "$ld_shlibs" = no; then
10992       runpath_var=
10993       hardcode_libdir_flag_spec=
10994       export_dynamic_flag_spec=
10995       whole_archive_flag_spec=
10996     fi
10997   else
10998     # PORTME fill in a description of your system's linker (not GNU ld)
10999     case $host_os in
11000     aix3*)
11001       allow_undefined_flag=unsupported
11002       always_export_symbols=yes
11003       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'
11004       # Note: this linker hardcodes the directories in LIBPATH if there
11005       # are no directories specified by -L.
11006       hardcode_minus_L=yes
11007       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11008         # Neither direct hardcoding nor static linking is supported with a
11009         # broken collect2.
11010         hardcode_direct=unsupported
11011       fi
11012       ;;
11013
11014     aix[4-9]*)
11015       if test "$host_cpu" = ia64; then
11016         # On IA64, the linker does run time linking by default, so we don't
11017         # have to do anything special.
11018         aix_use_runtimelinking=no
11019         exp_sym_flag='-Bexport'
11020         no_entry_flag=""
11021       else
11022         # If we're using GNU nm, then we don't want the "-C" option.
11023         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11024         # Also, AIX nm treats weak defined symbols like other global
11025         # defined symbols, whereas GNU nm marks them as "W".
11026         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11027           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11028         else
11029           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11030         fi
11031         aix_use_runtimelinking=no
11032
11033         # Test if we are trying to use run time linking or normal
11034         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11035         # need to do runtime linking.
11036         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11037           for ld_flag in $LDFLAGS; do
11038           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11039             aix_use_runtimelinking=yes
11040             break
11041           fi
11042           done
11043           ;;
11044         esac
11045
11046         exp_sym_flag='-bexport'
11047         no_entry_flag='-bnoentry'
11048       fi
11049
11050       # When large executables or shared objects are built, AIX ld can
11051       # have problems creating the table of contents.  If linking a library
11052       # or program results in "error TOC overflow" add -mminimal-toc to
11053       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11054       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11055
11056       archive_cmds=''
11057       hardcode_direct=yes
11058       hardcode_direct_absolute=yes
11059       hardcode_libdir_separator=':'
11060       link_all_deplibs=yes
11061       file_list_spec='${wl}-f,'
11062
11063       if test "$GCC" = yes; then
11064         case $host_os in aix4.[012]|aix4.[012].*)
11065         # We only want to do this on AIX 4.2 and lower, the check
11066         # below for broken collect2 doesn't work under 4.3+
11067           collect2name=`${CC} -print-prog-name=collect2`
11068           if test -f "$collect2name" &&
11069            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11070           then
11071           # We have reworked collect2
11072           :
11073           else
11074           # We have old collect2
11075           hardcode_direct=unsupported
11076           # It fails to find uninstalled libraries when the uninstalled
11077           # path is not listed in the libpath.  Setting hardcode_minus_L
11078           # to unsupported forces relinking
11079           hardcode_minus_L=yes
11080           hardcode_libdir_flag_spec='-L$libdir'
11081           hardcode_libdir_separator=
11082           fi
11083           ;;
11084         esac
11085         shared_flag='-shared'
11086         if test "$aix_use_runtimelinking" = yes; then
11087           shared_flag="$shared_flag "'${wl}-G'
11088         fi
11089       else
11090         # not using gcc
11091         if test "$host_cpu" = ia64; then
11092         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11093         # chokes on -Wl,-G. The following line is correct:
11094           shared_flag='-G'
11095         else
11096           if test "$aix_use_runtimelinking" = yes; then
11097             shared_flag='${wl}-G'
11098           else
11099             shared_flag='${wl}-bM:SRE'
11100           fi
11101         fi
11102       fi
11103
11104       export_dynamic_flag_spec='${wl}-bexpall'
11105       # It seems that -bexpall does not export symbols beginning with
11106       # underscore (_), so it is better to generate a list of symbols to export.
11107       always_export_symbols=yes
11108       if test "$aix_use_runtimelinking" = yes; then
11109         # Warning - without using the other runtime loading flags (-brtl),
11110         # -berok will link without error, but may produce a broken library.
11111         allow_undefined_flag='-berok'
11112         # Determine the default libpath from the value encoded in an
11113         # empty executable.
11114         if test "${lt_cv_aix_libpath+set}" = set; then
11115   aix_libpath=$lt_cv_aix_libpath
11116 else
11117   if ${lt_cv_aix_libpath_+:} false; then :
11118   $as_echo_n "(cached) " >&6
11119 else
11120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h.  */
11122
11123 int
11124 main ()
11125 {
11126
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 if ac_fn_c_try_link "$LINENO"; then :
11132
11133   lt_aix_libpath_sed='
11134       /Import File Strings/,/^$/ {
11135           /^0/ {
11136               s/^0  *\([^ ]*\) *$/\1/
11137               p
11138           }
11139       }'
11140   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141   # Check for a 64-bit object if we didn't find anything.
11142   if test -z "$lt_cv_aix_libpath_"; then
11143     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11144   fi
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147     conftest$ac_exeext conftest.$ac_ext
11148   if test -z "$lt_cv_aix_libpath_"; then
11149     lt_cv_aix_libpath_="/usr/lib:/lib"
11150   fi
11151
11152 fi
11153
11154   aix_libpath=$lt_cv_aix_libpath_
11155 fi
11156
11157         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11158         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11159       else
11160         if test "$host_cpu" = ia64; then
11161           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11162           allow_undefined_flag="-z nodefs"
11163           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"
11164         else
11165          # Determine the default libpath from the value encoded in an
11166          # empty executable.
11167          if test "${lt_cv_aix_libpath+set}" = set; then
11168   aix_libpath=$lt_cv_aix_libpath
11169 else
11170   if ${lt_cv_aix_libpath_+:} false; then :
11171   $as_echo_n "(cached) " >&6
11172 else
11173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h.  */
11175
11176 int
11177 main ()
11178 {
11179
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185
11186   lt_aix_libpath_sed='
11187       /Import File Strings/,/^$/ {
11188           /^0/ {
11189               s/^0  *\([^ ]*\) *$/\1/
11190               p
11191           }
11192       }'
11193   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194   # Check for a 64-bit object if we didn't find anything.
11195   if test -z "$lt_cv_aix_libpath_"; then
11196     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11197   fi
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200     conftest$ac_exeext conftest.$ac_ext
11201   if test -z "$lt_cv_aix_libpath_"; then
11202     lt_cv_aix_libpath_="/usr/lib:/lib"
11203   fi
11204
11205 fi
11206
11207   aix_libpath=$lt_cv_aix_libpath_
11208 fi
11209
11210          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11211           # Warning - without using the other run time loading flags,
11212           # -berok will link without error, but may produce a broken library.
11213           no_undefined_flag=' ${wl}-bernotok'
11214           allow_undefined_flag=' ${wl}-berok'
11215           if test "$with_gnu_ld" = yes; then
11216             # We only use this code for GNU lds that support --whole-archive.
11217             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11218           else
11219             # Exported symbols can be pulled into shared objects from archives
11220             whole_archive_flag_spec='$convenience'
11221           fi
11222           archive_cmds_need_lc=yes
11223           # This is similar to how AIX traditionally builds its shared libraries.
11224           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11225         fi
11226       fi
11227       ;;
11228
11229     amigaos*)
11230       case $host_cpu in
11231       powerpc)
11232             # see comment about AmigaOS4 .so support
11233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234             archive_expsym_cmds=''
11235         ;;
11236       m68k)
11237             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)'
11238             hardcode_libdir_flag_spec='-L$libdir'
11239             hardcode_minus_L=yes
11240         ;;
11241       esac
11242       ;;
11243
11244     bsdi[45]*)
11245       export_dynamic_flag_spec=-rdynamic
11246       ;;
11247
11248     cygwin* | mingw* | pw32* | cegcc*)
11249       # When not using gcc, we currently assume that we are using
11250       # Microsoft Visual C++.
11251       # hardcode_libdir_flag_spec is actually meaningless, as there is
11252       # no search path for DLLs.
11253       case $cc_basename in
11254       cl*)
11255         # Native MSVC
11256         hardcode_libdir_flag_spec=' '
11257         allow_undefined_flag=unsupported
11258         always_export_symbols=yes
11259         file_list_spec='@'
11260         # Tell ltmain to make .lib files, not .a files.
11261         libext=lib
11262         # Tell ltmain to make .dll files, not .so files.
11263         shrext_cmds=".dll"
11264         # FIXME: Setting linknames here is a bad hack.
11265         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11266         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11268           else
11269             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11270           fi~
11271           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11272           linknames='
11273         # The linker will not automatically build a static lib if we build a DLL.
11274         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11275         enable_shared_with_static_runtimes=yes
11276         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11277         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11278         # Don't use ranlib
11279         old_postinstall_cmds='chmod 644 $oldlib'
11280         postlink_cmds='lt_outputfile="@OUTPUT@"~
11281           lt_tool_outputfile="@TOOL_OUTPUT@"~
11282           case $lt_outputfile in
11283             *.exe|*.EXE) ;;
11284             *)
11285               lt_outputfile="$lt_outputfile.exe"
11286               lt_tool_outputfile="$lt_tool_outputfile.exe"
11287               ;;
11288           esac~
11289           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11290             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11291             $RM "$lt_outputfile.manifest";
11292           fi'
11293         ;;
11294       *)
11295         # Assume MSVC wrapper
11296         hardcode_libdir_flag_spec=' '
11297         allow_undefined_flag=unsupported
11298         # Tell ltmain to make .lib files, not .a files.
11299         libext=lib
11300         # Tell ltmain to make .dll files, not .so files.
11301         shrext_cmds=".dll"
11302         # FIXME: Setting linknames here is a bad hack.
11303         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11304         # The linker will automatically build a .lib file if we build a DLL.
11305         old_archive_from_new_cmds='true'
11306         # FIXME: Should let the user specify the lib program.
11307         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11308         enable_shared_with_static_runtimes=yes
11309         ;;
11310       esac
11311       ;;
11312
11313     darwin* | rhapsody*)
11314
11315
11316   archive_cmds_need_lc=no
11317   hardcode_direct=no
11318   hardcode_automatic=yes
11319   hardcode_shlibpath_var=unsupported
11320   if test "$lt_cv_ld_force_load" = "yes"; then
11321     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\"`'
11322
11323   else
11324     whole_archive_flag_spec=''
11325   fi
11326   link_all_deplibs=yes
11327   allow_undefined_flag="$_lt_dar_allow_undefined"
11328   case $cc_basename in
11329      ifort*) _lt_dar_can_shared=yes ;;
11330      *) _lt_dar_can_shared=$GCC ;;
11331   esac
11332   if test "$_lt_dar_can_shared" = "yes"; then
11333     output_verbose_link_cmd=func_echo_all
11334     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11335     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11336     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}"
11337     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}"
11338
11339   else
11340   ld_shlibs=no
11341   fi
11342
11343       ;;
11344
11345     dgux*)
11346       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347       hardcode_libdir_flag_spec='-L$libdir'
11348       hardcode_shlibpath_var=no
11349       ;;
11350
11351     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11352     # support.  Future versions do this automatically, but an explicit c++rt0.o
11353     # does not break anything, and helps significantly (at the cost of a little
11354     # extra space).
11355     freebsd2.2*)
11356       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11357       hardcode_libdir_flag_spec='-R$libdir'
11358       hardcode_direct=yes
11359       hardcode_shlibpath_var=no
11360       ;;
11361
11362     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11363     freebsd2.*)
11364       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11365       hardcode_direct=yes
11366       hardcode_minus_L=yes
11367       hardcode_shlibpath_var=no
11368       ;;
11369
11370     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11371     freebsd* | dragonfly*)
11372       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373       hardcode_libdir_flag_spec='-R$libdir'
11374       hardcode_direct=yes
11375       hardcode_shlibpath_var=no
11376       ;;
11377
11378     hpux9*)
11379       if test "$GCC" = yes; then
11380         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11381       else
11382         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11383       fi
11384       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11385       hardcode_libdir_separator=:
11386       hardcode_direct=yes
11387
11388       # hardcode_minus_L: Not really in the search PATH,
11389       # but as the default location of the library.
11390       hardcode_minus_L=yes
11391       export_dynamic_flag_spec='${wl}-E'
11392       ;;
11393
11394     hpux10*)
11395       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11396         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11397       else
11398         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11399       fi
11400       if test "$with_gnu_ld" = no; then
11401         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11402         hardcode_libdir_separator=:
11403         hardcode_direct=yes
11404         hardcode_direct_absolute=yes
11405         export_dynamic_flag_spec='${wl}-E'
11406         # hardcode_minus_L: Not really in the search PATH,
11407         # but as the default location of the library.
11408         hardcode_minus_L=yes
11409       fi
11410       ;;
11411
11412     hpux11*)
11413       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11414         case $host_cpu in
11415         hppa*64*)
11416           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11417           ;;
11418         ia64*)
11419           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11420           ;;
11421         *)
11422           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11423           ;;
11424         esac
11425       else
11426         case $host_cpu in
11427         hppa*64*)
11428           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11429           ;;
11430         ia64*)
11431           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11432           ;;
11433         *)
11434
11435           # Older versions of the 11.00 compiler do not understand -b yet
11436           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11437           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11438 $as_echo_n "checking if $CC understands -b... " >&6; }
11439 if ${lt_cv_prog_compiler__b+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   lt_cv_prog_compiler__b=no
11443    save_LDFLAGS="$LDFLAGS"
11444    LDFLAGS="$LDFLAGS -b"
11445    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11446    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11447      # The linker can only warn and ignore the option if not recognized
11448      # So say no if there are warnings
11449      if test -s conftest.err; then
11450        # Append any errors to the config.log.
11451        cat conftest.err 1>&5
11452        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11453        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11454        if diff conftest.exp conftest.er2 >/dev/null; then
11455          lt_cv_prog_compiler__b=yes
11456        fi
11457      else
11458        lt_cv_prog_compiler__b=yes
11459      fi
11460    fi
11461    $RM -r conftest*
11462    LDFLAGS="$save_LDFLAGS"
11463
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11466 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11467
11468 if test x"$lt_cv_prog_compiler__b" = xyes; then
11469     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11470 else
11471     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11472 fi
11473
11474           ;;
11475         esac
11476       fi
11477       if test "$with_gnu_ld" = no; then
11478         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11479         hardcode_libdir_separator=:
11480
11481         case $host_cpu in
11482         hppa*64*|ia64*)
11483           hardcode_direct=no
11484           hardcode_shlibpath_var=no
11485           ;;
11486         *)
11487           hardcode_direct=yes
11488           hardcode_direct_absolute=yes
11489           export_dynamic_flag_spec='${wl}-E'
11490
11491           # hardcode_minus_L: Not really in the search PATH,
11492           # but as the default location of the library.
11493           hardcode_minus_L=yes
11494           ;;
11495         esac
11496       fi
11497       ;;
11498
11499     irix5* | irix6* | nonstopux*)
11500       if test "$GCC" = yes; then
11501         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'
11502         # Try to use the -exported_symbol ld option, if it does not
11503         # work, assume that -exports_file does not work either and
11504         # implicitly export all symbols.
11505         # This should be the same for all languages, so no per-tag cache variable.
11506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11507 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11508 if ${lt_cv_irix_exported_symbol+:} false; then :
11509   $as_echo_n "(cached) " >&6
11510 else
11511   save_LDFLAGS="$LDFLAGS"
11512            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11513            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h.  */
11515 int foo (void) { return 0; }
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518   lt_cv_irix_exported_symbol=yes
11519 else
11520   lt_cv_irix_exported_symbol=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext \
11523     conftest$ac_exeext conftest.$ac_ext
11524            LDFLAGS="$save_LDFLAGS"
11525 fi
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11527 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11528         if test "$lt_cv_irix_exported_symbol" = yes; then
11529           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'
11530         fi
11531       else
11532         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'
11533         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'
11534       fi
11535       archive_cmds_need_lc='no'
11536       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11537       hardcode_libdir_separator=:
11538       inherit_rpath=yes
11539       link_all_deplibs=yes
11540       ;;
11541
11542     netbsd*)
11543       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11544         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11545       else
11546         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11547       fi
11548       hardcode_libdir_flag_spec='-R$libdir'
11549       hardcode_direct=yes
11550       hardcode_shlibpath_var=no
11551       ;;
11552
11553     newsos6)
11554       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555       hardcode_direct=yes
11556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11557       hardcode_libdir_separator=:
11558       hardcode_shlibpath_var=no
11559       ;;
11560
11561     *nto* | *qnx*)
11562       ;;
11563
11564     openbsd*)
11565       if test -f /usr/libexec/ld.so; then
11566         hardcode_direct=yes
11567         hardcode_shlibpath_var=no
11568         hardcode_direct_absolute=yes
11569         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11571           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11572           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11573           export_dynamic_flag_spec='${wl}-E'
11574         else
11575           case $host_os in
11576            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11577              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578              hardcode_libdir_flag_spec='-R$libdir'
11579              ;;
11580            *)
11581              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11582              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11583              ;;
11584           esac
11585         fi
11586       else
11587         ld_shlibs=no
11588       fi
11589       ;;
11590
11591     os2*)
11592       hardcode_libdir_flag_spec='-L$libdir'
11593       hardcode_minus_L=yes
11594       allow_undefined_flag=unsupported
11595       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11596       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11597       ;;
11598
11599     osf3*)
11600       if test "$GCC" = yes; then
11601         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11602         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'
11603       else
11604         allow_undefined_flag=' -expect_unresolved \*'
11605         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'
11606       fi
11607       archive_cmds_need_lc='no'
11608       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11609       hardcode_libdir_separator=:
11610       ;;
11611
11612     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11613       if test "$GCC" = yes; then
11614         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11615         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'
11616         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11617       else
11618         allow_undefined_flag=' -expect_unresolved \*'
11619         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'
11620         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~
11621         $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'
11622
11623         # Both c and cxx compiler support -rpath directly
11624         hardcode_libdir_flag_spec='-rpath $libdir'
11625       fi
11626       archive_cmds_need_lc='no'
11627       hardcode_libdir_separator=:
11628       ;;
11629
11630     solaris*)
11631       no_undefined_flag=' -z defs'
11632       if test "$GCC" = yes; then
11633         wlarc='${wl}'
11634         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11636           $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'
11637       else
11638         case `$CC -V 2>&1` in
11639         *"Compilers 5.0"*)
11640           wlarc=''
11641           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11644           ;;
11645         *)
11646           wlarc='${wl}'
11647           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11648           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11649           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11650           ;;
11651         esac
11652       fi
11653       hardcode_libdir_flag_spec='-R$libdir'
11654       hardcode_shlibpath_var=no
11655       case $host_os in
11656       solaris2.[0-5] | solaris2.[0-5].*) ;;
11657       *)
11658         # The compiler driver will combine and reorder linker options,
11659         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11660         # but is careful enough not to reorder.
11661         # Supported since Solaris 2.6 (maybe 2.5.1?)
11662         if test "$GCC" = yes; then
11663           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11664         else
11665           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11666         fi
11667         ;;
11668       esac
11669       link_all_deplibs=yes
11670       ;;
11671
11672     sunos4*)
11673       if test "x$host_vendor" = xsequent; then
11674         # Use $CC to link under sequent, because it throws in some extra .o
11675         # files that make .init and .fini sections work.
11676         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11677       else
11678         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11679       fi
11680       hardcode_libdir_flag_spec='-L$libdir'
11681       hardcode_direct=yes
11682       hardcode_minus_L=yes
11683       hardcode_shlibpath_var=no
11684       ;;
11685
11686     sysv4)
11687       case $host_vendor in
11688         sni)
11689           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11690           hardcode_direct=yes # is this really true???
11691         ;;
11692         siemens)
11693           ## LD is ld it makes a PLAMLIB
11694           ## CC just makes a GrossModule.
11695           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11696           reload_cmds='$CC -r -o $output$reload_objs'
11697           hardcode_direct=no
11698         ;;
11699         motorola)
11700           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11701           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11702         ;;
11703       esac
11704       runpath_var='LD_RUN_PATH'
11705       hardcode_shlibpath_var=no
11706       ;;
11707
11708     sysv4.3*)
11709       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11710       hardcode_shlibpath_var=no
11711       export_dynamic_flag_spec='-Bexport'
11712       ;;
11713
11714     sysv4*MP*)
11715       if test -d /usr/nec; then
11716         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11717         hardcode_shlibpath_var=no
11718         runpath_var=LD_RUN_PATH
11719         hardcode_runpath_var=yes
11720         ld_shlibs=yes
11721       fi
11722       ;;
11723
11724     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11725       no_undefined_flag='${wl}-z,text'
11726       archive_cmds_need_lc=no
11727       hardcode_shlibpath_var=no
11728       runpath_var='LD_RUN_PATH'
11729
11730       if test "$GCC" = yes; then
11731         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11732         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733       else
11734         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11736       fi
11737       ;;
11738
11739     sysv5* | sco3.2v5* | sco5v6*)
11740       # Note: We can NOT use -z defs as we might desire, because we do not
11741       # link with -lc, and that would cause any symbols used from libc to
11742       # always be unresolved, which means just about no library would
11743       # ever link correctly.  If we're not using GNU ld we use -z text
11744       # though, which does catch some bad symbols but isn't as heavy-handed
11745       # as -z defs.
11746       no_undefined_flag='${wl}-z,text'
11747       allow_undefined_flag='${wl}-z,nodefs'
11748       archive_cmds_need_lc=no
11749       hardcode_shlibpath_var=no
11750       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11751       hardcode_libdir_separator=':'
11752       link_all_deplibs=yes
11753       export_dynamic_flag_spec='${wl}-Bexport'
11754       runpath_var='LD_RUN_PATH'
11755
11756       if test "$GCC" = yes; then
11757         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759       else
11760         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762       fi
11763       ;;
11764
11765     uts4*)
11766       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11767       hardcode_libdir_flag_spec='-L$libdir'
11768       hardcode_shlibpath_var=no
11769       ;;
11770
11771     *)
11772       ld_shlibs=no
11773       ;;
11774     esac
11775
11776     if test x$host_vendor = xsni; then
11777       case $host in
11778       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11779         export_dynamic_flag_spec='${wl}-Blargedynsym'
11780         ;;
11781       esac
11782     fi
11783   fi
11784
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11786 $as_echo "$ld_shlibs" >&6; }
11787 test "$ld_shlibs" = no && can_build_shared=no
11788
11789 with_gnu_ld=$with_gnu_ld
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805 #
11806 # Do we need to explicitly link libc?
11807 #
11808 case "x$archive_cmds_need_lc" in
11809 x|xyes)
11810   # Assume -lc should be added
11811   archive_cmds_need_lc=yes
11812
11813   if test "$enable_shared" = yes && test "$GCC" = yes; then
11814     case $archive_cmds in
11815     *'~'*)
11816       # FIXME: we may have to deal with multi-command sequences.
11817       ;;
11818     '$CC '*)
11819       # Test whether the compiler implicitly links with -lc since on some
11820       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11821       # to ld, don't add -lc before -lgcc.
11822       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11823 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11824 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   $RM conftest*
11828         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11829
11830         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11831   (eval $ac_compile) 2>&5
11832   ac_status=$?
11833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834   test $ac_status = 0; } 2>conftest.err; then
11835           soname=conftest
11836           lib=conftest
11837           libobjs=conftest.$ac_objext
11838           deplibs=
11839           wl=$lt_prog_compiler_wl
11840           pic_flag=$lt_prog_compiler_pic
11841           compiler_flags=-v
11842           linker_flags=-v
11843           verstring=
11844           output_objdir=.
11845           libname=conftest
11846           lt_save_allow_undefined_flag=$allow_undefined_flag
11847           allow_undefined_flag=
11848           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11849   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11850   ac_status=$?
11851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11852   test $ac_status = 0; }
11853           then
11854             lt_cv_archive_cmds_need_lc=no
11855           else
11856             lt_cv_archive_cmds_need_lc=yes
11857           fi
11858           allow_undefined_flag=$lt_save_allow_undefined_flag
11859         else
11860           cat conftest.err 1>&5
11861         fi
11862         $RM conftest*
11863
11864 fi
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11866 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11867       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11868       ;;
11869     esac
11870   fi
11871   ;;
11872 esac
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12027
12028 if test "$GCC" = yes; then
12029   case $host_os in
12030     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12031     *) lt_awk_arg="/^libraries:/" ;;
12032   esac
12033   case $host_os in
12034     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12035     *) lt_sed_strip_eq="s,=/,/,g" ;;
12036   esac
12037   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12038   case $lt_search_path_spec in
12039   *\;*)
12040     # if the path contains ";" then we assume it to be the separator
12041     # otherwise default to the standard path separator (i.e. ":") - it is
12042     # assumed that no part of a normal pathname contains ";" but that should
12043     # okay in the real world where ";" in dirpaths is itself problematic.
12044     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12045     ;;
12046   *)
12047     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12048     ;;
12049   esac
12050   # Ok, now we have the path, separated by spaces, we can step through it
12051   # and add multilib dir if necessary.
12052   lt_tmp_lt_search_path_spec=
12053   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12054   for lt_sys_path in $lt_search_path_spec; do
12055     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12056       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12057     else
12058       test -d "$lt_sys_path" && \
12059         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12060     fi
12061   done
12062   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12063 BEGIN {RS=" "; FS="/|\n";} {
12064   lt_foo="";
12065   lt_count=0;
12066   for (lt_i = NF; lt_i > 0; lt_i--) {
12067     if ($lt_i != "" && $lt_i != ".") {
12068       if ($lt_i == "..") {
12069         lt_count++;
12070       } else {
12071         if (lt_count == 0) {
12072           lt_foo="/" $lt_i lt_foo;
12073         } else {
12074           lt_count--;
12075         }
12076       }
12077     }
12078   }
12079   if (lt_foo != "") { lt_freq[lt_foo]++; }
12080   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12081 }'`
12082   # AWK program above erroneously prepends '/' to C:/dos/paths
12083   # for these hosts.
12084   case $host_os in
12085     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12086       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12087   esac
12088   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12089 else
12090   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12091 fi
12092 library_names_spec=
12093 libname_spec='lib$name'
12094 soname_spec=
12095 shrext_cmds=".so"
12096 postinstall_cmds=
12097 postuninstall_cmds=
12098 finish_cmds=
12099 finish_eval=
12100 shlibpath_var=
12101 shlibpath_overrides_runpath=unknown
12102 version_type=none
12103 dynamic_linker="$host_os ld.so"
12104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12105 need_lib_prefix=unknown
12106 hardcode_into_libs=no
12107
12108 # when you set need_version to no, make sure it does not cause -set_version
12109 # flags to be left without arguments
12110 need_version=unknown
12111
12112 case $host_os in
12113 aix3*)
12114   version_type=linux # correct to gnu/linux during the next big refactor
12115   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12116   shlibpath_var=LIBPATH
12117
12118   # AIX 3 has no versioning support, so we append a major version to the name.
12119   soname_spec='${libname}${release}${shared_ext}$major'
12120   ;;
12121
12122 aix[4-9]*)
12123   version_type=linux # correct to gnu/linux during the next big refactor
12124   need_lib_prefix=no
12125   need_version=no
12126   hardcode_into_libs=yes
12127   if test "$host_cpu" = ia64; then
12128     # AIX 5 supports IA64
12129     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12130     shlibpath_var=LD_LIBRARY_PATH
12131   else
12132     # With GCC up to 2.95.x, collect2 would create an import file
12133     # for dependence libraries.  The import file would start with
12134     # the line `#! .'.  This would cause the generated library to
12135     # depend on `.', always an invalid library.  This was fixed in
12136     # development snapshots of GCC prior to 3.0.
12137     case $host_os in
12138       aix4 | aix4.[01] | aix4.[01].*)
12139       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12140            echo ' yes '
12141            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12142         :
12143       else
12144         can_build_shared=no
12145       fi
12146       ;;
12147     esac
12148     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12149     # soname into executable. Probably we can add versioning support to
12150     # collect2, so additional links can be useful in future.
12151     if test "$aix_use_runtimelinking" = yes; then
12152       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12153       # instead of lib<name>.a to let people know that these are not
12154       # typical AIX shared libraries.
12155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156     else
12157       # We preserve .a as extension for shared libraries through AIX4.2
12158       # and later when we are not doing run time linking.
12159       library_names_spec='${libname}${release}.a $libname.a'
12160       soname_spec='${libname}${release}${shared_ext}$major'
12161     fi
12162     shlibpath_var=LIBPATH
12163   fi
12164   ;;
12165
12166 amigaos*)
12167   case $host_cpu in
12168   powerpc)
12169     # Since July 2007 AmigaOS4 officially supports .so libraries.
12170     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172     ;;
12173   m68k)
12174     library_names_spec='$libname.ixlibrary $libname.a'
12175     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12176     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12177     ;;
12178   esac
12179   ;;
12180
12181 beos*)
12182   library_names_spec='${libname}${shared_ext}'
12183   dynamic_linker="$host_os ld.so"
12184   shlibpath_var=LIBRARY_PATH
12185   ;;
12186
12187 bsdi[45]*)
12188   version_type=linux # correct to gnu/linux during the next big refactor
12189   need_version=no
12190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191   soname_spec='${libname}${release}${shared_ext}$major'
12192   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12193   shlibpath_var=LD_LIBRARY_PATH
12194   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12195   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12196   # the default ld.so.conf also contains /usr/contrib/lib and
12197   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12198   # libtool to hard-code these into programs
12199   ;;
12200
12201 cygwin* | mingw* | pw32* | cegcc*)
12202   version_type=windows
12203   shrext_cmds=".dll"
12204   need_version=no
12205   need_lib_prefix=no
12206
12207   case $GCC,$cc_basename in
12208   yes,*)
12209     # gcc
12210     library_names_spec='$libname.dll.a'
12211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12212     postinstall_cmds='base_file=`basename \${file}`~
12213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12214       dldir=$destdir/`dirname \$dlpath`~
12215       test -d \$dldir || mkdir -p \$dldir~
12216       $install_prog $dir/$dlname \$dldir/$dlname~
12217       chmod a+x \$dldir/$dlname~
12218       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12219         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12220       fi'
12221     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12222       dlpath=$dir/\$dldll~
12223        $RM \$dlpath'
12224     shlibpath_overrides_runpath=yes
12225
12226     case $host_os in
12227     cygwin*)
12228       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12229       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12230
12231       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12232       ;;
12233     mingw* | cegcc*)
12234       # MinGW DLLs use traditional 'lib' prefix
12235       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12236       ;;
12237     pw32*)
12238       # pw32 DLLs use 'pw' prefix rather than 'lib'
12239       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12240       ;;
12241     esac
12242     dynamic_linker='Win32 ld.exe'
12243     ;;
12244
12245   *,cl*)
12246     # Native MSVC
12247     libname_spec='$name'
12248     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12249     library_names_spec='${libname}.dll.lib'
12250
12251     case $build_os in
12252     mingw*)
12253       sys_lib_search_path_spec=
12254       lt_save_ifs=$IFS
12255       IFS=';'
12256       for lt_path in $LIB
12257       do
12258         IFS=$lt_save_ifs
12259         # Let DOS variable expansion print the short 8.3 style file name.
12260         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12261         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12262       done
12263       IFS=$lt_save_ifs
12264       # Convert to MSYS style.
12265       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12266       ;;
12267     cygwin*)
12268       # Convert to unix form, then to dos form, then back to unix form
12269       # but this time dos style (no spaces!) so that the unix form looks
12270       # like /cygdrive/c/PROGRA~1:/cygdr...
12271       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12272       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12273       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12274       ;;
12275     *)
12276       sys_lib_search_path_spec="$LIB"
12277       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12278         # It is most probably a Windows format PATH.
12279         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12280       else
12281         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12282       fi
12283       # FIXME: find the short name or the path components, as spaces are
12284       # common. (e.g. "Program Files" -> "PROGRA~1")
12285       ;;
12286     esac
12287
12288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12289     postinstall_cmds='base_file=`basename \${file}`~
12290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12291       dldir=$destdir/`dirname \$dlpath`~
12292       test -d \$dldir || mkdir -p \$dldir~
12293       $install_prog $dir/$dlname \$dldir/$dlname'
12294     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12295       dlpath=$dir/\$dldll~
12296        $RM \$dlpath'
12297     shlibpath_overrides_runpath=yes
12298     dynamic_linker='Win32 link.exe'
12299     ;;
12300
12301   *)
12302     # Assume MSVC wrapper
12303     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12304     dynamic_linker='Win32 ld.exe'
12305     ;;
12306   esac
12307   # FIXME: first we should search . and the directory the executable is in
12308   shlibpath_var=PATH
12309   ;;
12310
12311 darwin* | rhapsody*)
12312   dynamic_linker="$host_os dyld"
12313   version_type=darwin
12314   need_lib_prefix=no
12315   need_version=no
12316   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12317   soname_spec='${libname}${release}${major}$shared_ext'
12318   shlibpath_overrides_runpath=yes
12319   shlibpath_var=DYLD_LIBRARY_PATH
12320   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12321
12322   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12323   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12324   ;;
12325
12326 dgux*)
12327   version_type=linux # correct to gnu/linux during the next big refactor
12328   need_lib_prefix=no
12329   need_version=no
12330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12331   soname_spec='${libname}${release}${shared_ext}$major'
12332   shlibpath_var=LD_LIBRARY_PATH
12333   ;;
12334
12335 freebsd* | dragonfly*)
12336   # DragonFly does not have aout.  When/if they implement a new
12337   # versioning mechanism, adjust this.
12338   if test -x /usr/bin/objformat; then
12339     objformat=`/usr/bin/objformat`
12340   else
12341     case $host_os in
12342     freebsd[23].*) objformat=aout ;;
12343     *) objformat=elf ;;
12344     esac
12345   fi
12346   version_type=freebsd-$objformat
12347   case $version_type in
12348     freebsd-elf*)
12349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12350       need_version=no
12351       need_lib_prefix=no
12352       ;;
12353     freebsd-*)
12354       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12355       need_version=yes
12356       ;;
12357   esac
12358   shlibpath_var=LD_LIBRARY_PATH
12359   case $host_os in
12360   freebsd2.*)
12361     shlibpath_overrides_runpath=yes
12362     ;;
12363   freebsd3.[01]* | freebsdelf3.[01]*)
12364     shlibpath_overrides_runpath=yes
12365     hardcode_into_libs=yes
12366     ;;
12367   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12368   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12369     shlibpath_overrides_runpath=no
12370     hardcode_into_libs=yes
12371     ;;
12372   *) # from 4.6 on, and DragonFly
12373     shlibpath_overrides_runpath=yes
12374     hardcode_into_libs=yes
12375     ;;
12376   esac
12377   ;;
12378
12379 gnu*)
12380   version_type=linux # correct to gnu/linux during the next big refactor
12381   need_lib_prefix=no
12382   need_version=no
12383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12384   soname_spec='${libname}${release}${shared_ext}$major'
12385   shlibpath_var=LD_LIBRARY_PATH
12386   shlibpath_overrides_runpath=no
12387   hardcode_into_libs=yes
12388   ;;
12389
12390 haiku*)
12391   version_type=linux # correct to gnu/linux during the next big refactor
12392   need_lib_prefix=no
12393   need_version=no
12394   dynamic_linker="$host_os runtime_loader"
12395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12396   soname_spec='${libname}${release}${shared_ext}$major'
12397   shlibpath_var=LIBRARY_PATH
12398   shlibpath_overrides_runpath=yes
12399   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12400   hardcode_into_libs=yes
12401   ;;
12402
12403 hpux9* | hpux10* | hpux11*)
12404   # Give a soname corresponding to the major version so that dld.sl refuses to
12405   # link against other versions.
12406   version_type=sunos
12407   need_lib_prefix=no
12408   need_version=no
12409   case $host_cpu in
12410   ia64*)
12411     shrext_cmds='.so'
12412     hardcode_into_libs=yes
12413     dynamic_linker="$host_os dld.so"
12414     shlibpath_var=LD_LIBRARY_PATH
12415     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417     soname_spec='${libname}${release}${shared_ext}$major'
12418     if test "X$HPUX_IA64_MODE" = X32; then
12419       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12420     else
12421       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12422     fi
12423     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424     ;;
12425   hppa*64*)
12426     shrext_cmds='.sl'
12427     hardcode_into_libs=yes
12428     dynamic_linker="$host_os dld.sl"
12429     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12430     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432     soname_spec='${libname}${release}${shared_ext}$major'
12433     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12434     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12435     ;;
12436   *)
12437     shrext_cmds='.sl'
12438     dynamic_linker="$host_os dld.sl"
12439     shlibpath_var=SHLIB_PATH
12440     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442     soname_spec='${libname}${release}${shared_ext}$major'
12443     ;;
12444   esac
12445   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12446   postinstall_cmds='chmod 555 $lib'
12447   # or fails outright, so override atomically:
12448   install_override_mode=555
12449   ;;
12450
12451 interix[3-9]*)
12452   version_type=linux # correct to gnu/linux during the next big refactor
12453   need_lib_prefix=no
12454   need_version=no
12455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12456   soname_spec='${libname}${release}${shared_ext}$major'
12457   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12458   shlibpath_var=LD_LIBRARY_PATH
12459   shlibpath_overrides_runpath=no
12460   hardcode_into_libs=yes
12461   ;;
12462
12463 irix5* | irix6* | nonstopux*)
12464   case $host_os in
12465     nonstopux*) version_type=nonstopux ;;
12466     *)
12467         if test "$lt_cv_prog_gnu_ld" = yes; then
12468                 version_type=linux # correct to gnu/linux during the next big refactor
12469         else
12470                 version_type=irix
12471         fi ;;
12472   esac
12473   need_lib_prefix=no
12474   need_version=no
12475   soname_spec='${libname}${release}${shared_ext}$major'
12476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12477   case $host_os in
12478   irix5* | nonstopux*)
12479     libsuff= shlibsuff=
12480     ;;
12481   *)
12482     case $LD in # libtool.m4 will add one of these switches to LD
12483     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12484       libsuff= shlibsuff= libmagic=32-bit;;
12485     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12486       libsuff=32 shlibsuff=N32 libmagic=N32;;
12487     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12488       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12489     *) libsuff= shlibsuff= libmagic=never-match;;
12490     esac
12491     ;;
12492   esac
12493   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12494   shlibpath_overrides_runpath=no
12495   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12496   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12497   hardcode_into_libs=yes
12498   ;;
12499
12500 # No shared lib support for Linux oldld, aout, or coff.
12501 linux*oldld* | linux*aout* | linux*coff*)
12502   dynamic_linker=no
12503   ;;
12504
12505 # This must be glibc/ELF.
12506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12507   version_type=linux # correct to gnu/linux during the next big refactor
12508   need_lib_prefix=no
12509   need_version=no
12510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511   soname_spec='${libname}${release}${shared_ext}$major'
12512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12513   shlibpath_var=LD_LIBRARY_PATH
12514   shlibpath_overrides_runpath=no
12515
12516   # Some binutils ld are patched to set DT_RUNPATH
12517   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12518   $as_echo_n "(cached) " >&6
12519 else
12520   lt_cv_shlibpath_overrides_runpath=no
12521     save_LDFLAGS=$LDFLAGS
12522     save_libdir=$libdir
12523     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12524          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h.  */
12527
12528 int
12529 main ()
12530 {
12531
12532   ;
12533   return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"; then :
12537   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12538   lt_cv_shlibpath_overrides_runpath=yes
12539 fi
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext \
12542     conftest$ac_exeext conftest.$ac_ext
12543     LDFLAGS=$save_LDFLAGS
12544     libdir=$save_libdir
12545
12546 fi
12547
12548   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12549
12550   # This implies no fast_install, which is unacceptable.
12551   # Some rework will be needed to allow for fast_install
12552   # before this can be enabled.
12553   hardcode_into_libs=yes
12554
12555   # Append ld.so.conf contents to the search path
12556   if test -f /etc/ld.so.conf; then
12557     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' ' '`
12558     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12559   fi
12560
12561   # We used to test for /lib/ld.so.1 and disable shared libraries on
12562   # powerpc, because MkLinux only supported shared libraries with the
12563   # GNU dynamic linker.  Since this was broken with cross compilers,
12564   # most powerpc-linux boxes support dynamic linking these days and
12565   # people can always --disable-shared, the test was removed, and we
12566   # assume the GNU/Linux dynamic linker is in use.
12567   dynamic_linker='GNU/Linux ld.so'
12568   ;;
12569
12570 netbsd*)
12571   version_type=sunos
12572   need_lib_prefix=no
12573   need_version=no
12574   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12576     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12577     dynamic_linker='NetBSD (a.out) ld.so'
12578   else
12579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12580     soname_spec='${libname}${release}${shared_ext}$major'
12581     dynamic_linker='NetBSD ld.elf_so'
12582   fi
12583   shlibpath_var=LD_LIBRARY_PATH
12584   shlibpath_overrides_runpath=yes
12585   hardcode_into_libs=yes
12586   ;;
12587
12588 newsos6)
12589   version_type=linux # correct to gnu/linux during the next big refactor
12590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591   shlibpath_var=LD_LIBRARY_PATH
12592   shlibpath_overrides_runpath=yes
12593   ;;
12594
12595 *nto* | *qnx*)
12596   version_type=qnx
12597   need_lib_prefix=no
12598   need_version=no
12599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600   soname_spec='${libname}${release}${shared_ext}$major'
12601   shlibpath_var=LD_LIBRARY_PATH
12602   shlibpath_overrides_runpath=no
12603   hardcode_into_libs=yes
12604   dynamic_linker='ldqnx.so'
12605   ;;
12606
12607 openbsd*)
12608   version_type=sunos
12609   sys_lib_dlsearch_path_spec="/usr/lib"
12610   need_lib_prefix=no
12611   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12612   case $host_os in
12613     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12614     *)                          need_version=no  ;;
12615   esac
12616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12617   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12618   shlibpath_var=LD_LIBRARY_PATH
12619   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12620     case $host_os in
12621       openbsd2.[89] | openbsd2.[89].*)
12622         shlibpath_overrides_runpath=no
12623         ;;
12624       *)
12625         shlibpath_overrides_runpath=yes
12626         ;;
12627       esac
12628   else
12629     shlibpath_overrides_runpath=yes
12630   fi
12631   ;;
12632
12633 os2*)
12634   libname_spec='$name'
12635   shrext_cmds=".dll"
12636   need_lib_prefix=no
12637   library_names_spec='$libname${shared_ext} $libname.a'
12638   dynamic_linker='OS/2 ld.exe'
12639   shlibpath_var=LIBPATH
12640   ;;
12641
12642 osf3* | osf4* | osf5*)
12643   version_type=osf
12644   need_lib_prefix=no
12645   need_version=no
12646   soname_spec='${libname}${release}${shared_ext}$major'
12647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12648   shlibpath_var=LD_LIBRARY_PATH
12649   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12650   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12651   ;;
12652
12653 rdos*)
12654   dynamic_linker=no
12655   ;;
12656
12657 solaris*)
12658   version_type=linux # correct to gnu/linux during the next big refactor
12659   need_lib_prefix=no
12660   need_version=no
12661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662   soname_spec='${libname}${release}${shared_ext}$major'
12663   shlibpath_var=LD_LIBRARY_PATH
12664   shlibpath_overrides_runpath=yes
12665   hardcode_into_libs=yes
12666   # ldd complains unless libraries are executable
12667   postinstall_cmds='chmod +x $lib'
12668   ;;
12669
12670 sunos4*)
12671   version_type=sunos
12672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12673   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12674   shlibpath_var=LD_LIBRARY_PATH
12675   shlibpath_overrides_runpath=yes
12676   if test "$with_gnu_ld" = yes; then
12677     need_lib_prefix=no
12678   fi
12679   need_version=yes
12680   ;;
12681
12682 sysv4 | sysv4.3*)
12683   version_type=linux # correct to gnu/linux during the next big refactor
12684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685   soname_spec='${libname}${release}${shared_ext}$major'
12686   shlibpath_var=LD_LIBRARY_PATH
12687   case $host_vendor in
12688     sni)
12689       shlibpath_overrides_runpath=no
12690       need_lib_prefix=no
12691       runpath_var=LD_RUN_PATH
12692       ;;
12693     siemens)
12694       need_lib_prefix=no
12695       ;;
12696     motorola)
12697       need_lib_prefix=no
12698       need_version=no
12699       shlibpath_overrides_runpath=no
12700       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12701       ;;
12702   esac
12703   ;;
12704
12705 sysv4*MP*)
12706   if test -d /usr/nec ;then
12707     version_type=linux # correct to gnu/linux during the next big refactor
12708     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12709     soname_spec='$libname${shared_ext}.$major'
12710     shlibpath_var=LD_LIBRARY_PATH
12711   fi
12712   ;;
12713
12714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12715   version_type=freebsd-elf
12716   need_lib_prefix=no
12717   need_version=no
12718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12719   soname_spec='${libname}${release}${shared_ext}$major'
12720   shlibpath_var=LD_LIBRARY_PATH
12721   shlibpath_overrides_runpath=yes
12722   hardcode_into_libs=yes
12723   if test "$with_gnu_ld" = yes; then
12724     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12725   else
12726     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12727     case $host_os in
12728       sco3.2v5*)
12729         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12730         ;;
12731     esac
12732   fi
12733   sys_lib_dlsearch_path_spec='/usr/lib'
12734   ;;
12735
12736 tpf*)
12737   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12738   version_type=linux # correct to gnu/linux during the next big refactor
12739   need_lib_prefix=no
12740   need_version=no
12741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742   shlibpath_var=LD_LIBRARY_PATH
12743   shlibpath_overrides_runpath=no
12744   hardcode_into_libs=yes
12745   ;;
12746
12747 uts4*)
12748   version_type=linux # correct to gnu/linux during the next big refactor
12749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12750   soname_spec='${libname}${release}${shared_ext}$major'
12751   shlibpath_var=LD_LIBRARY_PATH
12752   ;;
12753
12754 *)
12755   dynamic_linker=no
12756   ;;
12757 esac
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12759 $as_echo "$dynamic_linker" >&6; }
12760 test "$dynamic_linker" = no && can_build_shared=no
12761
12762 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12763 if test "$GCC" = yes; then
12764   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12765 fi
12766
12767 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12768   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12769 fi
12770 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12771   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12772 fi
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
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12866 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12867 hardcode_action=
12868 if test -n "$hardcode_libdir_flag_spec" ||
12869    test -n "$runpath_var" ||
12870    test "X$hardcode_automatic" = "Xyes" ; then
12871
12872   # We can hardcode non-existent directories.
12873   if test "$hardcode_direct" != no &&
12874      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12875      # have to relink, otherwise we might link with an installed library
12876      # when we should be linking with a yet-to-be-installed one
12877      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12878      test "$hardcode_minus_L" != no; then
12879     # Linking always hardcodes the temporary library directory.
12880     hardcode_action=relink
12881   else
12882     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12883     hardcode_action=immediate
12884   fi
12885 else
12886   # We cannot hardcode anything, or else we can only hardcode existing
12887   # directories.
12888   hardcode_action=unsupported
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12891 $as_echo "$hardcode_action" >&6; }
12892
12893 if test "$hardcode_action" = relink ||
12894    test "$inherit_rpath" = yes; then
12895   # Fast installation is not supported
12896   enable_fast_install=no
12897 elif test "$shlibpath_overrides_runpath" = yes ||
12898      test "$enable_shared" = no; then
12899   # Fast installation is not necessary
12900   enable_fast_install=needless
12901 fi
12902
12903
12904
12905
12906
12907
12908   if test "x$enable_dlopen" != xyes; then
12909   enable_dlopen=unknown
12910   enable_dlopen_self=unknown
12911   enable_dlopen_self_static=unknown
12912 else
12913   lt_cv_dlopen=no
12914   lt_cv_dlopen_libs=
12915
12916   case $host_os in
12917   beos*)
12918     lt_cv_dlopen="load_add_on"
12919     lt_cv_dlopen_libs=
12920     lt_cv_dlopen_self=yes
12921     ;;
12922
12923   mingw* | pw32* | cegcc*)
12924     lt_cv_dlopen="LoadLibrary"
12925     lt_cv_dlopen_libs=
12926     ;;
12927
12928   cygwin*)
12929     lt_cv_dlopen="dlopen"
12930     lt_cv_dlopen_libs=
12931     ;;
12932
12933   darwin*)
12934   # if libdl is installed we need to link against it
12935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12937 if ${ac_cv_lib_dl_dlopen+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-ldl  $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h.  */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946    Use char because int might match the return type of a GCC
12947    builtin and then its argument prototype would still apply.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char dlopen ();
12952 int
12953 main ()
12954 {
12955 return dlopen ();
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961   ac_cv_lib_dl_dlopen=yes
12962 else
12963   ac_cv_lib_dl_dlopen=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966     conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12973 else
12974
12975     lt_cv_dlopen="dyld"
12976     lt_cv_dlopen_libs=
12977     lt_cv_dlopen_self=yes
12978
12979 fi
12980
12981     ;;
12982
12983   *)
12984     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12985 if test "x$ac_cv_func_shl_load" = xyes; then :
12986   lt_cv_dlopen="shl_load"
12987 else
12988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12989 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12990 if ${ac_cv_lib_dld_shl_load+:} false; then :
12991   $as_echo_n "(cached) " >&6
12992 else
12993   ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-ldld  $LIBS"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997
12998 /* Override any GCC internal prototype to avoid an error.
12999    Use char because int might match the return type of a GCC
13000    builtin and then its argument prototype would still apply.  */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char shl_load ();
13005 int
13006 main ()
13007 {
13008 return shl_load ();
13009   ;
13010   return 0;
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"; then :
13014   ac_cv_lib_dld_shl_load=yes
13015 else
13016   ac_cv_lib_dld_shl_load=no
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext \
13019     conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13021 fi
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13023 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13024 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13025   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13026 else
13027   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13028 if test "x$ac_cv_func_dlopen" = xyes; then :
13029   lt_cv_dlopen="dlopen"
13030 else
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13032 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13033 if ${ac_cv_lib_dl_dlopen+:} false; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   ac_check_lib_save_LIBS=$LIBS
13037 LIBS="-ldl  $LIBS"
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h.  */
13040
13041 /* Override any GCC internal prototype to avoid an error.
13042    Use char because int might match the return type of a GCC
13043    builtin and then its argument prototype would still apply.  */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 char dlopen ();
13048 int
13049 main ()
13050 {
13051 return dlopen ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057   ac_cv_lib_dl_dlopen=yes
13058 else
13059   ac_cv_lib_dl_dlopen=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext \
13062     conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13066 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13067 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13068   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13069 else
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13071 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13072 if ${ac_cv_lib_svld_dlopen+:} false; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lsvld  $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h.  */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081    Use char because int might match the return type of a GCC
13082    builtin and then its argument prototype would still apply.  */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char dlopen ();
13087 int
13088 main ()
13089 {
13090 return dlopen ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096   ac_cv_lib_svld_dlopen=yes
13097 else
13098   ac_cv_lib_svld_dlopen=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101     conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13105 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13106 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13107   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13110 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13111 if ${ac_cv_lib_dld_dld_link+:} false; then :
13112   $as_echo_n "(cached) " >&6
13113 else
13114   ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-ldld  $LIBS"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h.  */
13118
13119 /* Override any GCC internal prototype to avoid an error.
13120    Use char because int might match the return type of a GCC
13121    builtin and then its argument prototype would still apply.  */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char dld_link ();
13126 int
13127 main ()
13128 {
13129 return dld_link ();
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"; then :
13135   ac_cv_lib_dld_dld_link=yes
13136 else
13137   ac_cv_lib_dld_dld_link=no
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext \
13140     conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13144 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13145 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13146   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13147 fi
13148
13149
13150 fi
13151
13152
13153 fi
13154
13155
13156 fi
13157
13158
13159 fi
13160
13161
13162 fi
13163
13164     ;;
13165   esac
13166
13167   if test "x$lt_cv_dlopen" != xno; then
13168     enable_dlopen=yes
13169   else
13170     enable_dlopen=no
13171   fi
13172
13173   case $lt_cv_dlopen in
13174   dlopen)
13175     save_CPPFLAGS="$CPPFLAGS"
13176     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13177
13178     save_LDFLAGS="$LDFLAGS"
13179     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13180
13181     save_LIBS="$LIBS"
13182     LIBS="$lt_cv_dlopen_libs $LIBS"
13183
13184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13185 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13186 if ${lt_cv_dlopen_self+:} false; then :
13187   $as_echo_n "(cached) " >&6
13188 else
13189           if test "$cross_compiling" = yes; then :
13190   lt_cv_dlopen_self=cross
13191 else
13192   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13193   lt_status=$lt_dlunknown
13194   cat > conftest.$ac_ext <<_LT_EOF
13195 #line $LINENO "configure"
13196 #include "confdefs.h"
13197
13198 #if HAVE_DLFCN_H
13199 #include <dlfcn.h>
13200 #endif
13201
13202 #include <stdio.h>
13203
13204 #ifdef RTLD_GLOBAL
13205 #  define LT_DLGLOBAL           RTLD_GLOBAL
13206 #else
13207 #  ifdef DL_GLOBAL
13208 #    define LT_DLGLOBAL         DL_GLOBAL
13209 #  else
13210 #    define LT_DLGLOBAL         0
13211 #  endif
13212 #endif
13213
13214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13215    find out it does not work in some platform. */
13216 #ifndef LT_DLLAZY_OR_NOW
13217 #  ifdef RTLD_LAZY
13218 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13219 #  else
13220 #    ifdef DL_LAZY
13221 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13222 #    else
13223 #      ifdef RTLD_NOW
13224 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13225 #      else
13226 #        ifdef DL_NOW
13227 #          define LT_DLLAZY_OR_NOW      DL_NOW
13228 #        else
13229 #          define LT_DLLAZY_OR_NOW      0
13230 #        endif
13231 #      endif
13232 #    endif
13233 #  endif
13234 #endif
13235
13236 /* When -fvisbility=hidden is used, assume the code has been annotated
13237    correspondingly for the symbols needed.  */
13238 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13239 int fnord () __attribute__((visibility("default")));
13240 #endif
13241
13242 int fnord () { return 42; }
13243 int main ()
13244 {
13245   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13246   int status = $lt_dlunknown;
13247
13248   if (self)
13249     {
13250       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13251       else
13252         {
13253           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13254           else puts (dlerror ());
13255         }
13256       /* dlclose (self); */
13257     }
13258   else
13259     puts (dlerror ());
13260
13261   return status;
13262 }
13263 _LT_EOF
13264   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13265   (eval $ac_link) 2>&5
13266   ac_status=$?
13267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13269     (./conftest; exit; ) >&5 2>/dev/null
13270     lt_status=$?
13271     case x$lt_status in
13272       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13273       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13274       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13275     esac
13276   else :
13277     # compilation failed
13278     lt_cv_dlopen_self=no
13279   fi
13280 fi
13281 rm -fr conftest*
13282
13283
13284 fi
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13286 $as_echo "$lt_cv_dlopen_self" >&6; }
13287
13288     if test "x$lt_cv_dlopen_self" = xyes; then
13289       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13290       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13291 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13292 if ${lt_cv_dlopen_self_static+:} false; then :
13293   $as_echo_n "(cached) " >&6
13294 else
13295           if test "$cross_compiling" = yes; then :
13296   lt_cv_dlopen_self_static=cross
13297 else
13298   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13299   lt_status=$lt_dlunknown
13300   cat > conftest.$ac_ext <<_LT_EOF
13301 #line $LINENO "configure"
13302 #include "confdefs.h"
13303
13304 #if HAVE_DLFCN_H
13305 #include <dlfcn.h>
13306 #endif
13307
13308 #include <stdio.h>
13309
13310 #ifdef RTLD_GLOBAL
13311 #  define LT_DLGLOBAL           RTLD_GLOBAL
13312 #else
13313 #  ifdef DL_GLOBAL
13314 #    define LT_DLGLOBAL         DL_GLOBAL
13315 #  else
13316 #    define LT_DLGLOBAL         0
13317 #  endif
13318 #endif
13319
13320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13321    find out it does not work in some platform. */
13322 #ifndef LT_DLLAZY_OR_NOW
13323 #  ifdef RTLD_LAZY
13324 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13325 #  else
13326 #    ifdef DL_LAZY
13327 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13328 #    else
13329 #      ifdef RTLD_NOW
13330 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13331 #      else
13332 #        ifdef DL_NOW
13333 #          define LT_DLLAZY_OR_NOW      DL_NOW
13334 #        else
13335 #          define LT_DLLAZY_OR_NOW      0
13336 #        endif
13337 #      endif
13338 #    endif
13339 #  endif
13340 #endif
13341
13342 /* When -fvisbility=hidden is used, assume the code has been annotated
13343    correspondingly for the symbols needed.  */
13344 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13345 int fnord () __attribute__((visibility("default")));
13346 #endif
13347
13348 int fnord () { return 42; }
13349 int main ()
13350 {
13351   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13352   int status = $lt_dlunknown;
13353
13354   if (self)
13355     {
13356       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13357       else
13358         {
13359           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13360           else puts (dlerror ());
13361         }
13362       /* dlclose (self); */
13363     }
13364   else
13365     puts (dlerror ());
13366
13367   return status;
13368 }
13369 _LT_EOF
13370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13371   (eval $ac_link) 2>&5
13372   ac_status=$?
13373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13374   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13375     (./conftest; exit; ) >&5 2>/dev/null
13376     lt_status=$?
13377     case x$lt_status in
13378       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13379       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13380       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13381     esac
13382   else :
13383     # compilation failed
13384     lt_cv_dlopen_self_static=no
13385   fi
13386 fi
13387 rm -fr conftest*
13388
13389
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13392 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13393     fi
13394
13395     CPPFLAGS="$save_CPPFLAGS"
13396     LDFLAGS="$save_LDFLAGS"
13397     LIBS="$save_LIBS"
13398     ;;
13399   esac
13400
13401   case $lt_cv_dlopen_self in
13402   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13403   *) enable_dlopen_self=unknown ;;
13404   esac
13405
13406   case $lt_cv_dlopen_self_static in
13407   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13408   *) enable_dlopen_self_static=unknown ;;
13409   esac
13410 fi
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428 striplib=
13429 old_striplib=
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13431 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13432 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13433   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13434   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13436 $as_echo "yes" >&6; }
13437 else
13438 # FIXME - insert some real tests, host_os isn't really good enough
13439   case $host_os in
13440   darwin*)
13441     if test -n "$STRIP" ; then
13442       striplib="$STRIP -x"
13443       old_striplib="$STRIP -S"
13444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13445 $as_echo "yes" >&6; }
13446     else
13447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449     fi
13450     ;;
13451   *)
13452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13454     ;;
13455   esac
13456 fi
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469   # Report which library types will actually be built
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13471 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13473 $as_echo "$can_build_shared" >&6; }
13474
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13476 $as_echo_n "checking whether to build shared libraries... " >&6; }
13477   test "$can_build_shared" = "no" && enable_shared=no
13478
13479   # On AIX, shared libraries and static libraries use the same namespace, and
13480   # are all built from PIC.
13481   case $host_os in
13482   aix3*)
13483     test "$enable_shared" = yes && enable_static=no
13484     if test -n "$RANLIB"; then
13485       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13486       postinstall_cmds='$RANLIB $lib'
13487     fi
13488     ;;
13489
13490   aix[4-9]*)
13491     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13492       test "$enable_shared" = yes && enable_static=no
13493     fi
13494     ;;
13495   esac
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13497 $as_echo "$enable_shared" >&6; }
13498
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13500 $as_echo_n "checking whether to build static libraries... " >&6; }
13501   # Make sure either enable_shared or enable_static is yes.
13502   test "$enable_shared" = yes || enable_static=yes
13503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13504 $as_echo "$enable_static" >&6; }
13505
13506
13507
13508
13509 fi
13510 ac_ext=c
13511 ac_cpp='$CPP $CPPFLAGS'
13512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13515
13516 CC="$lt_save_CC"
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532         ac_config_commands="$ac_config_commands libtool"
13533
13534
13535
13536
13537 # Only expand once:
13538
13539
13540
13541
13542 # Checks for header files.
13543 for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.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
13544 do :
13545   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13547 "
13548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13549   cat >>confdefs.h <<_ACEOF
13550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13551 _ACEOF
13552
13553 fi
13554
13555 done
13556
13557
13558 # check for types.
13559 # Using own tests for int64* because autoconf builtin only give 32bit.
13560 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13561 if test "x$ac_cv_type_int8_t" = xyes; then :
13562
13563 else
13564
13565 cat >>confdefs.h <<_ACEOF
13566 #define int8_t signed char
13567 _ACEOF
13568
13569 fi
13570
13571 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13572 if test "x$ac_cv_type_int16_t" = xyes; then :
13573
13574 else
13575
13576 cat >>confdefs.h <<_ACEOF
13577 #define int16_t short
13578 _ACEOF
13579
13580 fi
13581
13582 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13583 if test "x$ac_cv_type_int32_t" = xyes; then :
13584
13585 else
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define int32_t int
13589 _ACEOF
13590
13591 fi
13592
13593 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13594 if test "x$ac_cv_type_int64_t" = xyes; then :
13595
13596 else
13597
13598 cat >>confdefs.h <<_ACEOF
13599 #define int64_t long long
13600 _ACEOF
13601
13602 fi
13603
13604 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13605 if test "x$ac_cv_type_uint8_t" = xyes; then :
13606
13607 else
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define uint8_t unsigned char
13611 _ACEOF
13612
13613 fi
13614
13615 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13616 if test "x$ac_cv_type_uint16_t" = xyes; then :
13617
13618 else
13619
13620 cat >>confdefs.h <<_ACEOF
13621 #define uint16_t unsigned short
13622 _ACEOF
13623
13624 fi
13625
13626 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13627 if test "x$ac_cv_type_uint32_t" = xyes; then :
13628
13629 else
13630
13631 cat >>confdefs.h <<_ACEOF
13632 #define uint32_t unsigned int
13633 _ACEOF
13634
13635 fi
13636
13637 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13638 if test "x$ac_cv_type_uint64_t" = xyes; then :
13639
13640 else
13641
13642 cat >>confdefs.h <<_ACEOF
13643 #define uint64_t unsigned long long
13644 _ACEOF
13645
13646 fi
13647
13648 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13649 if test "x$ac_cv_type_size_t" = xyes; then :
13650
13651 else
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define size_t unsigned int
13655 _ACEOF
13656
13657 fi
13658
13659 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13660 if test "x$ac_cv_type_ssize_t" = xyes; then :
13661
13662 else
13663
13664 cat >>confdefs.h <<_ACEOF
13665 #define ssize_t int
13666 _ACEOF
13667
13668 fi
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13671 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13672 if ${ac_cv_type_uid_t+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h.  */
13677 #include <sys/types.h>
13678
13679 _ACEOF
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681   $EGREP "uid_t" >/dev/null 2>&1; then :
13682   ac_cv_type_uid_t=yes
13683 else
13684   ac_cv_type_uid_t=no
13685 fi
13686 rm -f conftest*
13687
13688 fi
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13690 $as_echo "$ac_cv_type_uid_t" >&6; }
13691 if test $ac_cv_type_uid_t = no; then
13692
13693 $as_echo "#define uid_t int" >>confdefs.h
13694
13695
13696 $as_echo "#define gid_t int" >>confdefs.h
13697
13698 fi
13699
13700 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13701 if test "x$ac_cv_type_pid_t" = xyes; then :
13702
13703 else
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define pid_t int
13707 _ACEOF
13708
13709 fi
13710
13711 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13712 if test "x$ac_cv_type_off_t" = xyes; then :
13713
13714 else
13715
13716 cat >>confdefs.h <<_ACEOF
13717 #define off_t long int
13718 _ACEOF
13719
13720 fi
13721
13722 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13723 $ac_includes_default
13724 #ifdef HAVE_WINSOCK2_H
13725 #  include <winsock2.h>
13726 #endif
13727
13728 "
13729 if test "x$ac_cv_type_u_char" = xyes; then :
13730
13731 else
13732
13733 $as_echo "#define u_char unsigned char" >>confdefs.h
13734
13735 fi
13736
13737 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13738 $ac_includes_default
13739 #ifdef HAVE_SYS_RESOURCE_H
13740 #  include <sys/resource.h>
13741 #endif
13742
13743 "
13744 if test "x$ac_cv_type_rlim_t" = xyes; then :
13745
13746 else
13747
13748 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13749
13750 fi
13751
13752
13753 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13754 $ac_includes_default
13755 #ifdef HAVE_SYS_SOCKET_H
13756 #  include <sys/socket.h>
13757 #endif
13758 #ifdef HAVE_WS2TCPIP_H
13759 #  include <ws2tcpip.h>
13760 #endif
13761
13762 "
13763 if test "x$ac_cv_type_socklen_t" = xyes; then :
13764
13765 else
13766
13767 $as_echo "#define socklen_t int" >>confdefs.h
13768
13769 fi
13770
13771  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13772 $ac_includes_default
13773 #ifdef HAVE_SYS_TYPES_H
13774 # include <sys/types.h>
13775 #endif
13776 #ifdef HAVE_NETINET_IN_H
13777 # include <netinet/in.h>
13778 #endif
13779
13780 "
13781 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13782
13783 else
13784
13785 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13786
13787 fi
13788
13789  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13790 $ac_includes_default
13791 #ifdef HAVE_SYS_TYPES_H
13792 # include <sys/types.h>
13793 #endif
13794 #ifdef HAVE_NETINET_IN_H
13795 # include <netinet/in.h>
13796 #endif
13797
13798 "
13799 if test "x$ac_cv_type_in_port_t" = xyes; then :
13800
13801 else
13802
13803 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13804
13805 fi
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13808 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13809 if test "$cross_compiling" = yes; then :
13810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13811 $as_echo "cross-compile no" >&6; }
13812
13813 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13814
13815   case " $LIBOBJS " in
13816   *" memcmp.$ac_objext "* ) ;;
13817   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13818  ;;
13819 esac
13820
13821
13822 else
13823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h.  */
13825
13826 #include <stdio.h>
13827 #include <stdlib.h>
13828 #include <string.h>
13829 int main(void)
13830 {
13831         char a = 255, b = 0;
13832         if(memcmp(&a, &b, 1) < 0)
13833                 return 1;
13834         return 0;
13835 }
13836
13837 _ACEOF
13838 if ac_fn_c_try_run "$LINENO"; then :
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13840 $as_echo "yes" >&6; }
13841 else
13842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844
13845 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13846
13847   case " $LIBOBJS " in
13848   *" memcmp.$ac_objext "* ) ;;
13849   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13850  ;;
13851 esac
13852
13853
13854 fi
13855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13856   conftest.$ac_objext conftest.beam conftest.$ac_ext
13857 fi
13858
13859
13860 # add option to disable the evil rpath
13861
13862 # Check whether --enable-rpath was given.
13863 if test "${enable_rpath+set}" = set; then :
13864   enableval=$enable_rpath; enable_rpath=$enableval
13865 else
13866   enable_rpath=yes
13867 fi
13868
13869 if test "x$enable_rpath" = xno; then
13870                 ac_config_commands="$ac_config_commands disable-rpath"
13871
13872 fi
13873
13874
13875
13876 # check to see if libraries are needed for these functions.
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13878 $as_echo_n "checking for library containing inet_pton... " >&6; }
13879 if ${ac_cv_search_inet_pton+:} false; then :
13880   $as_echo_n "(cached) " >&6
13881 else
13882   ac_func_search_save_LIBS=$LIBS
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h.  */
13885
13886 /* Override any GCC internal prototype to avoid an error.
13887    Use char because int might match the return type of a GCC
13888    builtin and then its argument prototype would still apply.  */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 char inet_pton ();
13893 int
13894 main ()
13895 {
13896 return inet_pton ();
13897   ;
13898   return 0;
13899 }
13900 _ACEOF
13901 for ac_lib in '' nsl; do
13902   if test -z "$ac_lib"; then
13903     ac_res="none required"
13904   else
13905     ac_res=-l$ac_lib
13906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13907   fi
13908   if ac_fn_c_try_link "$LINENO"; then :
13909   ac_cv_search_inet_pton=$ac_res
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext \
13912     conftest$ac_exeext
13913   if ${ac_cv_search_inet_pton+:} false; then :
13914   break
13915 fi
13916 done
13917 if ${ac_cv_search_inet_pton+:} false; then :
13918
13919 else
13920   ac_cv_search_inet_pton=no
13921 fi
13922 rm conftest.$ac_ext
13923 LIBS=$ac_func_search_save_LIBS
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13926 $as_echo "$ac_cv_search_inet_pton" >&6; }
13927 ac_res=$ac_cv_search_inet_pton
13928 if test "$ac_res" != no; then :
13929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930
13931 fi
13932
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13934 $as_echo_n "checking for library containing socket... " >&6; }
13935 if ${ac_cv_search_socket+:} false; then :
13936   $as_echo_n "(cached) " >&6
13937 else
13938   ac_func_search_save_LIBS=$LIBS
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h.  */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943    Use char because int might match the return type of a GCC
13944    builtin and then its argument prototype would still apply.  */
13945 #ifdef __cplusplus
13946 extern "C"
13947 #endif
13948 char socket ();
13949 int
13950 main ()
13951 {
13952 return socket ();
13953   ;
13954   return 0;
13955 }
13956 _ACEOF
13957 for ac_lib in '' socket; do
13958   if test -z "$ac_lib"; then
13959     ac_res="none required"
13960   else
13961     ac_res=-l$ac_lib
13962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13963   fi
13964   if ac_fn_c_try_link "$LINENO"; then :
13965   ac_cv_search_socket=$ac_res
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext \
13968     conftest$ac_exeext
13969   if ${ac_cv_search_socket+:} false; then :
13970   break
13971 fi
13972 done
13973 if ${ac_cv_search_socket+:} false; then :
13974
13975 else
13976   ac_cv_search_socket=no
13977 fi
13978 rm conftest.$ac_ext
13979 LIBS=$ac_func_search_save_LIBS
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13982 $as_echo "$ac_cv_search_socket" >&6; }
13983 ac_res=$ac_cv_search_socket
13984 if test "$ac_res" != no; then :
13985   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13986
13987 fi
13988
13989
13990 # check wether strptime also works
13991
13992 # check some functions of the OS before linking libs (while still runnable).
13993 for ac_header in unistd.h
13994 do :
13995   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13996 if test "x$ac_cv_header_unistd_h" = xyes; then :
13997   cat >>confdefs.h <<_ACEOF
13998 #define HAVE_UNISTD_H 1
13999 _ACEOF
14000
14001 fi
14002
14003 done
14004
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14006 $as_echo_n "checking for working chown... " >&6; }
14007 if ${ac_cv_func_chown_works+:} false; then :
14008   $as_echo_n "(cached) " >&6
14009 else
14010   if test "$cross_compiling" = yes; then :
14011   ac_cv_func_chown_works=no
14012 else
14013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h.  */
14015 $ac_includes_default
14016 #include <fcntl.h>
14017
14018 int
14019 main ()
14020 {
14021   char *f = "conftest.chown";
14022   struct stat before, after;
14023
14024   if (creat (f, 0600) < 0)
14025     return 1;
14026   if (stat (f, &before) < 0)
14027     return 1;
14028   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14029     return 1;
14030   if (stat (f, &after) < 0)
14031     return 1;
14032   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14033
14034   ;
14035   return 0;
14036 }
14037 _ACEOF
14038 if ac_fn_c_try_run "$LINENO"; then :
14039   ac_cv_func_chown_works=yes
14040 else
14041   ac_cv_func_chown_works=no
14042 fi
14043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14044   conftest.$ac_objext conftest.beam conftest.$ac_ext
14045 fi
14046
14047 rm -f conftest.chown
14048
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14051 $as_echo "$ac_cv_func_chown_works" >&6; }
14052 if test $ac_cv_func_chown_works = yes; then
14053
14054 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14055
14056 fi
14057
14058 for ac_header in vfork.h
14059 do :
14060   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14061 if test "x$ac_cv_header_vfork_h" = xyes; then :
14062   cat >>confdefs.h <<_ACEOF
14063 #define HAVE_VFORK_H 1
14064 _ACEOF
14065
14066 fi
14067
14068 done
14069
14070 for ac_func in fork vfork
14071 do :
14072   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14075   cat >>confdefs.h <<_ACEOF
14076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14077 _ACEOF
14078
14079 fi
14080 done
14081
14082 if test "x$ac_cv_func_fork" = xyes; then
14083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14084 $as_echo_n "checking for working fork... " >&6; }
14085 if ${ac_cv_func_fork_works+:} false; then :
14086   $as_echo_n "(cached) " >&6
14087 else
14088   if test "$cross_compiling" = yes; then :
14089   ac_cv_func_fork_works=cross
14090 else
14091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h.  */
14093 $ac_includes_default
14094 int
14095 main ()
14096 {
14097
14098           /* By Ruediger Kuhlmann. */
14099           return fork () < 0;
14100
14101   ;
14102   return 0;
14103 }
14104 _ACEOF
14105 if ac_fn_c_try_run "$LINENO"; then :
14106   ac_cv_func_fork_works=yes
14107 else
14108   ac_cv_func_fork_works=no
14109 fi
14110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14111   conftest.$ac_objext conftest.beam conftest.$ac_ext
14112 fi
14113
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14116 $as_echo "$ac_cv_func_fork_works" >&6; }
14117
14118 else
14119   ac_cv_func_fork_works=$ac_cv_func_fork
14120 fi
14121 if test "x$ac_cv_func_fork_works" = xcross; then
14122   case $host in
14123     *-*-amigaos* | *-*-msdosdjgpp*)
14124       # Override, as these systems have only a dummy fork() stub
14125       ac_cv_func_fork_works=no
14126       ;;
14127     *)
14128       ac_cv_func_fork_works=yes
14129       ;;
14130   esac
14131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14132 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14133 fi
14134 ac_cv_func_vfork_works=$ac_cv_func_vfork
14135 if test "x$ac_cv_func_vfork" = xyes; then
14136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14137 $as_echo_n "checking for working vfork... " >&6; }
14138 if ${ac_cv_func_vfork_works+:} false; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   if test "$cross_compiling" = yes; then :
14142   ac_cv_func_vfork_works=cross
14143 else
14144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h.  */
14146 /* Thanks to Paul Eggert for this test.  */
14147 $ac_includes_default
14148 #include <sys/wait.h>
14149 #ifdef HAVE_VFORK_H
14150 # include <vfork.h>
14151 #endif
14152 /* On some sparc systems, changes by the child to local and incoming
14153    argument registers are propagated back to the parent.  The compiler
14154    is told about this with #include <vfork.h>, but some compilers
14155    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14156    static variable whose address is put into a register that is
14157    clobbered by the vfork.  */
14158 static void
14159 #ifdef __cplusplus
14160 sparc_address_test (int arg)
14161 # else
14162 sparc_address_test (arg) int arg;
14163 #endif
14164 {
14165   static pid_t child;
14166   if (!child) {
14167     child = vfork ();
14168     if (child < 0) {
14169       perror ("vfork");
14170       _exit(2);
14171     }
14172     if (!child) {
14173       arg = getpid();
14174       write(-1, "", 0);
14175       _exit (arg);
14176     }
14177   }
14178 }
14179
14180 int
14181 main ()
14182 {
14183   pid_t parent = getpid ();
14184   pid_t child;
14185
14186   sparc_address_test (0);
14187
14188   child = vfork ();
14189
14190   if (child == 0) {
14191     /* Here is another test for sparc vfork register problems.  This
14192        test uses lots of local variables, at least as many local
14193        variables as main has allocated so far including compiler
14194        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14195        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14196        reuse the register of parent for one of the local variables,
14197        since it will think that parent can't possibly be used any more
14198        in this routine.  Assigning to the local variable will thus
14199        munge parent in the parent process.  */
14200     pid_t
14201       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14202       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14203     /* Convince the compiler that p..p7 are live; otherwise, it might
14204        use the same hardware register for all 8 local variables.  */
14205     if (p != p1 || p != p2 || p != p3 || p != p4
14206         || p != p5 || p != p6 || p != p7)
14207       _exit(1);
14208
14209     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14210        from child file descriptors.  If the child closes a descriptor
14211        before it execs or exits, this munges the parent's descriptor
14212        as well.  Test for this by closing stdout in the child.  */
14213     _exit(close(fileno(stdout)) != 0);
14214   } else {
14215     int status;
14216     struct stat st;
14217
14218     while (wait(&status) != child)
14219       ;
14220     return (
14221          /* Was there some problem with vforking?  */
14222          child < 0
14223
14224          /* Did the child fail?  (This shouldn't happen.)  */
14225          || status
14226
14227          /* Did the vfork/compiler bug occur?  */
14228          || parent != getpid()
14229
14230          /* Did the file descriptor bug occur?  */
14231          || fstat(fileno(stdout), &st) != 0
14232          );
14233   }
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_run "$LINENO"; then :
14237   ac_cv_func_vfork_works=yes
14238 else
14239   ac_cv_func_vfork_works=no
14240 fi
14241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14242   conftest.$ac_objext conftest.beam conftest.$ac_ext
14243 fi
14244
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14247 $as_echo "$ac_cv_func_vfork_works" >&6; }
14248
14249 fi;
14250 if test "x$ac_cv_func_fork_works" = xcross; then
14251   ac_cv_func_vfork_works=$ac_cv_func_vfork
14252   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14254 fi
14255
14256 if test "x$ac_cv_func_vfork_works" = xyes; then
14257
14258 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14259
14260 else
14261
14262 $as_echo "#define vfork fork" >>confdefs.h
14263
14264 fi
14265 if test "x$ac_cv_func_fork_works" = xyes; then
14266
14267 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14268
14269 fi
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14272 $as_echo_n "checking return type of signal handlers... " >&6; }
14273 if ${ac_cv_type_signal+:} false; then :
14274   $as_echo_n "(cached) " >&6
14275 else
14276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h.  */
14278 #include <sys/types.h>
14279 #include <signal.h>
14280
14281 int
14282 main ()
14283 {
14284 return *(signal (0, 0)) (0) == 1;
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290   ac_cv_type_signal=int
14291 else
14292   ac_cv_type_signal=void
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 fi
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14297 $as_echo "$ac_cv_type_signal" >&6; }
14298
14299 cat >>confdefs.h <<_ACEOF
14300 #define RETSIGTYPE $ac_cv_type_signal
14301 _ACEOF
14302
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14305 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14306 if ${ac_cv_sys_largefile_source+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   while :; do
14310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h.  */
14312 #include <sys/types.h> /* for off_t */
14313      #include <stdio.h>
14314 int
14315 main ()
14316 {
14317 int (*fp) (FILE *, off_t, int) = fseeko;
14318      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324   ac_cv_sys_largefile_source=no; break
14325 fi
14326 rm -f core conftest.err conftest.$ac_objext \
14327     conftest$ac_exeext conftest.$ac_ext
14328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h.  */
14330 #define _LARGEFILE_SOURCE 1
14331 #include <sys/types.h> /* for off_t */
14332      #include <stdio.h>
14333 int
14334 main ()
14335 {
14336 int (*fp) (FILE *, off_t, int) = fseeko;
14337      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_c_try_link "$LINENO"; then :
14343   ac_cv_sys_largefile_source=1; break
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext \
14346     conftest$ac_exeext conftest.$ac_ext
14347   ac_cv_sys_largefile_source=unknown
14348   break
14349 done
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14352 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14353 case $ac_cv_sys_largefile_source in #(
14354   no | unknown) ;;
14355   *)
14356 cat >>confdefs.h <<_ACEOF
14357 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14358 _ACEOF
14359 ;;
14360 esac
14361 rm -rf conftest*
14362
14363 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14364 # in glibc 2.1.3, but that breaks too many other things.
14365 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14366 if test $ac_cv_sys_largefile_source != unknown; then
14367
14368 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14369
14370 fi
14371
14372
14373 # Check whether --enable-largefile was given.
14374 if test "${enable_largefile+set}" = set; then :
14375   enableval=$enable_largefile;
14376 fi
14377
14378 if test "$enable_largefile" != no; then
14379
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14382 if ${ac_cv_sys_largefile_CC+:} false; then :
14383   $as_echo_n "(cached) " >&6
14384 else
14385   ac_cv_sys_largefile_CC=no
14386      if test "$GCC" != yes; then
14387        ac_save_CC=$CC
14388        while :; do
14389          # IRIX 6.2 and later do not support large files by default,
14390          # so use the C compiler's -n32 option if that helps.
14391          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h.  */
14393 #include <sys/types.h>
14394  /* Check that off_t can represent 2**63 - 1 correctly.
14395     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14396     since some C++ compilers masquerading as C compilers
14397     incorrectly reject 9223372036854775807.  */
14398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14399   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14400                        && LARGE_OFF_T % 2147483647 == 1)
14401                       ? 1 : -1];
14402 int
14403 main ()
14404 {
14405
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410          if ac_fn_c_try_compile "$LINENO"; then :
14411   break
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext
14414          CC="$CC -n32"
14415          if ac_fn_c_try_compile "$LINENO"; then :
14416   ac_cv_sys_largefile_CC=' -n32'; break
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext
14419          break
14420        done
14421        CC=$ac_save_CC
14422        rm -f conftest.$ac_ext
14423     fi
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14427   if test "$ac_cv_sys_largefile_CC" != no; then
14428     CC=$CC$ac_cv_sys_largefile_CC
14429   fi
14430
14431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14433 if ${ac_cv_sys_file_offset_bits+:} false; then :
14434   $as_echo_n "(cached) " >&6
14435 else
14436   while :; do
14437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h.  */
14439 #include <sys/types.h>
14440  /* Check that off_t can represent 2**63 - 1 correctly.
14441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14442     since some C++ compilers masquerading as C compilers
14443     incorrectly reject 9223372036854775807.  */
14444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14446                        && LARGE_OFF_T % 2147483647 == 1)
14447                       ? 1 : -1];
14448 int
14449 main ()
14450 {
14451
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"; then :
14457   ac_cv_sys_file_offset_bits=no; break
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h.  */
14462 #define _FILE_OFFSET_BITS 64
14463 #include <sys/types.h>
14464  /* Check that off_t can represent 2**63 - 1 correctly.
14465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14466     since some C++ compilers masquerading as C compilers
14467     incorrectly reject 9223372036854775807.  */
14468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14470                        && LARGE_OFF_T % 2147483647 == 1)
14471                       ? 1 : -1];
14472 int
14473 main ()
14474 {
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_c_try_compile "$LINENO"; then :
14481   ac_cv_sys_file_offset_bits=64; break
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484   ac_cv_sys_file_offset_bits=unknown
14485   break
14486 done
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14490 case $ac_cv_sys_file_offset_bits in #(
14491   no | unknown) ;;
14492   *)
14493 cat >>confdefs.h <<_ACEOF
14494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14495 _ACEOF
14496 ;;
14497 esac
14498 rm -rf conftest*
14499   if test $ac_cv_sys_file_offset_bits = unknown; then
14500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14502 if ${ac_cv_sys_large_files+:} false; then :
14503   $as_echo_n "(cached) " >&6
14504 else
14505   while :; do
14506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h.  */
14508 #include <sys/types.h>
14509  /* Check that off_t can represent 2**63 - 1 correctly.
14510     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14511     since some C++ compilers masquerading as C compilers
14512     incorrectly reject 9223372036854775807.  */
14513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14514   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14515                        && LARGE_OFF_T % 2147483647 == 1)
14516                       ? 1 : -1];
14517 int
14518 main ()
14519 {
14520
14521   ;
14522   return 0;
14523 }
14524 _ACEOF
14525 if ac_fn_c_try_compile "$LINENO"; then :
14526   ac_cv_sys_large_files=no; break
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h.  */
14531 #define _LARGE_FILES 1
14532 #include <sys/types.h>
14533  /* Check that off_t can represent 2**63 - 1 correctly.
14534     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14535     since some C++ compilers masquerading as C compilers
14536     incorrectly reject 9223372036854775807.  */
14537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14538   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14539                        && LARGE_OFF_T % 2147483647 == 1)
14540                       ? 1 : -1];
14541 int
14542 main ()
14543 {
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550   ac_cv_sys_large_files=1; break
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553   ac_cv_sys_large_files=unknown
14554   break
14555 done
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14558 $as_echo "$ac_cv_sys_large_files" >&6; }
14559 case $ac_cv_sys_large_files in #(
14560   no | unknown) ;;
14561   *)
14562 cat >>confdefs.h <<_ACEOF
14563 #define _LARGE_FILES $ac_cv_sys_large_files
14564 _ACEOF
14565 ;;
14566 esac
14567 rm -rf conftest*
14568   fi
14569
14570
14571 fi
14572
14573
14574
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14577 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14578 cache=_D_LARGEFILE_SOURCE_1
14579 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14580   $as_echo_n "(cached) " >&6
14581 else
14582
14583 echo '
14584 #include <stdio.h>
14585 int test() {
14586         int a = fseeko(stdin, 0, 0);
14587         return a;
14588 }
14589 ' > conftest.c
14590 echo 'void f(){}' >>conftest.c
14591 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14592 eval "cv_prog_cc_flag_needed_$cache=no"
14593 else
14594
14595 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14596 eval "cv_prog_cc_flag_needed_$cache=yes"
14597 else
14598 eval "cv_prog_cc_flag_needed_$cache=fail"
14599 #echo 'Test with flag fails too!'
14600 #cat conftest.c
14601 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14602 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14603 #exit 1
14604 fi
14605
14606 fi
14607 rm -f conftest conftest.c conftest.o
14608
14609 fi
14610
14611 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14613 $as_echo "yes" >&6; }
14614 :
14615 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14616 else
14617 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 #echo 'Test with flag is no!'
14621 #cat conftest.c
14622 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14623 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14624 #exit 1
14625 :
14626
14627 else
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14629 $as_echo "failed" >&6; }
14630 :
14631
14632 fi
14633 fi
14634
14635
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14638 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14639 if echo $target | grep mingw32 >/dev/null; then
14640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14641 $as_echo "no (windows)" >&6; }
14642
14643 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14644
14645 else
14646 if test "$cross_compiling" = yes; then :
14647
14648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14649 $as_echo "crosscompile(yes)" >&6; }
14650
14651 else
14652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h.  */
14654
14655
14656 #include <stdio.h>
14657 #include <string.h>
14658 #include <stdlib.h>
14659 #include <fcntl.h>
14660 #include <errno.h>
14661 #ifdef HAVE_SYS_TYPES_H
14662 #include <sys/types.h>
14663 #endif
14664 #ifdef HAVE_SYS_SOCKET_H
14665 #include <sys/socket.h>
14666 #endif
14667 #ifdef HAVE_NETINET_IN_H
14668 #include <netinet/in.h>
14669 #endif
14670 #ifdef HAVE_ARPA_INET_H
14671 #include <arpa/inet.h>
14672 #endif
14673 #ifdef HAVE_UNISTD_H
14674 #include <unistd.h>
14675 #endif
14676 #ifdef HAVE_TIME_H
14677 #include <time.h>
14678 #endif
14679
14680 int main(void)
14681 {
14682         int port;
14683         int sfd, cfd;
14684         int num = 10;
14685         int i, p;
14686         struct sockaddr_in a;
14687         /* test if select and nonblocking reads work well together */
14688         /* open port.
14689            fork child to send 10 messages.
14690            select to read.
14691            then try to nonblocking read the 10 messages
14692            then, nonblocking read must give EAGAIN
14693         */
14694
14695         port = 12345 + (time(0)%32);
14696         sfd = socket(PF_INET, SOCK_DGRAM, 0);
14697         if(sfd == -1) {
14698                 perror("socket");
14699                 return 1;
14700         }
14701         memset(&a, 0, sizeof(a));
14702         a.sin_family = AF_INET;
14703         a.sin_port = htons(port);
14704         a.sin_addr.s_addr = inet_addr("127.0.0.1");
14705         if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14706                 perror("bind");
14707                 return 1;
14708         }
14709         if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14710                 perror("fcntl");
14711                 return 1;
14712         }
14713
14714         cfd = socket(PF_INET, SOCK_DGRAM, 0);
14715         if(cfd == -1) {
14716                 perror("client socket");
14717                 return 1;
14718         }
14719         a.sin_port = 0;
14720         if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14721                 perror("client bind");
14722                 return 1;
14723         }
14724         a.sin_port = htons(port);
14725
14726         /* no handler, causes exit in 10 seconds */
14727         alarm(10);
14728
14729         /* send and receive on the socket */
14730         if((p=fork()) == 0) {
14731                 for(i=0; i<num; i++) {
14732                         if(sendto(cfd, &i, sizeof(i), 0,
14733                                 (struct sockaddr*)&a, sizeof(a)) < 0) {
14734                                 perror("sendto");
14735                                 return 1;
14736                         }
14737                 }
14738         } else {
14739                 /* parent */
14740                 fd_set rset;
14741                 int x;
14742                 if(p == -1) {
14743                         perror("fork");
14744                         return 1;
14745                 }
14746                 FD_ZERO(&rset);
14747                 FD_SET(sfd, &rset);
14748                 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14749                         perror("select");
14750                         return 1;
14751                 }
14752                 i = 0;
14753                 while(i < num) {
14754                         if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14755                                 if(errno == EAGAIN)
14756                                         continue;
14757                                 perror("recv");
14758                                 return 1;
14759                         }
14760                         i++;
14761                 }
14762                 /* now we want to get EAGAIN: nonblocking goodness */
14763                 errno = 0;
14764                 recv(sfd, &x, sizeof(x), 0);
14765                 if(errno != EAGAIN) {
14766                         perror("trying to recv again");
14767                         return 1;
14768                 }
14769                 /* EAGAIN encountered */
14770         }
14771
14772         close(sfd);
14773         close(cfd);
14774         return 0;
14775 }
14776
14777 _ACEOF
14778 if ac_fn_c_try_run "$LINENO"; then :
14779
14780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 $as_echo "yes" >&6; }
14782
14783 else
14784
14785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14787
14788 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14789
14790
14791 fi
14792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14793   conftest.$ac_objext conftest.beam conftest.$ac_ext
14794 fi
14795
14796 fi
14797
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14800 $as_echo_n "checking whether mkdir has one arg... " >&6; }
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h.  */
14803
14804 #include <stdio.h>
14805 #include <unistd.h>
14806 #ifdef HAVE_WINSOCK2_H
14807 #include <winsock2.h>
14808 #endif
14809 #ifdef HAVE_SYS_STAT_H
14810 #include <sys/stat.h>
14811 #endif
14812
14813 int
14814 main ()
14815 {
14816
14817         (void)mkdir("directory");
14818
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 if ac_fn_c_try_compile "$LINENO"; then :
14824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14825 $as_echo "yes" >&6; }
14826
14827 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14828
14829
14830 else
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14833
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836
14837 for ac_func in strptime
14838 do :
14839   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14840 if test "x$ac_cv_func_strptime" = xyes; then :
14841   cat >>confdefs.h <<_ACEOF
14842 #define HAVE_STRPTIME 1
14843 _ACEOF
14844
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14846 $as_echo_n "checking whether strptime works... " >&6; }
14847 if test c${cross_compiling} = cno; then
14848 if test "$cross_compiling" = yes; then :
14849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14851 as_fn_error $? "cannot run test program while cross compiling
14852 See \`config.log' for more details" "$LINENO" 5; }
14853 else
14854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h.  */
14856
14857 #define _XOPEN_SOURCE
14858 #include <time.h>
14859 int main(void) { struct tm tm; char *res;
14860 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);
14861 if (!res) return 2;
14862 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14863 if (!res) return 1; return 0; }
14864
14865 _ACEOF
14866 if ac_fn_c_try_run "$LINENO"; then :
14867   eval "ac_cv_c_strptime_works=yes"
14868 else
14869   eval "ac_cv_c_strptime_works=no"
14870 fi
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14872   conftest.$ac_objext conftest.beam conftest.$ac_ext
14873 fi
14874
14875 else
14876 eval "ac_cv_c_strptime_works=maybe"
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14879 $as_echo "$ac_cv_c_strptime_works" >&6; }
14880 if test $ac_cv_c_strptime_works = no; then
14881 case " $LIBOBJS " in
14882   *" strptime.$ac_objext "* ) ;;
14883   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14884  ;;
14885 esac
14886
14887 else
14888
14889 cat >>confdefs.h <<_ACEOF
14890 #define STRPTIME_WORKS 1
14891 _ACEOF
14892
14893 fi
14894
14895 else
14896   case " $LIBOBJS " in
14897   *" strptime.$ac_objext "* ) ;;
14898   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14899  ;;
14900 esac
14901
14902 fi
14903 done
14904
14905
14906 # set memory allocation checking if requested
14907 # Check whether --enable-alloc-checks was given.
14908 if test "${enable_alloc_checks+set}" = set; then :
14909   enableval=$enable_alloc_checks;
14910 fi
14911
14912 # Check whether --enable-alloc-lite was given.
14913 if test "${enable_alloc_lite+set}" = set; then :
14914   enableval=$enable_alloc_lite;
14915 fi
14916
14917 # Check whether --enable-alloc-nonregional was given.
14918 if test "${enable_alloc_nonregional+set}" = set; then :
14919   enableval=$enable_alloc_nonregional;
14920 fi
14921
14922 if test x_$enable_alloc_nonregional = x_yes; then
14923
14924 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14925
14926 fi
14927 if test x_$enable_alloc_checks = x_yes; then
14928
14929 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14930
14931 else
14932         if test x_$enable_alloc_lite = x_yes; then
14933
14934 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14935
14936         else
14937
14938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14939 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14940         if test "$cross_compiling" = yes; then :
14941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14942 $as_echo "no (crosscompile)" >&6; }
14943         case " $LIBOBJS " in
14944   *" malloc.$ac_objext "* ) ;;
14945   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14946  ;;
14947 esac
14948
14949
14950 cat >>confdefs.h <<_ACEOF
14951 #define malloc rpl_malloc_unbound
14952 _ACEOF
14953
14954 else
14955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h.  */
14957 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14958 #include <stdlib.h>
14959 #else
14960 char *malloc ();
14961 #endif
14962
14963 int
14964 main ()
14965 {
14966  if(malloc(0) != 0) return 1;
14967   ;
14968   return 0;
14969 }
14970
14971 _ACEOF
14972 if ac_fn_c_try_run "$LINENO"; then :
14973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14974 $as_echo "no" >&6; }
14975         case " $LIBOBJS " in
14976   *" malloc.$ac_objext "* ) ;;
14977   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14978  ;;
14979 esac
14980
14981
14982 cat >>confdefs.h <<_ACEOF
14983 #define malloc rpl_malloc_unbound
14984 _ACEOF
14985
14986 else
14987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14988 $as_echo "yes" >&6; }
14989
14990 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14991
14992 fi
14993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14994   conftest.$ac_objext conftest.beam conftest.$ac_ext
14995 fi
14996
14997
14998         fi
14999 fi
15000
15001 # check windows threads (we use them, not pthreads, on windows).
15002 if test "$on_mingw" = "yes"; then
15003 # check windows threads
15004         for ac_header in windows.h
15005 do :
15006   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15007 "
15008 if test "x$ac_cv_header_windows_h" = xyes; then :
15009   cat >>confdefs.h <<_ACEOF
15010 #define HAVE_WINDOWS_H 1
15011 _ACEOF
15012
15013 fi
15014
15015 done
15016
15017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15018 $as_echo_n "checking for CreateThread... " >&6; }
15019         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h.  */
15021
15022 #ifdef HAVE_WINDOWS_H
15023 #include <windows.h>
15024 #endif
15025
15026 int
15027 main ()
15028 {
15029
15030         HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15031
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 if ac_fn_c_try_compile "$LINENO"; then :
15037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15039
15040 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15041
15042
15043 else
15044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15046
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049
15050 else
15051 # not on mingw, check thread libraries.
15052
15053 # check for thread library.
15054 # check this first, so that the pthread lib does not get linked in via
15055 # libssl or libpython, and thus distorts the tests, and we end up using
15056 # the non-threadsafe C libraries.
15057
15058 # Check whether --with-pthreads was given.
15059 if test "${with_pthreads+set}" = set; then :
15060   withval=$with_pthreads;
15061 else
15062    withval="yes"
15063 fi
15064
15065 ub_have_pthreads=no
15066 if test x_$withval != x_no; then
15067
15068
15069
15070 ac_ext=c
15071 ac_cpp='$CPP $CPPFLAGS'
15072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15075
15076 acx_pthread_ok=no
15077
15078 # We used to check for pthread.h first, but this fails if pthread.h
15079 # requires special compiler flags (e.g. on True64 or Sequent).
15080 # It gets checked for in the link test anyway.
15081
15082 # First of all, check if the user has set any of the PTHREAD_LIBS,
15083 # etcetera environment variables, and if threads linking works using
15084 # them:
15085 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15086         save_CFLAGS="$CFLAGS"
15087         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15088         save_LIBS="$LIBS"
15089         LIBS="$PTHREAD_LIBS $LIBS"
15090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15091 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15092         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h.  */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096    Use char because int might match the return type of a GCC
15097    builtin and then its argument prototype would still apply.  */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char pthread_join ();
15102 int
15103 main ()
15104 {
15105 return pthread_join ();
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111   acx_pthread_ok=yes
15112 fi
15113 rm -f core conftest.err conftest.$ac_objext \
15114     conftest$ac_exeext conftest.$ac_ext
15115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15116 $as_echo "$acx_pthread_ok" >&6; }
15117         if test x"$acx_pthread_ok" = xno; then
15118                 PTHREAD_LIBS=""
15119                 PTHREAD_CFLAGS=""
15120         fi
15121         LIBS="$save_LIBS"
15122         CFLAGS="$save_CFLAGS"
15123 fi
15124
15125 # We must check for the threads library under a number of different
15126 # names; the ordering is very important because some systems
15127 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15128 # libraries is broken (non-POSIX).
15129
15130 # Create a list of thread flags to try.  Items starting with a "-" are
15131 # C compiler flags, and other items are library names, except for "none"
15132 # which indicates that we try without any flags at all, and "pthread-config"
15133 # which is a program returning the flags for the Pth emulation library.
15134
15135 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15136
15137 # The ordering *is* (sometimes) important.  Some notes on the
15138 # individual items follow:
15139
15140 # pthreads: AIX (must check this before -lpthread)
15141 # none: in case threads are in libc; should be tried before -Kthread and
15142 #       other compiler flags to prevent continual compiler warnings
15143 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15144 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15145 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15146 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15147 # -pthreads: Solaris/gcc
15148 # -mthreads: Mingw32/gcc, Lynx/gcc
15149 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15150 #      doesn't hurt to check since this sometimes defines pthreads too;
15151 #      also defines -D_REENTRANT)
15152 #      ... -mt is also the pthreads flag for HP/aCC
15153 # pthread: Linux, etcetera
15154 # --thread-safe: KAI C++
15155 # pthread-config: use pthread-config program (for GNU Pth library)
15156
15157 case "${host_cpu}-${host_os}" in
15158         *solaris*)
15159
15160         # On Solaris (at least, for some versions), libc contains stubbed
15161         # (non-functional) versions of the pthreads routines, so link-based
15162         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15163         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15164         # a function called by this macro, so we could check for that, but
15165         # who knows whether they'll stub that too in a future libc.)  So,
15166         # we'll just look for -pthreads and -lpthread first:
15167
15168         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15169         ;;
15170 esac
15171
15172 if test x"$acx_pthread_ok" = xno; then
15173 for flag in $acx_pthread_flags; do
15174
15175         case $flag in
15176                 none)
15177                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15178 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15179                 ;;
15180
15181                 -*)
15182                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15183 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15184                 PTHREAD_CFLAGS="$flag"
15185                 ;;
15186
15187                 pthread-config)
15188                 # Extract the first word of "pthread-config", so it can be a program name with args.
15189 set dummy pthread-config; ac_word=$2
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191 $as_echo_n "checking for $ac_word... " >&6; }
15192 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15193   $as_echo_n "(cached) " >&6
15194 else
15195   if test -n "$acx_pthread_config"; then
15196   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15197 else
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15200 do
15201   IFS=$as_save_IFS
15202   test -z "$as_dir" && as_dir=.
15203     for ac_exec_ext in '' $ac_executable_extensions; do
15204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205     ac_cv_prog_acx_pthread_config="yes"
15206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15207     break 2
15208   fi
15209 done
15210   done
15211 IFS=$as_save_IFS
15212
15213   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15214 fi
15215 fi
15216 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15217 if test -n "$acx_pthread_config"; then
15218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15219 $as_echo "$acx_pthread_config" >&6; }
15220 else
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 $as_echo "no" >&6; }
15223 fi
15224
15225
15226                 if test x"$acx_pthread_config" = xno; then continue; fi
15227                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15228                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15229                 ;;
15230
15231                 *)
15232                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15233 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15234                 PTHREAD_LIBS="-l$flag"
15235                 ;;
15236         esac
15237
15238         save_LIBS="$LIBS"
15239         save_CFLAGS="$CFLAGS"
15240         LIBS="$PTHREAD_LIBS $LIBS"
15241         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15242
15243         # Check for various functions.  We must include pthread.h,
15244         # since some functions may be macros.  (On the Sequent, we
15245         # need a special flag -Kthread to make this header compile.)
15246         # We check for pthread_join because it is in -lpthread on IRIX
15247         # while pthread_create is in libc.  We check for pthread_attr_init
15248         # due to DEC craziness with -lpthreads.  We check for
15249         # pthread_cleanup_push because it is one of the few pthread
15250         # functions on Solaris that doesn't have a non-functional libc stub.
15251         # We try pthread_create on general principles.
15252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h.  */
15254 #include <pthread.h>
15255 int
15256 main ()
15257 {
15258 pthread_t th; pthread_join(th, 0);
15259                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15260                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 if ac_fn_c_try_link "$LINENO"; then :
15266   acx_pthread_ok=yes
15267 fi
15268 rm -f core conftest.err conftest.$ac_objext \
15269     conftest$ac_exeext conftest.$ac_ext
15270
15271         LIBS="$save_LIBS"
15272         CFLAGS="$save_CFLAGS"
15273
15274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15275 $as_echo "$acx_pthread_ok" >&6; }
15276         if test "x$acx_pthread_ok" = xyes; then
15277                 break;
15278         fi
15279
15280         PTHREAD_LIBS=""
15281         PTHREAD_CFLAGS=""
15282 done
15283 fi
15284
15285 # Various other checks:
15286 if test "x$acx_pthread_ok" = xyes; then
15287         save_LIBS="$LIBS"
15288         LIBS="$PTHREAD_LIBS $LIBS"
15289         save_CFLAGS="$CFLAGS"
15290         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15291
15292         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15294 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15295         attr_name=unknown
15296         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15297             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h.  */
15299 #include <pthread.h>
15300 int
15301 main ()
15302 {
15303 int attr=$attr; return attr;
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 if ac_fn_c_try_link "$LINENO"; then :
15309   attr_name=$attr; break
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext \
15312     conftest$ac_exeext conftest.$ac_ext
15313         done
15314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15315 $as_echo "$attr_name" >&6; }
15316         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15317
15318 cat >>confdefs.h <<_ACEOF
15319 #define PTHREAD_CREATE_JOINABLE $attr_name
15320 _ACEOF
15321
15322         fi
15323
15324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15325 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15326         flag=no
15327         case "${host_cpu}-${host_os}" in
15328             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15329             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15330         esac
15331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15332 $as_echo "${flag}" >&6; }
15333         if test "x$flag" != xno; then
15334             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15335         fi
15336
15337         LIBS="$save_LIBS"
15338         CFLAGS="$save_CFLAGS"
15339
15340         # More AIX lossage: must compile with xlc_r or cc_r
15341         if test x"$GCC" != xyes; then
15342           for ac_prog in xlc_r cc_r
15343 do
15344   # Extract the first word of "$ac_prog", so it can be a program name with args.
15345 set dummy $ac_prog; ac_word=$2
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15347 $as_echo_n "checking for $ac_word... " >&6; }
15348 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15349   $as_echo_n "(cached) " >&6
15350 else
15351   if test -n "$PTHREAD_CC"; then
15352   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15353 else
15354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15355 for as_dir in $PATH
15356 do
15357   IFS=$as_save_IFS
15358   test -z "$as_dir" && as_dir=.
15359     for ac_exec_ext in '' $ac_executable_extensions; do
15360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15361     ac_cv_prog_PTHREAD_CC="$ac_prog"
15362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15363     break 2
15364   fi
15365 done
15366   done
15367 IFS=$as_save_IFS
15368
15369 fi
15370 fi
15371 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15372 if test -n "$PTHREAD_CC"; then
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15374 $as_echo "$PTHREAD_CC" >&6; }
15375 else
15376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15378 fi
15379
15380
15381   test -n "$PTHREAD_CC" && break
15382 done
15383 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15384
15385         else
15386           PTHREAD_CC=$CC
15387         fi
15388 else
15389         PTHREAD_CC="$CC"
15390 fi
15391
15392
15393
15394
15395
15396 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15397 if test x"$acx_pthread_ok" = xyes; then
15398
15399
15400 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15401
15402                 LIBS="$PTHREAD_LIBS $LIBS"
15403                 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15404                 CC="$PTHREAD_CC"
15405                 ub_have_pthreads=yes
15406                 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15407 "
15408 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15409
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_PTHREAD_SPINLOCK_T 1
15412 _ACEOF
15413
15414
15415 fi
15416 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15417 "
15418 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15419
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_PTHREAD_RWLOCK_T 1
15422 _ACEOF
15423
15424
15425 fi
15426
15427
15428         :
15429 else
15430         acx_pthread_ok=no
15431
15432 fi
15433 ac_ext=c
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438
15439
15440 fi
15441
15442 # check solaris thread library
15443
15444 # Check whether --with-solaris-threads was given.
15445 if test "${with_solaris_threads+set}" = set; then :
15446   withval=$with_solaris_threads;
15447 else
15448    withval="no"
15449 fi
15450
15451 ub_have_sol_threads=no
15452 if test x_$withval != x_no; then
15453         if test x_$ub_have_pthreads != x_no; then
15454             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15455 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15456         else
15457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15458 $as_echo_n "checking for library containing thr_create... " >&6; }
15459 if ${ac_cv_search_thr_create+:} false; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462   ac_func_search_save_LIBS=$LIBS
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h.  */
15465
15466 /* Override any GCC internal prototype to avoid an error.
15467    Use char because int might match the return type of a GCC
15468    builtin and then its argument prototype would still apply.  */
15469 #ifdef __cplusplus
15470 extern "C"
15471 #endif
15472 char thr_create ();
15473 int
15474 main ()
15475 {
15476 return thr_create ();
15477   ;
15478   return 0;
15479 }
15480 _ACEOF
15481 for ac_lib in '' thread; do
15482   if test -z "$ac_lib"; then
15483     ac_res="none required"
15484   else
15485     ac_res=-l$ac_lib
15486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15487   fi
15488   if ac_fn_c_try_link "$LINENO"; then :
15489   ac_cv_search_thr_create=$ac_res
15490 fi
15491 rm -f core conftest.err conftest.$ac_objext \
15492     conftest$ac_exeext
15493   if ${ac_cv_search_thr_create+:} false; then :
15494   break
15495 fi
15496 done
15497 if ${ac_cv_search_thr_create+:} false; then :
15498
15499 else
15500   ac_cv_search_thr_create=no
15501 fi
15502 rm conftest.$ac_ext
15503 LIBS=$ac_func_search_save_LIBS
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15506 $as_echo "$ac_cv_search_thr_create" >&6; }
15507 ac_res=$ac_cv_search_thr_create
15508 if test "$ac_res" != no; then :
15509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15510
15511
15512 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15513
15514
15515
15516
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15518 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15519 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15520 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15521   $as_echo_n "(cached) " >&6
15522 else
15523
15524 echo 'void f(){}' >conftest.c
15525 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15526 eval "cv_prog_cc_flag_$cache=yes"
15527 else
15528 eval "cv_prog_cc_flag_$cache=no"
15529 fi
15530 rm -f conftest conftest.o conftest.c
15531
15532 fi
15533
15534 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536 $as_echo "yes" >&6; }
15537 :
15538 CFLAGS="$CFLAGS -mt"
15539 else
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15541 $as_echo "no" >&6; }
15542 :
15543 CFLAGS="$CFLAGS -D_REENTRANT"
15544 fi
15545
15546                 ub_have_sol_threads=yes
15547
15548 else
15549
15550                 as_fn_error $? "no solaris threads found." "$LINENO" 5
15551
15552 fi
15553
15554         fi
15555 fi
15556
15557 fi # end of non-mingw check of thread libraries
15558
15559 # Check for PyUnbound
15560
15561 # Check whether --with-pyunbound was given.
15562 if test "${with_pyunbound+set}" = set; then :
15563   withval=$with_pyunbound;
15564 else
15565    withval="no"
15566 fi
15567
15568
15569 ub_test_python=no
15570 ub_with_pyunbound=no
15571 if test x_$withval != x_no; then
15572    ub_with_pyunbound=yes
15573    ub_test_python=yes
15574 fi
15575
15576 # Check for Python module
15577
15578 # Check whether --with-pythonmodule was given.
15579 if test "${with_pythonmodule+set}" = set; then :
15580   withval=$with_pythonmodule;
15581 else
15582    withval="no"
15583 fi
15584
15585
15586 ub_with_pythonmod=no
15587 if test x_$withval != x_no; then
15588    ub_with_pythonmod=yes
15589    ub_test_python=yes
15590 fi
15591
15592 # Check for Python & SWIG only on PyUnbound or PyModule
15593 if test x_$ub_test_python != x_no; then
15594
15595    # Check for Python
15596    ub_have_python=no
15597    ac_save_LIBS="$LIBS"
15598         #
15599         # Allow the use of a (user set) custom python version
15600         #
15601
15602
15603         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15604 set dummy python$PYTHON_VERSION; ac_word=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_path_PYTHON+:} false; then :
15608   $as_echo_n "(cached) " >&6
15609 else
15610   case $PYTHON in
15611   [\\/]* | ?:[\\/]*)
15612   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15613   ;;
15614   *)
15615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in $PATH
15617 do
15618   IFS=$as_save_IFS
15619   test -z "$as_dir" && as_dir=.
15620     for ac_exec_ext in '' $ac_executable_extensions; do
15621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15624     break 2
15625   fi
15626 done
15627   done
15628 IFS=$as_save_IFS
15629
15630   ;;
15631 esac
15632 fi
15633 PYTHON=$ac_cv_path_PYTHON
15634 if test -n "$PYTHON"; then
15635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15636 $as_echo "$PYTHON" >&6; }
15637 else
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639 $as_echo "no" >&6; }
15640 fi
15641
15642
15643         if test -z "$PYTHON"; then
15644            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15645            PYTHON_VERSION=""
15646         fi
15647
15648         if test -z "$PYTHON_VERSION"; then
15649                 PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15650                         print string.split(sys.version)[0]"`
15651         fi
15652
15653         #
15654         # Check for a version of Python >= 2.1.0
15655         #
15656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15657 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15658         ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15659                 ver = string.split(sys.version)[0]; \
15660                 print ver >= '2.1.0'"`
15661         if test "$ac_supports_python_ver" != "True"; then
15662                 if test -z "$PYTHON_NOVERSIONCHECK"; then
15663                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15664 $as_echo "no" >&6; }
15665                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15667 as_fn_error $? "
15668 This version of the AC_PYTHON_DEVEL macro
15669 doesn't work properly with versions of Python before
15670 2.1.0. You may need to re-run configure, setting the
15671 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15672 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15673 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15674 to something else than an empty string.
15675
15676 See \`config.log' for more details" "$LINENO" 5; }
15677                 else
15678                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15679 $as_echo "skip at user request" >&6; }
15680                 fi
15681         else
15682                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15684         fi
15685
15686         #
15687         # if the macro parameter ``version'' is set, honour it
15688         #
15689         if test -n ""; then
15690                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15691 $as_echo_n "checking for a version of Python ... " >&6; }
15692                 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15693                         ver = string.split(sys.version)[0]; \
15694                         print ver "`
15695                 if test "$ac_supports_python_ver" = "True"; then
15696                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15698                 else
15699                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15700 $as_echo "no" >&6; }
15701                         as_fn_error $? "this package requires Python .
15702 If you have it installed, but it isn't the default Python
15703 interpreter in your system path, please pass the PYTHON_VERSION
15704 variable to configure. See \`\`configure --help'' for reference.
15705 " "$LINENO" 5
15706                         PYTHON_VERSION=""
15707                 fi
15708         fi
15709
15710         #
15711         # Check if you have distutils, else fail
15712         #
15713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15714 $as_echo_n "checking for the distutils Python package... " >&6; }
15715         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15716         if test -z "$ac_distutils_result"; then
15717                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15719         else
15720                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15722                 as_fn_error $? "cannot import Python module \"distutils\".
15723 Please check your Python installation. The error was:
15724 $ac_distutils_result" "$LINENO" 5
15725                 PYTHON_VERSION=""
15726         fi
15727
15728         #
15729         # Check for Python include path
15730         #
15731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15732 $as_echo_n "checking for Python include path... " >&6; }
15733         if test -z "$PYTHON_CPPFLAGS"; then
15734                 python_path=`$PYTHON -c "import distutils.sysconfig; \
15735                         print distutils.sysconfig.get_python_inc();"`
15736                 if test -n "${python_path}"; then
15737                         python_path="-I$python_path"
15738                 fi
15739                 PYTHON_CPPFLAGS=$python_path
15740         fi
15741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15742 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15743
15744
15745         #
15746         # Check for Python library path
15747         #
15748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15749 $as_echo_n "checking for Python library path... " >&6; }
15750         if test -z "$PYTHON_LDFLAGS"; then
15751                 # (makes two attempts to ensure we've got a version number
15752                 # from the interpreter)
15753                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15754                         from string import join; \
15755                         print join(get_config_vars('VERSION'))"`
15756                 if test "$py_version" = "None"; then
15757                         if test -n "$PYTHON_VERSION"; then
15758                                 py_version=$PYTHON_VERSION
15759                         else
15760                                 py_version=`$PYTHON -c "import sys; \
15761                                         print sys.version[:3]"`
15762                         fi
15763                 fi
15764
15765                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15766                         from string import join; \
15767                         print '-L' + get_python_lib(0,1), \
15768                         '-L' + os.path.dirname(get_python_lib(0,1)), \
15769                         '-lpython';"`$py_version
15770         fi
15771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15772 $as_echo "$PYTHON_LDFLAGS" >&6; }
15773
15774
15775         #
15776         # Check for site packages
15777         #
15778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15779 $as_echo_n "checking for Python site-packages path... " >&6; }
15780         if test -z "$PYTHON_SITE_PKG"; then
15781                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15782                         print distutils.sysconfig.get_python_lib(1,0);"`
15783         fi
15784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15785 $as_echo "$PYTHON_SITE_PKG" >&6; }
15786
15787
15788         #
15789         # libraries which must be linked in when embedding
15790         #
15791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15792 $as_echo_n "checking python extra libraries... " >&6; }
15793         if test -z "$PYTHON_EXTRA_LIBS"; then
15794            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15795                 conf = distutils.sysconfig.get_config_var; \
15796                 print conf('LOCALMODLIBS'), conf('LIBS')"`
15797         fi
15798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15799 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15800
15801
15802         #
15803         # linking flags needed when embedding
15804         #
15805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15806 $as_echo_n "checking python extra linking flags... " >&6; }
15807         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15808                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15809                         conf = distutils.sysconfig.get_config_var; \
15810                         print conf('LINKFORSHARED')"`
15811         fi
15812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15813 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15814
15815
15816         #
15817         # final check to see if everything compiles alright
15818         #
15819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15820 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15821         ac_ext=c
15822 ac_cpp='$CPP $CPPFLAGS'
15823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15826
15827         # save current global flags
15828         ac_save_LIBS="$LIBS"
15829         ac_save_CPPFLAGS="$CPPFLAGS"
15830
15831         LIBS="$LIBS $PYTHON_LDFLAGS"
15832         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15833         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h.  */
15835
15836                 #include <Python.h>
15837
15838 int
15839 main ()
15840 {
15841
15842                 Py_Initialize();
15843
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 if ac_fn_c_try_link "$LINENO"; then :
15849   pythonexists=yes
15850 else
15851   pythonexists=no
15852 fi
15853 rm -f core conftest.err conftest.$ac_objext \
15854     conftest$ac_exeext conftest.$ac_ext
15855
15856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15857 $as_echo "$pythonexists" >&6; }
15858
15859         if test ! "$pythonexists" = "yes"; then
15860            as_fn_error $? "
15861   Could not link test program to Python. Maybe the main Python library has been
15862   installed in some non-standard library path. If so, pass it to configure,
15863   via the LDFLAGS environment variable.
15864   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15865   ============================================================================
15866    ERROR!
15867    You probably have to install the development version of the Python package
15868    for your distribution.  The exact name of this package varies among them.
15869   ============================================================================
15870            " "$LINENO" 5
15871           PYTHON_VERSION=""
15872         fi
15873         ac_ext=c
15874 ac_cpp='$CPP $CPPFLAGS'
15875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15878
15879         # turn back to default flags
15880         CPPFLAGS="$ac_save_CPPFLAGS"
15881         LIBS="$ac_save_LIBS"
15882
15883         #
15884         # all done!
15885         #
15886
15887    if test ! -z "$PYTHON_VERSION"; then
15888         if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15889                 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15890         fi
15891
15892       # Have Python
15893
15894 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15895
15896       LIBS="$PYTHON_LDFLAGS $LIBS"
15897       CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15898       ub_have_python=yes
15899
15900       # Check for SWIG
15901       ub_have_swig=no
15902
15903         # Extract the first word of "swig", so it can be a program name with args.
15904 set dummy swig; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_path_SWIG+:} false; then :
15908   $as_echo_n "(cached) " >&6
15909 else
15910   case $SWIG in
15911   [\\/]* | ?:[\\/]*)
15912   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15913   ;;
15914   *)
15915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918   IFS=$as_save_IFS
15919   test -z "$as_dir" && as_dir=.
15920     for ac_exec_ext in '' $ac_executable_extensions; do
15921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924     break 2
15925   fi
15926 done
15927   done
15928 IFS=$as_save_IFS
15929
15930   ;;
15931 esac
15932 fi
15933 SWIG=$ac_cv_path_SWIG
15934 if test -n "$SWIG"; then
15935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15936 $as_echo "$SWIG" >&6; }
15937 else
15938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 $as_echo "no" >&6; }
15940 fi
15941
15942
15943         if test -z "$SWIG" ; then
15944                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15945 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15946                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15947         elif test -n "" ; then
15948                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15949 $as_echo_n "checking for SWIG version... " >&6; }
15950                 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'`
15951                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15952 $as_echo "$swig_version" >&6; }
15953                 if test -n "$swig_version" ; then
15954                         # Calculate the required version number components
15955                         required=
15956                         required_major=`echo $required | sed 's/[^0-9].*//'`
15957                         if test -z "$required_major" ; then
15958                                 required_major=0
15959                         fi
15960                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15961                         required_minor=`echo $required | sed 's/[^0-9].*//'`
15962                         if test -z "$required_minor" ; then
15963                                 required_minor=0
15964                         fi
15965                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15966                         required_patch=`echo $required | sed 's/[^0-9].*//'`
15967                         if test -z "$required_patch" ; then
15968                                 required_patch=0
15969                         fi
15970                         # Calculate the available version number components
15971                         available=$swig_version
15972                         available_major=`echo $available | sed 's/[^0-9].*//'`
15973                         if test -z "$available_major" ; then
15974                                 available_major=0
15975                         fi
15976                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15977                         available_minor=`echo $available | sed 's/[^0-9].*//'`
15978                         if test -z "$available_minor" ; then
15979                                 available_minor=0
15980                         fi
15981                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15982                         available_patch=`echo $available | sed 's/[^0-9].*//'`
15983                         if test -z "$available_patch" ; then
15984                                 available_patch=0
15985                         fi
15986                         if test $available_major -ne $required_major \
15987                                 -o $available_minor -ne $required_minor \
15988                                 -o $available_patch -lt $required_patch ; then
15989                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
15990 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
15991                                 SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
15992                         else
15993                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15994 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15995                                 SWIG_LIB=`$SWIG -swiglib`
15996                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
15997 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
15998                         fi
15999                 else
16000                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16001 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16002                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
16003                 fi
16004         fi
16005
16006
16007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16008 $as_echo_n "checking SWIG... " >&6; }
16009       if test ! -x "$SWIG"; then
16010          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16011       else
16012
16013 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16014
16015          swig="$SWIG"
16016
16017          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16018 $as_echo "present" >&6; }
16019
16020          # If have Python & SWIG
16021          # Declare PythonMod
16022          if test x_$ub_with_pythonmod != x_no; then
16023
16024 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16025
16026             WITH_PYTHONMODULE=yes
16027
16028             PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16029
16030             PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16031
16032             PYTHONMOD_INSTALL=pythonmod-install
16033
16034             PYTHONMOD_UNINSTALL=pythonmod-uninstall
16035
16036          fi
16037
16038          # Declare PyUnbound
16039          if test x_$ub_with_pyunbound != x_no; then
16040
16041 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16042
16043             WITH_PYUNBOUND=yes
16044
16045             PYUNBOUND_OBJ="libunbound_wrap.lo"
16046
16047             PYUNBOUND_TARGET="_unbound.la"
16048
16049             PYUNBOUND_INSTALL=pyunbound-install
16050
16051             PYUNBOUND_UNINSTALL=pyunbound-uninstall
16052
16053          fi
16054       fi
16055    else
16056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16057 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16058       ub_with_pyunbound=no
16059       ub_with_pythonmod=no
16060    fi
16061 fi
16062
16063 if test "`uname`" = "NetBSD"; then
16064         NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16065
16066 fi
16067 CONFIG_DATE=`date +%Y%m%d`
16068
16069
16070 # Checks for libraries.
16071
16072 # libnss
16073 USE_NSS="no"
16074
16075 # Check whether --with-nss was given.
16076 if test "${with_nss+set}" = set; then :
16077   withval=$with_nss;
16078         USE_NSS="yes"
16079
16080 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16081
16082         if test "$withval" != "" -a "$withval" != "yes"; then
16083                 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16084                 LDFLAGS="$LDFLAGS -L$withval/lib"
16085
16086         if test "x$enable_rpath" = xyes; then
16087                 if echo "$withval/lib" | grep "^/" >/dev/null; then
16088                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16089                 fi
16090         fi
16091
16092                 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16093         else
16094                 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16095                 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16096         fi
16097         LIBS="$LIBS -lnss3 -lnspr4"
16098
16099
16100 fi
16101
16102
16103 # openssl
16104 if test $USE_NSS = "no"; then
16105
16106
16107 # Check whether --with-ssl was given.
16108 if test "${with_ssl+set}" = set; then :
16109   withval=$with_ssl;
16110
16111 else
16112
16113             withval="yes"
16114
16115 fi
16116
16117     if test x_$withval = x_no; then
16118         as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16119     fi
16120
16121     withval=$withval
16122     if test x_$withval != x_no; then
16123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16124 $as_echo_n "checking for SSL... " >&6; }
16125         if test x_$withval = x_ -o x_$withval = x_yes; then
16126             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16127         fi
16128         for dir in $withval; do
16129             ssldir="$dir"
16130             if test -f "$dir/include/openssl/ssl.h"; then
16131                 found_ssl="yes"
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_SSL /**/
16135 _ACEOF
16136
16137                                 if test "$ssldir" != "/usr"; then
16138                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16139                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16140                 fi
16141                 break;
16142             fi
16143         done
16144         if test x_$found_ssl != x_yes; then
16145             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16146         else
16147             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16148 $as_echo "found in $ssldir" >&6; }
16149             HAVE_SSL=yes
16150                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16151                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16152                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16153
16154         if test "x$enable_rpath" = xyes; then
16155                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16156                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16157                 fi
16158         fi
16159
16160             fi
16161
16162             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16163 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16164             LIBS="$LIBS -lcrypto"
16165             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16166             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h.  */
16168
16169 int
16170 main ()
16171 {
16172
16173                 int HMAC_CTX_init(void);
16174                 (void)HMAC_CTX_init();
16175
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_c_try_link "$LINENO"; then :
16181
16182                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16183 $as_echo "yes" >&6; }
16184
16185 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16186
16187
16188 else
16189
16190                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16192                 # check if -lwsock32 or -lgdi32 are needed.
16193                 BAKLIBS="$LIBS"
16194                 BAKSSLLIBS="$LIBSSL_LIBS"
16195                 LIBS="$LIBS -lgdi32"
16196                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16197                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16198 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16199                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h.  */
16201
16202 int
16203 main ()
16204 {
16205
16206                     int HMAC_CTX_init(void);
16207                     (void)HMAC_CTX_init();
16208
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 if ac_fn_c_try_link "$LINENO"; then :
16214
16215
16216 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16217
16218                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16219 $as_echo "yes" >&6; }
16220
16221 else
16222
16223                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224 $as_echo "no" >&6; }
16225                     LIBS="$BAKLIBS"
16226                     LIBSSL_LIBS="$BAKSSLLIBS"
16227                     LIBS="$LIBS -ldl"
16228                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16229                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16230 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16231                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h.  */
16233
16234 int
16235 main ()
16236 {
16237
16238                         int HMAC_CTX_init(void);
16239                         (void)HMAC_CTX_init();
16240
16241   ;
16242   return 0;
16243 }
16244 _ACEOF
16245 if ac_fn_c_try_link "$LINENO"; then :
16246
16247
16248 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16249
16250                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16251 $as_echo "yes" >&6; }
16252
16253 else
16254
16255                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16257                     as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16258
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext \
16261     conftest$ac_exeext conftest.$ac_ext
16262
16263 fi
16264 rm -f core conftest.err conftest.$ac_objext \
16265     conftest$ac_exeext conftest.$ac_ext
16266
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext \
16269     conftest$ac_exeext conftest.$ac_ext
16270         fi
16271
16272
16273         # openssl engine functionality needs dlopen().
16274         BAKLIBS="$LIBS"
16275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16276 $as_echo_n "checking for library containing dlopen... " >&6; }
16277 if ${ac_cv_search_dlopen+:} false; then :
16278   $as_echo_n "(cached) " >&6
16279 else
16280   ac_func_search_save_LIBS=$LIBS
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h.  */
16283
16284 /* Override any GCC internal prototype to avoid an error.
16285    Use char because int might match the return type of a GCC
16286    builtin and then its argument prototype would still apply.  */
16287 #ifdef __cplusplus
16288 extern "C"
16289 #endif
16290 char dlopen ();
16291 int
16292 main ()
16293 {
16294 return dlopen ();
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 for ac_lib in '' dl; do
16300   if test -z "$ac_lib"; then
16301     ac_res="none required"
16302   else
16303     ac_res=-l$ac_lib
16304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16305   fi
16306   if ac_fn_c_try_link "$LINENO"; then :
16307   ac_cv_search_dlopen=$ac_res
16308 fi
16309 rm -f core conftest.err conftest.$ac_objext \
16310     conftest$ac_exeext
16311   if ${ac_cv_search_dlopen+:} false; then :
16312   break
16313 fi
16314 done
16315 if ${ac_cv_search_dlopen+:} false; then :
16316
16317 else
16318   ac_cv_search_dlopen=no
16319 fi
16320 rm conftest.$ac_ext
16321 LIBS=$ac_func_search_save_LIBS
16322 fi
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16324 $as_echo "$ac_cv_search_dlopen" >&6; }
16325 ac_res=$ac_cv_search_dlopen
16326 if test "$ac_res" != no; then :
16327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16328
16329 fi
16330
16331         if test "$LIBS" != "$BAKLIBS"; then
16332                 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16333         fi
16334     fi
16335 for ac_header in openssl/ssl.h
16336 do :
16337   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16338 "
16339 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16340   cat >>confdefs.h <<_ACEOF
16341 #define HAVE_OPENSSL_SSL_H 1
16342 _ACEOF
16343
16344 fi
16345
16346 done
16347
16348 for ac_header in openssl/err.h
16349 do :
16350   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16351 "
16352 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16353   cat >>confdefs.h <<_ACEOF
16354 #define HAVE_OPENSSL_ERR_H 1
16355 _ACEOF
16356
16357 fi
16358
16359 done
16360
16361 for ac_header in openssl/rand.h
16362 do :
16363   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16364 "
16365 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16366   cat >>confdefs.h <<_ACEOF
16367 #define HAVE_OPENSSL_RAND_H 1
16368 _ACEOF
16369
16370 fi
16371
16372 done
16373
16374
16375
16376
16377 # check if libssl needs libdl
16378 BAKLIBS="$LIBS"
16379 LIBS="-lssl $LIBS"
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16381 $as_echo_n "checking if libssl needs libdl... " >&6; }
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h.  */
16384
16385 /* Override any GCC internal prototype to avoid an error.
16386    Use char because int might match the return type of a GCC
16387    builtin and then its argument prototype would still apply.  */
16388 #ifdef __cplusplus
16389 extern "C"
16390 #endif
16391 char SSL_CTX_new ();
16392 int
16393 main ()
16394 {
16395 return SSL_CTX_new ();
16396   ;
16397   return 0;
16398 }
16399 _ACEOF
16400 if ac_fn_c_try_link "$LINENO"; then :
16401
16402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 $as_echo "no" >&6; }
16404         LIBS="$BAKLIBS"
16405
16406 else
16407
16408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16409 $as_echo "yes" >&6; }
16410         LIBS="$BAKLIBS"
16411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16412 $as_echo_n "checking for library containing dlopen... " >&6; }
16413 if ${ac_cv_search_dlopen+:} false; then :
16414   $as_echo_n "(cached) " >&6
16415 else
16416   ac_func_search_save_LIBS=$LIBS
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h.  */
16419
16420 /* Override any GCC internal prototype to avoid an error.
16421    Use char because int might match the return type of a GCC
16422    builtin and then its argument prototype would still apply.  */
16423 #ifdef __cplusplus
16424 extern "C"
16425 #endif
16426 char dlopen ();
16427 int
16428 main ()
16429 {
16430 return dlopen ();
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 for ac_lib in '' dl; do
16436   if test -z "$ac_lib"; then
16437     ac_res="none required"
16438   else
16439     ac_res=-l$ac_lib
16440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16441   fi
16442   if ac_fn_c_try_link "$LINENO"; then :
16443   ac_cv_search_dlopen=$ac_res
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext \
16446     conftest$ac_exeext
16447   if ${ac_cv_search_dlopen+:} false; then :
16448   break
16449 fi
16450 done
16451 if ${ac_cv_search_dlopen+:} false; then :
16452
16453 else
16454   ac_cv_search_dlopen=no
16455 fi
16456 rm conftest.$ac_ext
16457 LIBS=$ac_func_search_save_LIBS
16458 fi
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16460 $as_echo "$ac_cv_search_dlopen" >&6; }
16461 ac_res=$ac_cv_search_dlopen
16462 if test "$ac_res" != no; then :
16463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16464
16465 fi
16466
16467
16468 fi
16469 rm -f core conftest.err conftest.$ac_objext \
16470     conftest$ac_exeext conftest.$ac_ext
16471 for ac_header in openssl/conf.h
16472 do :
16473   ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16474 "
16475 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16476   cat >>confdefs.h <<_ACEOF
16477 #define HAVE_OPENSSL_CONF_H 1
16478 _ACEOF
16479
16480 fi
16481
16482 done
16483
16484 for ac_header in openssl/engine.h
16485 do :
16486   ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16487 "
16488 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16489   cat >>confdefs.h <<_ACEOF
16490 #define HAVE_OPENSSL_ENGINE_H 1
16491 _ACEOF
16492
16493 fi
16494
16495 done
16496
16497 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16498 do :
16499   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16501 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16502   cat >>confdefs.h <<_ACEOF
16503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16504 _ACEOF
16505
16506 fi
16507 done
16508
16509 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16510 $ac_includes_default
16511 #ifdef HAVE_OPENSSL_ERR_H
16512 #include <openssl/err.h>
16513 #endif
16514
16515 #ifdef HAVE_OPENSSL_RAND_H
16516 #include <openssl/rand.h>
16517 #endif
16518
16519 #ifdef HAVE_OPENSSL_CONF_H
16520 #include <openssl/conf.h>
16521 #endif
16522
16523 #ifdef HAVE_OPENSSL_ENGINE_H
16524 #include <openssl/engine.h>
16525 #endif
16526 #include <openssl/ssl.h>
16527 #include <openssl/evp.h>
16528
16529 "
16530 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16531   ac_have_decl=1
16532 else
16533   ac_have_decl=0
16534 fi
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16538 _ACEOF
16539 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16540 $ac_includes_default
16541 #ifdef HAVE_OPENSSL_ERR_H
16542 #include <openssl/err.h>
16543 #endif
16544
16545 #ifdef HAVE_OPENSSL_RAND_H
16546 #include <openssl/rand.h>
16547 #endif
16548
16549 #ifdef HAVE_OPENSSL_CONF_H
16550 #include <openssl/conf.h>
16551 #endif
16552
16553 #ifdef HAVE_OPENSSL_ENGINE_H
16554 #include <openssl/engine.h>
16555 #endif
16556 #include <openssl/ssl.h>
16557 #include <openssl/evp.h>
16558
16559 "
16560 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16561   ac_have_decl=1
16562 else
16563   ac_have_decl=0
16564 fi
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16568 _ACEOF
16569
16570 fi
16571
16572
16573 # Check whether --enable-sha2 was given.
16574 if test "${enable_sha2+set}" = set; then :
16575   enableval=$enable_sha2;
16576 fi
16577
16578 case "$enable_sha2" in
16579         no)
16580         ;;
16581         yes|*)
16582
16583 $as_echo "#define USE_SHA2 1" >>confdefs.h
16584
16585         ;;
16586 esac
16587
16588 # check wether gost also works
16589
16590 # Check whether --enable-gost was given.
16591 if test "${enable_gost+set}" = set; then :
16592   enableval=$enable_gost;
16593 fi
16594
16595 use_gost="no"
16596 if test $USE_NSS = "no"; then
16597 case "$enable_gost" in
16598         no)
16599         ;;
16600         *)
16601         ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16602 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16603   :
16604 else
16605   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16606 fi
16607
16608         ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16609 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16610
16611 else
16612   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16613 fi
16614
16615
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16617 $as_echo_n "checking if GOST works... " >&6; }
16618 if test c${cross_compiling} = cno; then
16619 BAKCFLAGS="$CFLAGS"
16620 if test -n "$ssldir"; then
16621         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16622 fi
16623 if test "$cross_compiling" = yes; then :
16624   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16626 as_fn_error $? "cannot run test program while cross compiling
16627 See \`config.log' for more details" "$LINENO" 5; }
16628 else
16629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h.  */
16631
16632 #include <string.h>
16633 #include <openssl/ssl.h>
16634 #include <openssl/evp.h>
16635 #include <openssl/engine.h>
16636 #include <openssl/conf.h>
16637 /* routine to load gost from ldns */
16638 int load_gost_id(void)
16639 {
16640         static int gost_id = 0;
16641         const EVP_PKEY_ASN1_METHOD* meth;
16642         ENGINE* e;
16643
16644         if(gost_id) return gost_id;
16645
16646         /* see if configuration loaded gost implementation from other engine*/
16647         meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16648         if(meth) {
16649                 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16650                 return gost_id;
16651         }
16652
16653         /* see if engine can be loaded already */
16654         e = ENGINE_by_id("gost");
16655         if(!e) {
16656                 /* load it ourself, in case statically linked */
16657                 ENGINE_load_builtin_engines();
16658                 ENGINE_load_dynamic();
16659                 e = ENGINE_by_id("gost");
16660         }
16661         if(!e) {
16662                 /* no gost engine in openssl */
16663                 return 0;
16664         }
16665         if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16666                 ENGINE_finish(e);
16667                 ENGINE_free(e);
16668                 return 0;
16669         }
16670
16671         meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16672         if(!meth) {
16673                 /* algo not found */
16674                 ENGINE_finish(e);
16675                 ENGINE_free(e);
16676                 return 0;
16677         }
16678         EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16679         return gost_id;
16680 }
16681 int main(void) {
16682         EVP_MD_CTX* ctx;
16683         const EVP_MD* md;
16684         unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16685         const char* str = "Hello world";
16686         const unsigned char check[] = {
16687                 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16688                 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16689                 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16690                 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16691         };
16692         OPENSSL_config(NULL);
16693         (void)load_gost_id();
16694         md = EVP_get_digestbyname("md_gost94");
16695         if(!md) return 1;
16696         memset(digest, 0, sizeof(digest));
16697         ctx = EVP_MD_CTX_create();
16698         if(!ctx) return 2;
16699         if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16700         if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16701         if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16702         /* uncomment to see the hash calculated.
16703                 {int i;
16704                 for(i=0; i<32; i++)
16705                         printf(" %2.2x", (int)digest[i]);
16706                 printf("\n");}
16707         */
16708         if(memcmp(digest, check, sizeof(check)) != 0)
16709                 return 6;
16710         return 0;
16711 }
16712
16713 _ACEOF
16714 if ac_fn_c_try_run "$LINENO"; then :
16715   eval "ac_cv_c_gost_works=yes"
16716 else
16717   eval "ac_cv_c_gost_works=no"
16718 fi
16719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16720   conftest.$ac_objext conftest.beam conftest.$ac_ext
16721 fi
16722
16723 CFLAGS="$BAKCFLAGS"
16724 else
16725 eval "ac_cv_c_gost_works=maybe"
16726 fi
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16728 $as_echo "$ac_cv_c_gost_works" >&6; }
16729
16730         if test "$ac_cv_c_gost_works" != no; then
16731                 use_gost="yes"
16732
16733 $as_echo "#define USE_GOST 1" >>confdefs.h
16734
16735         fi
16736         ;;
16737 esac
16738 fi
16739 # Check whether --enable-ecdsa was given.
16740 if test "${enable_ecdsa+set}" = set; then :
16741   enableval=$enable_ecdsa;
16742 fi
16743
16744 use_ecdsa="no"
16745 case "$enable_ecdsa" in
16746     no)
16747       ;;
16748     *)
16749       if test $USE_NSS = "no"; then
16750               ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16751 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16752
16753 else
16754   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16755 fi
16756
16757               ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16758 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16759
16760 else
16761   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16762 fi
16763
16764               ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16765 #include <openssl/evp.h>
16766
16767 "
16768 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16769   ac_have_decl=1
16770 else
16771   ac_have_decl=0
16772 fi
16773
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16776 _ACEOF
16777 if test $ac_have_decl = 1; then :
16778
16779 else
16780   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16781 fi
16782 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16783 #include <openssl/evp.h>
16784
16785 "
16786 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
16787   ac_have_decl=1
16788 else
16789   ac_have_decl=0
16790 fi
16791
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
16794 _ACEOF
16795 if test $ac_have_decl = 1; then :
16796
16797 else
16798   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16799 fi
16800
16801               # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16802               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16803 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16804               if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16805                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16807
16808 cat >>confdefs.h <<_ACEOF
16809 #define USE_ECDSA_EVP_WORKAROUND 1
16810 _ACEOF
16811
16812               else
16813                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 $as_echo "yes" >&6; }
16815               fi
16816       fi
16817       # we now know we have ECDSA and the required curves.
16818
16819 cat >>confdefs.h <<_ACEOF
16820 #define USE_ECDSA 1
16821 _ACEOF
16822
16823       use_ecdsa="yes"
16824       ;;
16825 esac
16826
16827 # check for libevent
16828
16829 # Check whether --with-libevent was given.
16830 if test "${with_libevent+set}" = set; then :
16831   withval=$with_libevent;
16832 else
16833    withval="no"
16834 fi
16835
16836 if test x_$withval = x_yes -o x_$withval != x_no; then
16837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16838 $as_echo_n "checking for libevent... " >&6; }
16839         if test x_$withval = x_ -o x_$withval = x_yes; then
16840             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16841         fi
16842         for dir in $withval; do
16843             thedir="$dir"
16844             if test -f "$dir/include/event.h"; then
16845                 found_libevent="yes"
16846                                 if test "$thedir" != "/usr"; then
16847                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
16848                 fi
16849                 break;
16850             fi
16851         done
16852         if test x_$found_libevent != x_yes; then
16853                 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16854                         # libevent source directory
16855                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16856 $as_echo "found in $thedir" >&6; }
16857                         CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16858                         BAK_LDFLAGS_SET="1"
16859                         BAK_LDFLAGS="$LDFLAGS"
16860                         # remove evdns from linking
16861                         mkdir build >/dev/null 2>&1
16862                         mkdir build/libevent >/dev/null 2>&1
16863                         mkdir build/libevent/.libs >/dev/null 2>&1
16864                         ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16865                         ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16866                         ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16867                         cp $ev_files_o build/libevent
16868                         cp $ev_files_lo build/libevent
16869                         cp $ev_files_libso build/libevent/.libs
16870                         LATE_LDFLAGS="build/libevent/*.lo -lm"
16871                         LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16872                 else
16873                         as_fn_error $? "Cannot find the libevent library in $withval
16874 You can restart ./configure --with-libevent=no to use a builtin alternative.
16875 Please note that this alternative is not as capable as libevent when using
16876 large outgoing port ranges.  " "$LINENO" 5
16877                 fi
16878         else
16879             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16880 $as_echo "found in $thedir" >&6; }
16881                     if test "$thedir" != "/usr" -a "$thedir" != ""; then
16882                 LDFLAGS="$LDFLAGS -L$thedir/lib"
16883
16884         if test "x$enable_rpath" = xyes; then
16885                 if echo "$thedir/lib" | grep "^/" >/dev/null; then
16886                         RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16887                 fi
16888         fi
16889
16890             fi
16891         fi
16892         # check for library used by libevent after 1.3c
16893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16894 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16895 if ${ac_cv_search_clock_gettime+:} false; then :
16896   $as_echo_n "(cached) " >&6
16897 else
16898   ac_func_search_save_LIBS=$LIBS
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h.  */
16901
16902 /* Override any GCC internal prototype to avoid an error.
16903    Use char because int might match the return type of a GCC
16904    builtin and then its argument prototype would still apply.  */
16905 #ifdef __cplusplus
16906 extern "C"
16907 #endif
16908 char clock_gettime ();
16909 int
16910 main ()
16911 {
16912 return clock_gettime ();
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 for ac_lib in '' rt; do
16918   if test -z "$ac_lib"; then
16919     ac_res="none required"
16920   else
16921     ac_res=-l$ac_lib
16922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16923   fi
16924   if ac_fn_c_try_link "$LINENO"; then :
16925   ac_cv_search_clock_gettime=$ac_res
16926 fi
16927 rm -f core conftest.err conftest.$ac_objext \
16928     conftest$ac_exeext
16929   if ${ac_cv_search_clock_gettime+:} false; then :
16930   break
16931 fi
16932 done
16933 if ${ac_cv_search_clock_gettime+:} false; then :
16934
16935 else
16936   ac_cv_search_clock_gettime=no
16937 fi
16938 rm conftest.$ac_ext
16939 LIBS=$ac_func_search_save_LIBS
16940 fi
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16942 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16943 ac_res=$ac_cv_search_clock_gettime
16944 if test "$ac_res" != no; then :
16945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16946
16947 fi
16948
16949
16950         # is the event.h header libev or libevent?
16951         for ac_header in event.h
16952 do :
16953   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16954 "
16955 if test "x$ac_cv_header_event_h" = xyes; then :
16956   cat >>confdefs.h <<_ACEOF
16957 #define HAVE_EVENT_H 1
16958 _ACEOF
16959
16960 fi
16961
16962 done
16963
16964         ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16965 #include <event.h>
16966
16967 "
16968 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16969
16970                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16971 $as_echo_n "checking for library containing event_set... " >&6; }
16972 if ${ac_cv_search_event_set+:} false; then :
16973   $as_echo_n "(cached) " >&6
16974 else
16975   ac_func_search_save_LIBS=$LIBS
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h.  */
16978
16979 /* Override any GCC internal prototype to avoid an error.
16980    Use char because int might match the return type of a GCC
16981    builtin and then its argument prototype would still apply.  */
16982 #ifdef __cplusplus
16983 extern "C"
16984 #endif
16985 char event_set ();
16986 int
16987 main ()
16988 {
16989 return event_set ();
16990   ;
16991   return 0;
16992 }
16993 _ACEOF
16994 for ac_lib in '' ev; do
16995   if test -z "$ac_lib"; then
16996     ac_res="none required"
16997   else
16998     ac_res=-l$ac_lib
16999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17000   fi
17001   if ac_fn_c_try_link "$LINENO"; then :
17002   ac_cv_search_event_set=$ac_res
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext \
17005     conftest$ac_exeext
17006   if ${ac_cv_search_event_set+:} false; then :
17007   break
17008 fi
17009 done
17010 if ${ac_cv_search_event_set+:} false; then :
17011
17012 else
17013   ac_cv_search_event_set=no
17014 fi
17015 rm conftest.$ac_ext
17016 LIBS=$ac_func_search_save_LIBS
17017 fi
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17019 $as_echo "$ac_cv_search_event_set" >&6; }
17020 ac_res=$ac_cv_search_event_set
17021 if test "$ac_res" != no; then :
17022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17023
17024 fi
17025
17026
17027 else
17028
17029                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17030 $as_echo_n "checking for library containing event_set... " >&6; }
17031 if ${ac_cv_search_event_set+:} false; then :
17032   $as_echo_n "(cached) " >&6
17033 else
17034   ac_func_search_save_LIBS=$LIBS
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h.  */
17037
17038 /* Override any GCC internal prototype to avoid an error.
17039    Use char because int might match the return type of a GCC
17040    builtin and then its argument prototype would still apply.  */
17041 #ifdef __cplusplus
17042 extern "C"
17043 #endif
17044 char event_set ();
17045 int
17046 main ()
17047 {
17048 return event_set ();
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 for ac_lib in '' event; do
17054   if test -z "$ac_lib"; then
17055     ac_res="none required"
17056   else
17057     ac_res=-l$ac_lib
17058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17059   fi
17060   if ac_fn_c_try_link "$LINENO"; then :
17061   ac_cv_search_event_set=$ac_res
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext \
17064     conftest$ac_exeext
17065   if ${ac_cv_search_event_set+:} false; then :
17066   break
17067 fi
17068 done
17069 if ${ac_cv_search_event_set+:} false; then :
17070
17071 else
17072   ac_cv_search_event_set=no
17073 fi
17074 rm conftest.$ac_ext
17075 LIBS=$ac_func_search_save_LIBS
17076 fi
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17078 $as_echo "$ac_cv_search_event_set" >&6; }
17079 ac_res=$ac_cv_search_event_set
17080 if test "$ac_res" != no; then :
17081   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17082
17083 fi
17084
17085
17086 fi
17087
17088         for ac_func in event_base_free
17089 do :
17090   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17091 if test "x$ac_cv_func_event_base_free" = xyes; then :
17092   cat >>confdefs.h <<_ACEOF
17093 #define HAVE_EVENT_BASE_FREE 1
17094 _ACEOF
17095
17096 fi
17097 done
17098  # only in libevent 1.2 and later
17099         for ac_func in event_base_once
17100 do :
17101   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17102 if test "x$ac_cv_func_event_base_once" = xyes; then :
17103   cat >>confdefs.h <<_ACEOF
17104 #define HAVE_EVENT_BASE_ONCE 1
17105 _ACEOF
17106
17107 fi
17108 done
17109  # only in libevent 1.4.1 and later
17110         for ac_func in event_base_new
17111 do :
17112   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17113 if test "x$ac_cv_func_event_base_new" = xyes; then :
17114   cat >>confdefs.h <<_ACEOF
17115 #define HAVE_EVENT_BASE_NEW 1
17116 _ACEOF
17117
17118 fi
17119 done
17120  # only in libevent 1.4.1 and later
17121         for ac_func in event_base_get_method
17122 do :
17123   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17124 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17125   cat >>confdefs.h <<_ACEOF
17126 #define HAVE_EVENT_BASE_GET_METHOD 1
17127 _ACEOF
17128
17129 fi
17130 done
17131  # only in libevent 1.4.3 and later
17132         for ac_func in ev_loop
17133 do :
17134   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17135 if test "x$ac_cv_func_ev_loop" = xyes; then :
17136   cat >>confdefs.h <<_ACEOF
17137 #define HAVE_EV_LOOP 1
17138 _ACEOF
17139
17140 fi
17141 done
17142  # only in libev. (tested on 3.51)
17143         for ac_func in ev_default_loop
17144 do :
17145   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17146 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17147   cat >>confdefs.h <<_ACEOF
17148 #define HAVE_EV_DEFAULT_LOOP 1
17149 _ACEOF
17150
17151 fi
17152 done
17153  # only in libev. (tested on 4.00)
17154         if test -n "$BAK_LDFLAGS_SET"; then
17155                 LDFLAGS="$BAK_LDFLAGS"
17156         fi
17157 else
17158
17159 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17160
17161 fi
17162
17163 # check for libexpat
17164
17165 # Check whether --with-libexpat was given.
17166 if test "${with_libexpat+set}" = set; then :
17167   withval=$with_libexpat;
17168 else
17169    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17170 fi
17171
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17173 $as_echo_n "checking for libexpat... " >&6; }
17174 found_libexpat="no"
17175 for dir in $withval ; do
17176             if test -f "$dir/include/expat.h"; then
17177                 found_libexpat="yes"
17178                                 if test "$dir" != "/usr"; then
17179                     CPPFLAGS="$CPPFLAGS -I$dir/include"
17180                     LDFLAGS="$LDFLAGS -L$dir/lib"
17181                 fi
17182                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17183 $as_echo "found in $dir" >&6; }
17184                 break;
17185             fi
17186 done
17187 if test x_$found_libexpat != x_yes; then
17188         as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17189 fi
17190 for ac_header in expat.h
17191 do :
17192   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17193 "
17194 if test "x$ac_cv_header_expat_h" = xyes; then :
17195   cat >>confdefs.h <<_ACEOF
17196 #define HAVE_EXPAT_H 1
17197 _ACEOF
17198
17199 fi
17200
17201 done
17202
17203
17204 # set static linking if requested
17205
17206 staticexe=""
17207 # Check whether --enable-static-exe was given.
17208 if test "${enable_static_exe+set}" = set; then :
17209   enableval=$enable_static_exe;
17210 fi
17211
17212 if test x_$enable_static_exe = x_yes; then
17213         staticexe="-static"
17214         if test "$on_mingw" = yes; then
17215                 staticexe="-all-static"
17216                 # for static crosscompile, include gdi32 and zlib here.
17217                 if test "`uname`" = "Linux"; then
17218                         LIBS="$LIBS -lgdi32 -lz"
17219                 fi
17220         fi
17221 fi
17222
17223 # set lock checking if requested
17224 # Check whether --enable-lock_checks was given.
17225 if test "${enable_lock_checks+set}" = set; then :
17226   enableval=$enable_lock_checks;
17227 fi
17228
17229 if test x_$enable_lock_checks = x_yes; then
17230
17231 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17232
17233         CHECKLOCK_OBJ="checklocks.lo"
17234
17235 fi
17236
17237
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17239 $as_echo_n "checking for getaddrinfo... " >&6; }
17240 ac_cv_func_getaddrinfo=no
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h.  */
17243
17244 #ifdef __cplusplus
17245 extern "C"
17246 {
17247 #endif
17248 char* getaddrinfo();
17249 char* (*f) () = getaddrinfo;
17250 #ifdef __cplusplus
17251 }
17252 #endif
17253 int main() {
17254         ;
17255         return 0;
17256 }
17257
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260   ac_cv_func_getaddrinfo="yes"
17261 if test "$ac_cv_header_windows_h" = "yes"; then
17262
17263 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17264
17265         USE_WINSOCK="1"
17266         LIBS="$LIBS -lws2_32"
17267 fi
17268
17269 else
17270   ORIGLIBS="$LIBS"
17271 LIBS="$LIBS -lws2_32"
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h.  */
17274
17275 #ifdef HAVE_WS2TCPIP_H
17276 #include <ws2tcpip.h>
17277 #endif
17278
17279 int
17280 main ()
17281 {
17282
17283         (void)getaddrinfo(NULL, NULL, NULL, NULL);
17284
17285
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 if ac_fn_c_try_link "$LINENO"; then :
17291
17292 ac_cv_func_getaddrinfo="yes"
17293
17294 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17295
17296 USE_WINSOCK="1"
17297
17298 else
17299
17300 ac_cv_func_getaddrinfo="no"
17301 LIBS="$ORIGLIBS"
17302
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext \
17305     conftest$ac_exeext conftest.$ac_ext
17306
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext \
17309     conftest$ac_exeext conftest.$ac_ext
17310
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17312 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17313 if test $ac_cv_func_getaddrinfo = yes; then
17314
17315 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17316
17317 fi
17318
17319 if test "$USE_WINSOCK" = 1; then
17320
17321 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17322
17323         for ac_header in iphlpapi.h
17324 do :
17325   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17326 #include <windows.h>
17327
17328 "
17329 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17330   cat >>confdefs.h <<_ACEOF
17331 #define HAVE_IPHLPAPI_H 1
17332 _ACEOF
17333
17334 fi
17335
17336 done
17337
17338         if test -n "$ac_tool_prefix"; then
17339   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17340 set dummy ${ac_tool_prefix}windres; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17342 $as_echo_n "checking for $ac_word... " >&6; }
17343 if ${ac_cv_prog_WINDRES+:} false; then :
17344   $as_echo_n "(cached) " >&6
17345 else
17346   if test -n "$WINDRES"; then
17347   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17348 else
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17351 do
17352   IFS=$as_save_IFS
17353   test -z "$as_dir" && as_dir=.
17354     for ac_exec_ext in '' $ac_executable_extensions; do
17355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17358     break 2
17359   fi
17360 done
17361   done
17362 IFS=$as_save_IFS
17363
17364 fi
17365 fi
17366 WINDRES=$ac_cv_prog_WINDRES
17367 if test -n "$WINDRES"; then
17368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17369 $as_echo "$WINDRES" >&6; }
17370 else
17371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373 fi
17374
17375
17376 fi
17377 if test -z "$ac_cv_prog_WINDRES"; then
17378   ac_ct_WINDRES=$WINDRES
17379   # Extract the first word of "windres", so it can be a program name with args.
17380 set dummy windres; ac_word=$2
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17382 $as_echo_n "checking for $ac_word... " >&6; }
17383 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17384   $as_echo_n "(cached) " >&6
17385 else
17386   if test -n "$ac_ct_WINDRES"; then
17387   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17388 else
17389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17390 for as_dir in $PATH
17391 do
17392   IFS=$as_save_IFS
17393   test -z "$as_dir" && as_dir=.
17394     for ac_exec_ext in '' $ac_executable_extensions; do
17395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17396     ac_cv_prog_ac_ct_WINDRES="windres"
17397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17398     break 2
17399   fi
17400 done
17401   done
17402 IFS=$as_save_IFS
17403
17404 fi
17405 fi
17406 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17407 if test -n "$ac_ct_WINDRES"; then
17408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17409 $as_echo "$ac_ct_WINDRES" >&6; }
17410 else
17411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412 $as_echo "no" >&6; }
17413 fi
17414
17415   if test "x$ac_ct_WINDRES" = x; then
17416     WINDRES=""
17417   else
17418     case $cross_compiling:$ac_tool_warned in
17419 yes:)
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17422 ac_tool_warned=yes ;;
17423 esac
17424     WINDRES=$ac_ct_WINDRES
17425   fi
17426 else
17427   WINDRES="$ac_cv_prog_WINDRES"
17428 fi
17429
17430         LIBS="$LIBS -liphlpapi"
17431         WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17432
17433         WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17434
17435         WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17436
17437         WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17438
17439         WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17440
17441         WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17442
17443         WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17444
17445         WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17446
17447 fi
17448 if test $ac_cv_func_getaddrinfo = no; then
17449         case " $LIBOBJS " in
17450   *" fake-rfc2553.$ac_objext "* ) ;;
17451   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17452  ;;
17453 esac
17454
17455 fi
17456 # check after getaddrinfo for its libraries
17457
17458 # check ioctlsocket
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17460 $as_echo_n "checking for ioctlsocket... " >&6; }
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h.  */
17463
17464 #ifdef HAVE_WINSOCK2_H
17465 #include <winsock2.h>
17466 #endif
17467
17468 int
17469 main ()
17470 {
17471
17472         (void)ioctlsocket(0, 0, NULL);
17473
17474   ;
17475   return 0;
17476 }
17477 _ACEOF
17478 if ac_fn_c_try_link "$LINENO"; then :
17479
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17481 $as_echo "yes" >&6; }
17482
17483 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17484
17485
17486 else
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext \
17491     conftest$ac_exeext conftest.$ac_ext
17492
17493
17494 # see if daemon(3) exists, and if it is deprecated.
17495 for ac_func in daemon
17496 do :
17497   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17498 if test "x$ac_cv_func_daemon" = xyes; then :
17499   cat >>confdefs.h <<_ACEOF
17500 #define HAVE_DAEMON 1
17501 _ACEOF
17502
17503 fi
17504 done
17505
17506 if test $ac_cv_func_daemon = yes; then
17507
17508
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17510 $as_echo_n "checking if daemon is deprecated... " >&6; }
17511 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17512 if eval \${cv_cc_deprecated_$cache+:} false; then :
17513   $as_echo_n "(cached) " >&6
17514 else
17515
17516 echo '
17517 #include <stdlib.h>
17518 ' >conftest.c
17519 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17520 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17521 eval "cv_cc_deprecated_$cache=no"
17522 else
17523 eval "cv_cc_deprecated_$cache=yes"
17524 fi
17525 rm -f conftest conftest.o conftest.c
17526
17527 fi
17528
17529 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17531 $as_echo "yes" >&6; }
17532
17533 cat >>confdefs.h <<_ACEOF
17534 #define DEPRECATED_DAEMON 1
17535 _ACEOF
17536
17537 :
17538
17539 else
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 $as_echo "no" >&6; }
17542 :
17543
17544 fi
17545
17546 fi
17547
17548 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17549 $ac_includes_default
17550 #if HAVE_SYS_PARAM_H
17551 #include <sys/param.h>
17552 #endif
17553
17554 #ifdef HAVE_SYS_SOCKET_H
17555 #include <sys/socket.h>
17556 #endif
17557
17558 #ifdef HAVE_SYS_UIO_H
17559 #include <sys/uio.h>
17560 #endif
17561
17562 #ifdef HAVE_NETINET_IN_H
17563 #include <netinet/in.h>
17564 #endif
17565
17566 #ifdef HAVE_ARPA_INET_H
17567 #include <arpa/inet.h>
17568 #endif
17569
17570 #ifdef HAVE_WINSOCK2_H
17571 #include <winsock2.h>
17572 #endif
17573
17574 #ifdef HAVE_WS2TCPIP_H
17575 #include <ws2tcpip.h>
17576 #endif
17577
17578 "
17579 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17580
17581 cat >>confdefs.h <<_ACEOF
17582 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17583 _ACEOF
17584
17585
17586 fi
17587
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17589 $as_echo_n "checking for library containing setusercontext... " >&6; }
17590 if ${ac_cv_search_setusercontext+:} false; then :
17591   $as_echo_n "(cached) " >&6
17592 else
17593   ac_func_search_save_LIBS=$LIBS
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h.  */
17596
17597 /* Override any GCC internal prototype to avoid an error.
17598    Use char because int might match the return type of a GCC
17599    builtin and then its argument prototype would still apply.  */
17600 #ifdef __cplusplus
17601 extern "C"
17602 #endif
17603 char setusercontext ();
17604 int
17605 main ()
17606 {
17607 return setusercontext ();
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 for ac_lib in '' util; do
17613   if test -z "$ac_lib"; then
17614     ac_res="none required"
17615   else
17616     ac_res=-l$ac_lib
17617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17618   fi
17619   if ac_fn_c_try_link "$LINENO"; then :
17620   ac_cv_search_setusercontext=$ac_res
17621 fi
17622 rm -f core conftest.err conftest.$ac_objext \
17623     conftest$ac_exeext
17624   if ${ac_cv_search_setusercontext+:} false; then :
17625   break
17626 fi
17627 done
17628 if ${ac_cv_search_setusercontext+:} false; then :
17629
17630 else
17631   ac_cv_search_setusercontext=no
17632 fi
17633 rm conftest.$ac_ext
17634 LIBS=$ac_func_search_save_LIBS
17635 fi
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17637 $as_echo "$ac_cv_search_setusercontext" >&6; }
17638 ac_res=$ac_cv_search_setusercontext
17639 if test "$ac_res" != no; then :
17640   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17641
17642 fi
17643
17644 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex
17645 do :
17646   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17649   cat >>confdefs.h <<_ACEOF
17650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17651 _ACEOF
17652
17653 fi
17654 done
17655
17656 for ac_func in setresuid
17657 do :
17658   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17659 if test "x$ac_cv_func_setresuid" = xyes; then :
17660   cat >>confdefs.h <<_ACEOF
17661 #define HAVE_SETRESUID 1
17662 _ACEOF
17663
17664 else
17665   for ac_func in setreuid
17666 do :
17667   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17668 if test "x$ac_cv_func_setreuid" = xyes; then :
17669   cat >>confdefs.h <<_ACEOF
17670 #define HAVE_SETREUID 1
17671 _ACEOF
17672
17673 fi
17674 done
17675
17676 fi
17677 done
17678
17679 for ac_func in setresgid
17680 do :
17681   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17682 if test "x$ac_cv_func_setresgid" = xyes; then :
17683   cat >>confdefs.h <<_ACEOF
17684 #define HAVE_SETRESGID 1
17685 _ACEOF
17686
17687 else
17688   for ac_func in setregid
17689 do :
17690   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17691 if test "x$ac_cv_func_setregid" = xyes; then :
17692   cat >>confdefs.h <<_ACEOF
17693 #define HAVE_SETREGID 1
17694 _ACEOF
17695
17696 fi
17697 done
17698
17699 fi
17700 done
17701
17702
17703 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17704 if echo $build_os | grep darwin8 > /dev/null; then
17705
17706 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17707
17708 fi
17709 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17710 if test "x$ac_cv_func_inet_aton" = xyes; then :
17711   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17712
17713 else
17714   case " $LIBOBJS " in
17715   *" inet_aton.$ac_objext "* ) ;;
17716   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17717  ;;
17718 esac
17719
17720 fi
17721
17722
17723 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17724 if test "x$ac_cv_func_inet_pton" = xyes; then :
17725   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17726
17727 else
17728   case " $LIBOBJS " in
17729   *" inet_pton.$ac_objext "* ) ;;
17730   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17731  ;;
17732 esac
17733
17734 fi
17735
17736
17737 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17738 if test "x$ac_cv_func_inet_ntop" = xyes; then :
17739   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17740
17741 else
17742   case " $LIBOBJS " in
17743   *" inet_ntop.$ac_objext "* ) ;;
17744   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17745  ;;
17746 esac
17747
17748 fi
17749
17750
17751 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17752 if test "x$ac_cv_func_snprintf" = xyes; then :
17753   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17754
17755 else
17756   case " $LIBOBJS " in
17757   *" snprintf.$ac_objext "* ) ;;
17758   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17759  ;;
17760 esac
17761
17762 fi
17763
17764
17765 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17766 if test "x$ac_cv_func_strlcpy" = xyes; then :
17767   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17768
17769 else
17770   case " $LIBOBJS " in
17771   *" strlcpy.$ac_objext "* ) ;;
17772   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17773  ;;
17774 esac
17775
17776 fi
17777
17778
17779 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17780 if test "x$ac_cv_func_memmove" = xyes; then :
17781   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17782
17783 else
17784   case " $LIBOBJS " in
17785   *" memmove.$ac_objext "* ) ;;
17786   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17787  ;;
17788 esac
17789
17790 fi
17791
17792
17793 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17794 if test "x$ac_cv_func_gmtime_r" = xyes; then :
17795   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17796
17797 else
17798   case " $LIBOBJS " in
17799   *" gmtime_r.$ac_objext "* ) ;;
17800   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17801  ;;
17802 esac
17803
17804 fi
17805
17806
17807 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17808
17809 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17810 if test "x$ac_cv_func_ctime_r" = xyes; then :
17811   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17812
17813 else
17814   case " $LIBOBJS " in
17815   *" ctime_r.$ac_objext "* ) ;;
17816   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17817  ;;
17818 esac
17819
17820 fi
17821
17822
17823
17824 # Check whether --enable-allsymbols was given.
17825 if test "${enable_allsymbols+set}" = set; then :
17826   enableval=$enable_allsymbols;
17827 fi
17828
17829 case "$enable_allsymbols" in
17830         yes)
17831         COMMON_OBJ_ALL_SYMBOLS=""
17832         UBSYMS=""
17833         EXTRALINK="-L. -L.libs -lunbound"
17834
17835 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17836
17837         ;;
17838         no|*)
17839         COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17840         UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17841         EXTRALINK=""
17842         ;;
17843 esac
17844
17845
17846
17847 if test x_$enable_lock_checks = x_yes; then
17848         UBSYMS="-export-symbols clubsyms.def"
17849         cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17850         echo lock_protect >> clubsyms.def
17851         echo lock_unprotect >> clubsyms.def
17852         echo lock_get_mem >> clubsyms.def
17853         echo checklock_start >> clubsyms.def
17854         echo checklock_stop >> clubsyms.def
17855         echo checklock_lock >> clubsyms.def
17856         echo checklock_unlock >> clubsyms.def
17857         echo checklock_init >> clubsyms.def
17858         echo checklock_thrcreate >> clubsyms.def
17859         echo checklock_thrjoin >> clubsyms.def
17860 fi
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17863 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17864 # on openBSD, the implicit rule make $< work.
17865 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17866 # gmake works.
17867 cat >conftest.make <<EOF
17868 all:    conftest.lo
17869
17870 conftest.lo foo.lo bla.lo:
17871         if test -f "\$<"; then touch \$@; fi
17872
17873 .SUFFIXES: .lo
17874 .c.lo:
17875         if test -f "\$<"; then touch \$@; fi
17876
17877 conftest.lo:        conftest.dir/conftest.c
17878 EOF
17879 mkdir conftest.dir
17880 touch conftest.dir/conftest.c
17881 rm -f conftest.lo conftest.c
17882 ${MAKE:-make} -f conftest.make >/dev/null
17883 rm -f conftest.make conftest.c conftest.dir/conftest.c
17884 rm -rf conftest.dir
17885 if test ! -f conftest.lo; then
17886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17888         SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17889         SOURCEFILE='`cat .source`'
17890 else
17891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17892 $as_echo "yes" >&6; }
17893         SOURCEDETERMINE=':'
17894         SOURCEFILE='$<'
17895 fi
17896 rm -f conftest.lo
17897
17898
17899
17900 # see if we want to build the library or everything
17901 ALLTARGET="alltargets"
17902
17903 # Check whether --with-libunbound-only was given.
17904 if test "${with_libunbound_only+set}" = set; then :
17905   withval=$with_libunbound_only;
17906         if test "$withval" = "yes"; then
17907                 ALLTARGET="lib"
17908         fi
17909
17910 fi
17911
17912
17913
17914 # check this after all other compilation checks, since the linking of the lib
17915 # may break checks after this.
17916
17917 # Check whether --with-ldns was given.
17918 if test "${with_ldns+set}" = set; then :
17919   withval=$with_ldns;
17920         if test "$withval" != "yes"; then
17921                 if test "$withval" != "/usr" -a "$withval" != ""; then
17922                         CPPFLAGS="-I$withval/include $CPPFLAGS"
17923                         LDFLAGS="-L$withval/lib $LDFLAGS"
17924
17925         if test "x$enable_rpath" = xyes; then
17926                 if echo "$withval/lib" | grep "^/" >/dev/null; then
17927                         RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17928                 fi
17929         fi
17930
17931                 fi
17932                 ldnsdir="$withval"
17933
17934         fi
17935
17936 fi
17937
17938
17939 # check if ldns is good enough
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17941 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17942 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17943   $as_echo_n "(cached) " >&6
17944 else
17945   ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-lldns  $LIBS"
17947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948 /* end confdefs.h.  */
17949
17950 /* Override any GCC internal prototype to avoid an error.
17951    Use char because int might match the return type of a GCC
17952    builtin and then its argument prototype would still apply.  */
17953 #ifdef __cplusplus
17954 extern "C"
17955 #endif
17956 char ldns_rr_new ();
17957 int
17958 main ()
17959 {
17960 return ldns_rr_new ();
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 if ac_fn_c_try_link "$LINENO"; then :
17966   ac_cv_lib_ldns_ldns_rr_new=yes
17967 else
17968   ac_cv_lib_ldns_ldns_rr_new=no
17969 fi
17970 rm -f core conftest.err conftest.$ac_objext \
17971     conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17973 fi
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17975 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17976 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17977   cat >>confdefs.h <<_ACEOF
17978 #define HAVE_LIBLDNS 1
17979 _ACEOF
17980
17981   LIBS="-lldns $LIBS"
17982
17983 else
17984
17985         as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
17986
17987 fi
17988
17989 ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17990 if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17991
17992 fi
17993
17994 if test $USE_NSS = "no"; then
17995     ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
17996 if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
17997
17998 fi
17999
18000 else
18001         ac_cv_func_ldns_key_buf2rsa_raw="yes"
18002 fi
18003 ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
18004 if test "x$ac_cv_func_ldns_get_random" = xyes; then :
18005
18006 fi
18007
18008 ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
18009 if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
18010
18011 fi
18012
18013 if test x$use_gost = xyes -a x$USE_NSS = xno; then
18014     ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
18015 if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
18016
18017 fi
18018
18019     for ac_func in ldns_key_EVP_unload_gost
18020 do :
18021   ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
18022 if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
18023   cat >>confdefs.h <<_ACEOF
18024 #define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
18025 _ACEOF
18026
18027 fi
18028 done
18029
18030 else
18031         ac_cv_func_ldns_key_EVP_load_gost_id="yes"
18032 fi
18033 if test x$use_ecdsa = xyes; then
18034     ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
18035 $ac_includes_default
18036 #ifdef HAVE_SYS_SOCKET_H
18037 #  include <sys/socket.h>
18038 #endif
18039 #ifdef HAVE_WS2TCPIP_H
18040 #  include <ws2tcpip.h>
18041 #endif
18042 #include <ldns/ldns.h>
18043
18044 "
18045 if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
18046
18047 fi
18048
18049 else
18050     ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
18051 fi
18052 for ac_header in ldns/ldns.h
18053 do :
18054   ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
18055 #ifdef HAVE_SYS_SOCKET_H
18056 #include <sys/socket.h>
18057 #endif
18058
18059 #ifdef HAVE_NETINET_IN_H
18060 #include <netinet/in.h>
18061 #endif
18062
18063 #ifdef HAVE_ARPA_INET_H
18064 #include <arpa/inet.h>
18065 #endif
18066
18067 #ifdef HAVE_WINSOCK2_H
18068 #include <winsock2.h>
18069 #endif
18070
18071 #ifdef HAVE_WS2TCPIP_H
18072 #include <ws2tcpip.h>
18073 #endif
18074
18075 "
18076 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18077   cat >>confdefs.h <<_ACEOF
18078 #define HAVE_LDNS_LDNS_H 1
18079 _ACEOF
18080
18081 else
18082
18083         as_fn_error $? "No ldns include file found, install the ldns library development files.  Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18084
18085 fi
18086
18087 done
18088
18089 if test $ac_cv_func_ldns_buffer_copy = yes \
18090     -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18091     -a $ac_cv_func_ldns_get_random = yes \
18092     -a $ac_cv_header_ldns_ldns_h = yes \
18093     -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18094     -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18095     -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18096         :
18097 else
18098     as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18099 fi
18100
18101
18102   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18103 $as_echo "$as_me: Stripping extension flags..." >&6;}
18104
18105   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18106     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18107
18108 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18109
18110   fi
18111
18112
18113   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18114     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18115
18116 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18117
18118   fi
18119
18120
18121   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18122     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18123
18124 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18125
18126   fi
18127
18128
18129   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18130     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18131
18132 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18133
18134   fi
18135
18136
18137   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18138     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18139
18140 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18141
18142   fi
18143
18144
18145   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18146     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18147
18148 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18149
18150   fi
18151
18152
18153   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18154     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18155
18156 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18157
18158   fi
18159
18160
18161   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18162     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18163
18164 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18165
18166   fi
18167
18168
18169 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18170
18171
18172 cat >>confdefs.h <<_ACEOF
18173 #define MAXSYSLOGMSGLEN 10240
18174 _ACEOF
18175
18176
18177
18178
18179 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 smallapp/unbound-control-setup.sh"
18180
18181 ac_config_headers="$ac_config_headers config.h"
18182
18183 cat >confcache <<\_ACEOF
18184 # This file is a shell script that caches the results of configure
18185 # tests run on this system so they can be shared between configure
18186 # scripts and configure runs, see configure's option --config-cache.
18187 # It is not useful on other systems.  If it contains results you don't
18188 # want to keep, you may remove or edit it.
18189 #
18190 # config.status only pays attention to the cache file if you give it
18191 # the --recheck option to rerun configure.
18192 #
18193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18195 # following values.
18196
18197 _ACEOF
18198
18199 # The following way of writing the cache mishandles newlines in values,
18200 # but we know of no workaround that is simple, portable, and efficient.
18201 # So, we kill variables containing newlines.
18202 # Ultrix sh set writes to stderr and can't be redirected directly,
18203 # and sets the high bit in the cache file unless we assign to the vars.
18204 (
18205   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18206     eval ac_val=\$$ac_var
18207     case $ac_val in #(
18208     *${as_nl}*)
18209       case $ac_var in #(
18210       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18212       esac
18213       case $ac_var in #(
18214       _ | IFS | as_nl) ;; #(
18215       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18216       *) { eval $ac_var=; unset $ac_var;} ;;
18217       esac ;;
18218     esac
18219   done
18220
18221   (set) 2>&1 |
18222     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18223     *${as_nl}ac_space=\ *)
18224       # `set' does not quote correctly, so add quotes: double-quote
18225       # substitution turns \\\\ into \\, and sed turns \\ into \.
18226       sed -n \
18227         "s/'/'\\\\''/g;
18228           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18229       ;; #(
18230     *)
18231       # `set' quotes correctly as required by POSIX, so do not add quotes.
18232       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18233       ;;
18234     esac |
18235     sort
18236 ) |
18237   sed '
18238      /^ac_cv_env_/b end
18239      t clear
18240      :clear
18241      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18242      t end
18243      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18244      :end' >>confcache
18245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18246   if test -w "$cache_file"; then
18247     if test "x$cache_file" != "x/dev/null"; then
18248       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18249 $as_echo "$as_me: updating cache $cache_file" >&6;}
18250       if test ! -f "$cache_file" || test -h "$cache_file"; then
18251         cat confcache >"$cache_file"
18252       else
18253         case $cache_file in #(
18254         */* | ?:*)
18255           mv -f confcache "$cache_file"$$ &&
18256           mv -f "$cache_file"$$ "$cache_file" ;; #(
18257         *)
18258           mv -f confcache "$cache_file" ;;
18259         esac
18260       fi
18261     fi
18262   else
18263     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18265   fi
18266 fi
18267 rm -f confcache
18268
18269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18270 # Let make expand exec_prefix.
18271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18272
18273 DEFS=-DHAVE_CONFIG_H
18274
18275 ac_libobjs=
18276 ac_ltlibobjs=
18277 U=
18278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18279   # 1. Remove the extension, and $U if already installed.
18280   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18281   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18282   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18283   #    will be set to the directory where LIBOBJS objects are built.
18284   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18285   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18286 done
18287 LIBOBJS=$ac_libobjs
18288
18289 LTLIBOBJS=$ac_ltlibobjs
18290
18291
18292
18293 : "${CONFIG_STATUS=./config.status}"
18294 ac_write_fail=0
18295 ac_clean_files_save=$ac_clean_files
18296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18299 as_write_fail=0
18300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18301 #! $SHELL
18302 # Generated by $as_me.
18303 # Run this file to recreate the current configuration.
18304 # Compiler output produced by configure, useful for debugging
18305 # configure, is in config.log if it exists.
18306
18307 debug=false
18308 ac_cs_recheck=false
18309 ac_cs_silent=false
18310
18311 SHELL=\${CONFIG_SHELL-$SHELL}
18312 export SHELL
18313 _ASEOF
18314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18315 ## -------------------- ##
18316 ## M4sh Initialization. ##
18317 ## -------------------- ##
18318
18319 # Be more Bourne compatible
18320 DUALCASE=1; export DUALCASE # for MKS sh
18321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18322   emulate sh
18323   NULLCMD=:
18324   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18325   # is contrary to our usage.  Disable this feature.
18326   alias -g '${1+"$@"}'='"$@"'
18327   setopt NO_GLOB_SUBST
18328 else
18329   case `(set -o) 2>/dev/null` in #(
18330   *posix*) :
18331     set -o posix ;; #(
18332   *) :
18333      ;;
18334 esac
18335 fi
18336
18337
18338 as_nl='
18339 '
18340 export as_nl
18341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18342 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18345 # Prefer a ksh shell builtin over an external printf program on Solaris,
18346 # but without wasting forks for bash or zsh.
18347 if test -z "$BASH_VERSION$ZSH_VERSION" \
18348     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18349   as_echo='print -r --'
18350   as_echo_n='print -rn --'
18351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18352   as_echo='printf %s\n'
18353   as_echo_n='printf %s'
18354 else
18355   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18356     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18357     as_echo_n='/usr/ucb/echo -n'
18358   else
18359     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18360     as_echo_n_body='eval
18361       arg=$1;
18362       case $arg in #(
18363       *"$as_nl"*)
18364         expr "X$arg" : "X\\(.*\\)$as_nl";
18365         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18366       esac;
18367       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18368     '
18369     export as_echo_n_body
18370     as_echo_n='sh -c $as_echo_n_body as_echo'
18371   fi
18372   export as_echo_body
18373   as_echo='sh -c $as_echo_body as_echo'
18374 fi
18375
18376 # The user is always right.
18377 if test "${PATH_SEPARATOR+set}" != set; then
18378   PATH_SEPARATOR=:
18379   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18380     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18381       PATH_SEPARATOR=';'
18382   }
18383 fi
18384
18385
18386 # IFS
18387 # We need space, tab and new line, in precisely that order.  Quoting is
18388 # there to prevent editors from complaining about space-tab.
18389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18390 # splitting by setting IFS to empty value.)
18391 IFS=" ""        $as_nl"
18392
18393 # Find who we are.  Look in the path if we contain no directory separator.
18394 as_myself=
18395 case $0 in #((
18396   *[\\/]* ) as_myself=$0 ;;
18397   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18399 do
18400   IFS=$as_save_IFS
18401   test -z "$as_dir" && as_dir=.
18402     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18403   done
18404 IFS=$as_save_IFS
18405
18406      ;;
18407 esac
18408 # We did not find ourselves, most probably we were run as `sh COMMAND'
18409 # in which case we are not to be found in the path.
18410 if test "x$as_myself" = x; then
18411   as_myself=$0
18412 fi
18413 if test ! -f "$as_myself"; then
18414   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18415   exit 1
18416 fi
18417
18418 # Unset variables that we do not need and which cause bugs (e.g. in
18419 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18420 # suppresses any "Segmentation fault" message there.  '((' could
18421 # trigger a bug in pdksh 5.2.14.
18422 for as_var in BASH_ENV ENV MAIL MAILPATH
18423 do eval test x\${$as_var+set} = xset \
18424   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18425 done
18426 PS1='$ '
18427 PS2='> '
18428 PS4='+ '
18429
18430 # NLS nuisances.
18431 LC_ALL=C
18432 export LC_ALL
18433 LANGUAGE=C
18434 export LANGUAGE
18435
18436 # CDPATH.
18437 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18438
18439
18440 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18441 # ----------------------------------------
18442 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18443 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18444 # script with STATUS, using 1 if that was 0.
18445 as_fn_error ()
18446 {
18447   as_status=$1; test $as_status -eq 0 && as_status=1
18448   if test "$4"; then
18449     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18450     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18451   fi
18452   $as_echo "$as_me: error: $2" >&2
18453   as_fn_exit $as_status
18454 } # as_fn_error
18455
18456
18457 # as_fn_set_status STATUS
18458 # -----------------------
18459 # Set $? to STATUS, without forking.
18460 as_fn_set_status ()
18461 {
18462   return $1
18463 } # as_fn_set_status
18464
18465 # as_fn_exit STATUS
18466 # -----------------
18467 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18468 as_fn_exit ()
18469 {
18470   set +e
18471   as_fn_set_status $1
18472   exit $1
18473 } # as_fn_exit
18474
18475 # as_fn_unset VAR
18476 # ---------------
18477 # Portably unset VAR.
18478 as_fn_unset ()
18479 {
18480   { eval $1=; unset $1;}
18481 }
18482 as_unset=as_fn_unset
18483 # as_fn_append VAR VALUE
18484 # ----------------------
18485 # Append the text in VALUE to the end of the definition contained in VAR. Take
18486 # advantage of any shell optimizations that allow amortized linear growth over
18487 # repeated appends, instead of the typical quadratic growth present in naive
18488 # implementations.
18489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18490   eval 'as_fn_append ()
18491   {
18492     eval $1+=\$2
18493   }'
18494 else
18495   as_fn_append ()
18496   {
18497     eval $1=\$$1\$2
18498   }
18499 fi # as_fn_append
18500
18501 # as_fn_arith ARG...
18502 # ------------------
18503 # Perform arithmetic evaluation on the ARGs, and store the result in the
18504 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18505 # must be portable across $(()) and expr.
18506 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18507   eval 'as_fn_arith ()
18508   {
18509     as_val=$(( $* ))
18510   }'
18511 else
18512   as_fn_arith ()
18513   {
18514     as_val=`expr "$@" || test $? -eq 1`
18515   }
18516 fi # as_fn_arith
18517
18518
18519 if expr a : '\(a\)' >/dev/null 2>&1 &&
18520    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18521   as_expr=expr
18522 else
18523   as_expr=false
18524 fi
18525
18526 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18527   as_basename=basename
18528 else
18529   as_basename=false
18530 fi
18531
18532 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18533   as_dirname=dirname
18534 else
18535   as_dirname=false
18536 fi
18537
18538 as_me=`$as_basename -- "$0" ||
18539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18540          X"$0" : 'X\(//\)$' \| \
18541          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18542 $as_echo X/"$0" |
18543     sed '/^.*\/\([^/][^/]*\)\/*$/{
18544             s//\1/
18545             q
18546           }
18547           /^X\/\(\/\/\)$/{
18548             s//\1/
18549             q
18550           }
18551           /^X\/\(\/\).*/{
18552             s//\1/
18553             q
18554           }
18555           s/.*/./; q'`
18556
18557 # Avoid depending upon Character Ranges.
18558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18561 as_cr_digits='0123456789'
18562 as_cr_alnum=$as_cr_Letters$as_cr_digits
18563
18564 ECHO_C= ECHO_N= ECHO_T=
18565 case `echo -n x` in #(((((
18566 -n*)
18567   case `echo 'xy\c'` in
18568   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18569   xy)  ECHO_C='\c';;
18570   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18571        ECHO_T=' ';;
18572   esac;;
18573 *)
18574   ECHO_N='-n';;
18575 esac
18576
18577 rm -f conf$$ conf$$.exe conf$$.file
18578 if test -d conf$$.dir; then
18579   rm -f conf$$.dir/conf$$.file
18580 else
18581   rm -f conf$$.dir
18582   mkdir conf$$.dir 2>/dev/null
18583 fi
18584 if (echo >conf$$.file) 2>/dev/null; then
18585   if ln -s conf$$.file conf$$ 2>/dev/null; then
18586     as_ln_s='ln -s'
18587     # ... but there are two gotchas:
18588     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18589     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18590     # In both cases, we have to default to `cp -pR'.
18591     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18592       as_ln_s='cp -pR'
18593   elif ln conf$$.file conf$$ 2>/dev/null; then
18594     as_ln_s=ln
18595   else
18596     as_ln_s='cp -pR'
18597   fi
18598 else
18599   as_ln_s='cp -pR'
18600 fi
18601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18602 rmdir conf$$.dir 2>/dev/null
18603
18604
18605 # as_fn_mkdir_p
18606 # -------------
18607 # Create "$as_dir" as a directory, including parents if necessary.
18608 as_fn_mkdir_p ()
18609 {
18610
18611   case $as_dir in #(
18612   -*) as_dir=./$as_dir;;
18613   esac
18614   test -d "$as_dir" || eval $as_mkdir_p || {
18615     as_dirs=
18616     while :; do
18617       case $as_dir in #(
18618       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18619       *) as_qdir=$as_dir;;
18620       esac
18621       as_dirs="'$as_qdir' $as_dirs"
18622       as_dir=`$as_dirname -- "$as_dir" ||
18623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624          X"$as_dir" : 'X\(//\)[^/]' \| \
18625          X"$as_dir" : 'X\(//\)$' \| \
18626          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$as_dir" |
18628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18629             s//\1/
18630             q
18631           }
18632           /^X\(\/\/\)[^/].*/{
18633             s//\1/
18634             q
18635           }
18636           /^X\(\/\/\)$/{
18637             s//\1/
18638             q
18639           }
18640           /^X\(\/\).*/{
18641             s//\1/
18642             q
18643           }
18644           s/.*/./; q'`
18645       test -d "$as_dir" && break
18646     done
18647     test -z "$as_dirs" || eval "mkdir $as_dirs"
18648   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18649
18650
18651 } # as_fn_mkdir_p
18652 if mkdir -p . 2>/dev/null; then
18653   as_mkdir_p='mkdir -p "$as_dir"'
18654 else
18655   test -d ./-p && rmdir ./-p
18656   as_mkdir_p=false
18657 fi
18658
18659
18660 # as_fn_executable_p FILE
18661 # -----------------------
18662 # Test if FILE is an executable regular file.
18663 as_fn_executable_p ()
18664 {
18665   test -f "$1" && test -x "$1"
18666 } # as_fn_executable_p
18667 as_test_x='test -x'
18668 as_executable_p=as_fn_executable_p
18669
18670 # Sed expression to map a string onto a valid CPP name.
18671 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18672
18673 # Sed expression to map a string onto a valid variable name.
18674 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18675
18676
18677 exec 6>&1
18678 ## ----------------------------------- ##
18679 ## Main body of $CONFIG_STATUS script. ##
18680 ## ----------------------------------- ##
18681 _ASEOF
18682 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18683
18684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18685 # Save the log message, to keep $0 and so on meaningful, and to
18686 # report actual input values of CONFIG_FILES etc. instead of their
18687 # values after options handling.
18688 ac_log="
18689 This file was extended by unbound $as_me 1.4.20, which was
18690 generated by GNU Autoconf 2.69.  Invocation command line was
18691
18692   CONFIG_FILES    = $CONFIG_FILES
18693   CONFIG_HEADERS  = $CONFIG_HEADERS
18694   CONFIG_LINKS    = $CONFIG_LINKS
18695   CONFIG_COMMANDS = $CONFIG_COMMANDS
18696   $ $0 $@
18697
18698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18699 "
18700
18701 _ACEOF
18702
18703 case $ac_config_files in *"
18704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18705 esac
18706
18707 case $ac_config_headers in *"
18708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18709 esac
18710
18711
18712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18713 # Files that config.status was made for.
18714 config_files="$ac_config_files"
18715 config_headers="$ac_config_headers"
18716 config_commands="$ac_config_commands"
18717
18718 _ACEOF
18719
18720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18721 ac_cs_usage="\
18722 \`$as_me' instantiates files and other configuration actions
18723 from templates according to the current configuration.  Unless the files
18724 and actions are specified as TAGs, all are instantiated by default.
18725
18726 Usage: $0 [OPTION]... [TAG]...
18727
18728   -h, --help       print this help, then exit
18729   -V, --version    print version number and configuration settings, then exit
18730       --config     print configuration, then exit
18731   -q, --quiet, --silent
18732                    do not print progress messages
18733   -d, --debug      don't remove temporary files
18734       --recheck    update $as_me by reconfiguring in the same conditions
18735       --file=FILE[:TEMPLATE]
18736                    instantiate the configuration file FILE
18737       --header=FILE[:TEMPLATE]
18738                    instantiate the configuration header FILE
18739
18740 Configuration files:
18741 $config_files
18742
18743 Configuration headers:
18744 $config_headers
18745
18746 Configuration commands:
18747 $config_commands
18748
18749 Report bugs to <unbound-bugs@nlnetlabs.nl>."
18750
18751 _ACEOF
18752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18753 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18754 ac_cs_version="\\
18755 unbound config.status 1.4.20
18756 configured by $0, generated by GNU Autoconf 2.69,
18757   with options \\"\$ac_cs_config\\"
18758
18759 Copyright (C) 2012 Free Software Foundation, Inc.
18760 This config.status script is free software; the Free Software Foundation
18761 gives unlimited permission to copy, distribute and modify it."
18762
18763 ac_pwd='$ac_pwd'
18764 srcdir='$srcdir'
18765 AWK='$AWK'
18766 test -n "\$AWK" || AWK=awk
18767 _ACEOF
18768
18769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18770 # The default lists apply if the user does not specify any file.
18771 ac_need_defaults=:
18772 while test $# != 0
18773 do
18774   case $1 in
18775   --*=?*)
18776     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18777     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18778     ac_shift=:
18779     ;;
18780   --*=)
18781     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18782     ac_optarg=
18783     ac_shift=:
18784     ;;
18785   *)
18786     ac_option=$1
18787     ac_optarg=$2
18788     ac_shift=shift
18789     ;;
18790   esac
18791
18792   case $ac_option in
18793   # Handling of the options.
18794   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18795     ac_cs_recheck=: ;;
18796   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18797     $as_echo "$ac_cs_version"; exit ;;
18798   --config | --confi | --conf | --con | --co | --c )
18799     $as_echo "$ac_cs_config"; exit ;;
18800   --debug | --debu | --deb | --de | --d | -d )
18801     debug=: ;;
18802   --file | --fil | --fi | --f )
18803     $ac_shift
18804     case $ac_optarg in
18805     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18806     '') as_fn_error $? "missing file argument" ;;
18807     esac
18808     as_fn_append CONFIG_FILES " '$ac_optarg'"
18809     ac_need_defaults=false;;
18810   --header | --heade | --head | --hea )
18811     $ac_shift
18812     case $ac_optarg in
18813     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18814     esac
18815     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18816     ac_need_defaults=false;;
18817   --he | --h)
18818     # Conflict between --help and --header
18819     as_fn_error $? "ambiguous option: \`$1'
18820 Try \`$0 --help' for more information.";;
18821   --help | --hel | -h )
18822     $as_echo "$ac_cs_usage"; exit ;;
18823   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18824   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18825     ac_cs_silent=: ;;
18826
18827   # This is an error.
18828   -*) as_fn_error $? "unrecognized option: \`$1'
18829 Try \`$0 --help' for more information." ;;
18830
18831   *) as_fn_append ac_config_targets " $1"
18832      ac_need_defaults=false ;;
18833
18834   esac
18835   shift
18836 done
18837
18838 ac_configure_extra_args=
18839
18840 if $ac_cs_silent; then
18841   exec 6>/dev/null
18842   ac_configure_extra_args="$ac_configure_extra_args --silent"
18843 fi
18844
18845 _ACEOF
18846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18847 if \$ac_cs_recheck; then
18848   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18849   shift
18850   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18851   CONFIG_SHELL='$SHELL'
18852   export CONFIG_SHELL
18853   exec "\$@"
18854 fi
18855
18856 _ACEOF
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18858 exec 5>>config.log
18859 {
18860   echo
18861   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18862 ## Running $as_me. ##
18863 _ASBOX
18864   $as_echo "$ac_log"
18865 } >&5
18866
18867 _ACEOF
18868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18869 #
18870 # INIT-COMMANDS
18871 #
18872
18873
18874 # The HP-UX ksh and POSIX shell print the target directory to stdout
18875 # if CDPATH is set.
18876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18877
18878 sed_quote_subst='$sed_quote_subst'
18879 double_quote_subst='$double_quote_subst'
18880 delay_variable_subst='$delay_variable_subst'
18881 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18882 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18883 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18884 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18885 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18886 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18887 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18888 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18889 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18890 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18891 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18892 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18893 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18894 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18895 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18896 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18897 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18898 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18899 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18900 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18901 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18902 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18903 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18904 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18905 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18906 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18907 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18908 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18909 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18910 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18911 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18912 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18913 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18914 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18915 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18916 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18917 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18918 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18919 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18920 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18921 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18922 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18923 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18924 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18925 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18926 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18927 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18928 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18929 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18930 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18931 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18932 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18933 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18934 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18935 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18936 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18937 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"`'
18938 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18939 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18940 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18941 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18942 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18943 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18944 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18945 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18946 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18947 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18948 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18949 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18950 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18951 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18952 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18953 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18954 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18955 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18956 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18957 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18958 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18959 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18960 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18961 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18962 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18963 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18964 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18965 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18966 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18967 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18968 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18969 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18970 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18971 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18972 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18973 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18974 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18975 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18976 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18977 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18978 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18979 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18980 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18981 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18982 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18983 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18984 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18985 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18986 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18987 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18988 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18989 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18990 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18991 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18992 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18993 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18994 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18995 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18996 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18997 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18998 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18999 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19000 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19001 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19002 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19003 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19004 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19005 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19006 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19007 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19008 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19009 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19010 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19011
19012 LTCC='$LTCC'
19013 LTCFLAGS='$LTCFLAGS'
19014 compiler='$compiler_DEFAULT'
19015
19016 # A function that is used when there is no print builtin or printf.
19017 func_fallback_echo ()
19018 {
19019   eval 'cat <<_LTECHO_EOF
19020 \$1
19021 _LTECHO_EOF'
19022 }
19023
19024 # Quote evaled strings.
19025 for var in SHELL \
19026 ECHO \
19027 PATH_SEPARATOR \
19028 SED \
19029 GREP \
19030 EGREP \
19031 FGREP \
19032 LD \
19033 NM \
19034 LN_S \
19035 lt_SP2NL \
19036 lt_NL2SP \
19037 reload_flag \
19038 OBJDUMP \
19039 deplibs_check_method \
19040 file_magic_cmd \
19041 file_magic_glob \
19042 want_nocaseglob \
19043 DLLTOOL \
19044 sharedlib_from_linklib_cmd \
19045 AR \
19046 AR_FLAGS \
19047 archiver_list_spec \
19048 STRIP \
19049 RANLIB \
19050 CC \
19051 CFLAGS \
19052 compiler \
19053 lt_cv_sys_global_symbol_pipe \
19054 lt_cv_sys_global_symbol_to_cdecl \
19055 lt_cv_sys_global_symbol_to_c_name_address \
19056 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19057 nm_file_list_spec \
19058 lt_prog_compiler_no_builtin_flag \
19059 lt_prog_compiler_pic \
19060 lt_prog_compiler_wl \
19061 lt_prog_compiler_static \
19062 lt_cv_prog_compiler_c_o \
19063 need_locks \
19064 MANIFEST_TOOL \
19065 DSYMUTIL \
19066 NMEDIT \
19067 LIPO \
19068 OTOOL \
19069 OTOOL64 \
19070 shrext_cmds \
19071 export_dynamic_flag_spec \
19072 whole_archive_flag_spec \
19073 compiler_needs_object \
19074 with_gnu_ld \
19075 allow_undefined_flag \
19076 no_undefined_flag \
19077 hardcode_libdir_flag_spec \
19078 hardcode_libdir_separator \
19079 exclude_expsyms \
19080 include_expsyms \
19081 file_list_spec \
19082 variables_saved_for_relink \
19083 libname_spec \
19084 library_names_spec \
19085 soname_spec \
19086 install_override_mode \
19087 finish_eval \
19088 old_striplib \
19089 striplib; do
19090     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19091     *[\\\\\\\`\\"\\\$]*)
19092       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19093       ;;
19094     *)
19095       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19096       ;;
19097     esac
19098 done
19099
19100 # Double-quote double-evaled strings.
19101 for var in reload_cmds \
19102 old_postinstall_cmds \
19103 old_postuninstall_cmds \
19104 old_archive_cmds \
19105 extract_expsyms_cmds \
19106 old_archive_from_new_cmds \
19107 old_archive_from_expsyms_cmds \
19108 archive_cmds \
19109 archive_expsym_cmds \
19110 module_cmds \
19111 module_expsym_cmds \
19112 export_symbols_cmds \
19113 prelink_cmds \
19114 postlink_cmds \
19115 postinstall_cmds \
19116 postuninstall_cmds \
19117 finish_cmds \
19118 sys_lib_search_path_spec \
19119 sys_lib_dlsearch_path_spec; do
19120     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19121     *[\\\\\\\`\\"\\\$]*)
19122       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19123       ;;
19124     *)
19125       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19126       ;;
19127     esac
19128 done
19129
19130 ac_aux_dir='$ac_aux_dir'
19131 xsi_shell='$xsi_shell'
19132 lt_shell_append='$lt_shell_append'
19133
19134 # See if we are running on zsh, and set the options which allow our
19135 # commands through without removal of \ escapes INIT.
19136 if test -n "\${ZSH_VERSION+set}" ; then
19137    setopt NO_GLOB_SUBST
19138 fi
19139
19140
19141     PACKAGE='$PACKAGE'
19142     VERSION='$VERSION'
19143     TIMESTAMP='$TIMESTAMP'
19144     RM='$RM'
19145     ofile='$ofile'
19146
19147
19148
19149
19150 _ACEOF
19151
19152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19153
19154 # Handling of arguments.
19155 for ac_config_target in $ac_config_targets
19156 do
19157   case $ac_config_target in
19158     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19159     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19160     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19161     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19162     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19163     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19164     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19165     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19166     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19167     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19168     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19169     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19170
19171   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19172   esac
19173 done
19174
19175
19176 # If the user did not use the arguments to specify the items to instantiate,
19177 # then the envvar interface is used.  Set only those that are not.
19178 # We use the long form for the default assignment because of an extremely
19179 # bizarre bug on SunOS 4.1.3.
19180 if $ac_need_defaults; then
19181   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19182   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19183   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19184 fi
19185
19186 # Have a temporary directory for convenience.  Make it in the build tree
19187 # simply because there is no reason against having it here, and in addition,
19188 # creating and moving files from /tmp can sometimes cause problems.
19189 # Hook for its removal unless debugging.
19190 # Note that there is a small window in which the directory will not be cleaned:
19191 # after its creation but before its name has been assigned to `$tmp'.
19192 $debug ||
19193 {
19194   tmp= ac_tmp=
19195   trap 'exit_status=$?
19196   : "${ac_tmp:=$tmp}"
19197   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19198 ' 0
19199   trap 'as_fn_exit 1' 1 2 13 15
19200 }
19201 # Create a (secure) tmp directory for tmp files.
19202
19203 {
19204   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19205   test -d "$tmp"
19206 }  ||
19207 {
19208   tmp=./conf$$-$RANDOM
19209   (umask 077 && mkdir "$tmp")
19210 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19211 ac_tmp=$tmp
19212
19213 # Set up the scripts for CONFIG_FILES section.
19214 # No need to generate them if there are no CONFIG_FILES.
19215 # This happens for instance with `./config.status config.h'.
19216 if test -n "$CONFIG_FILES"; then
19217
19218
19219 ac_cr=`echo X | tr X '\015'`
19220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19221 # But we know of no other shell where ac_cr would be empty at this
19222 # point, so we can use a bashism as a fallback.
19223 if test "x$ac_cr" = x; then
19224   eval ac_cr=\$\'\\r\'
19225 fi
19226 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19228   ac_cs_awk_cr='\\r'
19229 else
19230   ac_cs_awk_cr=$ac_cr
19231 fi
19232
19233 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19234 _ACEOF
19235
19236
19237 {
19238   echo "cat >conf$$subs.awk <<_ACEOF" &&
19239   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19240   echo "_ACEOF"
19241 } >conf$$subs.sh ||
19242   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19243 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19244 ac_delim='%!_!# '
19245 for ac_last_try in false false false false false :; do
19246   . ./conf$$subs.sh ||
19247     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19248
19249   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19250   if test $ac_delim_n = $ac_delim_num; then
19251     break
19252   elif $ac_last_try; then
19253     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19254   else
19255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19256   fi
19257 done
19258 rm -f conf$$subs.sh
19259
19260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19261 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19262 _ACEOF
19263 sed -n '
19264 h
19265 s/^/S["/; s/!.*/"]=/
19266 p
19267 g
19268 s/^[^!]*!//
19269 :repl
19270 t repl
19271 s/'"$ac_delim"'$//
19272 t delim
19273 :nl
19274 h
19275 s/\(.\{148\}\)..*/\1/
19276 t more1
19277 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19278 p
19279 n
19280 b repl
19281 :more1
19282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19283 p
19284 g
19285 s/.\{148\}//
19286 t nl
19287 :delim
19288 h
19289 s/\(.\{148\}\)..*/\1/
19290 t more2
19291 s/["\\]/\\&/g; s/^/"/; s/$/"/
19292 p
19293 b
19294 :more2
19295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19296 p
19297 g
19298 s/.\{148\}//
19299 t delim
19300 ' <conf$$subs.awk | sed '
19301 /^[^""]/{
19302   N
19303   s/\n//
19304 }
19305 ' >>$CONFIG_STATUS || ac_write_fail=1
19306 rm -f conf$$subs.awk
19307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19308 _ACAWK
19309 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19310   for (key in S) S_is_set[key] = 1
19311   FS = "\a"
19312
19313 }
19314 {
19315   line = $ 0
19316   nfields = split(line, field, "@")
19317   substed = 0
19318   len = length(field[1])
19319   for (i = 2; i < nfields; i++) {
19320     key = field[i]
19321     keylen = length(key)
19322     if (S_is_set[key]) {
19323       value = S[key]
19324       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19325       len += length(value) + length(field[++i])
19326       substed = 1
19327     } else
19328       len += 1 + keylen
19329   }
19330
19331   print line
19332 }
19333
19334 _ACAWK
19335 _ACEOF
19336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19337 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19338   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19339 else
19340   cat
19341 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19342   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19343 _ACEOF
19344
19345 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19346 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19347 # trailing colons and then remove the whole line if VPATH becomes empty
19348 # (actually we leave an empty line to preserve line numbers).
19349 if test "x$srcdir" = x.; then
19350   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19351 h
19352 s///
19353 s/^/:/
19354 s/[      ]*$/:/
19355 s/:\$(srcdir):/:/g
19356 s/:\${srcdir}:/:/g
19357 s/:@srcdir@:/:/g
19358 s/^:*//
19359 s/:*$//
19360 x
19361 s/\(=[   ]*\).*/\1/
19362 G
19363 s/\n//
19364 s/^[^=]*=[       ]*$//
19365 }'
19366 fi
19367
19368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369 fi # test -n "$CONFIG_FILES"
19370
19371 # Set up the scripts for CONFIG_HEADERS section.
19372 # No need to generate them if there are no CONFIG_HEADERS.
19373 # This happens for instance with `./config.status Makefile'.
19374 if test -n "$CONFIG_HEADERS"; then
19375 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19376 BEGIN {
19377 _ACEOF
19378
19379 # Transform confdefs.h into an awk script `defines.awk', embedded as
19380 # here-document in config.status, that substitutes the proper values into
19381 # config.h.in to produce config.h.
19382
19383 # Create a delimiter string that does not exist in confdefs.h, to ease
19384 # handling of long lines.
19385 ac_delim='%!_!# '
19386 for ac_last_try in false false :; do
19387   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19388   if test -z "$ac_tt"; then
19389     break
19390   elif $ac_last_try; then
19391     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19392   else
19393     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19394   fi
19395 done
19396
19397 # For the awk script, D is an array of macro values keyed by name,
19398 # likewise P contains macro parameters if any.  Preserve backslash
19399 # newline sequences.
19400
19401 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19402 sed -n '
19403 s/.\{148\}/&'"$ac_delim"'/g
19404 t rset
19405 :rset
19406 s/^[     ]*#[    ]*define[       ][      ]*/ /
19407 t def
19408 d
19409 :def
19410 s/\\$//
19411 t bsnl
19412 s/["\\]/\\&/g
19413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19414 D["\1"]=" \3"/p
19415 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19416 d
19417 :bsnl
19418 s/["\\]/\\&/g
19419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19420 D["\1"]=" \3\\\\\\n"\\/p
19421 t cont
19422 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19423 t cont
19424 d
19425 :cont
19426 n
19427 s/.\{148\}/&'"$ac_delim"'/g
19428 t clear
19429 :clear
19430 s/\\$//
19431 t bsnlc
19432 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19433 d
19434 :bsnlc
19435 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19436 b cont
19437 ' <confdefs.h | sed '
19438 s/'"$ac_delim"'/"\\\
19439 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19440
19441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19442   for (key in D) D_is_set[key] = 1
19443   FS = "\a"
19444 }
19445 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19446   line = \$ 0
19447   split(line, arg, " ")
19448   if (arg[1] == "#") {
19449     defundef = arg[2]
19450     mac1 = arg[3]
19451   } else {
19452     defundef = substr(arg[1], 2)
19453     mac1 = arg[2]
19454   }
19455   split(mac1, mac2, "(") #)
19456   macro = mac2[1]
19457   prefix = substr(line, 1, index(line, defundef) - 1)
19458   if (D_is_set[macro]) {
19459     # Preserve the white space surrounding the "#".
19460     print prefix "define", macro P[macro] D[macro]
19461     next
19462   } else {
19463     # Replace #undef with comments.  This is necessary, for example,
19464     # in the case of _POSIX_SOURCE, which is predefined and required
19465     # on some systems where configure will not decide to define it.
19466     if (defundef == "undef") {
19467       print "/*", prefix defundef, macro, "*/"
19468       next
19469     }
19470   }
19471 }
19472 { print }
19473 _ACAWK
19474 _ACEOF
19475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19476   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19477 fi # test -n "$CONFIG_HEADERS"
19478
19479
19480 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19481 shift
19482 for ac_tag
19483 do
19484   case $ac_tag in
19485   :[FHLC]) ac_mode=$ac_tag; continue;;
19486   esac
19487   case $ac_mode$ac_tag in
19488   :[FHL]*:*);;
19489   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19490   :[FH]-) ac_tag=-:-;;
19491   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19492   esac
19493   ac_save_IFS=$IFS
19494   IFS=:
19495   set x $ac_tag
19496   IFS=$ac_save_IFS
19497   shift
19498   ac_file=$1
19499   shift
19500
19501   case $ac_mode in
19502   :L) ac_source=$1;;
19503   :[FH])
19504     ac_file_inputs=
19505     for ac_f
19506     do
19507       case $ac_f in
19508       -) ac_f="$ac_tmp/stdin";;
19509       *) # Look for the file first in the build tree, then in the source tree
19510          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19511          # because $ac_f cannot contain `:'.
19512          test -f "$ac_f" ||
19513            case $ac_f in
19514            [\\/$]*) false;;
19515            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19516            esac ||
19517            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19518       esac
19519       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19520       as_fn_append ac_file_inputs " '$ac_f'"
19521     done
19522
19523     # Let's still pretend it is `configure' which instantiates (i.e., don't
19524     # use $as_me), people would be surprised to read:
19525     #    /* config.h.  Generated by config.status.  */
19526     configure_input='Generated from '`
19527           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19528         `' by configure.'
19529     if test x"$ac_file" != x-; then
19530       configure_input="$ac_file.  $configure_input"
19531       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19532 $as_echo "$as_me: creating $ac_file" >&6;}
19533     fi
19534     # Neutralize special characters interpreted by sed in replacement strings.
19535     case $configure_input in #(
19536     *\&* | *\|* | *\\* )
19537        ac_sed_conf_input=`$as_echo "$configure_input" |
19538        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19539     *) ac_sed_conf_input=$configure_input;;
19540     esac
19541
19542     case $ac_tag in
19543     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19544       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19545     esac
19546     ;;
19547   esac
19548
19549   ac_dir=`$as_dirname -- "$ac_file" ||
19550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19551          X"$ac_file" : 'X\(//\)[^/]' \| \
19552          X"$ac_file" : 'X\(//\)$' \| \
19553          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19554 $as_echo X"$ac_file" |
19555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19556             s//\1/
19557             q
19558           }
19559           /^X\(\/\/\)[^/].*/{
19560             s//\1/
19561             q
19562           }
19563           /^X\(\/\/\)$/{
19564             s//\1/
19565             q
19566           }
19567           /^X\(\/\).*/{
19568             s//\1/
19569             q
19570           }
19571           s/.*/./; q'`
19572   as_dir="$ac_dir"; as_fn_mkdir_p
19573   ac_builddir=.
19574
19575 case "$ac_dir" in
19576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19577 *)
19578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19579   # A ".." for each directory in $ac_dir_suffix.
19580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19581   case $ac_top_builddir_sub in
19582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19584   esac ;;
19585 esac
19586 ac_abs_top_builddir=$ac_pwd
19587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19588 # for backward compatibility:
19589 ac_top_builddir=$ac_top_build_prefix
19590
19591 case $srcdir in
19592   .)  # We are building in place.
19593     ac_srcdir=.
19594     ac_top_srcdir=$ac_top_builddir_sub
19595     ac_abs_top_srcdir=$ac_pwd ;;
19596   [\\/]* | ?:[\\/]* )  # Absolute name.
19597     ac_srcdir=$srcdir$ac_dir_suffix;
19598     ac_top_srcdir=$srcdir
19599     ac_abs_top_srcdir=$srcdir ;;
19600   *) # Relative name.
19601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19602     ac_top_srcdir=$ac_top_build_prefix$srcdir
19603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19604 esac
19605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19606
19607
19608   case $ac_mode in
19609   :F)
19610   #
19611   # CONFIG_FILE
19612   #
19613
19614 _ACEOF
19615
19616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19617 # If the template does not know about datarootdir, expand it.
19618 # FIXME: This hack should be removed a few years after 2.60.
19619 ac_datarootdir_hack=; ac_datarootdir_seen=
19620 ac_sed_dataroot='
19621 /datarootdir/ {
19622   p
19623   q
19624 }
19625 /@datadir@/p
19626 /@docdir@/p
19627 /@infodir@/p
19628 /@localedir@/p
19629 /@mandir@/p'
19630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19631 *datarootdir*) ac_datarootdir_seen=yes;;
19632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19633   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19634 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19635 _ACEOF
19636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19637   ac_datarootdir_hack='
19638   s&@datadir@&$datadir&g
19639   s&@docdir@&$docdir&g
19640   s&@infodir@&$infodir&g
19641   s&@localedir@&$localedir&g
19642   s&@mandir@&$mandir&g
19643   s&\\\${datarootdir}&$datarootdir&g' ;;
19644 esac
19645 _ACEOF
19646
19647 # Neutralize VPATH when `$srcdir' = `.'.
19648 # Shell code in configure.ac might set extrasub.
19649 # FIXME: do we really want to maintain this feature?
19650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19651 ac_sed_extra="$ac_vpsub
19652 $extrasub
19653 _ACEOF
19654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19655 :t
19656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19657 s|@configure_input@|$ac_sed_conf_input|;t t
19658 s&@top_builddir@&$ac_top_builddir_sub&;t t
19659 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19660 s&@srcdir@&$ac_srcdir&;t t
19661 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19662 s&@top_srcdir@&$ac_top_srcdir&;t t
19663 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19664 s&@builddir@&$ac_builddir&;t t
19665 s&@abs_builddir@&$ac_abs_builddir&;t t
19666 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19667 $ac_datarootdir_hack
19668 "
19669 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19670   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19671
19672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19673   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19674   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19675       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19676   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19677 which seems to be undefined.  Please make sure it is defined" >&5
19678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19679 which seems to be undefined.  Please make sure it is defined" >&2;}
19680
19681   rm -f "$ac_tmp/stdin"
19682   case $ac_file in
19683   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19684   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19685   esac \
19686   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19687  ;;
19688   :H)
19689   #
19690   # CONFIG_HEADER
19691   #
19692   if test x"$ac_file" != x-; then
19693     {
19694       $as_echo "/* $configure_input  */" \
19695       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19696     } >"$ac_tmp/config.h" \
19697       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19698     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19699       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19701     else
19702       rm -f "$ac_file"
19703       mv "$ac_tmp/config.h" "$ac_file" \
19704         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19705     fi
19706   else
19707     $as_echo "/* $configure_input  */" \
19708       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19709       || as_fn_error $? "could not create -" "$LINENO" 5
19710   fi
19711  ;;
19712
19713   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19714 $as_echo "$as_me: executing $ac_file commands" >&6;}
19715  ;;
19716   esac
19717
19718
19719   case $ac_file$ac_mode in
19720     "libtool":C)
19721
19722     # See if we are running on zsh, and set the options which allow our
19723     # commands through without removal of \ escapes.
19724     if test -n "${ZSH_VERSION+set}" ; then
19725       setopt NO_GLOB_SUBST
19726     fi
19727
19728     cfgfile="${ofile}T"
19729     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19730     $RM "$cfgfile"
19731
19732     cat <<_LT_EOF >> "$cfgfile"
19733 #! $SHELL
19734
19735 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19736 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19738 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19739 #
19740 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19741 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19742 #                 Foundation, Inc.
19743 #   Written by Gordon Matzigkeit, 1996
19744 #
19745 #   This file is part of GNU Libtool.
19746 #
19747 # GNU Libtool is free software; you can redistribute it and/or
19748 # modify it under the terms of the GNU General Public License as
19749 # published by the Free Software Foundation; either version 2 of
19750 # the License, or (at your option) any later version.
19751 #
19752 # As a special exception to the GNU General Public License,
19753 # if you distribute this file as part of a program or library that
19754 # is built using GNU Libtool, you may include this file under the
19755 # same distribution terms that you use for the rest of that program.
19756 #
19757 # GNU Libtool is distributed in the hope that it will be useful,
19758 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19759 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19760 # GNU General Public License for more details.
19761 #
19762 # You should have received a copy of the GNU General Public License
19763 # along with GNU Libtool; see the file COPYING.  If not, a copy
19764 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19765 # obtained by writing to the Free Software Foundation, Inc.,
19766 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19767
19768
19769 # The names of the tagged configurations supported by this script.
19770 available_tags=""
19771
19772 # ### BEGIN LIBTOOL CONFIG
19773
19774 # Which release of libtool.m4 was used?
19775 macro_version=$macro_version
19776 macro_revision=$macro_revision
19777
19778 # Whether or not to build shared libraries.
19779 build_libtool_libs=$enable_shared
19780
19781 # Whether or not to build static libraries.
19782 build_old_libs=$enable_static
19783
19784 # What type of objects to build.
19785 pic_mode=$pic_mode
19786
19787 # Whether or not to optimize for fast installation.
19788 fast_install=$enable_fast_install
19789
19790 # Shell to use when invoking shell scripts.
19791 SHELL=$lt_SHELL
19792
19793 # An echo program that protects backslashes.
19794 ECHO=$lt_ECHO
19795
19796 # The PATH separator for the build system.
19797 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19798
19799 # The host system.
19800 host_alias=$host_alias
19801 host=$host
19802 host_os=$host_os
19803
19804 # The build system.
19805 build_alias=$build_alias
19806 build=$build
19807 build_os=$build_os
19808
19809 # A sed program that does not truncate output.
19810 SED=$lt_SED
19811
19812 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19813 Xsed="\$SED -e 1s/^X//"
19814
19815 # A grep program that handles long lines.
19816 GREP=$lt_GREP
19817
19818 # An ERE matcher.
19819 EGREP=$lt_EGREP
19820
19821 # A literal string matcher.
19822 FGREP=$lt_FGREP
19823
19824 # A BSD- or MS-compatible name lister.
19825 NM=$lt_NM
19826
19827 # Whether we need soft or hard links.
19828 LN_S=$lt_LN_S
19829
19830 # What is the maximum length of a command?
19831 max_cmd_len=$max_cmd_len
19832
19833 # Object file suffix (normally "o").
19834 objext=$ac_objext
19835
19836 # Executable file suffix (normally "").
19837 exeext=$exeext
19838
19839 # whether the shell understands "unset".
19840 lt_unset=$lt_unset
19841
19842 # turn spaces into newlines.
19843 SP2NL=$lt_lt_SP2NL
19844
19845 # turn newlines into spaces.
19846 NL2SP=$lt_lt_NL2SP
19847
19848 # convert \$build file names to \$host format.
19849 to_host_file_cmd=$lt_cv_to_host_file_cmd
19850
19851 # convert \$build files to toolchain format.
19852 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19853
19854 # An object symbol dumper.
19855 OBJDUMP=$lt_OBJDUMP
19856
19857 # Method to check whether dependent libraries are shared objects.
19858 deplibs_check_method=$lt_deplibs_check_method
19859
19860 # Command to use when deplibs_check_method = "file_magic".
19861 file_magic_cmd=$lt_file_magic_cmd
19862
19863 # How to find potential files when deplibs_check_method = "file_magic".
19864 file_magic_glob=$lt_file_magic_glob
19865
19866 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19867 want_nocaseglob=$lt_want_nocaseglob
19868
19869 # DLL creation program.
19870 DLLTOOL=$lt_DLLTOOL
19871
19872 # Command to associate shared and link libraries.
19873 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19874
19875 # The archiver.
19876 AR=$lt_AR
19877
19878 # Flags to create an archive.
19879 AR_FLAGS=$lt_AR_FLAGS
19880
19881 # How to feed a file listing to the archiver.
19882 archiver_list_spec=$lt_archiver_list_spec
19883
19884 # A symbol stripping program.
19885 STRIP=$lt_STRIP
19886
19887 # Commands used to install an old-style archive.
19888 RANLIB=$lt_RANLIB
19889 old_postinstall_cmds=$lt_old_postinstall_cmds
19890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19891
19892 # Whether to use a lock for old archive extraction.
19893 lock_old_archive_extraction=$lock_old_archive_extraction
19894
19895 # A C compiler.
19896 LTCC=$lt_CC
19897
19898 # LTCC compiler flags.
19899 LTCFLAGS=$lt_CFLAGS
19900
19901 # Take the output of nm and produce a listing of raw symbols and C names.
19902 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19903
19904 # Transform the output of nm in a proper C declaration.
19905 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19906
19907 # Transform the output of nm in a C name address pair.
19908 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19909
19910 # Transform the output of nm in a C name address pair when lib prefix is needed.
19911 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19912
19913 # Specify filename containing input files for \$NM.
19914 nm_file_list_spec=$lt_nm_file_list_spec
19915
19916 # The root where to search for dependent libraries,and in which our libraries should be installed.
19917 lt_sysroot=$lt_sysroot
19918
19919 # The name of the directory that contains temporary libtool files.
19920 objdir=$objdir
19921
19922 # Used to examine libraries when file_magic_cmd begins with "file".
19923 MAGIC_CMD=$MAGIC_CMD
19924
19925 # Must we lock files when doing compilation?
19926 need_locks=$lt_need_locks
19927
19928 # Manifest tool.
19929 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19930
19931 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19932 DSYMUTIL=$lt_DSYMUTIL
19933
19934 # Tool to change global to local symbols on Mac OS X.
19935 NMEDIT=$lt_NMEDIT
19936
19937 # Tool to manipulate fat objects and archives on Mac OS X.
19938 LIPO=$lt_LIPO
19939
19940 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19941 OTOOL=$lt_OTOOL
19942
19943 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19944 OTOOL64=$lt_OTOOL64
19945
19946 # Old archive suffix (normally "a").
19947 libext=$libext
19948
19949 # Shared library suffix (normally ".so").
19950 shrext_cmds=$lt_shrext_cmds
19951
19952 # The commands to extract the exported symbol list from a shared archive.
19953 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19954
19955 # Variables whose values should be saved in libtool wrapper scripts and
19956 # restored at link time.
19957 variables_saved_for_relink=$lt_variables_saved_for_relink
19958
19959 # Do we need the "lib" prefix for modules?
19960 need_lib_prefix=$need_lib_prefix
19961
19962 # Do we need a version for libraries?
19963 need_version=$need_version
19964
19965 # Library versioning type.
19966 version_type=$version_type
19967
19968 # Shared library runtime path variable.
19969 runpath_var=$runpath_var
19970
19971 # Shared library path variable.
19972 shlibpath_var=$shlibpath_var
19973
19974 # Is shlibpath searched before the hard-coded library search path?
19975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19976
19977 # Format of library name prefix.
19978 libname_spec=$lt_libname_spec
19979
19980 # List of archive names.  First name is the real one, the rest are links.
19981 # The last name is the one that the linker finds with -lNAME
19982 library_names_spec=$lt_library_names_spec
19983
19984 # The coded name of the library, if different from the real name.
19985 soname_spec=$lt_soname_spec
19986
19987 # Permission mode override for installation of shared libraries.
19988 install_override_mode=$lt_install_override_mode
19989
19990 # Command to use after installation of a shared archive.
19991 postinstall_cmds=$lt_postinstall_cmds
19992
19993 # Command to use after uninstallation of a shared archive.
19994 postuninstall_cmds=$lt_postuninstall_cmds
19995
19996 # Commands used to finish a libtool library installation in a directory.
19997 finish_cmds=$lt_finish_cmds
19998
19999 # As "finish_cmds", except a single script fragment to be evaled but
20000 # not shown.
20001 finish_eval=$lt_finish_eval
20002
20003 # Whether we should hardcode library paths into libraries.
20004 hardcode_into_libs=$hardcode_into_libs
20005
20006 # Compile-time system search path for libraries.
20007 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20008
20009 # Run-time system search path for libraries.
20010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20011
20012 # Whether dlopen is supported.
20013 dlopen_support=$enable_dlopen
20014
20015 # Whether dlopen of programs is supported.
20016 dlopen_self=$enable_dlopen_self
20017
20018 # Whether dlopen of statically linked programs is supported.
20019 dlopen_self_static=$enable_dlopen_self_static
20020
20021 # Commands to strip libraries.
20022 old_striplib=$lt_old_striplib
20023 striplib=$lt_striplib
20024
20025
20026 # The linker used to build libraries.
20027 LD=$lt_LD
20028
20029 # How to create reloadable object files.
20030 reload_flag=$lt_reload_flag
20031 reload_cmds=$lt_reload_cmds
20032
20033 # Commands used to build an old-style archive.
20034 old_archive_cmds=$lt_old_archive_cmds
20035
20036 # A language specific compiler.
20037 CC=$lt_compiler
20038
20039 # Is the compiler the GNU compiler?
20040 with_gcc=$GCC
20041
20042 # Compiler flag to turn off builtin functions.
20043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20044
20045 # Additional compiler flags for building library objects.
20046 pic_flag=$lt_lt_prog_compiler_pic
20047
20048 # How to pass a linker flag through the compiler.
20049 wl=$lt_lt_prog_compiler_wl
20050
20051 # Compiler flag to prevent dynamic linking.
20052 link_static_flag=$lt_lt_prog_compiler_static
20053
20054 # Does compiler simultaneously support -c and -o options?
20055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20056
20057 # Whether or not to add -lc for building shared libraries.
20058 build_libtool_need_lc=$archive_cmds_need_lc
20059
20060 # Whether or not to disallow shared libs when runtime libs are static.
20061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20062
20063 # Compiler flag to allow reflexive dlopens.
20064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20065
20066 # Compiler flag to generate shared objects directly from archives.
20067 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20068
20069 # Whether the compiler copes with passing no objects directly.
20070 compiler_needs_object=$lt_compiler_needs_object
20071
20072 # Create an old-style archive from a shared archive.
20073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20074
20075 # Create a temporary old-style archive to link instead of a shared archive.
20076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20077
20078 # Commands used to build a shared archive.
20079 archive_cmds=$lt_archive_cmds
20080 archive_expsym_cmds=$lt_archive_expsym_cmds
20081
20082 # Commands used to build a loadable module if different from building
20083 # a shared archive.
20084 module_cmds=$lt_module_cmds
20085 module_expsym_cmds=$lt_module_expsym_cmds
20086
20087 # Whether we are building with GNU ld or not.
20088 with_gnu_ld=$lt_with_gnu_ld
20089
20090 # Flag that allows shared libraries with undefined symbols to be built.
20091 allow_undefined_flag=$lt_allow_undefined_flag
20092
20093 # Flag that enforces no undefined symbols.
20094 no_undefined_flag=$lt_no_undefined_flag
20095
20096 # Flag to hardcode \$libdir into a binary during linking.
20097 # This must work even if \$libdir does not exist
20098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20099
20100 # Whether we need a single "-rpath" flag with a separated argument.
20101 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20102
20103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20104 # DIR into the resulting binary.
20105 hardcode_direct=$hardcode_direct
20106
20107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20108 # DIR into the resulting binary and the resulting library dependency is
20109 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20110 # library is relocated.
20111 hardcode_direct_absolute=$hardcode_direct_absolute
20112
20113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20114 # into the resulting binary.
20115 hardcode_minus_L=$hardcode_minus_L
20116
20117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20118 # into the resulting binary.
20119 hardcode_shlibpath_var=$hardcode_shlibpath_var
20120
20121 # Set to "yes" if building a shared library automatically hardcodes DIR
20122 # into the library and all subsequent libraries and executables linked
20123 # against it.
20124 hardcode_automatic=$hardcode_automatic
20125
20126 # Set to yes if linker adds runtime paths of dependent libraries
20127 # to runtime path list.
20128 inherit_rpath=$inherit_rpath
20129
20130 # Whether libtool must link a program against all its dependency libraries.
20131 link_all_deplibs=$link_all_deplibs
20132
20133 # Set to "yes" if exported symbols are required.
20134 always_export_symbols=$always_export_symbols
20135
20136 # The commands to list exported symbols.
20137 export_symbols_cmds=$lt_export_symbols_cmds
20138
20139 # Symbols that should not be listed in the preloaded symbols.
20140 exclude_expsyms=$lt_exclude_expsyms
20141
20142 # Symbols that must always be exported.
20143 include_expsyms=$lt_include_expsyms
20144
20145 # Commands necessary for linking programs (against libraries) with templates.
20146 prelink_cmds=$lt_prelink_cmds
20147
20148 # Commands necessary for finishing linking programs.
20149 postlink_cmds=$lt_postlink_cmds
20150
20151 # Specify filename containing input files.
20152 file_list_spec=$lt_file_list_spec
20153
20154 # How to hardcode a shared library path into an executable.
20155 hardcode_action=$hardcode_action
20156
20157 # ### END LIBTOOL CONFIG
20158
20159 _LT_EOF
20160
20161   case $host_os in
20162   aix3*)
20163     cat <<\_LT_EOF >> "$cfgfile"
20164 # AIX sometimes has problems with the GCC collect2 program.  For some
20165 # reason, if we set the COLLECT_NAMES environment variable, the problems
20166 # vanish in a puff of smoke.
20167 if test "X${COLLECT_NAMES+set}" != Xset; then
20168   COLLECT_NAMES=
20169   export COLLECT_NAMES
20170 fi
20171 _LT_EOF
20172     ;;
20173   esac
20174
20175
20176 ltmain="$ac_aux_dir/ltmain.sh"
20177
20178
20179   # We use sed instead of cat because bash on DJGPP gets confused if
20180   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20181   # text mode, it properly converts lines to CR/LF.  This bash problem
20182   # is reportedly fixed, but why not run on old versions too?
20183   sed '$q' "$ltmain" >> "$cfgfile" \
20184      || (rm -f "$cfgfile"; exit 1)
20185
20186   if test x"$xsi_shell" = xyes; then
20187   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20188 func_dirname ()\
20189 {\
20190 \    case ${1} in\
20191 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20192 \      *  ) func_dirname_result="${3}" ;;\
20193 \    esac\
20194 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20195   && mv -f "$cfgfile.tmp" "$cfgfile" \
20196     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20197 test 0 -eq $? || _lt_function_replace_fail=:
20198
20199
20200   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20201 func_basename ()\
20202 {\
20203 \    func_basename_result="${1##*/}"\
20204 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20205   && mv -f "$cfgfile.tmp" "$cfgfile" \
20206     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20207 test 0 -eq $? || _lt_function_replace_fail=:
20208
20209
20210   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20211 func_dirname_and_basename ()\
20212 {\
20213 \    case ${1} in\
20214 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20215 \      *  ) func_dirname_result="${3}" ;;\
20216 \    esac\
20217 \    func_basename_result="${1##*/}"\
20218 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20219   && mv -f "$cfgfile.tmp" "$cfgfile" \
20220     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20221 test 0 -eq $? || _lt_function_replace_fail=:
20222
20223
20224   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20225 func_stripname ()\
20226 {\
20227 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20228 \    # positional parameters, so assign one to ordinary parameter first.\
20229 \    func_stripname_result=${3}\
20230 \    func_stripname_result=${func_stripname_result#"${1}"}\
20231 \    func_stripname_result=${func_stripname_result%"${2}"}\
20232 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20233   && mv -f "$cfgfile.tmp" "$cfgfile" \
20234     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20235 test 0 -eq $? || _lt_function_replace_fail=:
20236
20237
20238   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20239 func_split_long_opt ()\
20240 {\
20241 \    func_split_long_opt_name=${1%%=*}\
20242 \    func_split_long_opt_arg=${1#*=}\
20243 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20244   && mv -f "$cfgfile.tmp" "$cfgfile" \
20245     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20246 test 0 -eq $? || _lt_function_replace_fail=:
20247
20248
20249   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20250 func_split_short_opt ()\
20251 {\
20252 \    func_split_short_opt_arg=${1#??}\
20253 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20254 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20255   && mv -f "$cfgfile.tmp" "$cfgfile" \
20256     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20257 test 0 -eq $? || _lt_function_replace_fail=:
20258
20259
20260   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20261 func_lo2o ()\
20262 {\
20263 \    case ${1} in\
20264 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20265 \      *)    func_lo2o_result=${1} ;;\
20266 \    esac\
20267 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20268   && mv -f "$cfgfile.tmp" "$cfgfile" \
20269     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20270 test 0 -eq $? || _lt_function_replace_fail=:
20271
20272
20273   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20274 func_xform ()\
20275 {\
20276     func_xform_result=${1%.*}.lo\
20277 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20278   && mv -f "$cfgfile.tmp" "$cfgfile" \
20279     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20280 test 0 -eq $? || _lt_function_replace_fail=:
20281
20282
20283   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20284 func_arith ()\
20285 {\
20286     func_arith_result=$(( $* ))\
20287 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20288   && mv -f "$cfgfile.tmp" "$cfgfile" \
20289     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20290 test 0 -eq $? || _lt_function_replace_fail=:
20291
20292
20293   sed -e '/^func_len ()$/,/^} # func_len /c\
20294 func_len ()\
20295 {\
20296     func_len_result=${#1}\
20297 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20298   && mv -f "$cfgfile.tmp" "$cfgfile" \
20299     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20300 test 0 -eq $? || _lt_function_replace_fail=:
20301
20302 fi
20303
20304 if test x"$lt_shell_append" = xyes; then
20305   sed -e '/^func_append ()$/,/^} # func_append /c\
20306 func_append ()\
20307 {\
20308     eval "${1}+=\\${2}"\
20309 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20310   && mv -f "$cfgfile.tmp" "$cfgfile" \
20311     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20312 test 0 -eq $? || _lt_function_replace_fail=:
20313
20314
20315   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20316 func_append_quoted ()\
20317 {\
20318 \    func_quote_for_eval "${2}"\
20319 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20320 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20321   && mv -f "$cfgfile.tmp" "$cfgfile" \
20322     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20323 test 0 -eq $? || _lt_function_replace_fail=:
20324
20325
20326   # Save a `func_append' function call where possible by direct use of '+='
20327   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20328     && mv -f "$cfgfile.tmp" "$cfgfile" \
20329       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20330   test 0 -eq $? || _lt_function_replace_fail=:
20331 else
20332   # Save a `func_append' function call even when '+=' is not available
20333   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20334     && mv -f "$cfgfile.tmp" "$cfgfile" \
20335       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20336   test 0 -eq $? || _lt_function_replace_fail=:
20337 fi
20338
20339 if test x"$_lt_function_replace_fail" = x":"; then
20340   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20341 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20342 fi
20343
20344
20345    mv -f "$cfgfile" "$ofile" ||
20346     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20347   chmod +x "$ofile"
20348
20349  ;;
20350     "disable-rpath":C)
20351         sed < libtool > libtool-2 \
20352         's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20353         mv libtool-2 libtool
20354         chmod 755 libtool
20355         libtool="./libtool"
20356          ;;
20357
20358   esac
20359 done # for ac_tag
20360
20361
20362 as_fn_exit 0
20363 _ACEOF
20364 ac_clean_files=$ac_clean_files_save
20365
20366 test $ac_write_fail = 0 ||
20367   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20368
20369
20370 # configure is writing to config.log, and then calls config.status.
20371 # config.status does its own redirection, appending to config.log.
20372 # Unfortunately, on DOS this fails, as config.log is still kept open
20373 # by configure, so config.status won't be able to write to it; its
20374 # output is simply discarded.  So we exec the FD to /dev/null,
20375 # effectively closing config.log, so it can be properly (re)opened and
20376 # appended to by config.status.  When coming back to configure, we
20377 # need to make the FD available again.
20378 if test "$no_create" != yes; then
20379   ac_cs_success=:
20380   ac_config_status_args=
20381   test "$silent" = yes &&
20382     ac_config_status_args="$ac_config_status_args --quiet"
20383   exec 5>/dev/null
20384   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20385   exec 5>>config.log
20386   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20387   # would make configure fail if this is the last instruction.
20388   $ac_cs_success || as_fn_exit 1
20389 fi
20390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20391   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20393 fi
20394